]>
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 | |
6ec7057a | 862 | --enable-secureplt Default to creating read-only plt entries |
569acd2c | 863 | --enable-werror treat compile warnings as errors |
9e9b66a9 | 864 | --enable-build-warnings Enable build-time compiler warnings |
f5385ebf AM |
865 | --enable-maintainer-mode enable make rules and dependencies not useful |
866 | (and sometimes confusing) to the casual installer | |
5464f5a1 NN |
867 | --enable-install-libbfd controls installation of libbfd and related headers |
868 | --disable-nls do not use Native Language Support | |
869 | ||
870 | Optional Packages: | |
871 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
872 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
873 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
874 | --with-pic try to use only PIC/non-PIC objects default=use both | |
875 | --with-mmap try using mmap for BFD input files if available | |
876 | --with-included-gettext use the GNU gettext library included here | |
877 | ||
878 | Some influential environment variables: | |
879 | CC C compiler command | |
880 | CFLAGS C compiler flags | |
881 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
882 | nonstandard directory <lib dir> | |
883 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
884 | headers in a nonstandard directory <include dir> | |
885 | CPP C preprocessor | |
886 | ||
887 | Use these variables to override the choices made by `configure' or to help | |
888 | it to find libraries and programs with nonstandard names/locations. | |
889 | ||
890 | _ACEOF | |
891 | fi | |
892 | ||
893 | if test "$ac_init_help" = "recursive"; then | |
894 | # If there are subdirs, report their specific --help. | |
895 | ac_popdir=`pwd` | |
896 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
897 | test -d $ac_dir || continue | |
898 | ac_builddir=. | |
899 | ||
900 | if test "$ac_dir" != .; then | |
901 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
902 | # A "../" for each directory in $ac_dir_suffix. | |
903 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
904 | else | |
905 | ac_dir_suffix= ac_top_builddir= | |
906 | fi | |
907 | ||
908 | case $srcdir in | |
909 | .) # No --srcdir option. We are building in place. | |
910 | ac_srcdir=. | |
911 | if test -z "$ac_top_builddir"; then | |
912 | ac_top_srcdir=. | |
913 | else | |
914 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
915 | fi ;; | |
916 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
917 | ac_srcdir=$srcdir$ac_dir_suffix; | |
918 | ac_top_srcdir=$srcdir ;; | |
919 | *) # Relative path. | |
920 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
921 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
6be7c12c AO |
922 | esac |
923 | ||
5464f5a1 NN |
924 | # Do not use `cd foo && pwd` to compute absolute paths, because |
925 | # the directories may not exist. | |
926 | case `pwd` in | |
927 | .) ac_abs_builddir="$ac_dir";; | |
928 | *) | |
929 | case "$ac_dir" in | |
930 | .) ac_abs_builddir=`pwd`;; | |
931 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
932 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
933 | esac;; | |
934 | esac | |
935 | case $ac_abs_builddir in | |
936 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
937 | *) | |
938 | case ${ac_top_builddir}. in | |
939 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
940 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
941 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
942 | esac;; | |
943 | esac | |
944 | case $ac_abs_builddir in | |
945 | .) ac_abs_srcdir=$ac_srcdir;; | |
946 | *) | |
947 | case $ac_srcdir in | |
948 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
949 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
950 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
951 | esac;; | |
952 | esac | |
953 | case $ac_abs_builddir in | |
954 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
955 | *) | |
956 | case $ac_top_srcdir in | |
957 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
958 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
959 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
960 | esac;; | |
961 | esac | |
6be7c12c | 962 | |
5464f5a1 NN |
963 | cd $ac_dir |
964 | # Check for guested configure; otherwise get Cygnus style configure. | |
965 | if test -f $ac_srcdir/configure.gnu; then | |
966 | echo | |
967 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
968 | elif test -f $ac_srcdir/configure; then | |
969 | echo | |
970 | $SHELL $ac_srcdir/configure --help=recursive | |
971 | elif test -f $ac_srcdir/configure.ac || | |
972 | test -f $ac_srcdir/configure.in; then | |
973 | echo | |
974 | $ac_configure --help | |
975 | else | |
976 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
977 | fi | |
e1fffbe6 | 978 | cd $ac_popdir |
5464f5a1 | 979 | done |
6be7c12c AO |
980 | fi |
981 | ||
5464f5a1 NN |
982 | test -n "$ac_init_help" && exit 0 |
983 | if $ac_init_version; then | |
984 | cat <<\_ACEOF | |
6be7c12c | 985 | |
5464f5a1 NN |
986 | Copyright (C) 2003 Free Software Foundation, Inc. |
987 | This configure script is free software; the Free Software Foundation | |
988 | gives unlimited permission to copy, distribute and modify it. | |
989 | _ACEOF | |
990 | exit 0 | |
991 | fi | |
992 | exec 5>config.log | |
993 | cat >&5 <<_ACEOF | |
994 | This file contains any messages produced by compilers while | |
995 | running configure, to aid debugging if configure makes a mistake. | |
6be7c12c | 996 | |
5464f5a1 NN |
997 | It was created by $as_me, which was |
998 | generated by GNU Autoconf 2.59. Invocation command line was | |
6be7c12c | 999 | |
5464f5a1 | 1000 | $ $0 $@ |
6be7c12c | 1001 | |
5464f5a1 NN |
1002 | _ACEOF |
1003 | { | |
1004 | cat <<_ASUNAME | |
1005 | ## --------- ## | |
1006 | ## Platform. ## | |
1007 | ## --------- ## | |
1008 | ||
1009 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1010 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1011 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1012 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1013 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1014 | ||
1015 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1016 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1017 | ||
1018 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1019 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1020 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1021 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1022 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1023 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1024 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1025 | ||
1026 | _ASUNAME | |
1027 | ||
1028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1029 | for as_dir in $PATH | |
1030 | do | |
1031 | IFS=$as_save_IFS | |
1032 | test -z "$as_dir" && as_dir=. | |
1033 | echo "PATH: $as_dir" | |
1034 | done | |
6be7c12c | 1035 | |
5464f5a1 | 1036 | } >&5 |
66e25bab | 1037 | |
5464f5a1 | 1038 | cat >&5 <<_ACEOF |
b3baf5d0 | 1039 | |
6be7c12c | 1040 | |
5464f5a1 NN |
1041 | ## ----------- ## |
1042 | ## Core tests. ## | |
1043 | ## ----------- ## | |
252b5132 | 1044 | |
5464f5a1 | 1045 | _ACEOF |
c5d1701e | 1046 | |
6be7c12c | 1047 | |
5464f5a1 NN |
1048 | # Keep a trace of the command line. |
1049 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1050 | # Strip out --silent because we don't want to record it for future runs. | |
1051 | # Also quote any args containing shell meta-characters. | |
1052 | # Make two passes to allow for proper duplicate-argument suppression. | |
1053 | ac_configure_args= | |
1054 | ac_configure_args0= | |
1055 | ac_configure_args1= | |
1056 | ac_sep= | |
1057 | ac_must_keep_next=false | |
1058 | for ac_pass in 1 2 | |
1059 | do | |
1060 | for ac_arg | |
1061 | do | |
1062 | case $ac_arg in | |
1063 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1064 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1065 | | -silent | --silent | --silen | --sile | --sil) | |
1066 | continue ;; | |
1067 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1068 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1069 | esac | |
1070 | case $ac_pass in | |
1071 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1072 | 2) | |
1073 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1074 | if test $ac_must_keep_next = true; then | |
1075 | ac_must_keep_next=false # Got value, back to normal. | |
1076 | else | |
1077 | case $ac_arg in | |
1078 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1079 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1080 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1081 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1082 | case "$ac_configure_args0 " in | |
1083 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1084 | esac | |
1085 | ;; | |
1086 | -* ) ac_must_keep_next=true ;; | |
1087 | esac | |
1088 | fi | |
1089 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1090 | # Get rid of the leading space. | |
1091 | ac_sep=" " | |
1092 | ;; | |
1093 | esac | |
1094 | done | |
1095 | done | |
1096 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1097 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1098 | ||
1099 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1100 | # config.log. We remove comments because anyway the quotes in there | |
1101 | # would cause problems or look ugly. | |
1102 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1103 | # such as our DU 5.0 friend, will then `close' the trap. | |
1104 | trap 'exit_status=$? | |
1105 | # Save into config.log some information that might help in debugging. | |
1106 | { | |
1107 | echo | |
1108 | ||
1109 | cat <<\_ASBOX | |
1110 | ## ---------------- ## | |
1111 | ## Cache variables. ## | |
1112 | ## ---------------- ## | |
1113 | _ASBOX | |
1114 | echo | |
1115 | # The following way of writing the cache mishandles newlines in values, | |
1116 | { | |
1117 | (set) 2>&1 | | |
1118 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1119 | *ac_space=\ *) | |
1120 | sed -n \ | |
1121 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1122 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1123 | ;; | |
1124 | *) | |
1125 | sed -n \ | |
1126 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1127 | ;; | |
1128 | esac; | |
1129 | } | |
1130 | echo | |
1131 | ||
1132 | cat <<\_ASBOX | |
1133 | ## ----------------- ## | |
1134 | ## Output variables. ## | |
1135 | ## ----------------- ## | |
1136 | _ASBOX | |
1137 | echo | |
1138 | for ac_var in $ac_subst_vars | |
1139 | do | |
1140 | eval ac_val=$`echo $ac_var` | |
1141 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1142 | done | sort | |
1143 | echo | |
1144 | ||
1145 | if test -n "$ac_subst_files"; then | |
1146 | cat <<\_ASBOX | |
1147 | ## ------------- ## | |
1148 | ## Output files. ## | |
1149 | ## ------------- ## | |
1150 | _ASBOX | |
1151 | echo | |
1152 | for ac_var in $ac_subst_files | |
1153 | do | |
1154 | eval ac_val=$`echo $ac_var` | |
1155 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1156 | done | sort | |
1157 | echo | |
1158 | fi | |
1159 | ||
1160 | if test -s confdefs.h; then | |
1161 | cat <<\_ASBOX | |
1162 | ## ----------- ## | |
1163 | ## confdefs.h. ## | |
1164 | ## ----------- ## | |
1165 | _ASBOX | |
1166 | echo | |
1167 | sed "/^$/d" confdefs.h | sort | |
1168 | echo | |
1169 | fi | |
1170 | test "$ac_signal" != 0 && | |
1171 | echo "$as_me: caught signal $ac_signal" | |
1172 | echo "$as_me: exit $exit_status" | |
1173 | } >&5 | |
1174 | rm -f core *.core && | |
1175 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1176 | exit $exit_status | |
1177 | ' 0 | |
1178 | for ac_signal in 1 2 13 15; do | |
1179 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1180 | done | |
1181 | ac_signal=0 | |
1182 | ||
1183 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1184 | rm -rf conftest* confdefs.h | |
1185 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1186 | echo >confdefs.h | |
1187 | ||
1188 | # Predefined preprocessor variables. | |
1189 | ||
1190 | cat >>confdefs.h <<_ACEOF | |
1191 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1192 | _ACEOF | |
1193 | ||
1194 | ||
1195 | cat >>confdefs.h <<_ACEOF | |
1196 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1197 | _ACEOF | |
1198 | ||
1199 | ||
1200 | cat >>confdefs.h <<_ACEOF | |
1201 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1202 | _ACEOF | |
1203 | ||
1204 | ||
1205 | cat >>confdefs.h <<_ACEOF | |
1206 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1207 | _ACEOF | |
1208 | ||
1209 | ||
1210 | cat >>confdefs.h <<_ACEOF | |
1211 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1212 | _ACEOF | |
1213 | ||
1214 | ||
1215 | # Let the site file select an alternate cache file if it wants to. | |
1216 | # Prefer explicitly selected file to automatically selected ones. | |
1217 | if test -z "$CONFIG_SITE"; then | |
1218 | if test "x$prefix" != xNONE; then | |
1219 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1220 | else | |
1221 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1222 | fi | |
1223 | fi | |
1224 | for ac_site_file in $CONFIG_SITE; do | |
1225 | if test -r "$ac_site_file"; then | |
1226 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1227 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1228 | sed 's/^/| /' "$ac_site_file" >&5 | |
1229 | . "$ac_site_file" | |
1230 | fi | |
1231 | done | |
1232 | ||
1233 | if test -r "$cache_file"; then | |
1234 | # Some versions of bash will fail to source /dev/null (special | |
1235 | # files actually), so we avoid doing that. | |
1236 | if test -f "$cache_file"; then | |
1237 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1238 | echo "$as_me: loading cache $cache_file" >&6;} | |
1239 | case $cache_file in | |
1240 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1241 | *) . ./$cache_file;; | |
1242 | esac | |
1243 | fi | |
1244 | else | |
1245 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1246 | echo "$as_me: creating cache $cache_file" >&6;} | |
1247 | >$cache_file | |
1248 | fi | |
1249 | ||
1250 | # Check that the precious variables saved in the cache have kept the same | |
1251 | # value. | |
1252 | ac_cache_corrupted=false | |
1253 | for ac_var in `(set) 2>&1 | | |
1254 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1255 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1256 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1257 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1258 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1259 | case $ac_old_set,$ac_new_set in | |
1260 | set,) | |
1261 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1262 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1263 | ac_cache_corrupted=: ;; | |
1264 | ,set) | |
1265 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1266 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1267 | ac_cache_corrupted=: ;; | |
1268 | ,);; | |
1269 | *) | |
1270 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1271 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1272 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1273 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1274 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1275 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1276 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1277 | ac_cache_corrupted=: | |
1278 | fi;; | |
1279 | esac | |
1280 | # Pass precious variables to config.status. | |
1281 | if test "$ac_new_set" = set; then | |
1282 | case $ac_new_val in | |
1283 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1284 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1285 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1286 | esac | |
1287 | case " $ac_configure_args " in | |
1288 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1289 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1290 | esac | |
1291 | fi | |
1292 | done | |
1293 | if $ac_cache_corrupted; then | |
1294 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1295 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1296 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1297 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1298 | { (exit 1); exit 1; }; } | |
1299 | fi | |
1300 | ||
1301 | ac_ext=c | |
1302 | ac_cpp='$CPP $CPPFLAGS' | |
1303 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1304 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1305 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
1324 | ||
1325 | ||
1326 | ||
1327 | ac_aux_dir= | |
1328 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1329 | if test -f $ac_dir/install-sh; then | |
1330 | ac_aux_dir=$ac_dir | |
1331 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1332 | break | |
1333 | elif test -f $ac_dir/install.sh; then | |
1334 | ac_aux_dir=$ac_dir | |
1335 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1336 | break | |
1337 | elif test -f $ac_dir/shtool; then | |
1338 | ac_aux_dir=$ac_dir | |
1339 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1340 | break | |
1341 | fi | |
1342 | done | |
1343 | if test -z "$ac_aux_dir"; then | |
1344 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1345 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1346 | { (exit 1); exit 1; }; } | |
1347 | fi | |
1348 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1349 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1350 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1351 | ||
1352 | # Make sure we can run config.sub. | |
1353 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1354 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1355 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1356 | { (exit 1); exit 1; }; } | |
1357 | ||
1358 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1359 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1360 | if test "${ac_cv_build+set}" = set; then | |
1361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1362 | else | |
1363 | ac_cv_build_alias=$build_alias | |
1364 | test -z "$ac_cv_build_alias" && | |
1365 | ac_cv_build_alias=`$ac_config_guess` | |
1366 | test -z "$ac_cv_build_alias" && | |
1367 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1368 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1369 | { (exit 1); exit 1; }; } | |
1370 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1371 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1372 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1373 | { (exit 1); exit 1; }; } | |
1374 | ||
1375 | fi | |
1376 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1377 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1378 | build=$ac_cv_build | |
1379 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1380 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1381 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1382 | ||
1383 | ||
1384 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1385 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1386 | if test "${ac_cv_host+set}" = set; then | |
1387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1388 | else | |
1389 | ac_cv_host_alias=$host_alias | |
1390 | test -z "$ac_cv_host_alias" && | |
1391 | ac_cv_host_alias=$ac_cv_build_alias | |
1392 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1393 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1394 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1395 | { (exit 1); exit 1; }; } | |
1396 | ||
1397 | fi | |
1398 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1399 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1400 | host=$ac_cv_host | |
1401 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1402 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1403 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1404 | ||
1405 | ||
1406 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1407 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1408 | if test "${ac_cv_target+set}" = set; then | |
1409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1410 | else | |
1411 | ac_cv_target_alias=$target_alias | |
1412 | test "x$ac_cv_target_alias" = "x" && | |
1413 | ac_cv_target_alias=$ac_cv_host_alias | |
1414 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1415 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1416 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1417 | { (exit 1); exit 1; }; } | |
1418 | ||
1419 | fi | |
1420 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1421 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1422 | target=$ac_cv_target | |
1423 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1424 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1425 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1426 | ||
1427 | ||
1428 | # The aliases save the names the user supplied, while $host etc. | |
1429 | # will get canonicalized. | |
1430 | test -n "$target_alias" && | |
1431 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1432 | NONENONEs,x,x, && | |
1433 | program_prefix=${target_alias}- | |
1434 | ac_ext=c | |
1435 | ac_cpp='$CPP $CPPFLAGS' | |
1436 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1437 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1438 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1439 | if test -n "$ac_tool_prefix"; then | |
1440 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1441 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1442 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1443 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1444 | if test "${ac_cv_prog_CC+set}" = set; then | |
1445 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1446 | else | |
1447 | if test -n "$CC"; then | |
1448 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1449 | else | |
1450 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1451 | for as_dir in $PATH | |
1452 | do | |
1453 | IFS=$as_save_IFS | |
1454 | test -z "$as_dir" && as_dir=. | |
1455 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1456 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1457 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1458 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1459 | break 2 | |
1460 | fi | |
1461 | done | |
1462 | done | |
1463 | ||
1464 | fi | |
1465 | fi | |
1466 | CC=$ac_cv_prog_CC | |
1467 | if test -n "$CC"; then | |
1468 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1469 | echo "${ECHO_T}$CC" >&6 | |
1470 | else | |
1471 | echo "$as_me:$LINENO: result: no" >&5 | |
1472 | echo "${ECHO_T}no" >&6 | |
1473 | fi | |
1474 | ||
1475 | fi | |
1476 | if test -z "$ac_cv_prog_CC"; then | |
1477 | ac_ct_CC=$CC | |
1478 | # Extract the first word of "gcc", so it can be a program name with args. | |
1479 | set dummy gcc; ac_word=$2 | |
1480 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1481 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1482 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1484 | else | |
1485 | if test -n "$ac_ct_CC"; then | |
1486 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1487 | else | |
1488 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1489 | for as_dir in $PATH | |
1490 | do | |
1491 | IFS=$as_save_IFS | |
1492 | test -z "$as_dir" && as_dir=. | |
1493 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1494 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1495 | ac_cv_prog_ac_ct_CC="gcc" | |
1496 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1497 | break 2 | |
1498 | fi | |
1499 | done | |
1500 | done | |
1501 | ||
1502 | fi | |
1503 | fi | |
1504 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1505 | if test -n "$ac_ct_CC"; then | |
1506 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1507 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1508 | else | |
1509 | echo "$as_me:$LINENO: result: no" >&5 | |
1510 | echo "${ECHO_T}no" >&6 | |
1511 | fi | |
1512 | ||
1513 | CC=$ac_ct_CC | |
1514 | else | |
1515 | CC="$ac_cv_prog_CC" | |
1516 | fi | |
1517 | ||
1518 | if test -z "$CC"; then | |
1519 | if test -n "$ac_tool_prefix"; then | |
1520 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1521 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1522 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1523 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1524 | if test "${ac_cv_prog_CC+set}" = set; then | |
1525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1526 | else | |
1527 | if test -n "$CC"; then | |
1528 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1529 | else | |
1530 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1531 | for as_dir in $PATH | |
1532 | do | |
1533 | IFS=$as_save_IFS | |
1534 | test -z "$as_dir" && as_dir=. | |
1535 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1536 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1537 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1538 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1539 | break 2 | |
1540 | fi | |
1541 | done | |
1542 | done | |
1543 | ||
1544 | fi | |
1545 | fi | |
1546 | CC=$ac_cv_prog_CC | |
1547 | if test -n "$CC"; then | |
1548 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1549 | echo "${ECHO_T}$CC" >&6 | |
1550 | else | |
1551 | echo "$as_me:$LINENO: result: no" >&5 | |
1552 | echo "${ECHO_T}no" >&6 | |
1553 | fi | |
1554 | ||
1555 | fi | |
1556 | if test -z "$ac_cv_prog_CC"; then | |
1557 | ac_ct_CC=$CC | |
1558 | # Extract the first word of "cc", so it can be a program name with args. | |
1559 | set dummy cc; ac_word=$2 | |
1560 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1561 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1562 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1564 | else | |
1565 | if test -n "$ac_ct_CC"; then | |
1566 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1567 | else | |
1568 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1569 | for as_dir in $PATH | |
1570 | do | |
1571 | IFS=$as_save_IFS | |
1572 | test -z "$as_dir" && as_dir=. | |
1573 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1574 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1575 | ac_cv_prog_ac_ct_CC="cc" | |
1576 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1577 | break 2 | |
1578 | fi | |
1579 | done | |
1580 | done | |
1581 | ||
1582 | fi | |
1583 | fi | |
1584 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1585 | if test -n "$ac_ct_CC"; then | |
1586 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1587 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1588 | else | |
1589 | echo "$as_me:$LINENO: result: no" >&5 | |
1590 | echo "${ECHO_T}no" >&6 | |
1591 | fi | |
1592 | ||
1593 | CC=$ac_ct_CC | |
1594 | else | |
1595 | CC="$ac_cv_prog_CC" | |
1596 | fi | |
1597 | ||
1598 | fi | |
1599 | if test -z "$CC"; then | |
1600 | # Extract the first word of "cc", so it can be a program name with args. | |
1601 | set dummy cc; ac_word=$2 | |
1602 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1603 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1604 | if test "${ac_cv_prog_CC+set}" = set; then | |
1605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1606 | else | |
1607 | if test -n "$CC"; then | |
1608 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1609 | else | |
1610 | ac_prog_rejected=no | |
1611 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1612 | for as_dir in $PATH | |
1613 | do | |
1614 | IFS=$as_save_IFS | |
1615 | test -z "$as_dir" && as_dir=. | |
1616 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1617 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1618 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1619 | ac_prog_rejected=yes | |
1620 | continue | |
1621 | fi | |
1622 | ac_cv_prog_CC="cc" | |
1623 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1624 | break 2 | |
1625 | fi | |
1626 | done | |
1627 | done | |
1628 | ||
1629 | if test $ac_prog_rejected = yes; then | |
1630 | # We found a bogon in the path, so make sure we never use it. | |
1631 | set dummy $ac_cv_prog_CC | |
1632 | shift | |
1633 | if test $# != 0; then | |
1634 | # We chose a different compiler from the bogus one. | |
1635 | # However, it has the same basename, so the bogon will be chosen | |
1636 | # first if we set CC to just the basename; use the full file name. | |
1637 | shift | |
1638 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1639 | fi | |
1640 | fi | |
1641 | fi | |
1642 | fi | |
1643 | CC=$ac_cv_prog_CC | |
1644 | if test -n "$CC"; then | |
1645 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1646 | echo "${ECHO_T}$CC" >&6 | |
1647 | else | |
1648 | echo "$as_me:$LINENO: result: no" >&5 | |
1649 | echo "${ECHO_T}no" >&6 | |
1650 | fi | |
1651 | ||
1652 | fi | |
1653 | if test -z "$CC"; then | |
1654 | if test -n "$ac_tool_prefix"; then | |
1655 | for ac_prog in cl | |
1656 | do | |
1657 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1658 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1659 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1660 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1661 | if test "${ac_cv_prog_CC+set}" = set; then | |
1662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1663 | else | |
1664 | if test -n "$CC"; then | |
1665 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1666 | else | |
1667 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1668 | for as_dir in $PATH | |
1669 | do | |
1670 | IFS=$as_save_IFS | |
1671 | test -z "$as_dir" && as_dir=. | |
1672 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1673 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1674 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1675 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1676 | break 2 | |
1677 | fi | |
1678 | done | |
1679 | done | |
1680 | ||
1681 | fi | |
1682 | fi | |
1683 | CC=$ac_cv_prog_CC | |
1684 | if test -n "$CC"; then | |
1685 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1686 | echo "${ECHO_T}$CC" >&6 | |
1687 | else | |
1688 | echo "$as_me:$LINENO: result: no" >&5 | |
1689 | echo "${ECHO_T}no" >&6 | |
1690 | fi | |
1691 | ||
1692 | test -n "$CC" && break | |
1693 | done | |
1694 | fi | |
1695 | if test -z "$CC"; then | |
1696 | ac_ct_CC=$CC | |
1697 | for ac_prog in cl | |
1698 | do | |
1699 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1700 | set dummy $ac_prog; ac_word=$2 | |
1701 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1702 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1703 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1705 | else | |
1706 | if test -n "$ac_ct_CC"; then | |
1707 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1708 | else | |
1709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1710 | for as_dir in $PATH | |
1711 | do | |
1712 | IFS=$as_save_IFS | |
1713 | test -z "$as_dir" && as_dir=. | |
1714 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1715 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1716 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1717 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1718 | break 2 | |
1719 | fi | |
1720 | done | |
1721 | done | |
1722 | ||
1723 | fi | |
1724 | fi | |
1725 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1726 | if test -n "$ac_ct_CC"; then | |
1727 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1728 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1729 | else | |
1730 | echo "$as_me:$LINENO: result: no" >&5 | |
1731 | echo "${ECHO_T}no" >&6 | |
1732 | fi | |
1733 | ||
1734 | test -n "$ac_ct_CC" && break | |
1735 | done | |
1736 | ||
1737 | CC=$ac_ct_CC | |
1738 | fi | |
1739 | ||
1740 | fi | |
1741 | ||
1742 | ||
1743 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1744 | See \`config.log' for more details." >&5 | |
1745 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1746 | See \`config.log' for more details." >&2;} | |
1747 | { (exit 1); exit 1; }; } | |
1748 | ||
1749 | # Provide some information about the compiler. | |
1750 | echo "$as_me:$LINENO:" \ | |
1751 | "checking for C compiler version" >&5 | |
1752 | ac_compiler=`set X $ac_compile; echo $2` | |
1753 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1754 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1755 | ac_status=$? | |
1756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1757 | (exit $ac_status); } | |
1758 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1759 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1760 | ac_status=$? | |
1761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1762 | (exit $ac_status); } | |
1763 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1764 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1765 | ac_status=$? | |
1766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1767 | (exit $ac_status); } | |
1768 | ||
1769 | cat >conftest.$ac_ext <<_ACEOF | |
1770 | /* confdefs.h. */ | |
1771 | _ACEOF | |
1772 | cat confdefs.h >>conftest.$ac_ext | |
1773 | cat >>conftest.$ac_ext <<_ACEOF | |
1774 | /* end confdefs.h. */ | |
1775 | ||
1776 | int | |
1777 | main () | |
1778 | { | |
1779 | ||
1780 | ; | |
1781 | return 0; | |
1782 | } | |
1783 | _ACEOF | |
1784 | ac_clean_files_save=$ac_clean_files | |
1785 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1786 | # Try to create an executable without -o first, disregard a.out. | |
1787 | # It will help us diagnose broken compilers, and finding out an intuition | |
1788 | # of exeext. | |
1789 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1790 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1791 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1792 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1793 | (eval $ac_link_default) 2>&5 | |
1794 | ac_status=$? | |
1795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1796 | (exit $ac_status); }; then | |
1797 | # Find the output, starting from the most likely. This scheme is | |
1798 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1799 | # resort. | |
1800 | ||
1801 | # Be careful to initialize this variable, since it used to be cached. | |
1802 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1803 | ac_cv_exeext= | |
1804 | # b.out is created by i960 compilers. | |
1805 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1806 | do | |
1807 | test -f "$ac_file" || continue | |
1808 | case $ac_file in | |
1809 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1810 | ;; | |
1811 | conftest.$ac_ext ) | |
1812 | # This is the source file. | |
1813 | ;; | |
1814 | [ab].out ) | |
1815 | # We found the default executable, but exeext='' is most | |
1816 | # certainly right. | |
1817 | break;; | |
1818 | *.* ) | |
1819 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1820 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1821 | # but it would be cool to find out if it's true. Does anybody | |
1822 | # maintain Libtool? --akim. | |
1823 | export ac_cv_exeext | |
1824 | break;; | |
1825 | * ) | |
1826 | break;; | |
1827 | esac | |
1828 | done | |
1829 | else | |
1830 | echo "$as_me: failed program was:" >&5 | |
1831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1832 | ||
1833 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1834 | See \`config.log' for more details." >&5 | |
1835 | echo "$as_me: error: C compiler cannot create executables | |
1836 | See \`config.log' for more details." >&2;} | |
1837 | { (exit 77); exit 77; }; } | |
1838 | fi | |
1839 | ||
1840 | ac_exeext=$ac_cv_exeext | |
1841 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1842 | echo "${ECHO_T}$ac_file" >&6 | |
1843 | ||
1844 | # Check the compiler produces executables we can run. If not, either | |
1845 | # the compiler is broken, or we cross compile. | |
1846 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1847 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1848 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1849 | # If not cross compiling, check that we can run a simple program. | |
1850 | if test "$cross_compiling" != yes; then | |
1851 | if { ac_try='./$ac_file' | |
1852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1853 | (eval $ac_try) 2>&5 | |
1854 | ac_status=$? | |
1855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1856 | (exit $ac_status); }; }; then | |
1857 | cross_compiling=no | |
1858 | else | |
1859 | if test "$cross_compiling" = maybe; then | |
1860 | cross_compiling=yes | |
1861 | else | |
1862 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1863 | If you meant to cross compile, use \`--host'. | |
1864 | See \`config.log' for more details." >&5 | |
1865 | echo "$as_me: error: cannot run C compiled programs. | |
1866 | If you meant to cross compile, use \`--host'. | |
1867 | See \`config.log' for more details." >&2;} | |
1868 | { (exit 1); exit 1; }; } | |
1869 | fi | |
1870 | fi | |
1871 | fi | |
1872 | echo "$as_me:$LINENO: result: yes" >&5 | |
1873 | echo "${ECHO_T}yes" >&6 | |
1874 | ||
1875 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1876 | ac_clean_files=$ac_clean_files_save | |
1877 | # Check the compiler produces executables we can run. If not, either | |
1878 | # the compiler is broken, or we cross compile. | |
1879 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1880 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1881 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1882 | echo "${ECHO_T}$cross_compiling" >&6 | |
1883 | ||
1884 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1885 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1886 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1887 | (eval $ac_link) 2>&5 | |
1888 | ac_status=$? | |
1889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1890 | (exit $ac_status); }; then | |
1891 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1892 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1893 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1894 | # `rm'. | |
1895 | for ac_file in conftest.exe conftest conftest.*; do | |
1896 | test -f "$ac_file" || continue | |
1897 | case $ac_file in | |
1898 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1899 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1900 | export ac_cv_exeext | |
1901 | break;; | |
1902 | * ) break;; | |
1903 | esac | |
1904 | done | |
1905 | else | |
1906 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
1907 | See \`config.log' for more details." >&5 | |
1908 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1909 | See \`config.log' for more details." >&2;} | |
1910 | { (exit 1); exit 1; }; } | |
1911 | fi | |
1912 | ||
1913 | rm -f conftest$ac_cv_exeext | |
1914 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1915 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1916 | ||
1917 | rm -f conftest.$ac_ext | |
1918 | EXEEXT=$ac_cv_exeext | |
1919 | ac_exeext=$EXEEXT | |
1920 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1921 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1922 | if test "${ac_cv_objext+set}" = set; then | |
1923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1924 | else | |
1925 | cat >conftest.$ac_ext <<_ACEOF | |
1926 | /* confdefs.h. */ | |
1927 | _ACEOF | |
1928 | cat confdefs.h >>conftest.$ac_ext | |
1929 | cat >>conftest.$ac_ext <<_ACEOF | |
1930 | /* end confdefs.h. */ | |
1931 | ||
1932 | int | |
1933 | main () | |
1934 | { | |
1935 | ||
1936 | ; | |
1937 | return 0; | |
1938 | } | |
1939 | _ACEOF | |
1940 | rm -f conftest.o conftest.obj | |
1941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1942 | (eval $ac_compile) 2>&5 | |
1943 | ac_status=$? | |
1944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1945 | (exit $ac_status); }; then | |
1946 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1947 | case $ac_file in | |
1948 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
1949 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1950 | break;; | |
1951 | esac | |
1952 | done | |
1953 | else | |
1954 | echo "$as_me: failed program was:" >&5 | |
1955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1956 | ||
1957 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1958 | See \`config.log' for more details." >&5 | |
1959 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1960 | See \`config.log' for more details." >&2;} | |
1961 | { (exit 1); exit 1; }; } | |
1962 | fi | |
1963 | ||
1964 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1965 | fi | |
1966 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
1967 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1968 | OBJEXT=$ac_cv_objext | |
1969 | ac_objext=$OBJEXT | |
1970 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
1971 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1972 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1974 | else | |
1975 | cat >conftest.$ac_ext <<_ACEOF | |
1976 | /* confdefs.h. */ | |
1977 | _ACEOF | |
1978 | cat confdefs.h >>conftest.$ac_ext | |
1979 | cat >>conftest.$ac_ext <<_ACEOF | |
1980 | /* end confdefs.h. */ | |
1981 | ||
1982 | int | |
1983 | main () | |
1984 | { | |
1985 | #ifndef __GNUC__ | |
1986 | choke me | |
1987 | #endif | |
1988 | ||
1989 | ; | |
1990 | return 0; | |
1991 | } | |
1992 | _ACEOF | |
1993 | rm -f conftest.$ac_objext | |
1994 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1995 | (eval $ac_compile) 2>conftest.er1 | |
1996 | ac_status=$? | |
1997 | grep -v '^ *+' conftest.er1 >conftest.err | |
1998 | rm -f conftest.er1 | |
1999 | cat conftest.err >&5 | |
2000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2001 | (exit $ac_status); } && | |
e1fffbe6 AM |
2002 | { ac_try='test -z "$ac_c_werror_flag" |
2003 | || test ! -s conftest.err' | |
5464f5a1 NN |
2004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2005 | (eval $ac_try) 2>&5 | |
2006 | ac_status=$? | |
2007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2008 | (exit $ac_status); }; } && | |
2009 | { ac_try='test -s conftest.$ac_objext' | |
2010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2011 | (eval $ac_try) 2>&5 | |
2012 | ac_status=$? | |
2013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2014 | (exit $ac_status); }; }; then | |
2015 | ac_compiler_gnu=yes | |
2016 | else | |
2017 | echo "$as_me: failed program was:" >&5 | |
2018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2019 | ||
2020 | ac_compiler_gnu=no | |
2021 | fi | |
2022 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2023 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2024 | ||
2025 | fi | |
2026 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2027 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2028 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2029 | ac_test_CFLAGS=${CFLAGS+set} | |
2030 | ac_save_CFLAGS=$CFLAGS | |
2031 | CFLAGS="-g" | |
2032 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2033 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2034 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2036 | else | |
2037 | cat >conftest.$ac_ext <<_ACEOF | |
2038 | /* confdefs.h. */ | |
2039 | _ACEOF | |
2040 | cat confdefs.h >>conftest.$ac_ext | |
2041 | cat >>conftest.$ac_ext <<_ACEOF | |
2042 | /* end confdefs.h. */ | |
2043 | ||
2044 | int | |
2045 | main () | |
2046 | { | |
2047 | ||
2048 | ; | |
2049 | return 0; | |
2050 | } | |
2051 | _ACEOF | |
2052 | rm -f conftest.$ac_objext | |
2053 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2054 | (eval $ac_compile) 2>conftest.er1 | |
2055 | ac_status=$? | |
2056 | grep -v '^ *+' conftest.er1 >conftest.err | |
2057 | rm -f conftest.er1 | |
2058 | cat conftest.err >&5 | |
2059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2060 | (exit $ac_status); } && | |
e1fffbe6 AM |
2061 | { ac_try='test -z "$ac_c_werror_flag" |
2062 | || test ! -s conftest.err' | |
5464f5a1 NN |
2063 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2064 | (eval $ac_try) 2>&5 | |
2065 | ac_status=$? | |
2066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2067 | (exit $ac_status); }; } && | |
2068 | { ac_try='test -s conftest.$ac_objext' | |
2069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2070 | (eval $ac_try) 2>&5 | |
2071 | ac_status=$? | |
2072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2073 | (exit $ac_status); }; }; then | |
2074 | ac_cv_prog_cc_g=yes | |
2075 | else | |
2076 | echo "$as_me: failed program was:" >&5 | |
2077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2078 | ||
2079 | ac_cv_prog_cc_g=no | |
2080 | fi | |
2081 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2082 | fi | |
2083 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2084 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2085 | if test "$ac_test_CFLAGS" = set; then | |
2086 | CFLAGS=$ac_save_CFLAGS | |
2087 | elif test $ac_cv_prog_cc_g = yes; then | |
2088 | if test "$GCC" = yes; then | |
2089 | CFLAGS="-g -O2" | |
2090 | else | |
2091 | CFLAGS="-g" | |
2092 | fi | |
2093 | else | |
2094 | if test "$GCC" = yes; then | |
2095 | CFLAGS="-O2" | |
2096 | else | |
2097 | CFLAGS= | |
2098 | fi | |
2099 | fi | |
2100 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2101 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2102 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2104 | else | |
2105 | ac_cv_prog_cc_stdc=no | |
2106 | ac_save_CC=$CC | |
2107 | cat >conftest.$ac_ext <<_ACEOF | |
2108 | /* confdefs.h. */ | |
2109 | _ACEOF | |
2110 | cat confdefs.h >>conftest.$ac_ext | |
2111 | cat >>conftest.$ac_ext <<_ACEOF | |
2112 | /* end confdefs.h. */ | |
2113 | #include <stdarg.h> | |
2114 | #include <stdio.h> | |
2115 | #include <sys/types.h> | |
2116 | #include <sys/stat.h> | |
2117 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2118 | struct buf { int x; }; | |
2119 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2120 | static char *e (p, i) | |
2121 | char **p; | |
2122 | int i; | |
2123 | { | |
2124 | return p[i]; | |
2125 | } | |
2126 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2127 | { | |
2128 | char *s; | |
2129 | va_list v; | |
2130 | va_start (v,p); | |
2131 | s = g (p, va_arg (v,int)); | |
2132 | va_end (v); | |
2133 | return s; | |
2134 | } | |
2135 | ||
2136 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2137 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2138 | These don't provoke an error unfortunately, instead are silently treated | |
2139 | as 'x'. The following induces an error, until -std1 is added to get | |
2140 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2141 | array size at least. It's necessary to write '\x00'==0 to get something | |
2142 | that's true only with -std1. */ | |
2143 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2144 | ||
2145 | int test (int i, double x); | |
2146 | struct s1 {int (*f) (int a);}; | |
2147 | struct s2 {int (*f) (double a);}; | |
2148 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2149 | int argc; | |
2150 | char **argv; | |
2151 | int | |
2152 | main () | |
2153 | { | |
2154 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2155 | ; | |
2156 | return 0; | |
2157 | } | |
2158 | _ACEOF | |
2159 | # Don't try gcc -ansi; that turns off useful extensions and | |
2160 | # breaks some systems' header files. | |
2161 | # AIX -qlanglvl=ansi | |
2162 | # Ultrix and OSF/1 -std1 | |
2163 | # HP-UX 10.20 and later -Ae | |
2164 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2165 | # SVR4 -Xc -D__EXTENSIONS__ | |
2166 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2167 | do | |
2168 | CC="$ac_save_CC $ac_arg" | |
2169 | rm -f conftest.$ac_objext | |
2170 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2171 | (eval $ac_compile) 2>conftest.er1 | |
2172 | ac_status=$? | |
2173 | grep -v '^ *+' conftest.er1 >conftest.err | |
2174 | rm -f conftest.er1 | |
2175 | cat conftest.err >&5 | |
2176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2177 | (exit $ac_status); } && | |
e1fffbe6 AM |
2178 | { ac_try='test -z "$ac_c_werror_flag" |
2179 | || test ! -s conftest.err' | |
5464f5a1 NN |
2180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2181 | (eval $ac_try) 2>&5 | |
2182 | ac_status=$? | |
2183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2184 | (exit $ac_status); }; } && | |
2185 | { ac_try='test -s conftest.$ac_objext' | |
2186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2187 | (eval $ac_try) 2>&5 | |
2188 | ac_status=$? | |
2189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2190 | (exit $ac_status); }; }; then | |
2191 | ac_cv_prog_cc_stdc=$ac_arg | |
2192 | break | |
2193 | else | |
2194 | echo "$as_me: failed program was:" >&5 | |
2195 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2196 | ||
2197 | fi | |
2198 | rm -f conftest.err conftest.$ac_objext | |
2199 | done | |
2200 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2201 | CC=$ac_save_CC | |
2202 | ||
2203 | fi | |
2204 | ||
2205 | case "x$ac_cv_prog_cc_stdc" in | |
2206 | x|xno) | |
2207 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2208 | echo "${ECHO_T}none needed" >&6 ;; | |
2209 | *) | |
2210 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2211 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2212 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2213 | esac | |
2214 | ||
2215 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2216 | # in C++ we need to declare it. In case someone uses the same compiler | |
2217 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2218 | # the declaration of exit, since it's the most demanding environment. | |
2219 | cat >conftest.$ac_ext <<_ACEOF | |
2220 | #ifndef __cplusplus | |
2221 | choke me | |
2222 | #endif | |
2223 | _ACEOF | |
2224 | rm -f conftest.$ac_objext | |
2225 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2226 | (eval $ac_compile) 2>conftest.er1 | |
2227 | ac_status=$? | |
2228 | grep -v '^ *+' conftest.er1 >conftest.err | |
2229 | rm -f conftest.er1 | |
2230 | cat conftest.err >&5 | |
2231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2232 | (exit $ac_status); } && | |
e1fffbe6 AM |
2233 | { ac_try='test -z "$ac_c_werror_flag" |
2234 | || test ! -s conftest.err' | |
5464f5a1 NN |
2235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2236 | (eval $ac_try) 2>&5 | |
2237 | ac_status=$? | |
2238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2239 | (exit $ac_status); }; } && | |
2240 | { ac_try='test -s conftest.$ac_objext' | |
2241 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2242 | (eval $ac_try) 2>&5 | |
2243 | ac_status=$? | |
2244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2245 | (exit $ac_status); }; }; then | |
2246 | for ac_declaration in \ | |
2247 | '' \ | |
2248 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2249 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2250 | 'extern "C" void exit (int) throw ();' \ | |
2251 | 'extern "C" void exit (int);' \ | |
2252 | 'void exit (int);' | |
2253 | do | |
2254 | cat >conftest.$ac_ext <<_ACEOF | |
2255 | /* confdefs.h. */ | |
2256 | _ACEOF | |
2257 | cat confdefs.h >>conftest.$ac_ext | |
2258 | cat >>conftest.$ac_ext <<_ACEOF | |
2259 | /* end confdefs.h. */ | |
2260 | $ac_declaration | |
2261 | #include <stdlib.h> | |
2262 | int | |
2263 | main () | |
2264 | { | |
2265 | exit (42); | |
2266 | ; | |
2267 | return 0; | |
2268 | } | |
2269 | _ACEOF | |
2270 | rm -f conftest.$ac_objext | |
2271 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2272 | (eval $ac_compile) 2>conftest.er1 | |
2273 | ac_status=$? | |
2274 | grep -v '^ *+' conftest.er1 >conftest.err | |
2275 | rm -f conftest.er1 | |
2276 | cat conftest.err >&5 | |
2277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2278 | (exit $ac_status); } && | |
e1fffbe6 AM |
2279 | { ac_try='test -z "$ac_c_werror_flag" |
2280 | || test ! -s conftest.err' | |
5464f5a1 NN |
2281 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2282 | (eval $ac_try) 2>&5 | |
2283 | ac_status=$? | |
2284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2285 | (exit $ac_status); }; } && | |
2286 | { ac_try='test -s conftest.$ac_objext' | |
2287 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2288 | (eval $ac_try) 2>&5 | |
2289 | ac_status=$? | |
2290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2291 | (exit $ac_status); }; }; then | |
2292 | : | |
2293 | else | |
2294 | echo "$as_me: failed program was:" >&5 | |
2295 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2296 | ||
2297 | continue | |
2298 | fi | |
2299 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2300 | cat >conftest.$ac_ext <<_ACEOF | |
2301 | /* confdefs.h. */ | |
2302 | _ACEOF | |
2303 | cat confdefs.h >>conftest.$ac_ext | |
2304 | cat >>conftest.$ac_ext <<_ACEOF | |
2305 | /* end confdefs.h. */ | |
2306 | $ac_declaration | |
2307 | int | |
2308 | main () | |
2309 | { | |
2310 | exit (42); | |
2311 | ; | |
2312 | return 0; | |
2313 | } | |
2314 | _ACEOF | |
2315 | rm -f conftest.$ac_objext | |
2316 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2317 | (eval $ac_compile) 2>conftest.er1 | |
2318 | ac_status=$? | |
2319 | grep -v '^ *+' conftest.er1 >conftest.err | |
2320 | rm -f conftest.er1 | |
2321 | cat conftest.err >&5 | |
2322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2323 | (exit $ac_status); } && | |
e1fffbe6 AM |
2324 | { ac_try='test -z "$ac_c_werror_flag" |
2325 | || test ! -s conftest.err' | |
5464f5a1 NN |
2326 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2327 | (eval $ac_try) 2>&5 | |
2328 | ac_status=$? | |
2329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2330 | (exit $ac_status); }; } && | |
2331 | { ac_try='test -s conftest.$ac_objext' | |
2332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2333 | (eval $ac_try) 2>&5 | |
2334 | ac_status=$? | |
2335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2336 | (exit $ac_status); }; }; then | |
2337 | break | |
2338 | else | |
2339 | echo "$as_me: failed program was:" >&5 | |
2340 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2341 | ||
2342 | fi | |
2343 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2344 | done | |
2345 | rm -f conftest* | |
2346 | if test -n "$ac_declaration"; then | |
2347 | echo '#ifdef __cplusplus' >>confdefs.h | |
2348 | echo $ac_declaration >>confdefs.h | |
2349 | echo '#endif' >>confdefs.h | |
2350 | fi | |
2351 | ||
2352 | else | |
2353 | echo "$as_me: failed program was:" >&5 | |
2354 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2355 | ||
2356 | fi | |
2357 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2358 | ac_ext=c | |
2359 | ac_cpp='$CPP $CPPFLAGS' | |
2360 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2361 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2362 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2363 | ||
2364 | ||
f5385ebf AM |
2365 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2366 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
2367 | if test "${ac_cv_search_strerror+set}" = set; then | |
5464f5a1 NN |
2368 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2369 | else | |
f5385ebf AM |
2370 | ac_func_search_save_LIBS=$LIBS |
2371 | ac_cv_search_strerror=no | |
5464f5a1 NN |
2372 | cat >conftest.$ac_ext <<_ACEOF |
2373 | /* confdefs.h. */ | |
2374 | _ACEOF | |
2375 | cat confdefs.h >>conftest.$ac_ext | |
2376 | cat >>conftest.$ac_ext <<_ACEOF | |
2377 | /* end confdefs.h. */ | |
2378 | ||
2379 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2380 | #ifdef __cplusplus | |
2381 | extern "C" | |
2382 | #endif | |
2383 | /* We use char because int might match the return type of a gcc2 | |
2384 | builtin and then its argument prototype would still apply. */ | |
2385 | char strerror (); | |
2386 | int | |
2387 | main () | |
2388 | { | |
2389 | strerror (); | |
2390 | ; | |
2391 | return 0; | |
2392 | } | |
2393 | _ACEOF | |
2394 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2395 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2396 | (eval $ac_link) 2>conftest.er1 | |
2397 | ac_status=$? | |
2398 | grep -v '^ *+' conftest.er1 >conftest.err | |
2399 | rm -f conftest.er1 | |
2400 | cat conftest.err >&5 | |
2401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2402 | (exit $ac_status); } && | |
e1fffbe6 AM |
2403 | { ac_try='test -z "$ac_c_werror_flag" |
2404 | || test ! -s conftest.err' | |
5464f5a1 NN |
2405 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2406 | (eval $ac_try) 2>&5 | |
2407 | ac_status=$? | |
2408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2409 | (exit $ac_status); }; } && | |
2410 | { ac_try='test -s conftest$ac_exeext' | |
2411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2412 | (eval $ac_try) 2>&5 | |
2413 | ac_status=$? | |
2414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2415 | (exit $ac_status); }; }; then | |
f5385ebf | 2416 | ac_cv_search_strerror="none required" |
5464f5a1 NN |
2417 | else |
2418 | echo "$as_me: failed program was:" >&5 | |
2419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2420 | ||
5464f5a1 NN |
2421 | fi |
2422 | rm -f conftest.err conftest.$ac_objext \ | |
2423 | conftest$ac_exeext conftest.$ac_ext | |
f5385ebf AM |
2424 | if test "$ac_cv_search_strerror" = no; then |
2425 | for ac_lib in cposix; do | |
2426 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2427 | cat >conftest.$ac_ext <<_ACEOF | |
2428 | /* confdefs.h. */ | |
2429 | _ACEOF | |
2430 | cat confdefs.h >>conftest.$ac_ext | |
2431 | cat >>conftest.$ac_ext <<_ACEOF | |
2432 | /* end confdefs.h. */ | |
2433 | ||
2434 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2435 | #ifdef __cplusplus | |
2436 | extern "C" | |
2437 | #endif | |
2438 | /* We use char because int might match the return type of a gcc2 | |
2439 | builtin and then its argument prototype would still apply. */ | |
2440 | char strerror (); | |
2441 | int | |
2442 | main () | |
2443 | { | |
2444 | strerror (); | |
2445 | ; | |
2446 | return 0; | |
2447 | } | |
2448 | _ACEOF | |
2449 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2450 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2451 | (eval $ac_link) 2>conftest.er1 | |
2452 | ac_status=$? | |
2453 | grep -v '^ *+' conftest.er1 >conftest.err | |
2454 | rm -f conftest.er1 | |
2455 | cat conftest.err >&5 | |
2456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2457 | (exit $ac_status); } && | |
e1fffbe6 AM |
2458 | { ac_try='test -z "$ac_c_werror_flag" |
2459 | || test ! -s conftest.err' | |
f5385ebf AM |
2460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2461 | (eval $ac_try) 2>&5 | |
2462 | ac_status=$? | |
2463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2464 | (exit $ac_status); }; } && | |
2465 | { ac_try='test -s conftest$ac_exeext' | |
2466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2467 | (eval $ac_try) 2>&5 | |
2468 | ac_status=$? | |
2469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2470 | (exit $ac_status); }; }; then | |
2471 | ac_cv_search_strerror="-l$ac_lib" | |
2472 | break | |
2473 | else | |
2474 | echo "$as_me: failed program was:" >&5 | |
2475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2476 | ||
5464f5a1 | 2477 | fi |
f5385ebf AM |
2478 | rm -f conftest.err conftest.$ac_objext \ |
2479 | conftest$ac_exeext conftest.$ac_ext | |
2480 | done | |
5464f5a1 | 2481 | fi |
f5385ebf AM |
2482 | LIBS=$ac_func_search_save_LIBS |
2483 | fi | |
2484 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
2485 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2486 | if test "$ac_cv_search_strerror" != no; then | |
2487 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
5464f5a1 | 2488 | |
f5385ebf | 2489 | fi |
5464f5a1 NN |
2490 | |
2491 | ||
f5385ebf | 2492 | am__api_version="1.9" |
5464f5a1 NN |
2493 | # Find a good install program. We prefer a C program (faster), |
2494 | # so one script is as good as another. But avoid the broken or | |
2495 | # incompatible versions: | |
2496 | # SysV /etc/install, /usr/sbin/install | |
2497 | # SunOS /usr/etc/install | |
2498 | # IRIX /sbin/install | |
2499 | # AIX /bin/install | |
2500 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
252b5132 RH |
2501 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2502 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2503 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5464f5a1 | 2504 | # OS/2's system install, which has a completely different semantic |
252b5132 | 2505 | # ./install, which can be erroneously created by make from ./install.sh. |
5464f5a1 NN |
2506 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2507 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
252b5132 | 2508 | if test -z "$INSTALL"; then |
5464f5a1 NN |
2509 | if test "${ac_cv_path_install+set}" = set; then |
2510 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 2511 | else |
5464f5a1 NN |
2512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2513 | for as_dir in $PATH | |
2514 | do | |
2515 | IFS=$as_save_IFS | |
2516 | test -z "$as_dir" && as_dir=. | |
2517 | # Account for people who put trailing slashes in PATH elements. | |
2518 | case $as_dir/ in | |
2519 | ./ | .// | /cC/* | \ | |
2520 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2521 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2522 | /usr/ucb/* ) ;; | |
2523 | *) | |
2524 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2525 | # Don't use installbsd from OSF since it installs stuff as root | |
2526 | # by default. | |
2527 | for ac_prog in ginstall scoinst install; do | |
2528 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2529 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
252b5132 | 2530 | if test $ac_prog = install && |
5464f5a1 | 2531 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
2532 | # AIX install. It has an incompatible calling convention. |
2533 | : | |
5464f5a1 NN |
2534 | elif test $ac_prog = install && |
2535 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2536 | # program-specific install script used by HP pwplus--don't use. | |
2537 | : | |
252b5132 | 2538 | else |
5464f5a1 NN |
2539 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2540 | break 3 | |
252b5132 RH |
2541 | fi |
2542 | fi | |
2543 | done | |
5464f5a1 NN |
2544 | done |
2545 | ;; | |
2546 | esac | |
2547 | done | |
2548 | ||
252b5132 RH |
2549 | |
2550 | fi | |
2551 | if test "${ac_cv_path_install+set}" = set; then | |
5464f5a1 | 2552 | INSTALL=$ac_cv_path_install |
252b5132 RH |
2553 | else |
2554 | # As a last resort, use the slow shell script. We don't cache a | |
2555 | # path for INSTALL within a source directory, because that will | |
2556 | # break other packages using the cache if that directory is | |
2557 | # removed, or if the path is relative. | |
5464f5a1 | 2558 | INSTALL=$ac_install_sh |
252b5132 RH |
2559 | fi |
2560 | fi | |
5464f5a1 NN |
2561 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2562 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
2563 | |
2564 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2565 | # It thinks the first close brace ends the variable substitution. | |
2566 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2567 | ||
5464f5a1 | 2568 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2569 | |
2570 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2571 | ||
5464f5a1 NN |
2572 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2573 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
252b5132 RH |
2574 | # Just in case |
2575 | sleep 1 | |
f5385ebf | 2576 | echo timestamp > conftest.file |
252b5132 RH |
2577 | # Do `set' in a subshell so we don't clobber the current shell's |
2578 | # arguments. Must try -L first in case configure is actually a | |
2579 | # symlink; some systems play weird games with the mod time of symlinks | |
2580 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2581 | # directory). | |
2582 | if ( | |
f5385ebf | 2583 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
252b5132 RH |
2584 | if test "$*" = "X"; then |
2585 | # -L didn't work. | |
f5385ebf | 2586 | set X `ls -t $srcdir/configure conftest.file` |
252b5132 | 2587 | fi |
f5385ebf AM |
2588 | rm -f conftest.file |
2589 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2590 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
2591 | |
2592 | # If neither matched, then we have a broken ls. This can happen | |
2593 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2594 | # broken ls alias from the environment. This has actually | |
2595 | # happened. Such a system could not be considered "sane". | |
5464f5a1 NN |
2596 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2597 | alias in your environment" >&5 | |
2598 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2599 | alias in your environment" >&2;} | |
2600 | { (exit 1); exit 1; }; } | |
252b5132 RH |
2601 | fi |
2602 | ||
f5385ebf | 2603 | test "$2" = conftest.file |
252b5132 RH |
2604 | ) |
2605 | then | |
2606 | # Ok. | |
2607 | : | |
2608 | else | |
5464f5a1 NN |
2609 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2610 | Check your system clock" >&5 | |
2611 | echo "$as_me: error: newly created file is older than distributed files! | |
2612 | Check your system clock" >&2;} | |
2613 | { (exit 1); exit 1; }; } | |
252b5132 | 2614 | fi |
5464f5a1 NN |
2615 | echo "$as_me:$LINENO: result: yes" >&5 |
2616 | echo "${ECHO_T}yes" >&6 | |
252b5132 | 2617 | test "$program_prefix" != NONE && |
5464f5a1 | 2618 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
252b5132 RH |
2619 | # Use a double $ so make ignores it. |
2620 | test "$program_suffix" != NONE && | |
5464f5a1 NN |
2621 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
2622 | # Double any \ or $. echo might interpret backslashes. | |
2623 | # By default was `s,x,x', remove it if useless. | |
2624 | cat <<\_ACEOF >conftest.sed | |
2625 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2626 | _ACEOF | |
2627 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
2628 | rm conftest.sed | |
2629 | ||
f5385ebf AM |
2630 | # expand $ac_aux_dir to an absolute path |
2631 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2632 | ||
2633 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2634 | # Use eval to expand $SHELL | |
2635 | if eval "$MISSING --run true"; then | |
2636 | am_missing_run="$MISSING --run " | |
2637 | else | |
2638 | am_missing_run= | |
2639 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2640 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2641 | fi | |
2642 | ||
2643 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
2644 | # We used to keeping the `.' as first argument, in order to | |
2645 | # allow $(mkdir_p) to be used without argument. As in | |
2646 | # $(mkdir_p) $(somedir) | |
2647 | # where $(somedir) is conditionally defined. However this is wrong | |
2648 | # for two reasons: | |
2649 | # 1. if the package is installed by a user who cannot write `.' | |
2650 | # make install will fail, | |
2651 | # 2. the above comment should most certainly read | |
2652 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
2653 | # so it does not work when $(somedir) is undefined and | |
2654 | # $(DESTDIR) is not. | |
2655 | # To support the latter case, we have to write | |
2656 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
2657 | # so the `.' trick is pointless. | |
2658 | mkdir_p='mkdir -p --' | |
2659 | else | |
2660 | # On NextStep and OpenStep, the `mkdir' command does not | |
2661 | # recognize any option. It will interpret all options as | |
2662 | # directories to create, and then abort because `.' already | |
2663 | # exists. | |
2664 | for d in ./-p ./--version; | |
2665 | do | |
2666 | test -d $d && rmdir $d | |
2667 | done | |
2668 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
2669 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
2670 | mkdir_p='$(mkinstalldirs)' | |
2671 | else | |
2672 | mkdir_p='$(install_sh) -d' | |
2673 | fi | |
2674 | fi | |
2675 | ||
2676 | for ac_prog in gawk mawk nawk awk | |
2677 | do | |
2678 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2679 | set dummy $ac_prog; ac_word=$2 | |
2680 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2681 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2682 | if test "${ac_cv_prog_AWK+set}" = set; then | |
2683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2684 | else | |
2685 | if test -n "$AWK"; then | |
2686 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2687 | else | |
2688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2689 | for as_dir in $PATH | |
2690 | do | |
2691 | IFS=$as_save_IFS | |
2692 | test -z "$as_dir" && as_dir=. | |
2693 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2694 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2695 | ac_cv_prog_AWK="$ac_prog" | |
2696 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2697 | break 2 | |
2698 | fi | |
2699 | done | |
2700 | done | |
2701 | ||
2702 | fi | |
2703 | fi | |
2704 | AWK=$ac_cv_prog_AWK | |
2705 | if test -n "$AWK"; then | |
2706 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
2707 | echo "${ECHO_T}$AWK" >&6 | |
2708 | else | |
2709 | echo "$as_me:$LINENO: result: no" >&5 | |
2710 | echo "${ECHO_T}no" >&6 | |
2711 | fi | |
2712 | ||
2713 | test -n "$AWK" && break | |
2714 | done | |
2715 | ||
5464f5a1 NN |
2716 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2717 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
2718 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
2719 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2721 | else | |
2722 | cat >conftest.make <<\_ACEOF | |
252b5132 | 2723 | all: |
5464f5a1 NN |
2724 | @echo 'ac_maketemp="$(MAKE)"' |
2725 | _ACEOF | |
252b5132 | 2726 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
5464f5a1 | 2727 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
252b5132 RH |
2728 | if test -n "$ac_maketemp"; then |
2729 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2730 | else | |
2731 | eval ac_cv_prog_make_${ac_make}_set=no | |
2732 | fi | |
5464f5a1 | 2733 | rm -f conftest.make |
252b5132 RH |
2734 | fi |
2735 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
5464f5a1 NN |
2736 | echo "$as_me:$LINENO: result: yes" >&5 |
2737 | echo "${ECHO_T}yes" >&6 | |
252b5132 RH |
2738 | SET_MAKE= |
2739 | else | |
5464f5a1 NN |
2740 | echo "$as_me:$LINENO: result: no" >&5 |
2741 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2742 | SET_MAKE="MAKE=${MAKE-make}" |
2743 | fi | |
2744 | ||
f5385ebf AM |
2745 | rm -rf .tst 2>/dev/null |
2746 | mkdir .tst 2>/dev/null | |
2747 | if test -d .tst; then | |
2748 | am__leading_dot=. | |
2749 | else | |
2750 | am__leading_dot=_ | |
2751 | fi | |
2752 | rmdir .tst 2>/dev/null | |
2753 | ||
2754 | DEPDIR="${am__leading_dot}deps" | |
2755 | ||
2756 | ac_config_commands="$ac_config_commands depfiles" | |
2757 | ||
2758 | ||
2759 | am_make=${MAKE-make} | |
2760 | cat > confinc << 'END' | |
2761 | am__doit: | |
2762 | @echo done | |
2763 | .PHONY: am__doit | |
2764 | END | |
2765 | # If we don't find an include directive, just comment out the code. | |
2766 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2767 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2768 | am__include="#" | |
2769 | am__quote= | |
2770 | _am_result=none | |
2771 | # First try GNU make style include. | |
2772 | echo "include confinc" > confmf | |
2773 | # We grep out `Entering directory' and `Leaving directory' | |
2774 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2775 | # In particular we don't look at `^make:' because GNU make might | |
2776 | # be invoked under some other name (usually "gmake"), in which | |
2777 | # case it prints its new name instead of `make'. | |
2778 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2779 | am__include=include | |
2780 | am__quote= | |
2781 | _am_result=GNU | |
2782 | fi | |
2783 | # Now try BSD make style include. | |
2784 | if test "$am__include" = "#"; then | |
2785 | echo '.include "confinc"' > confmf | |
2786 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2787 | am__include=.include | |
2788 | am__quote="\"" | |
2789 | _am_result=BSD | |
2790 | fi | |
2791 | fi | |
2792 | ||
2793 | ||
2794 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2795 | echo "${ECHO_T}$_am_result" >&6 | |
2796 | rm -f confinc confmf | |
2797 | ||
2798 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2799 | if test "${enable_dependency_tracking+set}" = set; then | |
2800 | enableval="$enable_dependency_tracking" | |
2801 | ||
2802 | fi; | |
2803 | if test "x$enable_dependency_tracking" != xno; then | |
2804 | am_depcomp="$ac_aux_dir/depcomp" | |
2805 | AMDEPBACKSLASH='\' | |
2806 | fi | |
2807 | ||
2808 | ||
2809 | if test "x$enable_dependency_tracking" != xno; then | |
2810 | AMDEP_TRUE= | |
2811 | AMDEP_FALSE='#' | |
2812 | else | |
2813 | AMDEP_TRUE='#' | |
2814 | AMDEP_FALSE= | |
2815 | fi | |
6be7c12c | 2816 | |
252b5132 | 2817 | |
252b5132 | 2818 | |
f5385ebf AM |
2819 | # test to see if srcdir already configured |
2820 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
2821 | test -f $srcdir/config.status; then | |
5464f5a1 NN |
2822 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
2823 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2824 | { (exit 1); exit 1; }; } | |
252b5132 | 2825 | fi |
5464f5a1 | 2826 | |
f5385ebf AM |
2827 | # test whether we have cygpath |
2828 | if test -z "$CYGPATH_W"; then | |
2829 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2830 | CYGPATH_W='cygpath -w' | |
2831 | else | |
2832 | CYGPATH_W=echo | |
2833 | fi | |
2834 | fi | |
2835 | ||
2836 | ||
2837 | # Define the identity of the package. | |
2838 | PACKAGE=bfd | |
e1fffbe6 | 2839 | VERSION=2.16.91 |
f5385ebf AM |
2840 | |
2841 | ||
5464f5a1 | 2842 | cat >>confdefs.h <<_ACEOF |
252b5132 | 2843 | #define PACKAGE "$PACKAGE" |
5464f5a1 | 2844 | _ACEOF |
252b5132 | 2845 | |
5464f5a1 NN |
2846 | |
2847 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 2848 | #define VERSION "$VERSION" |
5464f5a1 | 2849 | _ACEOF |
252b5132 | 2850 | |
f5385ebf AM |
2851 | # Some tools Automake needs. |
2852 | ||
2853 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2854 | ||
2855 | ||
2856 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2857 | ||
2858 | ||
2859 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2860 | ||
2861 | ||
2862 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2863 | ||
2864 | ||
2865 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
6be7c12c | 2866 | |
f5385ebf | 2867 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
6be7c12c | 2868 | |
f5385ebf AM |
2869 | # Installed binaries are usually stripped using `strip' when the user |
2870 | # run `make install-strip'. However `strip' might not be the right | |
2871 | # tool to use in cross-compilation environments, therefore Automake | |
2872 | # will honor the `STRIP' environment variable to overrule this program. | |
2873 | if test "$cross_compiling" != no; then | |
2874 | if test -n "$ac_tool_prefix"; then | |
2875 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2876 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2877 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2878 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2879 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2880 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2881 | else | |
2882 | if test -n "$STRIP"; then | |
2883 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
252b5132 | 2884 | else |
f5385ebf AM |
2885 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2886 | for as_dir in $PATH | |
2887 | do | |
2888 | IFS=$as_save_IFS | |
2889 | test -z "$as_dir" && as_dir=. | |
2890 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2891 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2892 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2893 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2894 | break 2 | |
2895 | fi | |
2896 | done | |
2897 | done | |
2898 | ||
2899 | fi | |
2900 | fi | |
2901 | STRIP=$ac_cv_prog_STRIP | |
2902 | if test -n "$STRIP"; then | |
2903 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2904 | echo "${ECHO_T}$STRIP" >&6 | |
2905 | else | |
2906 | echo "$as_me:$LINENO: result: no" >&5 | |
2907 | echo "${ECHO_T}no" >&6 | |
2908 | fi | |
2909 | ||
252b5132 | 2910 | fi |
f5385ebf AM |
2911 | if test -z "$ac_cv_prog_STRIP"; then |
2912 | ac_ct_STRIP=$STRIP | |
2913 | # Extract the first word of "strip", so it can be a program name with args. | |
2914 | set dummy strip; ac_word=$2 | |
2915 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2916 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2917 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2919 | else | |
2920 | if test -n "$ac_ct_STRIP"; then | |
2921 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2922 | else | |
2923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2924 | for as_dir in $PATH | |
2925 | do | |
2926 | IFS=$as_save_IFS | |
2927 | test -z "$as_dir" && as_dir=. | |
2928 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2929 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2930 | ac_cv_prog_ac_ct_STRIP="strip" | |
2931 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2932 | break 2 | |
2933 | fi | |
2934 | done | |
2935 | done | |
252b5132 | 2936 | |
f5385ebf AM |
2937 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
2938 | fi | |
2939 | fi | |
2940 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2941 | if test -n "$ac_ct_STRIP"; then | |
2942 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2943 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
252b5132 | 2944 | else |
f5385ebf AM |
2945 | echo "$as_me:$LINENO: result: no" >&5 |
2946 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2947 | fi |
2948 | ||
f5385ebf | 2949 | STRIP=$ac_ct_STRIP |
252b5132 | 2950 | else |
f5385ebf AM |
2951 | STRIP="$ac_cv_prog_STRIP" |
2952 | fi | |
2953 | ||
252b5132 | 2954 | fi |
f5385ebf AM |
2955 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
2956 | ||
2957 | # We need awk for the "check" target. The system "awk" is bad on | |
2958 | # some platforms. | |
2959 | # Always define AMTAR for backward compatibility. | |
2960 | ||
2961 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2962 | ||
2963 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2964 | ||
252b5132 | 2965 | |
f5385ebf AM |
2966 | |
2967 | ||
2968 | depcc="$CC" am_compiler_list= | |
2969 | ||
2970 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
2971 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2972 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
2973 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 2974 | else |
f5385ebf AM |
2975 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
2976 | # We make a subdir and do the tests there. Otherwise we can end up | |
2977 | # making bogus files that we don't know about and never remove. For | |
2978 | # instance it was reported that on HP-UX the gcc test will end up | |
2979 | # making a dummy file named `D' -- because `-MD' means `put the output | |
2980 | # in D'. | |
2981 | mkdir conftest.dir | |
2982 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
2983 | # using a relative directory. | |
2984 | cp "$am_depcomp" conftest.dir | |
2985 | cd conftest.dir | |
2986 | # We will build objects and dependencies in a subdirectory because | |
2987 | # it helps to detect inapplicable dependency modes. For instance | |
2988 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
2989 | # side effect of compilation, but ICC will put the dependencies in | |
2990 | # the current directory while Tru64 will put them in the object | |
2991 | # directory. | |
2992 | mkdir sub | |
2993 | ||
2994 | am_cv_CC_dependencies_compiler_type=none | |
2995 | if test "$am_compiler_list" = ""; then | |
2996 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
2997 | fi | |
2998 | for depmode in $am_compiler_list; do | |
2999 | # Setup a source with many dependencies, because some compilers | |
3000 | # like to wrap large dependency lists on column 80 (with \), and | |
3001 | # we should not choose a depcomp mode which is confused by this. | |
3002 | # | |
3003 | # We need to recreate these files for each test, as the compiler may | |
3004 | # overwrite some of them when testing with obscure command lines. | |
3005 | # This happens at least with the AIX C compiler. | |
3006 | : > sub/conftest.c | |
3007 | for i in 1 2 3 4 5 6; do | |
3008 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3009 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3010 | # Solaris 8's {/usr,}/bin/sh. | |
3011 | touch sub/conftst$i.h | |
3012 | done | |
3013 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3014 | ||
3015 | case $depmode in | |
3016 | nosideeffect) | |
3017 | # after this tag, mechanisms are not by side-effect, so they'll | |
3018 | # only be used when explicitly requested | |
3019 | if test "x$enable_dependency_tracking" = xyes; then | |
3020 | continue | |
3021 | else | |
3022 | break | |
3023 | fi | |
3024 | ;; | |
3025 | none) break ;; | |
3026 | esac | |
3027 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3028 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3029 | # handle `-M -o', and we need to detect this. | |
3030 | if depmode=$depmode \ | |
3031 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3032 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3033 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3034 | >/dev/null 2>conftest.err && | |
3035 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3036 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3037 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3038 | # icc doesn't choke on unknown options, it will just issue warnings | |
3039 | # or remarks (even with -Werror). So we grep stderr for any message | |
3040 | # that says an option was ignored or not supported. | |
3041 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3042 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3043 | # The diagnosis changed in icc 8.0: | |
3044 | # icc: Command line remark: option '-MP' not supported | |
3045 | if (grep 'ignoring option' conftest.err || | |
3046 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3047 | am_cv_CC_dependencies_compiler_type=$depmode | |
3048 | break | |
3049 | fi | |
3050 | fi | |
3051 | done | |
3052 | ||
3053 | cd .. | |
3054 | rm -rf conftest.dir | |
3055 | else | |
3056 | am_cv_CC_dependencies_compiler_type=none | |
3057 | fi | |
3058 | ||
252b5132 | 3059 | fi |
f5385ebf AM |
3060 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3061 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3062 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
252b5132 | 3063 | |
f5385ebf AM |
3064 | |
3065 | ||
3066 | if | |
3067 | test "x$enable_dependency_tracking" != xno \ | |
3068 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3069 | am__fastdepCC_TRUE= | |
3070 | am__fastdepCC_FALSE='#' | |
252b5132 | 3071 | else |
f5385ebf AM |
3072 | am__fastdepCC_TRUE='#' |
3073 | am__fastdepCC_FALSE= | |
252b5132 RH |
3074 | fi |
3075 | ||
6be7c12c | 3076 | |
e43d48cc | 3077 | |
f5385ebf | 3078 | |
5464f5a1 NN |
3079 | if test -n "$ac_tool_prefix"; then |
3080 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
252b5132 | 3081 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
5464f5a1 NN |
3082 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3083 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3084 | if test "${ac_cv_prog_AR+set}" = set; then | |
3085 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3086 | else |
3087 | if test -n "$AR"; then | |
3088 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3089 | else | |
5464f5a1 NN |
3090 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3091 | for as_dir in $PATH | |
3092 | do | |
3093 | IFS=$as_save_IFS | |
3094 | test -z "$as_dir" && as_dir=. | |
3095 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3096 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3097 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
3098 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3099 | break 2 | |
3100 | fi | |
3101 | done | |
3102 | done | |
3103 | ||
252b5132 RH |
3104 | fi |
3105 | fi | |
5464f5a1 | 3106 | AR=$ac_cv_prog_AR |
252b5132 | 3107 | if test -n "$AR"; then |
5464f5a1 NN |
3108 | echo "$as_me:$LINENO: result: $AR" >&5 |
3109 | echo "${ECHO_T}$AR" >&6 | |
252b5132 | 3110 | else |
5464f5a1 NN |
3111 | echo "$as_me:$LINENO: result: no" >&5 |
3112 | echo "${ECHO_T}no" >&6 | |
3113 | fi | |
3114 | ||
252b5132 | 3115 | fi |
5464f5a1 NN |
3116 | if test -z "$ac_cv_prog_AR"; then |
3117 | ac_ct_AR=$AR | |
3118 | # Extract the first word of "ar", so it can be a program name with args. | |
3119 | set dummy ar; ac_word=$2 | |
3120 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3121 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3122 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
3123 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3124 | else | |
3125 | if test -n "$ac_ct_AR"; then | |
3126 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
3127 | else | |
3128 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3129 | for as_dir in $PATH | |
3130 | do | |
3131 | IFS=$as_save_IFS | |
3132 | test -z "$as_dir" && as_dir=. | |
3133 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3134 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3135 | ac_cv_prog_ac_ct_AR="ar" | |
3136 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3137 | break 2 | |
3138 | fi | |
3139 | done | |
3140 | done | |
252b5132 | 3141 | |
5464f5a1 NN |
3142 | fi |
3143 | fi | |
3144 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
3145 | if test -n "$ac_ct_AR"; then | |
3146 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
3147 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
3148 | else | |
3149 | echo "$as_me:$LINENO: result: no" >&5 | |
3150 | echo "${ECHO_T}no" >&6 | |
3151 | fi | |
252b5132 | 3152 | |
5464f5a1 NN |
3153 | AR=$ac_ct_AR |
3154 | else | |
3155 | AR="$ac_cv_prog_AR" | |
3156 | fi | |
6be7c12c | 3157 | |
5464f5a1 NN |
3158 | if test -n "$ac_tool_prefix"; then |
3159 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
252b5132 | 3160 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5464f5a1 NN |
3161 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3162 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3163 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3165 | else |
3166 | if test -n "$RANLIB"; then | |
3167 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3168 | else | |
5464f5a1 NN |
3169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3170 | for as_dir in $PATH | |
3171 | do | |
3172 | IFS=$as_save_IFS | |
3173 | test -z "$as_dir" && as_dir=. | |
3174 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3175 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3176 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3177 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3178 | break 2 | |
3179 | fi | |
3180 | done | |
3181 | done | |
3182 | ||
252b5132 RH |
3183 | fi |
3184 | fi | |
5464f5a1 | 3185 | RANLIB=$ac_cv_prog_RANLIB |
252b5132 | 3186 | if test -n "$RANLIB"; then |
5464f5a1 NN |
3187 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3188 | echo "${ECHO_T}$RANLIB" >&6 | |
252b5132 | 3189 | else |
5464f5a1 NN |
3190 | echo "$as_me:$LINENO: result: no" >&5 |
3191 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3192 | fi |
3193 | ||
5464f5a1 | 3194 | fi |
252b5132 | 3195 | if test -z "$ac_cv_prog_RANLIB"; then |
5464f5a1 | 3196 | ac_ct_RANLIB=$RANLIB |
252b5132 RH |
3197 | # Extract the first word of "ranlib", so it can be a program name with args. |
3198 | set dummy ranlib; ac_word=$2 | |
5464f5a1 NN |
3199 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3200 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3201 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 3203 | else |
5464f5a1 NN |
3204 | if test -n "$ac_ct_RANLIB"; then |
3205 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6be7c12c | 3206 | else |
5464f5a1 NN |
3207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3208 | for as_dir in $PATH | |
3209 | do | |
3210 | IFS=$as_save_IFS | |
3211 | test -z "$as_dir" && as_dir=. | |
3212 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3213 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3214 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3215 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3216 | break 2 | |
3217 | fi | |
3218 | done | |
3219 | done | |
3220 | ||
3221 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
252b5132 RH |
3222 | fi |
3223 | fi | |
5464f5a1 NN |
3224 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3225 | if test -n "$ac_ct_RANLIB"; then | |
3226 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3227 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
252b5132 | 3228 | else |
5464f5a1 NN |
3229 | echo "$as_me:$LINENO: result: no" >&5 |
3230 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3231 | fi |
3232 | ||
5464f5a1 | 3233 | RANLIB=$ac_ct_RANLIB |
252b5132 | 3234 | else |
5464f5a1 | 3235 | RANLIB="$ac_cv_prog_RANLIB" |
6be7c12c AO |
3236 | fi |
3237 | ||
252b5132 RH |
3238 | |
3239 | # Check whether --enable-shared or --disable-shared was given. | |
3240 | if test "${enable_shared+set}" = set; then | |
3241 | enableval="$enable_shared" | |
3242 | p=${PACKAGE-default} | |
55c80943 | 3243 | case $enableval in |
252b5132 RH |
3244 | yes) enable_shared=yes ;; |
3245 | no) enable_shared=no ;; | |
3246 | *) | |
3247 | enable_shared=no | |
3248 | # Look at the argument we got. We use all the common list separators. | |
3249 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3250 | for pkg in $enableval; do | |
3251 | if test "X$pkg" = "X$p"; then | |
3252 | enable_shared=yes | |
3253 | fi | |
3254 | done | |
3255 | IFS="$ac_save_ifs" | |
3256 | ;; | |
3257 | esac | |
3258 | else | |
3259 | enable_shared=no | |
5464f5a1 | 3260 | fi; |
252b5132 RH |
3261 | |
3262 | # Check whether --enable-static or --disable-static was given. | |
3263 | if test "${enable_static+set}" = set; then | |
3264 | enableval="$enable_static" | |
3265 | p=${PACKAGE-default} | |
55c80943 | 3266 | case $enableval in |
252b5132 RH |
3267 | yes) enable_static=yes ;; |
3268 | no) enable_static=no ;; | |
3269 | *) | |
3270 | enable_static=no | |
3271 | # Look at the argument we got. We use all the common list separators. | |
3272 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3273 | for pkg in $enableval; do | |
3274 | if test "X$pkg" = "X$p"; then | |
3275 | enable_static=yes | |
3276 | fi | |
3277 | done | |
3278 | IFS="$ac_save_ifs" | |
3279 | ;; | |
3280 | esac | |
3281 | else | |
3282 | enable_static=yes | |
5464f5a1 | 3283 | fi; |
b2ef150d ILT |
3284 | # Check whether --enable-fast-install or --disable-fast-install was given. |
3285 | if test "${enable_fast_install+set}" = set; then | |
3286 | enableval="$enable_fast_install" | |
3287 | p=${PACKAGE-default} | |
55c80943 | 3288 | case $enableval in |
b2ef150d ILT |
3289 | yes) enable_fast_install=yes ;; |
3290 | no) enable_fast_install=no ;; | |
3291 | *) | |
3292 | enable_fast_install=no | |
3293 | # Look at the argument we got. We use all the common list separators. | |
3294 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3295 | for pkg in $enableval; do | |
3296 | if test "X$pkg" = "X$p"; then | |
3297 | enable_fast_install=yes | |
3298 | fi | |
3299 | done | |
3300 | IFS="$ac_save_ifs" | |
3301 | ;; | |
3302 | esac | |
3303 | else | |
3304 | enable_fast_install=yes | |
5464f5a1 | 3305 | fi; |
c5d1701e | 3306 | |
252b5132 RH |
3307 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3308 | if test "${with_gnu_ld+set}" = set; then | |
3309 | withval="$with_gnu_ld" | |
3310 | test "$withval" = no || with_gnu_ld=yes | |
3311 | else | |
3312 | with_gnu_ld=no | |
5464f5a1 | 3313 | fi; |
252b5132 | 3314 | ac_prog=ld |
55c80943 | 3315 | if test "$GCC" = yes; then |
252b5132 | 3316 | # Check if gcc -print-prog-name=ld gives a path. |
5464f5a1 NN |
3317 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
3318 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
ac48eca1 AO |
3319 | case $host in |
3320 | *-*-mingw*) | |
3321 | # gcc leaves a trailing carriage return which upsets mingw | |
3322 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3323 | *) | |
3324 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3325 | esac | |
55c80943 | 3326 | case $ac_prog in |
b2ef150d | 3327 | # Accept absolute paths. |
a74801ba | 3328 | [\\/]* | [A-Za-z]:[\\/]*) |
b2ef150d ILT |
3329 | re_direlt='/[^/][^/]*/\.\./' |
3330 | # Canonicalize the path of ld | |
3331 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3332 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3333 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3334 | done | |
3335 | test -z "$LD" && LD="$ac_prog" | |
3336 | ;; | |
252b5132 RH |
3337 | "") |
3338 | # If it fails, then pretend we aren't using GCC. | |
3339 | ac_prog=ld | |
3340 | ;; | |
3341 | *) | |
3342 | # If it is relative, then search for the first ld in PATH. | |
3343 | with_gnu_ld=unknown | |
3344 | ;; | |
3345 | esac | |
3346 | elif test "$with_gnu_ld" = yes; then | |
5464f5a1 NN |
3347 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3348 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
252b5132 | 3349 | else |
5464f5a1 NN |
3350 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
3351 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
252b5132 | 3352 | fi |
5464f5a1 NN |
3353 | if test "${lt_cv_path_LD+set}" = set; then |
3354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3355 | else |
3356 | if test -z "$LD"; then | |
a74801ba | 3357 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
252b5132 RH |
3358 | for ac_dir in $PATH; do |
3359 | test -z "$ac_dir" && ac_dir=. | |
a74801ba | 3360 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
55c80943 | 3361 | lt_cv_path_LD="$ac_dir/$ac_prog" |
252b5132 RH |
3362 | # Check to see if the program is GNU ld. I'd rather use --version, |
3363 | # but apparently some GNU ld's only accept -v. | |
3364 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
55c80943 | 3365 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
252b5132 RH |
3366 | test "$with_gnu_ld" != no && break |
3367 | else | |
b2ef150d | 3368 | test "$with_gnu_ld" != yes && break |
252b5132 RH |
3369 | fi |
3370 | fi | |
3371 | done | |
3372 | IFS="$ac_save_ifs" | |
3373 | else | |
55c80943 | 3374 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
252b5132 RH |
3375 | fi |
3376 | fi | |
3377 | ||
55c80943 | 3378 | LD="$lt_cv_path_LD" |
252b5132 | 3379 | if test -n "$LD"; then |
5464f5a1 NN |
3380 | echo "$as_me:$LINENO: result: $LD" >&5 |
3381 | echo "${ECHO_T}$LD" >&6 | |
252b5132 | 3382 | else |
5464f5a1 NN |
3383 | echo "$as_me:$LINENO: result: no" >&5 |
3384 | echo "${ECHO_T}no" >&6 | |
252b5132 | 3385 | fi |
5464f5a1 NN |
3386 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
3387 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3388 | { (exit 1); exit 1; }; } | |
3389 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3390 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3391 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3392 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3393 | else |
3394 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3395 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
55c80943 | 3396 | lt_cv_prog_gnu_ld=yes |
252b5132 | 3397 | else |
55c80943 | 3398 | lt_cv_prog_gnu_ld=no |
252b5132 RH |
3399 | fi |
3400 | fi | |
5464f5a1 NN |
3401 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
3402 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
55c80943 | 3403 | with_gnu_ld=$lt_cv_prog_gnu_ld |
252b5132 | 3404 | |
6be7c12c | 3405 | |
5464f5a1 NN |
3406 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
3407 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3408 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3410 | else |
3411 | lt_cv_ld_reload_flag='-r' | |
3412 | fi | |
5464f5a1 NN |
3413 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
3414 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
ac48eca1 AO |
3415 | reload_flag=$lt_cv_ld_reload_flag |
3416 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
3417 | ||
5464f5a1 NN |
3418 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
3419 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3420 | if test "${lt_cv_path_NM+set}" = set; then | |
3421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3422 | else |
3423 | if test -n "$NM"; then | |
3424 | # Let the user override the test. | |
55c80943 | 3425 | lt_cv_path_NM="$NM" |
252b5132 | 3426 | else |
a74801ba | 3427 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
b2ef150d | 3428 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
252b5132 | 3429 | test -z "$ac_dir" && ac_dir=. |
ac48eca1 AO |
3430 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
3431 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
252b5132 RH |
3432 | # Check to see if the nm accepts a BSD-compat flag. |
3433 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3434 | # nm: unknown option "B" ignored | |
90f2472a AO |
3435 | # Tru64's nm complains that /dev/null is an invalid object file |
3436 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
55c80943 | 3437 | lt_cv_path_NM="$tmp_nm -B" |
b2ef150d | 3438 | break |
ac48eca1 | 3439 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
55c80943 | 3440 | lt_cv_path_NM="$tmp_nm -p" |
b2ef150d | 3441 | break |
252b5132 | 3442 | else |
55c80943 | 3443 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
b2ef150d | 3444 | continue # so that we can try to find one that supports BSD flags |
252b5132 | 3445 | fi |
252b5132 RH |
3446 | fi |
3447 | done | |
3448 | IFS="$ac_save_ifs" | |
55c80943 | 3449 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
252b5132 RH |
3450 | fi |
3451 | fi | |
3452 | ||
55c80943 | 3453 | NM="$lt_cv_path_NM" |
5464f5a1 NN |
3454 | echo "$as_me:$LINENO: result: $NM" >&5 |
3455 | echo "${ECHO_T}$NM" >&6 | |
252b5132 | 3456 | |
5464f5a1 NN |
3457 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3458 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3459 | LN_S=$as_ln_s | |
3460 | if test "$LN_S" = "ln -s"; then | |
3461 | echo "$as_me:$LINENO: result: yes" >&5 | |
3462 | echo "${ECHO_T}yes" >&6 | |
6be7c12c | 3463 | else |
5464f5a1 NN |
3464 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3465 | echo "${ECHO_T}no, using $LN_S" >&6 | |
252b5132 RH |
3466 | fi |
3467 | ||
5464f5a1 NN |
3468 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 |
3469 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
3470 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3472 | else |
d64552c5 | 3473 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
ac48eca1 AO |
3474 | lt_cv_file_magic_test_file= |
3475 | lt_cv_deplibs_check_method='unknown' | |
3476 | # Need to set the preceding variable on all platforms that support | |
3477 | # interlibrary dependencies. | |
3478 | # 'none' -- dependencies not supported. | |
3479 | # `unknown' -- same as none, but documents that we really don't know. | |
3480 | # 'pass_all' -- all dependencies passed with no checks. | |
3481 | # 'test_compile' -- check by making test program. | |
3482 | # 'file_magic [regex]' -- check by looking for files in library path | |
3483 | # which responds to the $file_magic_cmd with a given egrep regex. | |
3484 | # If you have `file' or equivalent on your system and you're not sure | |
3485 | # whether `pass_all' will *always* work, you probably want this one. | |
3486 | ||
55c80943 NC |
3487 | case $host_os in |
3488 | aix*) | |
ac48eca1 AO |
3489 | lt_cv_deplibs_check_method=pass_all |
3490 | ;; | |
3491 | ||
3492 | beos*) | |
3493 | lt_cv_deplibs_check_method=pass_all | |
3494 | ;; | |
3495 | ||
3496 | bsdi4*) | |
55c80943 NC |
3497 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
3498 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
ac48eca1 AO |
3499 | lt_cv_file_magic_test_file=/shlib/libc.so |
3500 | ;; | |
3501 | ||
d64552c5 | 3502 | cygwin* | mingw* |pw32*) |
ac48eca1 | 3503 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
d64552c5 | 3504 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
ac48eca1 AO |
3505 | ;; |
3506 | ||
55c80943 NC |
3507 | darwin* | rhapsody*) |
3508 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
b3baf5d0 NC |
3509 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
3510 | case "$host_os" in | |
3511 | rhapsody* | darwin1.012) | |
3512 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
3513 | ;; | |
3514 | *) # Darwin 1.3 on | |
3515 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
3516 | ;; | |
3517 | esac | |
55c80943 NC |
3518 | ;; |
3519 | ||
5464f5a1 | 3520 | freebsd* | kfreebsd*-gnu) |
ac48eca1 | 3521 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
55c80943 | 3522 | case $host_cpu in |
ac48eca1 | 3523 | i*86 ) |
90f2472a AO |
3524 | # Not sure whether the presence of OpenBSD here was a mistake. |
3525 | # Let's accept both of them until this is cleared up. | |
55c80943 NC |
3526 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
3527 | lt_cv_file_magic_cmd=/usr/bin/file | |
ac48eca1 AO |
3528 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3529 | ;; | |
3530 | esac | |
3531 | else | |
3532 | lt_cv_deplibs_check_method=pass_all | |
3533 | fi | |
3534 | ;; | |
3535 | ||
3536 | gnu*) | |
3537 | lt_cv_deplibs_check_method=pass_all | |
3538 | ;; | |
3539 | ||
55c80943 | 3540 | hpux10.20*|hpux11*) |
4867be41 DJ |
3541 | case $host_cpu in |
3542 | hppa*) | |
3543 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3544 | lt_cv_file_magic_cmd=/usr/bin/file | |
3545 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3546 | ;; | |
3547 | ia64*) | |
3548 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3549 | lt_cv_file_magic_cmd=/usr/bin/file | |
3550 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3551 | ;; | |
3552 | esac | |
ac48eca1 AO |
3553 | ;; |
3554 | ||
3555 | irix5* | irix6*) | |
55c80943 | 3556 | case $host_os in |
ac48eca1 AO |
3557 | irix5*) |
3558 | # this will be overridden with pass_all, but let us keep it just in case | |
3559 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
3560 | ;; | |
3561 | *) | |
55c80943 | 3562 | case $LD in |
ac48eca1 AO |
3563 | *-32|*"-32 ") libmagic=32-bit;; |
3564 | *-n32|*"-n32 ") libmagic=N32;; | |
3565 | *-64|*"-64 ") libmagic=64-bit;; | |
3566 | *) libmagic=never-match;; | |
3567 | esac | |
3568 | # this will be overridden with pass_all, but let us keep it just in case | |
55c80943 NC |
3569 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
3570 | ;; | |
ac48eca1 AO |
3571 | esac |
3572 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
3573 | lt_cv_deplibs_check_method=pass_all | |
3574 | ;; | |
3575 | ||
3576 | # This must be Linux ELF. | |
90f2472a | 3577 | linux-gnu*) |
55c80943 | 3578 | case $host_cpu in |
c5d1701e | 3579 | alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* ) |
ac48eca1 AO |
3580 | lt_cv_deplibs_check_method=pass_all ;; |
3581 | *) | |
3582 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
55c80943 NC |
3583 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
3584 | esac | |
ac48eca1 AO |
3585 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
3586 | ;; | |
3587 | ||
5464f5a1 | 3588 | netbsd* | knetbsd*-gnu) |
55c80943 | 3589 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
b3baf5d0 | 3590 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
ac48eca1 | 3591 | else |
b3baf5d0 | 3592 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
ac48eca1 | 3593 | fi |
55c80943 NC |
3594 | ;; |
3595 | ||
3596 | newsos6) | |
3597 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3598 | lt_cv_file_magic_cmd=/usr/bin/file | |
3599 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
ac48eca1 AO |
3600 | ;; |
3601 | ||
3602 | osf3* | osf4* | osf5*) | |
3603 | # this will be overridden with pass_all, but let us keep it just in case | |
3604 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
3605 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3606 | lt_cv_deplibs_check_method=pass_all | |
3607 | ;; | |
3608 | ||
3609 | sco3.2v5*) | |
3610 | lt_cv_deplibs_check_method=pass_all | |
3611 | ;; | |
3612 | ||
3613 | solaris*) | |
3614 | lt_cv_deplibs_check_method=pass_all | |
3615 | lt_cv_file_magic_test_file=/lib/libc.so | |
3616 | ;; | |
3617 | ||
6be7c12c AO |
3618 | sysv5uw[78]* | sysv4*uw2*) |
3619 | lt_cv_deplibs_check_method=pass_all | |
3620 | ;; | |
3621 | ||
ac48eca1 | 3622 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
55c80943 | 3623 | case $host_vendor in |
ac48eca1 AO |
3624 | ncr) |
3625 | lt_cv_deplibs_check_method=pass_all | |
3626 | ;; | |
3627 | motorola) | |
55c80943 NC |
3628 | 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]' |
3629 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
ac48eca1 AO |
3630 | ;; |
3631 | esac | |
3632 | ;; | |
3633 | esac | |
3634 | ||
3635 | fi | |
5464f5a1 NN |
3636 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
3637 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
ac48eca1 AO |
3638 | file_magic_cmd=$lt_cv_file_magic_cmd |
3639 | deplibs_check_method=$lt_cv_deplibs_check_method | |
3640 | ||
6be7c12c AO |
3641 | |
3642 | ||
6be7c12c AO |
3643 | |
3644 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
3645 | ||
3646 | # Only perform the check for file, if the check method requires it | |
3647 | case $deplibs_check_method in | |
3648 | file_magic*) | |
3649 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
5464f5a1 NN |
3650 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
3651 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
3652 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c AO |
3654 | else |
3655 | case $MAGIC_CMD in | |
3656 | /*) | |
3657 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
3658 | ;; | |
3659 | ?:/*) | |
3660 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
3661 | ;; | |
3662 | *) | |
d64552c5 | 3663 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
3664 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3665 | ac_dummy="/usr/bin:$PATH" | |
3666 | for ac_dir in $ac_dummy; do | |
3667 | test -z "$ac_dir" && ac_dir=. | |
3668 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
d64552c5 | 3669 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
ac48eca1 | 3670 | if test -n "$file_magic_test_file"; then |
55c80943 | 3671 | case $deplibs_check_method in |
ac48eca1 AO |
3672 | "file_magic "*) |
3673 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 3674 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
3675 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3676 | egrep "$file_magic_regex" > /dev/null; then | |
3677 | : | |
3678 | else | |
3679 | cat <<EOF 1>&2 | |
3680 | ||
3681 | *** Warning: the command libtool uses to detect shared libraries, | |
3682 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3683 | *** The result is that libtool may fail to recognize shared libraries | |
3684 | *** as such. This will affect the creation of libtool libraries that | |
3685 | *** depend on shared libraries, but programs linked with such libtool | |
3686 | *** libraries will work regardless of this problem. Nevertheless, you | |
3687 | *** may want to report the problem to your system manager and/or to | |
3688 | *** [email protected] | |
3689 | ||
3690 | EOF | |
3691 | fi ;; | |
3692 | esac | |
3693 | fi | |
3694 | break | |
3695 | fi | |
3696 | done | |
3697 | IFS="$ac_save_ifs" | |
d64552c5 | 3698 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
3699 | ;; |
3700 | esac | |
3701 | fi | |
3702 | ||
d64552c5 AO |
3703 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3704 | if test -n "$MAGIC_CMD"; then | |
5464f5a1 NN |
3705 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
3706 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
ac48eca1 | 3707 | else |
5464f5a1 NN |
3708 | echo "$as_me:$LINENO: result: no" >&5 |
3709 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3710 | fi |
3711 | ||
d64552c5 | 3712 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
ac48eca1 | 3713 | if test -n "$ac_tool_prefix"; then |
5464f5a1 NN |
3714 | echo "$as_me:$LINENO: checking for file" >&5 |
3715 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
3716 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3718 | else |
55c80943 | 3719 | case $MAGIC_CMD in |
ac48eca1 | 3720 | /*) |
d64552c5 | 3721 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
3722 | ;; |
3723 | ?:/*) | |
d64552c5 | 3724 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
3725 | ;; |
3726 | *) | |
d64552c5 | 3727 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
3728 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3729 | ac_dummy="/usr/bin:$PATH" | |
3730 | for ac_dir in $ac_dummy; do | |
3731 | test -z "$ac_dir" && ac_dir=. | |
3732 | if test -f $ac_dir/file; then | |
d64552c5 | 3733 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
ac48eca1 | 3734 | if test -n "$file_magic_test_file"; then |
55c80943 | 3735 | case $deplibs_check_method in |
ac48eca1 AO |
3736 | "file_magic "*) |
3737 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 3738 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
3739 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3740 | egrep "$file_magic_regex" > /dev/null; then | |
3741 | : | |
3742 | else | |
3743 | cat <<EOF 1>&2 | |
3744 | ||
3745 | *** Warning: the command libtool uses to detect shared libraries, | |
3746 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3747 | *** The result is that libtool may fail to recognize shared libraries | |
3748 | *** as such. This will affect the creation of libtool libraries that | |
3749 | *** depend on shared libraries, but programs linked with such libtool | |
3750 | *** libraries will work regardless of this problem. Nevertheless, you | |
3751 | *** may want to report the problem to your system manager and/or to | |
3752 | *** [email protected] | |
3753 | ||
3754 | EOF | |
3755 | fi ;; | |
3756 | esac | |
3757 | fi | |
3758 | break | |
3759 | fi | |
3760 | done | |
3761 | IFS="$ac_save_ifs" | |
d64552c5 | 3762 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
3763 | ;; |
3764 | esac | |
3765 | fi | |
3766 | ||
d64552c5 AO |
3767 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3768 | if test -n "$MAGIC_CMD"; then | |
5464f5a1 NN |
3769 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
3770 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
ac48eca1 | 3771 | else |
5464f5a1 NN |
3772 | echo "$as_me:$LINENO: result: no" >&5 |
3773 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3774 | fi |
3775 | ||
3776 | else | |
d64552c5 | 3777 | MAGIC_CMD=: |
ac48eca1 AO |
3778 | fi |
3779 | fi | |
3780 | ||
3781 | fi | |
3782 | ;; | |
3783 | esac | |
3784 | ||
5464f5a1 NN |
3785 | if test -n "$ac_tool_prefix"; then |
3786 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
ac48eca1 | 3787 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5464f5a1 NN |
3788 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3789 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3790 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3792 | else |
3793 | if test -n "$RANLIB"; then | |
3794 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3795 | else | |
5464f5a1 NN |
3796 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3797 | for as_dir in $PATH | |
3798 | do | |
3799 | IFS=$as_save_IFS | |
3800 | test -z "$as_dir" && as_dir=. | |
3801 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3802 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3803 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3804 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3805 | break 2 | |
3806 | fi | |
3807 | done | |
3808 | done | |
3809 | ||
ac48eca1 AO |
3810 | fi |
3811 | fi | |
5464f5a1 | 3812 | RANLIB=$ac_cv_prog_RANLIB |
ac48eca1 | 3813 | if test -n "$RANLIB"; then |
5464f5a1 NN |
3814 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3815 | echo "${ECHO_T}$RANLIB" >&6 | |
ac48eca1 | 3816 | else |
5464f5a1 NN |
3817 | echo "$as_me:$LINENO: result: no" >&5 |
3818 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3819 | fi |
3820 | ||
5464f5a1 | 3821 | fi |
ac48eca1 | 3822 | if test -z "$ac_cv_prog_RANLIB"; then |
5464f5a1 | 3823 | ac_ct_RANLIB=$RANLIB |
ac48eca1 AO |
3824 | # Extract the first word of "ranlib", so it can be a program name with args. |
3825 | set dummy ranlib; ac_word=$2 | |
5464f5a1 NN |
3826 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3827 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3828 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3829 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 3830 | else |
5464f5a1 NN |
3831 | if test -n "$ac_ct_RANLIB"; then |
3832 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6be7c12c | 3833 | else |
5464f5a1 NN |
3834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3835 | for as_dir in $PATH | |
3836 | do | |
3837 | IFS=$as_save_IFS | |
3838 | test -z "$as_dir" && as_dir=. | |
3839 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3840 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3841 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3842 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3843 | break 2 | |
3844 | fi | |
3845 | done | |
3846 | done | |
3847 | ||
3848 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
ac48eca1 AO |
3849 | fi |
3850 | fi | |
5464f5a1 NN |
3851 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3852 | if test -n "$ac_ct_RANLIB"; then | |
3853 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3854 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
ac48eca1 | 3855 | else |
5464f5a1 NN |
3856 | echo "$as_me:$LINENO: result: no" >&5 |
3857 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3858 | fi |
3859 | ||
5464f5a1 | 3860 | RANLIB=$ac_ct_RANLIB |
ac48eca1 | 3861 | else |
5464f5a1 | 3862 | RANLIB="$ac_cv_prog_RANLIB" |
ac48eca1 AO |
3863 | fi |
3864 | ||
5464f5a1 NN |
3865 | if test -n "$ac_tool_prefix"; then |
3866 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
ac48eca1 | 3867 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
5464f5a1 NN |
3868 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3869 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3870 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
3871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3872 | else |
3873 | if test -n "$STRIP"; then | |
3874 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3875 | else | |
5464f5a1 NN |
3876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3877 | for as_dir in $PATH | |
3878 | do | |
3879 | IFS=$as_save_IFS | |
3880 | test -z "$as_dir" && as_dir=. | |
3881 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3882 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3883 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3884 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3885 | break 2 | |
3886 | fi | |
3887 | done | |
3888 | done | |
3889 | ||
ac48eca1 AO |
3890 | fi |
3891 | fi | |
5464f5a1 | 3892 | STRIP=$ac_cv_prog_STRIP |
ac48eca1 | 3893 | if test -n "$STRIP"; then |
5464f5a1 NN |
3894 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
3895 | echo "${ECHO_T}$STRIP" >&6 | |
ac48eca1 | 3896 | else |
5464f5a1 NN |
3897 | echo "$as_me:$LINENO: result: no" >&5 |
3898 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3899 | fi |
3900 | ||
5464f5a1 | 3901 | fi |
ac48eca1 | 3902 | if test -z "$ac_cv_prog_STRIP"; then |
5464f5a1 | 3903 | ac_ct_STRIP=$STRIP |
ac48eca1 AO |
3904 | # Extract the first word of "strip", so it can be a program name with args. |
3905 | set dummy strip; ac_word=$2 | |
5464f5a1 NN |
3906 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3907 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3908 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
3909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 3910 | else |
5464f5a1 NN |
3911 | if test -n "$ac_ct_STRIP"; then |
3912 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6be7c12c | 3913 | else |
5464f5a1 NN |
3914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3915 | for as_dir in $PATH | |
3916 | do | |
3917 | IFS=$as_save_IFS | |
3918 | test -z "$as_dir" && as_dir=. | |
3919 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3920 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3921 | ac_cv_prog_ac_ct_STRIP="strip" | |
3922 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3923 | break 2 | |
3924 | fi | |
3925 | done | |
3926 | done | |
3927 | ||
3928 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
ac48eca1 AO |
3929 | fi |
3930 | fi | |
5464f5a1 NN |
3931 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3932 | if test -n "$ac_ct_STRIP"; then | |
3933 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
3934 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
ac48eca1 | 3935 | else |
5464f5a1 NN |
3936 | echo "$as_me:$LINENO: result: no" >&5 |
3937 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3938 | fi |
3939 | ||
5464f5a1 | 3940 | STRIP=$ac_ct_STRIP |
ac48eca1 | 3941 | else |
5464f5a1 | 3942 | STRIP="$ac_cv_prog_STRIP" |
ac48eca1 | 3943 | fi |
252b5132 | 3944 | |
6be7c12c | 3945 | |
252b5132 | 3946 | # Check for any special flags to pass to ltconfig. |
b2ef150d | 3947 | libtool_flags="--cache-file=$cache_file" |
252b5132 RH |
3948 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
3949 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
b2ef150d | 3950 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" |
55c80943 NC |
3951 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" |
3952 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
252b5132 | 3953 | |
6be7c12c | 3954 | |
a74801ba ILT |
3955 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
3956 | if test "${enable_libtool_lock+set}" = set; then | |
3957 | enableval="$enable_libtool_lock" | |
a74801ba | 3958 | |
5464f5a1 | 3959 | fi; |
a74801ba ILT |
3960 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
3961 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
3962 | ||
5464f5a1 | 3963 | |
ac48eca1 AO |
3964 | # Check whether --with-pic or --without-pic was given. |
3965 | if test "${with_pic+set}" = set; then | |
3966 | withval="$with_pic" | |
3967 | pic_mode="$withval" | |
3968 | else | |
5464f5a1 NN |
3969 | pic_mode=default |
3970 | fi; | |
ac48eca1 AO |
3971 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" |
3972 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
3973 | ||
252b5132 RH |
3974 | # Some flags need to be propagated to the compiler or linker for good |
3975 | # libtool support. | |
55c80943 | 3976 | case $host in |
252b5132 RH |
3977 | *-*-irix6*) |
3978 | # Find out which ABI we are using. | |
e1fffbe6 | 3979 | echo '#line 3979 "configure"' > conftest.$ac_ext |
5464f5a1 NN |
3980 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3981 | (eval $ac_compile) 2>&5 | |
3982 | ac_status=$? | |
3983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3984 | (exit $ac_status); }; then | |
6a457e5c NC |
3985 | if test "$lt_cv_prog_gnu_ld" = yes; then |
3986 | case `/usr/bin/file conftest.$ac_objext` in | |
3987 | *32-bit*) | |
3988 | LD="${LD-ld} -melf32bsmip" | |
3989 | ;; | |
3990 | *N32*) | |
3991 | LD="${LD-ld} -melf32bmipn32" | |
3992 | ;; | |
3993 | *64-bit*) | |
3994 | LD="${LD-ld} -melf64bmip" | |
3995 | ;; | |
3996 | esac | |
3997 | else | |
55c80943 | 3998 | case `/usr/bin/file conftest.$ac_objext` in |
252b5132 RH |
3999 | *32-bit*) |
4000 | LD="${LD-ld} -32" | |
4001 | ;; | |
4002 | *N32*) | |
4003 | LD="${LD-ld} -n32" | |
4004 | ;; | |
4005 | *64-bit*) | |
4006 | LD="${LD-ld} -64" | |
4007 | ;; | |
4008 | esac | |
6a457e5c | 4009 | fi |
252b5132 RH |
4010 | fi |
4011 | rm -rf conftest* | |
4012 | ;; | |
4013 | ||
4867be41 DJ |
4014 | ia64-*-hpux*) |
4015 | # Find out which ABI we are using. | |
4016 | echo 'int i;' > conftest.$ac_ext | |
5464f5a1 NN |
4017 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4018 | (eval $ac_compile) 2>&5 | |
4019 | ac_status=$? | |
4020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4021 | (exit $ac_status); }; then | |
4867be41 DJ |
4022 | case "`/usr/bin/file conftest.o`" in |
4023 | *ELF-32*) | |
4024 | HPUX_IA64_MODE="32" | |
4025 | ;; | |
4026 | *ELF-64*) | |
4027 | HPUX_IA64_MODE="64" | |
4028 | ;; | |
4029 | esac | |
4030 | fi | |
4031 | rm -rf conftest* | |
4032 | ;; | |
4033 | ||
252b5132 RH |
4034 | *-*-sco3.2v5*) |
4035 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
b2ef150d | 4036 | SAVE_CFLAGS="$CFLAGS" |
252b5132 | 4037 | CFLAGS="$CFLAGS -belf" |
5464f5a1 NN |
4038 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
4039 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
4040 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
4041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2ef150d | 4042 | else |
5464f5a1 NN |
4043 | |
4044 | ||
ac48eca1 | 4045 | ac_ext=c |
ac48eca1 | 4046 | ac_cpp='$CPP $CPPFLAGS' |
5464f5a1 NN |
4047 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4048 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4049 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 4050 | |
5464f5a1 NN |
4051 | cat >conftest.$ac_ext <<_ACEOF |
4052 | /* confdefs.h. */ | |
4053 | _ACEOF | |
4054 | cat confdefs.h >>conftest.$ac_ext | |
4055 | cat >>conftest.$ac_ext <<_ACEOF | |
4056 | /* end confdefs.h. */ | |
b2ef150d | 4057 | |
5464f5a1 NN |
4058 | int |
4059 | main () | |
4060 | { | |
b2ef150d | 4061 | |
5464f5a1 NN |
4062 | ; |
4063 | return 0; | |
4064 | } | |
4065 | _ACEOF | |
4066 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4067 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4068 | (eval $ac_link) 2>conftest.er1 | |
4069 | ac_status=$? | |
4070 | grep -v '^ *+' conftest.er1 >conftest.err | |
4071 | rm -f conftest.er1 | |
4072 | cat conftest.err >&5 | |
4073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4074 | (exit $ac_status); } && | |
e1fffbe6 AM |
4075 | { ac_try='test -z "$ac_c_werror_flag" |
4076 | || test ! -s conftest.err' | |
5464f5a1 NN |
4077 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4078 | (eval $ac_try) 2>&5 | |
4079 | ac_status=$? | |
4080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4081 | (exit $ac_status); }; } && | |
4082 | { ac_try='test -s conftest$ac_exeext' | |
4083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4084 | (eval $ac_try) 2>&5 | |
4085 | ac_status=$? | |
4086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4087 | (exit $ac_status); }; }; then | |
b2ef150d ILT |
4088 | lt_cv_cc_needs_belf=yes |
4089 | else | |
5464f5a1 NN |
4090 | echo "$as_me: failed program was:" >&5 |
4091 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4092 | ||
4093 | lt_cv_cc_needs_belf=no | |
b2ef150d | 4094 | fi |
5464f5a1 NN |
4095 | rm -f conftest.err conftest.$ac_objext \ |
4096 | conftest$ac_exeext conftest.$ac_ext | |
ac48eca1 | 4097 | ac_ext=c |
ac48eca1 | 4098 | ac_cpp='$CPP $CPPFLAGS' |
5464f5a1 NN |
4099 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4100 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4101 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 4102 | |
b2ef150d | 4103 | fi |
5464f5a1 NN |
4104 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4105 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
b2ef150d ILT |
4106 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4107 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4108 | CFLAGS="$SAVE_CFLAGS" | |
4109 | fi | |
252b5132 RH |
4110 | ;; |
4111 | ||
6be7c12c | 4112 | |
252b5132 RH |
4113 | esac |
4114 | ||
6be7c12c | 4115 | |
b2ef150d | 4116 | # Save cache, so that ltconfig can load it |
5464f5a1 | 4117 | cat >confcache <<\_ACEOF |
b2ef150d ILT |
4118 | # This file is a shell script that caches the results of configure |
4119 | # tests run on this system so they can be shared between configure | |
5464f5a1 NN |
4120 | # scripts and configure runs, see configure's option --config-cache. |
4121 | # It is not useful on other systems. If it contains results you don't | |
4122 | # want to keep, you may remove or edit it. | |
b2ef150d | 4123 | # |
5464f5a1 NN |
4124 | # config.status only pays attention to the cache file if you give it |
4125 | # the --recheck option to rerun configure. | |
b2ef150d | 4126 | # |
5464f5a1 NN |
4127 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
4128 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4129 | # following values. | |
4130 | ||
4131 | _ACEOF | |
4132 | ||
b2ef150d ILT |
4133 | # The following way of writing the cache mishandles newlines in values, |
4134 | # but we know of no workaround that is simple, portable, and efficient. | |
4135 | # So, don't put newlines in cache variables' values. | |
4136 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4137 | # and sets the high bit in the cache file unless we assign to the vars. | |
5464f5a1 NN |
4138 | { |
4139 | (set) 2>&1 | | |
4140 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
4141 | *ac_space=\ *) | |
4142 | # `set' does not quote correctly, so add quotes (double-quote | |
4143 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
4144 | sed -n \ | |
4145 | "s/'/'\\\\''/g; | |
4146 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
4147 | ;; | |
4148 | *) | |
4149 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4150 | sed -n \ | |
4151 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
4152 | ;; | |
4153 | esac; | |
4154 | } | | |
4155 | sed ' | |
4156 | t clear | |
4157 | : clear | |
4158 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
4159 | t end | |
4160 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
4161 | : end' >>confcache | |
4162 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
b2ef150d | 4163 | if test -w $cache_file; then |
5464f5a1 NN |
4164 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
4165 | cat confcache >$cache_file | |
b2ef150d ILT |
4166 | else |
4167 | echo "not updating unwritable cache $cache_file" | |
4168 | fi | |
4169 | fi | |
4170 | rm -f confcache | |
4171 | ||
252b5132 | 4172 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
ac48eca1 | 4173 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
d64552c5 | 4174 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
ac48eca1 AO |
4175 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
4176 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
4177 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
4178 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
252b5132 | 4179 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
ac48eca1 | 4180 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
5464f5a1 NN |
4181 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 |
4182 | echo "$as_me: error: libtool configure failed" >&2;} | |
4183 | { (exit 1); exit 1; }; } | |
252b5132 | 4184 | |
b2ef150d ILT |
4185 | # Reload cache, that may have been modified by ltconfig |
4186 | if test -r "$cache_file"; then | |
5464f5a1 NN |
4187 | # Some versions of bash will fail to source /dev/null (special |
4188 | # files actually), so we avoid doing that. | |
4189 | if test -f "$cache_file"; then | |
4190 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
4191 | echo "$as_me: loading cache $cache_file" >&6;} | |
4192 | case $cache_file in | |
4193 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
4194 | *) . ./$cache_file;; | |
4195 | esac | |
4196 | fi | |
b2ef150d | 4197 | else |
5464f5a1 NN |
4198 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
4199 | echo "$as_me: creating cache $cache_file" >&6;} | |
4200 | >$cache_file | |
b2ef150d ILT |
4201 | fi |
4202 | ||
6be7c12c | 4203 | |
b2ef150d | 4204 | # This can be used to rebuild libtool when needed |
ac48eca1 | 4205 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
b2ef150d ILT |
4206 | |
4207 | # Always use our own libtool. | |
4208 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
4209 | ||
252b5132 RH |
4210 | # Redirect the config.log output again, so that the ltconfig log is not |
4211 | # clobbered by the next message. | |
4212 | exec 5>>./config.log | |
4213 | ||
6be7c12c | 4214 | |
5464f5a1 NN |
4215 | |
4216 | ||
4217 | ||
4218 | ||
6be7c12c | 4219 | |
252b5132 RH |
4220 | # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. |
4221 | if test "${enable_64_bit_bfd+set}" = set; then | |
4222 | enableval="$enable_64_bit_bfd" | |
4223 | case "${enableval}" in | |
4224 | yes) want64=true ;; | |
4225 | no) want64=false ;; | |
5464f5a1 NN |
4226 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5 |
4227 | echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;} | |
4228 | { (exit 1); exit 1; }; } ;; | |
252b5132 RH |
4229 | esac |
4230 | else | |
4231 | want64=false | |
5464f5a1 | 4232 | fi; # Check whether --enable-targets or --disable-targets was given. |
252b5132 RH |
4233 | if test "${enable_targets+set}" = set; then |
4234 | enableval="$enable_targets" | |
4235 | case "${enableval}" in | |
5464f5a1 NN |
4236 | yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 |
4237 | echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} | |
4238 | { (exit 1); exit 1; }; } | |
252b5132 RH |
4239 | ;; |
4240 | no) enable_targets= ;; | |
4241 | *) enable_targets=$enableval ;; | |
4242 | esac | |
5464f5a1 | 4243 | fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. |
252b5132 RH |
4244 | if test "${enable_commonbfdlib+set}" = set; then |
4245 | enableval="$enable_commonbfdlib" | |
4246 | case "${enableval}" in | |
4247 | yes) commonbfdlib=true ;; | |
4248 | no) commonbfdlib=false ;; | |
5464f5a1 NN |
4249 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5 |
4250 | echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;} | |
4251 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 4252 | esac |
5464f5a1 | 4253 | fi; |
252b5132 RH |
4254 | # Check whether --with-mmap or --without-mmap was given. |
4255 | if test "${with_mmap+set}" = set; then | |
4256 | withval="$with_mmap" | |
4257 | case "${withval}" in | |
4258 | yes) want_mmap=true ;; | |
4259 | no) want_mmap=false ;; | |
5464f5a1 NN |
4260 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5 |
4261 | echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;} | |
4262 | { (exit 1); exit 1; }; } ;; | |
252b5132 RH |
4263 | esac |
4264 | else | |
4265 | want_mmap=false | |
5464f5a1 | 4266 | fi; |
6ec7057a RH |
4267 | # Check whether --enable-secureplt or --disable-secureplt was given. |
4268 | if test "${enable_secureplt+set}" = set; then | |
4269 | enableval="$enable_secureplt" | |
4270 | case "${enableval}" in | |
4271 | yes) use_secureplt=true ;; | |
4272 | no) use_secureplt=false ;; | |
4273 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5 | |
4274 | echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;} | |
4275 | { (exit 1); exit 1; }; } ;; | |
4276 | esac | |
4277 | else | |
4278 | use_secureplt=false | |
4279 | fi; if test $use_secureplt = true; then | |
4280 | ||
4281 | cat >>confdefs.h <<\_ACEOF | |
4282 | #define USE_SECUREPLT 1 | |
4283 | _ACEOF | |
4284 | ||
4285 | fi | |
4286 | ||
9e9b66a9 AM |
4287 | |
4288 | WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" | |
1ad12f97 | 4289 | |
569acd2c NC |
4290 | # Check whether --enable-werror or --disable-werror was given. |
4291 | if test "${enable_werror+set}" = set; then | |
4292 | enableval="$enable_werror" | |
1ad12f97 NC |
4293 | case "${enableval}" in |
4294 | yes | y) ERROR_ON_WARNING="yes" ;; | |
4295 | no | n) ERROR_ON_WARNING="no" ;; | |
569acd2c NC |
4296 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 |
4297 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
1ad12f97 NC |
4298 | { (exit 1); exit 1; }; } ;; |
4299 | esac | |
4300 | fi; | |
4301 | ||
9e9b66a9 AM |
4302 | # Enable -Werror by default when using gcc |
4303 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
4304 | ERROR_ON_WARNING=yes | |
4305 | fi | |
4306 | ||
4307 | NO_WERROR= | |
4308 | if test "${ERROR_ON_WARNING}" = yes ; then | |
4309 | WARN_CFLAGS="$WARN_CFLAGS -Werror" | |
4310 | NO_WERROR="-Wno-error" | |
1ad12f97 NC |
4311 | fi |
4312 | ||
a2d91340 AC |
4313 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
4314 | if test "${enable_build_warnings+set}" = set; then | |
4315 | enableval="$enable_build_warnings" | |
4316 | case "${enableval}" in | |
4317 | yes) ;; | |
9e9b66a9 | 4318 | no) WARN_CFLAGS="-w";; |
a2d91340 | 4319 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
9e9b66a9 | 4320 | WARN_CFLAGS="${WARN_CFLAGS} ${t}";; |
a2d91340 | 4321 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
9e9b66a9 AM |
4322 | WARN_CFLAGS="${t} ${WARN_CFLAGS}";; |
4323 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
a2d91340 | 4324 | esac |
9e9b66a9 AM |
4325 | fi; |
4326 | ||
4327 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then | |
4328 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
a2d91340 AC |
4329 | fi |
4330 | ||
4331 | ||
9e9b66a9 AM |
4332 | |
4333 | ||
4334 | ||
5464f5a1 | 4335 | ac_config_headers="$ac_config_headers config.h:config.in" |
6be7c12c | 4336 | |
252b5132 RH |
4337 | |
4338 | if test -z "$target" ; then | |
5464f5a1 NN |
4339 | { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5 |
4340 | echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;} | |
4341 | { (exit 1); exit 1; }; } | |
252b5132 | 4342 | fi |
252b5132 | 4343 | |
5464f5a1 NN |
4344 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
4345 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
252b5132 RH |
4346 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
4347 | if test "${enable_maintainer_mode+set}" = set; then | |
4348 | enableval="$enable_maintainer_mode" | |
4349 | USE_MAINTAINER_MODE=$enableval | |
4350 | else | |
4351 | USE_MAINTAINER_MODE=no | |
5464f5a1 NN |
4352 | fi; |
4353 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
4354 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
6be7c12c | 4355 | |
252b5132 RH |
4356 | |
4357 | if test $USE_MAINTAINER_MODE = yes; then | |
4358 | MAINTAINER_MODE_TRUE= | |
4359 | MAINTAINER_MODE_FALSE='#' | |
4360 | else | |
4361 | MAINTAINER_MODE_TRUE='#' | |
4362 | MAINTAINER_MODE_FALSE= | |
4363 | fi | |
f5385ebf | 4364 | |
252b5132 | 4365 | MAINT=$MAINTAINER_MODE_TRUE |
252b5132 | 4366 | |
5464f5a1 | 4367 | |
24443139 AS |
4368 | case ${build_alias} in |
4369 | "") build_noncanonical=${build} ;; | |
4370 | *) build_noncanonical=${build_alias} ;; | |
4371 | esac | |
4372 | ||
4373 | case ${host_alias} in | |
4374 | "") host_noncanonical=${build_noncanonical} ;; | |
4375 | *) host_noncanonical=${host_alias} ;; | |
4376 | esac | |
4377 | ||
4378 | case ${target_alias} in | |
4379 | "") target_noncanonical=${host_noncanonical} ;; | |
4380 | *) target_noncanonical=${target_alias} ;; | |
4381 | esac | |
4382 | ||
5464f5a1 NN |
4383 | echo "$as_me:$LINENO: checking whether to install libbfd" >&5 |
4384 | echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6 | |
a703a6ea AM |
4385 | # Check whether --enable-install-libbfd or --disable-install-libbfd was given. |
4386 | if test "${enable_install_libbfd+set}" = set; then | |
4387 | enableval="$enable_install_libbfd" | |
4388 | install_libbfd_p=$enableval | |
4389 | else | |
66e25bab | 4390 | if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then |
a703a6ea AM |
4391 | install_libbfd_p=yes |
4392 | else | |
4393 | install_libbfd_p=no | |
4394 | fi | |
5464f5a1 NN |
4395 | fi; |
4396 | echo "$as_me:$LINENO: result: $install_libbfd_p" >&5 | |
4397 | echo "${ECHO_T}$install_libbfd_p" >&6 | |
a703a6ea | 4398 | |
a703a6ea AM |
4399 | |
4400 | if test $install_libbfd_p = yes; then | |
4401 | INSTALL_LIBBFD_TRUE= | |
4402 | INSTALL_LIBBFD_FALSE='#' | |
4403 | else | |
4404 | INSTALL_LIBBFD_TRUE='#' | |
4405 | INSTALL_LIBBFD_FALSE= | |
4406 | fi | |
f5385ebf | 4407 | |
5464f5a1 | 4408 | # Need _noncanonical variables for this. |
24443139 AS |
4409 | |
4410 | ||
4411 | ||
4412 | ||
a703a6ea AM |
4413 | # libbfd.a is a host library containing target dependent code |
4414 | bfdlibdir='$(libdir)' | |
4415 | bfdincludedir='$(includedir)' | |
4416 | if test "${host}" != "${target}"; then | |
5464f5a1 NN |
4417 | bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib' |
4418 | bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include' | |
a703a6ea | 4419 | fi |
a703a6ea AM |
4420 | |
4421 | ||
252b5132 RH |
4422 | |
4423 | ||
5464f5a1 NN |
4424 | |
4425 | ||
4426 | host64=false | |
4427 | target64=false | |
4428 | bfd_default_target_size=32 | |
4429 | ||
4430 | # host stuff: | |
4431 | ||
4432 | ac_ext=c | |
4433 | ac_cpp='$CPP $CPPFLAGS' | |
4434 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4435 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4436 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4437 | if test -n "$ac_tool_prefix"; then | |
4438 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4439 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4440 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4441 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4442 | if test "${ac_cv_prog_CC+set}" = set; then | |
4443 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 4444 | else |
5464f5a1 NN |
4445 | if test -n "$CC"; then |
4446 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 4447 | else |
5464f5a1 NN |
4448 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4449 | for as_dir in $PATH | |
4450 | do | |
4451 | IFS=$as_save_IFS | |
4452 | test -z "$as_dir" && as_dir=. | |
4453 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4454 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4455 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
4456 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4457 | break 2 | |
6be7c12c | 4458 | fi |
5464f5a1 NN |
4459 | done |
4460 | done | |
4461 | ||
252b5132 | 4462 | fi |
b3baf5d0 | 4463 | fi |
5464f5a1 NN |
4464 | CC=$ac_cv_prog_CC |
4465 | if test -n "$CC"; then | |
4466 | echo "$as_me:$LINENO: result: $CC" >&5 | |
4467 | echo "${ECHO_T}$CC" >&6 | |
4468 | else | |
4469 | echo "$as_me:$LINENO: result: no" >&5 | |
4470 | echo "${ECHO_T}no" >&6 | |
4471 | fi | |
252b5132 | 4472 | |
5464f5a1 NN |
4473 | fi |
4474 | if test -z "$ac_cv_prog_CC"; then | |
4475 | ac_ct_CC=$CC | |
4476 | # Extract the first word of "gcc", so it can be a program name with args. | |
4477 | set dummy gcc; ac_word=$2 | |
4478 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4479 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4480 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4482 | else | |
4483 | if test -n "$ac_ct_CC"; then | |
4484 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4485 | else | |
4486 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4487 | for as_dir in $PATH | |
4488 | do | |
4489 | IFS=$as_save_IFS | |
4490 | test -z "$as_dir" && as_dir=. | |
4491 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4492 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4493 | ac_cv_prog_ac_ct_CC="gcc" | |
4494 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4495 | break 2 | |
4496 | fi | |
4497 | done | |
4498 | done | |
252b5132 | 4499 | |
5464f5a1 NN |
4500 | fi |
4501 | fi | |
4502 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4503 | if test -n "$ac_ct_CC"; then | |
4504 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4505 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4506 | else | |
4507 | echo "$as_me:$LINENO: result: no" >&5 | |
4508 | echo "${ECHO_T}no" >&6 | |
4509 | fi | |
252b5132 | 4510 | |
5464f5a1 NN |
4511 | CC=$ac_ct_CC |
4512 | else | |
4513 | CC="$ac_cv_prog_CC" | |
4514 | fi | |
252b5132 | 4515 | |
5464f5a1 NN |
4516 | if test -z "$CC"; then |
4517 | if test -n "$ac_tool_prefix"; then | |
4518 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4519 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4520 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4521 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4522 | if test "${ac_cv_prog_CC+set}" = set; then | |
4523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4524 | else | |
4525 | if test -n "$CC"; then | |
4526 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4527 | else | |
4528 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4529 | for as_dir in $PATH | |
4530 | do | |
4531 | IFS=$as_save_IFS | |
4532 | test -z "$as_dir" && as_dir=. | |
4533 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4534 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4535 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4536 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4537 | break 2 | |
4538 | fi | |
4539 | done | |
4540 | done | |
6be7c12c | 4541 | |
5464f5a1 NN |
4542 | fi |
4543 | fi | |
4544 | CC=$ac_cv_prog_CC | |
4545 | if test -n "$CC"; then | |
4546 | echo "$as_me:$LINENO: result: $CC" >&5 | |
4547 | echo "${ECHO_T}$CC" >&6 | |
4548 | else | |
4549 | echo "$as_me:$LINENO: result: no" >&5 | |
4550 | echo "${ECHO_T}no" >&6 | |
4551 | fi | |
4552 | ||
4553 | fi | |
4554 | if test -z "$ac_cv_prog_CC"; then | |
4555 | ac_ct_CC=$CC | |
4556 | # Extract the first word of "cc", so it can be a program name with args. | |
4557 | set dummy cc; ac_word=$2 | |
4558 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4559 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4560 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4562 | else | |
4563 | if test -n "$ac_ct_CC"; then | |
4564 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4565 | else | |
4566 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4567 | for as_dir in $PATH | |
4568 | do | |
4569 | IFS=$as_save_IFS | |
4570 | test -z "$as_dir" && as_dir=. | |
4571 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4572 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4573 | ac_cv_prog_ac_ct_CC="cc" | |
4574 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4575 | break 2 | |
4576 | fi | |
4577 | done | |
4578 | done | |
4579 | ||
4580 | fi | |
4581 | fi | |
4582 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4583 | if test -n "$ac_ct_CC"; then | |
4584 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4585 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4586 | else | |
4587 | echo "$as_me:$LINENO: result: no" >&5 | |
4588 | echo "${ECHO_T}no" >&6 | |
4589 | fi | |
4590 | ||
4591 | CC=$ac_ct_CC | |
4592 | else | |
4593 | CC="$ac_cv_prog_CC" | |
4594 | fi | |
4595 | ||
4596 | fi | |
4597 | if test -z "$CC"; then | |
4598 | # Extract the first word of "cc", so it can be a program name with args. | |
4599 | set dummy cc; ac_word=$2 | |
4600 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4601 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4602 | if test "${ac_cv_prog_CC+set}" = set; then | |
4603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
4604 | else |
4605 | if test -n "$CC"; then | |
4606 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4607 | else | |
5464f5a1 NN |
4608 | ac_prog_rejected=no |
4609 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4610 | for as_dir in $PATH | |
4611 | do | |
4612 | IFS=$as_save_IFS | |
4613 | test -z "$as_dir" && as_dir=. | |
4614 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4615 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4616 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4617 | ac_prog_rejected=yes | |
4618 | continue | |
4619 | fi | |
4620 | ac_cv_prog_CC="cc" | |
4621 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4622 | break 2 | |
4623 | fi | |
4624 | done | |
4625 | done | |
4626 | ||
4627 | if test $ac_prog_rejected = yes; then | |
4628 | # We found a bogon in the path, so make sure we never use it. | |
4629 | set dummy $ac_cv_prog_CC | |
4630 | shift | |
4631 | if test $# != 0; then | |
4632 | # We chose a different compiler from the bogus one. | |
4633 | # However, it has the same basename, so the bogon will be chosen | |
4634 | # first if we set CC to just the basename; use the full file name. | |
4635 | shift | |
4636 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4637 | fi | |
4638 | fi | |
4639 | fi | |
4640 | fi | |
4641 | CC=$ac_cv_prog_CC | |
4642 | if test -n "$CC"; then | |
4643 | echo "$as_me:$LINENO: result: $CC" >&5 | |
4644 | echo "${ECHO_T}$CC" >&6 | |
4645 | else | |
4646 | echo "$as_me:$LINENO: result: no" >&5 | |
4647 | echo "${ECHO_T}no" >&6 | |
4648 | fi | |
4649 | ||
4650 | fi | |
4651 | if test -z "$CC"; then | |
4652 | if test -n "$ac_tool_prefix"; then | |
4653 | for ac_prog in cl | |
4654 | do | |
4655 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4656 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4657 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4658 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4659 | if test "${ac_cv_prog_CC+set}" = set; then | |
4660 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4661 | else | |
4662 | if test -n "$CC"; then | |
4663 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4664 | else | |
4665 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4666 | for as_dir in $PATH | |
4667 | do | |
4668 | IFS=$as_save_IFS | |
4669 | test -z "$as_dir" && as_dir=. | |
4670 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4671 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4672 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
4673 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4674 | break 2 | |
4675 | fi | |
4676 | done | |
4677 | done | |
4678 | ||
4679 | fi | |
4680 | fi | |
4681 | CC=$ac_cv_prog_CC | |
4682 | if test -n "$CC"; then | |
4683 | echo "$as_me:$LINENO: result: $CC" >&5 | |
4684 | echo "${ECHO_T}$CC" >&6 | |
4685 | else | |
4686 | echo "$as_me:$LINENO: result: no" >&5 | |
4687 | echo "${ECHO_T}no" >&6 | |
4688 | fi | |
4689 | ||
4690 | test -n "$CC" && break | |
6be7c12c | 4691 | done |
252b5132 | 4692 | fi |
5464f5a1 NN |
4693 | if test -z "$CC"; then |
4694 | ac_ct_CC=$CC | |
4695 | for ac_prog in cl | |
4696 | do | |
4697 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4698 | set dummy $ac_prog; ac_word=$2 | |
4699 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4700 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4701 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4703 | else | |
4704 | if test -n "$ac_ct_CC"; then | |
4705 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4706 | else | |
4707 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4708 | for as_dir in $PATH | |
4709 | do | |
4710 | IFS=$as_save_IFS | |
4711 | test -z "$as_dir" && as_dir=. | |
4712 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4713 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4714 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4715 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4716 | break 2 | |
4717 | fi | |
4718 | done | |
4719 | done | |
4720 | ||
4721 | fi | |
4722 | fi | |
4723 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4724 | if test -n "$ac_ct_CC"; then | |
4725 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4726 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4727 | else | |
4728 | echo "$as_me:$LINENO: result: no" >&5 | |
4729 | echo "${ECHO_T}no" >&6 | |
4730 | fi | |
4731 | ||
4732 | test -n "$ac_ct_CC" && break | |
4733 | done | |
4734 | ||
4735 | CC=$ac_ct_CC | |
4736 | fi | |
4737 | ||
4738 | fi | |
4739 | ||
4740 | ||
4741 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
4742 | See \`config.log' for more details." >&5 | |
4743 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
4744 | See \`config.log' for more details." >&2;} | |
4745 | { (exit 1); exit 1; }; } | |
4746 | ||
4747 | # Provide some information about the compiler. | |
4748 | echo "$as_me:$LINENO:" \ | |
4749 | "checking for C compiler version" >&5 | |
4750 | ac_compiler=`set X $ac_compile; echo $2` | |
4751 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
4752 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
4753 | ac_status=$? | |
4754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4755 | (exit $ac_status); } | |
4756 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
4757 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
4758 | ac_status=$? | |
4759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4760 | (exit $ac_status); } | |
4761 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
4762 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
4763 | ac_status=$? | |
4764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4765 | (exit $ac_status); } | |
4766 | ||
4767 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
4768 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
4769 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
4770 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4771 | else | |
4772 | cat >conftest.$ac_ext <<_ACEOF | |
4773 | /* confdefs.h. */ | |
4774 | _ACEOF | |
4775 | cat confdefs.h >>conftest.$ac_ext | |
4776 | cat >>conftest.$ac_ext <<_ACEOF | |
4777 | /* end confdefs.h. */ | |
4778 | ||
4779 | int | |
4780 | main () | |
4781 | { | |
4782 | #ifndef __GNUC__ | |
4783 | choke me | |
4784 | #endif | |
4785 | ||
4786 | ; | |
4787 | return 0; | |
4788 | } | |
4789 | _ACEOF | |
4790 | rm -f conftest.$ac_objext | |
4791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4792 | (eval $ac_compile) 2>conftest.er1 | |
4793 | ac_status=$? | |
4794 | grep -v '^ *+' conftest.er1 >conftest.err | |
4795 | rm -f conftest.er1 | |
4796 | cat conftest.err >&5 | |
4797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4798 | (exit $ac_status); } && | |
e1fffbe6 AM |
4799 | { ac_try='test -z "$ac_c_werror_flag" |
4800 | || test ! -s conftest.err' | |
5464f5a1 NN |
4801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4802 | (eval $ac_try) 2>&5 | |
4803 | ac_status=$? | |
4804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4805 | (exit $ac_status); }; } && | |
4806 | { ac_try='test -s conftest.$ac_objext' | |
4807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4808 | (eval $ac_try) 2>&5 | |
4809 | ac_status=$? | |
4810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4811 | (exit $ac_status); }; }; then | |
4812 | ac_compiler_gnu=yes | |
4813 | else | |
4814 | echo "$as_me: failed program was:" >&5 | |
4815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4816 | ||
4817 | ac_compiler_gnu=no | |
4818 | fi | |
4819 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4820 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4821 | ||
4822 | fi | |
4823 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
4824 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
4825 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
4826 | ac_test_CFLAGS=${CFLAGS+set} | |
4827 | ac_save_CFLAGS=$CFLAGS | |
4828 | CFLAGS="-g" | |
4829 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
4830 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
4831 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
4832 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4833 | else | |
4834 | cat >conftest.$ac_ext <<_ACEOF | |
4835 | /* confdefs.h. */ | |
4836 | _ACEOF | |
4837 | cat confdefs.h >>conftest.$ac_ext | |
4838 | cat >>conftest.$ac_ext <<_ACEOF | |
4839 | /* end confdefs.h. */ | |
4840 | ||
4841 | int | |
4842 | main () | |
4843 | { | |
4844 | ||
4845 | ; | |
4846 | return 0; | |
4847 | } | |
4848 | _ACEOF | |
4849 | rm -f conftest.$ac_objext | |
4850 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4851 | (eval $ac_compile) 2>conftest.er1 | |
4852 | ac_status=$? | |
4853 | grep -v '^ *+' conftest.er1 >conftest.err | |
4854 | rm -f conftest.er1 | |
4855 | cat conftest.err >&5 | |
4856 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4857 | (exit $ac_status); } && | |
e1fffbe6 AM |
4858 | { ac_try='test -z "$ac_c_werror_flag" |
4859 | || test ! -s conftest.err' | |
5464f5a1 NN |
4860 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4861 | (eval $ac_try) 2>&5 | |
4862 | ac_status=$? | |
4863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4864 | (exit $ac_status); }; } && | |
4865 | { ac_try='test -s conftest.$ac_objext' | |
4866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4867 | (eval $ac_try) 2>&5 | |
4868 | ac_status=$? | |
4869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4870 | (exit $ac_status); }; }; then | |
4871 | ac_cv_prog_cc_g=yes | |
4872 | else | |
4873 | echo "$as_me: failed program was:" >&5 | |
4874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4875 | ||
4876 | ac_cv_prog_cc_g=no | |
4877 | fi | |
4878 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4879 | fi | |
4880 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
4881 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
4882 | if test "$ac_test_CFLAGS" = set; then | |
4883 | CFLAGS=$ac_save_CFLAGS | |
4884 | elif test $ac_cv_prog_cc_g = yes; then | |
4885 | if test "$GCC" = yes; then | |
4886 | CFLAGS="-g -O2" | |
4887 | else | |
4888 | CFLAGS="-g" | |
4889 | fi | |
4890 | else | |
4891 | if test "$GCC" = yes; then | |
4892 | CFLAGS="-O2" | |
4893 | else | |
4894 | CFLAGS= | |
4895 | fi | |
4896 | fi | |
4897 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
4898 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
4899 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
4900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4901 | else | |
4902 | ac_cv_prog_cc_stdc=no | |
4903 | ac_save_CC=$CC | |
4904 | cat >conftest.$ac_ext <<_ACEOF | |
4905 | /* confdefs.h. */ | |
4906 | _ACEOF | |
4907 | cat confdefs.h >>conftest.$ac_ext | |
4908 | cat >>conftest.$ac_ext <<_ACEOF | |
4909 | /* end confdefs.h. */ | |
4910 | #include <stdarg.h> | |
4911 | #include <stdio.h> | |
4912 | #include <sys/types.h> | |
4913 | #include <sys/stat.h> | |
4914 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4915 | struct buf { int x; }; | |
4916 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4917 | static char *e (p, i) | |
4918 | char **p; | |
4919 | int i; | |
4920 | { | |
4921 | return p[i]; | |
4922 | } | |
4923 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4924 | { | |
4925 | char *s; | |
4926 | va_list v; | |
4927 | va_start (v,p); | |
4928 | s = g (p, va_arg (v,int)); | |
4929 | va_end (v); | |
4930 | return s; | |
4931 | } | |
4932 | ||
4933 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4934 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4935 | These don't provoke an error unfortunately, instead are silently treated | |
4936 | as 'x'. The following induces an error, until -std1 is added to get | |
4937 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4938 | array size at least. It's necessary to write '\x00'==0 to get something | |
4939 | that's true only with -std1. */ | |
4940 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4941 | ||
4942 | int test (int i, double x); | |
4943 | struct s1 {int (*f) (int a);}; | |
4944 | struct s2 {int (*f) (double a);}; | |
4945 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4946 | int argc; | |
4947 | char **argv; | |
4948 | int | |
4949 | main () | |
4950 | { | |
4951 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4952 | ; | |
4953 | return 0; | |
4954 | } | |
4955 | _ACEOF | |
4956 | # Don't try gcc -ansi; that turns off useful extensions and | |
4957 | # breaks some systems' header files. | |
4958 | # AIX -qlanglvl=ansi | |
4959 | # Ultrix and OSF/1 -std1 | |
4960 | # HP-UX 10.20 and later -Ae | |
4961 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
4962 | # SVR4 -Xc -D__EXTENSIONS__ | |
4963 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4964 | do | |
4965 | CC="$ac_save_CC $ac_arg" | |
4966 | rm -f conftest.$ac_objext | |
4967 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4968 | (eval $ac_compile) 2>conftest.er1 | |
4969 | ac_status=$? | |
4970 | grep -v '^ *+' conftest.er1 >conftest.err | |
4971 | rm -f conftest.er1 | |
4972 | cat conftest.err >&5 | |
4973 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4974 | (exit $ac_status); } && | |
e1fffbe6 AM |
4975 | { ac_try='test -z "$ac_c_werror_flag" |
4976 | || test ! -s conftest.err' | |
5464f5a1 NN |
4977 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4978 | (eval $ac_try) 2>&5 | |
4979 | ac_status=$? | |
4980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4981 | (exit $ac_status); }; } && | |
4982 | { ac_try='test -s conftest.$ac_objext' | |
4983 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4984 | (eval $ac_try) 2>&5 | |
4985 | ac_status=$? | |
4986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4987 | (exit $ac_status); }; }; then | |
4988 | ac_cv_prog_cc_stdc=$ac_arg | |
4989 | break | |
4990 | else | |
4991 | echo "$as_me: failed program was:" >&5 | |
4992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4993 | ||
4994 | fi | |
4995 | rm -f conftest.err conftest.$ac_objext | |
4996 | done | |
4997 | rm -f conftest.$ac_ext conftest.$ac_objext | |
4998 | CC=$ac_save_CC | |
4999 | ||
5000 | fi | |
5001 | ||
5002 | case "x$ac_cv_prog_cc_stdc" in | |
5003 | x|xno) | |
5004 | echo "$as_me:$LINENO: result: none needed" >&5 | |
5005 | echo "${ECHO_T}none needed" >&6 ;; | |
5006 | *) | |
5007 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
5008 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
5009 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
5010 | esac | |
5011 | ||
5012 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
5013 | # in C++ we need to declare it. In case someone uses the same compiler | |
5014 | # for both compiling C and C++ we need to have the C++ compiler decide | |
5015 | # the declaration of exit, since it's the most demanding environment. | |
5016 | cat >conftest.$ac_ext <<_ACEOF | |
5017 | #ifndef __cplusplus | |
5018 | choke me | |
5019 | #endif | |
5020 | _ACEOF | |
5021 | rm -f conftest.$ac_objext | |
5022 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5023 | (eval $ac_compile) 2>conftest.er1 | |
5024 | ac_status=$? | |
5025 | grep -v '^ *+' conftest.er1 >conftest.err | |
5026 | rm -f conftest.er1 | |
5027 | cat conftest.err >&5 | |
5028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5029 | (exit $ac_status); } && | |
e1fffbe6 AM |
5030 | { ac_try='test -z "$ac_c_werror_flag" |
5031 | || test ! -s conftest.err' | |
5464f5a1 NN |
5032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5033 | (eval $ac_try) 2>&5 | |
5034 | ac_status=$? | |
5035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5036 | (exit $ac_status); }; } && | |
5037 | { ac_try='test -s conftest.$ac_objext' | |
5038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5039 | (eval $ac_try) 2>&5 | |
5040 | ac_status=$? | |
5041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5042 | (exit $ac_status); }; }; then | |
5043 | for ac_declaration in \ | |
5044 | '' \ | |
5045 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
5046 | 'extern "C" void std::exit (int); using std::exit;' \ | |
5047 | 'extern "C" void exit (int) throw ();' \ | |
5048 | 'extern "C" void exit (int);' \ | |
5049 | 'void exit (int);' | |
5050 | do | |
5051 | cat >conftest.$ac_ext <<_ACEOF | |
5052 | /* confdefs.h. */ | |
5053 | _ACEOF | |
5054 | cat confdefs.h >>conftest.$ac_ext | |
5055 | cat >>conftest.$ac_ext <<_ACEOF | |
5056 | /* end confdefs.h. */ | |
5057 | $ac_declaration | |
5058 | #include <stdlib.h> | |
5059 | int | |
5060 | main () | |
5061 | { | |
5062 | exit (42); | |
5063 | ; | |
5064 | return 0; | |
5065 | } | |
5066 | _ACEOF | |
5067 | rm -f conftest.$ac_objext | |
5068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5069 | (eval $ac_compile) 2>conftest.er1 | |
5070 | ac_status=$? | |
5071 | grep -v '^ *+' conftest.er1 >conftest.err | |
5072 | rm -f conftest.er1 | |
5073 | cat conftest.err >&5 | |
5074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5075 | (exit $ac_status); } && | |
e1fffbe6 AM |
5076 | { ac_try='test -z "$ac_c_werror_flag" |
5077 | || test ! -s conftest.err' | |
5464f5a1 NN |
5078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5079 | (eval $ac_try) 2>&5 | |
5080 | ac_status=$? | |
5081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5082 | (exit $ac_status); }; } && | |
5083 | { ac_try='test -s conftest.$ac_objext' | |
5084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5085 | (eval $ac_try) 2>&5 | |
5086 | ac_status=$? | |
5087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5088 | (exit $ac_status); }; }; then | |
5089 | : | |
5090 | else | |
5091 | echo "$as_me: failed program was:" >&5 | |
5092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5093 | ||
5094 | continue | |
5095 | fi | |
5096 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5097 | cat >conftest.$ac_ext <<_ACEOF | |
5098 | /* confdefs.h. */ | |
5099 | _ACEOF | |
5100 | cat confdefs.h >>conftest.$ac_ext | |
5101 | cat >>conftest.$ac_ext <<_ACEOF | |
5102 | /* end confdefs.h. */ | |
5103 | $ac_declaration | |
5104 | int | |
5105 | main () | |
5106 | { | |
5107 | exit (42); | |
5108 | ; | |
5109 | return 0; | |
5110 | } | |
5111 | _ACEOF | |
5112 | rm -f conftest.$ac_objext | |
5113 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5114 | (eval $ac_compile) 2>conftest.er1 | |
5115 | ac_status=$? | |
5116 | grep -v '^ *+' conftest.er1 >conftest.err | |
5117 | rm -f conftest.er1 | |
5118 | cat conftest.err >&5 | |
5119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5120 | (exit $ac_status); } && | |
e1fffbe6 AM |
5121 | { ac_try='test -z "$ac_c_werror_flag" |
5122 | || test ! -s conftest.err' | |
5464f5a1 NN |
5123 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5124 | (eval $ac_try) 2>&5 | |
5125 | ac_status=$? | |
5126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5127 | (exit $ac_status); }; } && | |
5128 | { ac_try='test -s conftest.$ac_objext' | |
5129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5130 | (eval $ac_try) 2>&5 | |
5131 | ac_status=$? | |
5132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5133 | (exit $ac_status); }; }; then | |
5134 | break | |
5135 | else | |
5136 | echo "$as_me: failed program was:" >&5 | |
5137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5138 | ||
5139 | fi | |
5140 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5141 | done | |
5142 | rm -f conftest* | |
5143 | if test -n "$ac_declaration"; then | |
5144 | echo '#ifdef __cplusplus' >>confdefs.h | |
5145 | echo $ac_declaration >>confdefs.h | |
5146 | echo '#endif' >>confdefs.h | |
252b5132 | 5147 | fi |
5464f5a1 | 5148 | |
b3baf5d0 | 5149 | else |
5464f5a1 NN |
5150 | echo "$as_me: failed program was:" >&5 |
5151 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5152 | ||
b3baf5d0 | 5153 | fi |
5464f5a1 NN |
5154 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5155 | ac_ext=c | |
5156 | ac_cpp='$CPP $CPPFLAGS' | |
5157 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5158 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5159 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b3baf5d0 | 5160 | |
5464f5a1 | 5161 | |
4a2a2686 HPN |
5162 | cat >>confdefs.h <<\_ACEOF |
5163 | #define _GNU_SOURCE 1 | |
5164 | _ACEOF | |
5165 | ||
5166 | ||
5167 | ||
429cc0ae | 5168 | ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw" |
5464f5a1 NN |
5169 | if test -n "$ac_tool_prefix"; then |
5170 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5171 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5172 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5173 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5174 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5176 | else |
5464f5a1 NN |
5177 | if test -n "$RANLIB"; then |
5178 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
252b5132 | 5179 | else |
5464f5a1 NN |
5180 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5181 | for as_dir in $PATH | |
5182 | do | |
5183 | IFS=$as_save_IFS | |
5184 | test -z "$as_dir" && as_dir=. | |
5185 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5186 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5187 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5188 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5189 | break 2 | |
252b5132 | 5190 | fi |
5464f5a1 NN |
5191 | done |
5192 | done | |
5193 | ||
252b5132 RH |
5194 | fi |
5195 | fi | |
5464f5a1 NN |
5196 | RANLIB=$ac_cv_prog_RANLIB |
5197 | if test -n "$RANLIB"; then | |
5198 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5199 | echo "${ECHO_T}$RANLIB" >&6 | |
252b5132 | 5200 | else |
5464f5a1 NN |
5201 | echo "$as_me:$LINENO: result: no" >&5 |
5202 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
5203 | fi |
5204 | ||
5464f5a1 NN |
5205 | fi |
5206 | if test -z "$ac_cv_prog_RANLIB"; then | |
5207 | ac_ct_RANLIB=$RANLIB | |
5208 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5209 | set dummy ranlib; ac_word=$2 | |
5210 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5211 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5212 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5213 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5214 | else |
5464f5a1 NN |
5215 | if test -n "$ac_ct_RANLIB"; then |
5216 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
252b5132 | 5217 | else |
5464f5a1 NN |
5218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5219 | for as_dir in $PATH | |
5220 | do | |
5221 | IFS=$as_save_IFS | |
5222 | test -z "$as_dir" && as_dir=. | |
5223 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5224 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5225 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5226 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5227 | break 2 | |
5228 | fi | |
5229 | done | |
5230 | done | |
5231 | ||
5232 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
252b5132 RH |
5233 | fi |
5234 | fi | |
5464f5a1 NN |
5235 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5236 | if test -n "$ac_ct_RANLIB"; then | |
5237 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5238 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
252b5132 | 5239 | else |
5464f5a1 NN |
5240 | echo "$as_me:$LINENO: result: no" >&5 |
5241 | echo "${ECHO_T}no" >&6 | |
b3baf5d0 | 5242 | fi |
252b5132 | 5243 | |
5464f5a1 | 5244 | RANLIB=$ac_ct_RANLIB |
6be7c12c | 5245 | else |
5464f5a1 | 5246 | RANLIB="$ac_cv_prog_RANLIB" |
252b5132 | 5247 | fi |
5464f5a1 | 5248 | |
6be7c12c | 5249 | ac_ext=c |
6be7c12c | 5250 | ac_cpp='$CPP $CPPFLAGS' |
5464f5a1 NN |
5251 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5252 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5253 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5254 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
5255 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
5256 | # On Suns, sometimes $CPP names a directory. | |
5257 | if test -n "$CPP" && test -d "$CPP"; then | |
5258 | CPP= | |
6be7c12c | 5259 | fi |
5464f5a1 NN |
5260 | if test -z "$CPP"; then |
5261 | if test "${ac_cv_prog_CPP+set}" = set; then | |
5262 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5263 | else |
5464f5a1 NN |
5264 | # Double quotes because CPP needs to be expanded |
5265 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5266 | do | |
5267 | ac_preproc_ok=false | |
5268 | for ac_c_preproc_warn_flag in '' yes | |
5269 | do | |
5270 | # Use a header file that comes with gcc, so configuring glibc | |
5271 | # with a fresh cross-compiler works. | |
5272 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5273 | # <limits.h> exists even on freestanding compilers. | |
5274 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5275 | # not just through cpp. "Syntax error" is here to catch this case. | |
5276 | cat >conftest.$ac_ext <<_ACEOF | |
5277 | /* confdefs.h. */ | |
5278 | _ACEOF | |
5279 | cat confdefs.h >>conftest.$ac_ext | |
5280 | cat >>conftest.$ac_ext <<_ACEOF | |
5281 | /* end confdefs.h. */ | |
5282 | #ifdef __STDC__ | |
5283 | # include <limits.h> | |
5284 | #else | |
5285 | # include <assert.h> | |
252b5132 | 5286 | #endif |
5464f5a1 NN |
5287 | Syntax error |
5288 | _ACEOF | |
5289 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5290 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5291 | ac_status=$? | |
5292 | grep -v '^ *+' conftest.er1 >conftest.err | |
5293 | rm -f conftest.er1 | |
5294 | cat conftest.err >&5 | |
5295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5296 | (exit $ac_status); } >/dev/null; then | |
5297 | if test -s conftest.err; then | |
5298 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5299 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5300 | else | |
5301 | ac_cpp_err= | |
5302 | fi | |
6be7c12c | 5303 | else |
5464f5a1 | 5304 | ac_cpp_err=yes |
6be7c12c | 5305 | fi |
5464f5a1 NN |
5306 | if test -z "$ac_cpp_err"; then |
5307 | : | |
6be7c12c | 5308 | else |
5464f5a1 NN |
5309 | echo "$as_me: failed program was:" >&5 |
5310 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5311 | ||
5312 | # Broken: fails on valid input. | |
5313 | continue | |
5314 | fi | |
5315 | rm -f conftest.err conftest.$ac_ext | |
5316 | ||
5317 | # OK, works on sane cases. Now check whether non-existent headers | |
5318 | # can be detected and how. | |
5319 | cat >conftest.$ac_ext <<_ACEOF | |
5320 | /* confdefs.h. */ | |
5321 | _ACEOF | |
5322 | cat confdefs.h >>conftest.$ac_ext | |
5323 | cat >>conftest.$ac_ext <<_ACEOF | |
5324 | /* end confdefs.h. */ | |
5325 | #include <ac_nonexistent.h> | |
5326 | _ACEOF | |
5327 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5328 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5329 | ac_status=$? | |
5330 | grep -v '^ *+' conftest.er1 >conftest.err | |
5331 | rm -f conftest.er1 | |
5332 | cat conftest.err >&5 | |
5333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5334 | (exit $ac_status); } >/dev/null; then | |
5335 | if test -s conftest.err; then | |
5336 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5337 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5338 | else | |
5339 | ac_cpp_err= | |
5340 | fi | |
252b5132 | 5341 | else |
5464f5a1 | 5342 | ac_cpp_err=yes |
252b5132 | 5343 | fi |
5464f5a1 NN |
5344 | if test -z "$ac_cpp_err"; then |
5345 | # Broken: success on invalid input. | |
5346 | continue | |
5347 | else | |
5348 | echo "$as_me: failed program was:" >&5 | |
5349 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6be7c12c | 5350 | |
5464f5a1 NN |
5351 | # Passes both tests. |
5352 | ac_preproc_ok=: | |
5353 | break | |
252b5132 | 5354 | fi |
5464f5a1 | 5355 | rm -f conftest.err conftest.$ac_ext |
6be7c12c | 5356 | |
5464f5a1 NN |
5357 | done |
5358 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5359 | rm -f conftest.err conftest.$ac_ext | |
5360 | if $ac_preproc_ok; then | |
5361 | break | |
252b5132 RH |
5362 | fi |
5363 | ||
5464f5a1 NN |
5364 | done |
5365 | ac_cv_prog_CPP=$CPP | |
252b5132 | 5366 | |
252b5132 | 5367 | fi |
5464f5a1 | 5368 | CPP=$ac_cv_prog_CPP |
6be7c12c | 5369 | else |
5464f5a1 NN |
5370 | ac_cv_prog_CPP=$CPP |
5371 | fi | |
5372 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
5373 | echo "${ECHO_T}$CPP" >&6 | |
5374 | ac_preproc_ok=false | |
5375 | for ac_c_preproc_warn_flag in '' yes | |
5376 | do | |
5377 | # Use a header file that comes with gcc, so configuring glibc | |
5378 | # with a fresh cross-compiler works. | |
5379 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5380 | # <limits.h> exists even on freestanding compilers. | |
6be7c12c | 5381 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5464f5a1 NN |
5382 | # not just through cpp. "Syntax error" is here to catch this case. |
5383 | cat >conftest.$ac_ext <<_ACEOF | |
5384 | /* confdefs.h. */ | |
5385 | _ACEOF | |
5386 | cat confdefs.h >>conftest.$ac_ext | |
5387 | cat >>conftest.$ac_ext <<_ACEOF | |
5388 | /* end confdefs.h. */ | |
5389 | #ifdef __STDC__ | |
5390 | # include <limits.h> | |
5391 | #else | |
5392 | # include <assert.h> | |
5393 | #endif | |
5394 | Syntax error | |
5395 | _ACEOF | |
5396 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5397 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5398 | ac_status=$? | |
5399 | grep -v '^ *+' conftest.er1 >conftest.err | |
5400 | rm -f conftest.er1 | |
5401 | cat conftest.err >&5 | |
5402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5403 | (exit $ac_status); } >/dev/null; then | |
5404 | if test -s conftest.err; then | |
5405 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5406 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5407 | else | |
5408 | ac_cpp_err= | |
5409 | fi | |
252b5132 | 5410 | else |
5464f5a1 NN |
5411 | ac_cpp_err=yes |
5412 | fi | |
5413 | if test -z "$ac_cpp_err"; then | |
6be7c12c | 5414 | : |
252b5132 | 5415 | else |
5464f5a1 NN |
5416 | echo "$as_me: failed program was:" >&5 |
5417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5418 | ||
5419 | # Broken: fails on valid input. | |
5420 | continue | |
5421 | fi | |
5422 | rm -f conftest.err conftest.$ac_ext | |
5423 | ||
5424 | # OK, works on sane cases. Now check whether non-existent headers | |
5425 | # can be detected and how. | |
5426 | cat >conftest.$ac_ext <<_ACEOF | |
5427 | /* confdefs.h. */ | |
5428 | _ACEOF | |
5429 | cat confdefs.h >>conftest.$ac_ext | |
5430 | cat >>conftest.$ac_ext <<_ACEOF | |
5431 | /* end confdefs.h. */ | |
5432 | #include <ac_nonexistent.h> | |
5433 | _ACEOF | |
5434 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5435 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5436 | ac_status=$? | |
5437 | grep -v '^ *+' conftest.er1 >conftest.err | |
5438 | rm -f conftest.er1 | |
5439 | cat conftest.err >&5 | |
5440 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5441 | (exit $ac_status); } >/dev/null; then | |
5442 | if test -s conftest.err; then | |
5443 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5444 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5445 | else | |
5446 | ac_cpp_err= | |
5447 | fi | |
b3baf5d0 | 5448 | else |
5464f5a1 | 5449 | ac_cpp_err=yes |
6be7c12c | 5450 | fi |
5464f5a1 NN |
5451 | if test -z "$ac_cpp_err"; then |
5452 | # Broken: success on invalid input. | |
5453 | continue | |
ac48eca1 | 5454 | else |
5464f5a1 NN |
5455 | echo "$as_me: failed program was:" >&5 |
5456 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5457 | ||
5458 | # Passes both tests. | |
5459 | ac_preproc_ok=: | |
5460 | break | |
b3baf5d0 | 5461 | fi |
5464f5a1 | 5462 | rm -f conftest.err conftest.$ac_ext |
6be7c12c | 5463 | |
5464f5a1 NN |
5464 | done |
5465 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5466 | rm -f conftest.err conftest.$ac_ext | |
5467 | if $ac_preproc_ok; then | |
5468 | : | |
6be7c12c | 5469 | else |
5464f5a1 NN |
5470 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
5471 | See \`config.log' for more details." >&5 | |
5472 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
5473 | See \`config.log' for more details." >&2;} | |
5474 | { (exit 1); exit 1; }; } | |
ac48eca1 | 5475 | fi |
5464f5a1 NN |
5476 | |
5477 | ac_ext=c | |
5478 | ac_cpp='$CPP $CPPFLAGS' | |
5479 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5480 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5481 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5482 | ||
5483 | ||
5484 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
5485 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
5486 | if test "${ac_cv_prog_egrep+set}" = set; then | |
5487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 5488 | else |
5464f5a1 NN |
5489 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
5490 | then ac_cv_prog_egrep='grep -E' | |
5491 | else ac_cv_prog_egrep='egrep' | |
5492 | fi | |
b3baf5d0 | 5493 | fi |
5464f5a1 NN |
5494 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
5495 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
5496 | EGREP=$ac_cv_prog_egrep | |
5497 | ||
ac48eca1 | 5498 | |
5464f5a1 NN |
5499 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5500 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5501 | if test "${ac_cv_header_stdc+set}" = set; then | |
5502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5503 | else |
5464f5a1 NN |
5504 | cat >conftest.$ac_ext <<_ACEOF |
5505 | /* confdefs.h. */ | |
5506 | _ACEOF | |
5507 | cat confdefs.h >>conftest.$ac_ext | |
5508 | cat >>conftest.$ac_ext <<_ACEOF | |
5509 | /* end confdefs.h. */ | |
252b5132 RH |
5510 | #include <stdlib.h> |
5511 | #include <stdarg.h> | |
5512 | #include <string.h> | |
5513 | #include <float.h> | |
5464f5a1 NN |
5514 | |
5515 | int | |
5516 | main () | |
5517 | { | |
5518 | ||
5519 | ; | |
5520 | return 0; | |
5521 | } | |
5522 | _ACEOF | |
5523 | rm -f conftest.$ac_objext | |
5524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5525 | (eval $ac_compile) 2>conftest.er1 | |
5526 | ac_status=$? | |
5527 | grep -v '^ *+' conftest.er1 >conftest.err | |
5528 | rm -f conftest.er1 | |
5529 | cat conftest.err >&5 | |
5530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5531 | (exit $ac_status); } && | |
e1fffbe6 AM |
5532 | { ac_try='test -z "$ac_c_werror_flag" |
5533 | || test ! -s conftest.err' | |
5464f5a1 NN |
5534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5535 | (eval $ac_try) 2>&5 | |
5536 | ac_status=$? | |
5537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5538 | (exit $ac_status); }; } && | |
5539 | { ac_try='test -s conftest.$ac_objext' | |
5540 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5541 | (eval $ac_try) 2>&5 | |
5542 | ac_status=$? | |
5543 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5544 | (exit $ac_status); }; }; then | |
252b5132 RH |
5545 | ac_cv_header_stdc=yes |
5546 | else | |
5464f5a1 NN |
5547 | echo "$as_me: failed program was:" >&5 |
5548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5549 | ||
5550 | ac_cv_header_stdc=no | |
252b5132 | 5551 | fi |
5464f5a1 | 5552 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
5553 | |
5554 | if test $ac_cv_header_stdc = yes; then | |
5555 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5464f5a1 NN |
5556 | cat >conftest.$ac_ext <<_ACEOF |
5557 | /* confdefs.h. */ | |
5558 | _ACEOF | |
5559 | cat confdefs.h >>conftest.$ac_ext | |
5560 | cat >>conftest.$ac_ext <<_ACEOF | |
5561 | /* end confdefs.h. */ | |
252b5132 | 5562 | #include <string.h> |
5464f5a1 NN |
5563 | |
5564 | _ACEOF | |
252b5132 | 5565 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5464f5a1 | 5566 | $EGREP "memchr" >/dev/null 2>&1; then |
252b5132 RH |
5567 | : |
5568 | else | |
252b5132 RH |
5569 | ac_cv_header_stdc=no |
5570 | fi | |
5571 | rm -f conftest* | |
5572 | ||
5573 | fi | |
5574 | ||
5575 | if test $ac_cv_header_stdc = yes; then | |
5576 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5464f5a1 NN |
5577 | cat >conftest.$ac_ext <<_ACEOF |
5578 | /* confdefs.h. */ | |
5579 | _ACEOF | |
5580 | cat confdefs.h >>conftest.$ac_ext | |
5581 | cat >>conftest.$ac_ext <<_ACEOF | |
5582 | /* end confdefs.h. */ | |
252b5132 | 5583 | #include <stdlib.h> |
5464f5a1 NN |
5584 | |
5585 | _ACEOF | |
252b5132 | 5586 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5464f5a1 | 5587 | $EGREP "free" >/dev/null 2>&1; then |
252b5132 RH |
5588 | : |
5589 | else | |
252b5132 RH |
5590 | ac_cv_header_stdc=no |
5591 | fi | |
5592 | rm -f conftest* | |
5593 | ||
5594 | fi | |
5595 | ||
5596 | if test $ac_cv_header_stdc = yes; then | |
5597 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5464f5a1 | 5598 | if test "$cross_compiling" = yes; then |
252b5132 RH |
5599 | : |
5600 | else | |
5464f5a1 NN |
5601 | cat >conftest.$ac_ext <<_ACEOF |
5602 | /* confdefs.h. */ | |
5603 | _ACEOF | |
5604 | cat confdefs.h >>conftest.$ac_ext | |
5605 | cat >>conftest.$ac_ext <<_ACEOF | |
5606 | /* end confdefs.h. */ | |
252b5132 | 5607 | #include <ctype.h> |
5464f5a1 NN |
5608 | #if ((' ' & 0x0FF) == 0x020) |
5609 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5610 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5611 | #else | |
5612 | # define ISLOWER(c) \ | |
5613 | (('a' <= (c) && (c) <= 'i') \ | |
5614 | || ('j' <= (c) && (c) <= 'r') \ | |
5615 | || ('s' <= (c) && (c) <= 'z')) | |
5616 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5617 | #endif | |
6be7c12c | 5618 | |
5464f5a1 NN |
5619 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
5620 | int | |
5621 | main () | |
5622 | { | |
5623 | int i; | |
5624 | for (i = 0; i < 256; i++) | |
5625 | if (XOR (islower (i), ISLOWER (i)) | |
5626 | || toupper (i) != TOUPPER (i)) | |
5627 | exit(2); | |
5628 | exit (0); | |
5629 | } | |
5630 | _ACEOF | |
5631 | rm -f conftest$ac_exeext | |
5632 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5633 | (eval $ac_link) 2>&5 | |
5634 | ac_status=$? | |
5635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5636 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5638 | (eval $ac_try) 2>&5 | |
5639 | ac_status=$? | |
5640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5641 | (exit $ac_status); }; }; then | |
252b5132 RH |
5642 | : |
5643 | else | |
5464f5a1 NN |
5644 | echo "$as_me: program exited with status $ac_status" >&5 |
5645 | echo "$as_me: failed program was:" >&5 | |
5646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5647 | ||
5648 | ( exit $ac_status ) | |
5649 | ac_cv_header_stdc=no | |
252b5132 | 5650 | fi |
5464f5a1 | 5651 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 5652 | fi |
252b5132 RH |
5653 | fi |
5654 | fi | |
5464f5a1 NN |
5655 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5656 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
6be7c12c | 5657 | if test $ac_cv_header_stdc = yes; then |
5464f5a1 NN |
5658 | |
5659 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 5660 | #define STDC_HEADERS 1 |
5464f5a1 | 5661 | _ACEOF |
252b5132 RH |
5662 | |
5663 | fi | |
5664 | ||
5464f5a1 NN |
5665 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5666 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
5667 | if test "${ac_cv_c_const+set}" = set; then | |
5668 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5669 | else |
5464f5a1 NN |
5670 | cat >conftest.$ac_ext <<_ACEOF |
5671 | /* confdefs.h. */ | |
5672 | _ACEOF | |
5673 | cat confdefs.h >>conftest.$ac_ext | |
5674 | cat >>conftest.$ac_ext <<_ACEOF | |
5675 | /* end confdefs.h. */ | |
6be7c12c | 5676 | |
5464f5a1 NN |
5677 | int |
5678 | main () | |
5679 | { | |
5680 | /* FIXME: Include the comments suggested by Paul. */ | |
5681 | #ifndef __cplusplus | |
5682 | /* Ultrix mips cc rejects this. */ | |
5683 | typedef int charset[2]; | |
5684 | const charset x; | |
5685 | /* SunOS 4.1.1 cc rejects this. */ | |
5686 | char const *const *ccp; | |
5687 | char **p; | |
5688 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5689 | struct point {int x, y;}; | |
5690 | static struct point const zero = {0,0}; | |
5691 | /* AIX XL C 1.02.0.0 rejects this. | |
5692 | It does not let you subtract one const X* pointer from another in | |
5693 | an arm of an if-expression whose if-part is not a constant | |
5694 | expression */ | |
5695 | const char *g = "string"; | |
5696 | ccp = &g + (g ? g-g : 0); | |
5697 | /* HPUX 7.0 cc rejects these. */ | |
5698 | ++ccp; | |
5699 | p = (char**) ccp; | |
5700 | ccp = (char const *const *) p; | |
5701 | { /* SCO 3.2v4 cc rejects this. */ | |
5702 | char *t; | |
5703 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5704 | ||
5705 | *t++ = 0; | |
5706 | } | |
5707 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5708 | int x[] = {25, 17}; | |
5709 | const int *foo = &x[0]; | |
5710 | ++foo; | |
5711 | } | |
5712 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5713 | typedef const int *iptr; | |
5714 | iptr p = 0; | |
5715 | ++p; | |
5716 | } | |
5717 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5718 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5719 | struct s { int j; const int *ap[3]; }; | |
5720 | struct s *b; b->j = 5; | |
5721 | } | |
5722 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5723 | const int foo = 10; | |
5724 | } | |
5725 | #endif | |
6be7c12c | 5726 | |
5464f5a1 NN |
5727 | ; |
5728 | return 0; | |
5729 | } | |
5730 | _ACEOF | |
5731 | rm -f conftest.$ac_objext | |
5732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5733 | (eval $ac_compile) 2>conftest.er1 | |
5734 | ac_status=$? | |
5735 | grep -v '^ *+' conftest.er1 >conftest.err | |
5736 | rm -f conftest.er1 | |
5737 | cat conftest.err >&5 | |
5738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5739 | (exit $ac_status); } && | |
e1fffbe6 AM |
5740 | { ac_try='test -z "$ac_c_werror_flag" |
5741 | || test ! -s conftest.err' | |
5464f5a1 NN |
5742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5743 | (eval $ac_try) 2>&5 | |
5744 | ac_status=$? | |
5745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5746 | (exit $ac_status); }; } && | |
5747 | { ac_try='test -s conftest.$ac_objext' | |
5748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5749 | (eval $ac_try) 2>&5 | |
5750 | ac_status=$? | |
5751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5752 | (exit $ac_status); }; }; then | |
252b5132 RH |
5753 | ac_cv_c_const=yes |
5754 | else | |
5464f5a1 NN |
5755 | echo "$as_me: failed program was:" >&5 |
5756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5757 | ||
5758 | ac_cv_c_const=no | |
252b5132 | 5759 | fi |
5464f5a1 | 5760 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 5761 | fi |
5464f5a1 NN |
5762 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5763 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
6be7c12c | 5764 | if test $ac_cv_c_const = no; then |
5464f5a1 NN |
5765 | |
5766 | cat >>confdefs.h <<\_ACEOF | |
5767 | #define const | |
5768 | _ACEOF | |
252b5132 RH |
5769 | |
5770 | fi | |
5771 | ||
5464f5a1 NN |
5772 | echo "$as_me:$LINENO: checking for inline" >&5 |
5773 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
5774 | if test "${ac_cv_c_inline+set}" = set; then | |
5775 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
5776 | else |
5777 | ac_cv_c_inline=no | |
5778 | for ac_kw in inline __inline__ __inline; do | |
5464f5a1 NN |
5779 | cat >conftest.$ac_ext <<_ACEOF |
5780 | /* confdefs.h. */ | |
5781 | _ACEOF | |
5782 | cat confdefs.h >>conftest.$ac_ext | |
5783 | cat >>conftest.$ac_ext <<_ACEOF | |
5784 | /* end confdefs.h. */ | |
5785 | #ifndef __cplusplus | |
5786 | typedef int foo_t; | |
5787 | static $ac_kw foo_t static_foo () {return 0; } | |
5788 | $ac_kw foo_t foo () {return 0; } | |
5789 | #endif | |
252b5132 | 5790 | |
5464f5a1 NN |
5791 | _ACEOF |
5792 | rm -f conftest.$ac_objext | |
5793 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5794 | (eval $ac_compile) 2>conftest.er1 | |
5795 | ac_status=$? | |
5796 | grep -v '^ *+' conftest.er1 >conftest.err | |
5797 | rm -f conftest.er1 | |
5798 | cat conftest.err >&5 | |
5799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5800 | (exit $ac_status); } && | |
e1fffbe6 AM |
5801 | { ac_try='test -z "$ac_c_werror_flag" |
5802 | || test ! -s conftest.err' | |
5464f5a1 NN |
5803 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5804 | (eval $ac_try) 2>&5 | |
5805 | ac_status=$? | |
5806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5807 | (exit $ac_status); }; } && | |
5808 | { ac_try='test -s conftest.$ac_objext' | |
5809 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5810 | (eval $ac_try) 2>&5 | |
5811 | ac_status=$? | |
5812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5813 | (exit $ac_status); }; }; then | |
252b5132 RH |
5814 | ac_cv_c_inline=$ac_kw; break |
5815 | else | |
5464f5a1 NN |
5816 | echo "$as_me: failed program was:" >&5 |
5817 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5818 | ||
252b5132 | 5819 | fi |
5464f5a1 | 5820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
5821 | done |
5822 | ||
5464f5a1 NN |
5823 | fi |
5824 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
5825 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
5826 | ||
5827 | ||
5828 | case $ac_cv_c_inline in | |
5829 | inline | yes) ;; | |
5830 | *) | |
5831 | case $ac_cv_c_inline in | |
5832 | no) ac_val=;; | |
5833 | *) ac_val=$ac_cv_c_inline;; | |
5834 | esac | |
5835 | cat >>confdefs.h <<_ACEOF | |
5836 | #ifndef __cplusplus | |
5837 | #define inline $ac_val | |
5838 | #endif | |
5839 | _ACEOF | |
5840 | ;; | |
5841 | esac | |
5842 | ||
5843 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5844 | ||
5845 | ||
5846 | ||
5847 | ||
5848 | ||
5849 | ||
5850 | ||
5851 | ||
5852 | ||
5853 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5854 | inttypes.h stdint.h unistd.h | |
5855 | do | |
5856 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5857 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5858 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5859 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5861 | else | |
5862 | cat >conftest.$ac_ext <<_ACEOF | |
5863 | /* confdefs.h. */ | |
5864 | _ACEOF | |
5865 | cat confdefs.h >>conftest.$ac_ext | |
5866 | cat >>conftest.$ac_ext <<_ACEOF | |
5867 | /* end confdefs.h. */ | |
5868 | $ac_includes_default | |
5869 | ||
5870 | #include <$ac_header> | |
5871 | _ACEOF | |
5872 | rm -f conftest.$ac_objext | |
5873 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5874 | (eval $ac_compile) 2>conftest.er1 | |
5875 | ac_status=$? | |
5876 | grep -v '^ *+' conftest.er1 >conftest.err | |
5877 | rm -f conftest.er1 | |
5878 | cat conftest.err >&5 | |
5879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5880 | (exit $ac_status); } && | |
e1fffbe6 AM |
5881 | { ac_try='test -z "$ac_c_werror_flag" |
5882 | || test ! -s conftest.err' | |
5464f5a1 NN |
5883 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5884 | (eval $ac_try) 2>&5 | |
5885 | ac_status=$? | |
5886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5887 | (exit $ac_status); }; } && | |
5888 | { ac_try='test -s conftest.$ac_objext' | |
5889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5890 | (eval $ac_try) 2>&5 | |
5891 | ac_status=$? | |
5892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5893 | (exit $ac_status); }; }; then | |
5894 | eval "$as_ac_Header=yes" | |
5895 | else | |
5896 | echo "$as_me: failed program was:" >&5 | |
5897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5898 | ||
5899 | eval "$as_ac_Header=no" | |
5900 | fi | |
5901 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5902 | fi | |
5903 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5904 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5905 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5906 | cat >>confdefs.h <<_ACEOF | |
5907 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5908 | _ACEOF | |
5909 | ||
252b5132 | 5910 | fi |
6be7c12c | 5911 | |
5464f5a1 | 5912 | done |
252b5132 | 5913 | |
5464f5a1 NN |
5914 | |
5915 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
5916 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
5917 | if test "${ac_cv_type_off_t+set}" = set; then | |
5918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3baf5d0 | 5919 | else |
5464f5a1 NN |
5920 | cat >conftest.$ac_ext <<_ACEOF |
5921 | /* confdefs.h. */ | |
5922 | _ACEOF | |
5923 | cat confdefs.h >>conftest.$ac_ext | |
5924 | cat >>conftest.$ac_ext <<_ACEOF | |
5925 | /* end confdefs.h. */ | |
5926 | $ac_includes_default | |
5927 | int | |
5928 | main () | |
5929 | { | |
5930 | if ((off_t *) 0) | |
5931 | return 0; | |
5932 | if (sizeof (off_t)) | |
5933 | return 0; | |
5934 | ; | |
5935 | return 0; | |
5936 | } | |
5937 | _ACEOF | |
5938 | rm -f conftest.$ac_objext | |
5939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5940 | (eval $ac_compile) 2>conftest.er1 | |
5941 | ac_status=$? | |
5942 | grep -v '^ *+' conftest.er1 >conftest.err | |
5943 | rm -f conftest.er1 | |
5944 | cat conftest.err >&5 | |
5945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5946 | (exit $ac_status); } && | |
e1fffbe6 AM |
5947 | { ac_try='test -z "$ac_c_werror_flag" |
5948 | || test ! -s conftest.err' | |
5464f5a1 NN |
5949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5950 | (eval $ac_try) 2>&5 | |
5951 | ac_status=$? | |
5952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5953 | (exit $ac_status); }; } && | |
5954 | { ac_try='test -s conftest.$ac_objext' | |
5955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5956 | (eval $ac_try) 2>&5 | |
5957 | ac_status=$? | |
5958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5959 | (exit $ac_status); }; }; then | |
653f71ca | 5960 | ac_cv_type_off_t=yes |
252b5132 | 5961 | else |
5464f5a1 NN |
5962 | echo "$as_me: failed program was:" >&5 |
5963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3baf5d0 | 5964 | |
5464f5a1 | 5965 | ac_cv_type_off_t=no |
6be7c12c | 5966 | fi |
5464f5a1 NN |
5967 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5968 | fi | |
5969 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
5970 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
5971 | if test $ac_cv_type_off_t = yes; then | |
5972 | : | |
5973 | else | |
5974 | ||
5975 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 5976 | #define off_t long |
5464f5a1 | 5977 | _ACEOF |
252b5132 RH |
5978 | |
5979 | fi | |
5980 | ||
5464f5a1 NN |
5981 | echo "$as_me:$LINENO: checking for size_t" >&5 |
5982 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
5983 | if test "${ac_cv_type_size_t+set}" = set; then | |
5984 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5985 | else |
5464f5a1 NN |
5986 | cat >conftest.$ac_ext <<_ACEOF |
5987 | /* confdefs.h. */ | |
5988 | _ACEOF | |
5989 | cat confdefs.h >>conftest.$ac_ext | |
5990 | cat >>conftest.$ac_ext <<_ACEOF | |
5991 | /* end confdefs.h. */ | |
5992 | $ac_includes_default | |
5993 | int | |
5994 | main () | |
5995 | { | |
5996 | if ((size_t *) 0) | |
5997 | return 0; | |
5998 | if (sizeof (size_t)) | |
5999 | return 0; | |
6000 | ; | |
6001 | return 0; | |
6002 | } | |
6003 | _ACEOF | |
6004 | rm -f conftest.$ac_objext | |
6005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6006 | (eval $ac_compile) 2>conftest.er1 | |
6007 | ac_status=$? | |
6008 | grep -v '^ *+' conftest.er1 >conftest.err | |
6009 | rm -f conftest.er1 | |
6010 | cat conftest.err >&5 | |
6011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6012 | (exit $ac_status); } && | |
e1fffbe6 AM |
6013 | { ac_try='test -z "$ac_c_werror_flag" |
6014 | || test ! -s conftest.err' | |
5464f5a1 NN |
6015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6016 | (eval $ac_try) 2>&5 | |
6017 | ac_status=$? | |
6018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6019 | (exit $ac_status); }; } && | |
6020 | { ac_try='test -s conftest.$ac_objext' | |
6021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6022 | (eval $ac_try) 2>&5 | |
6023 | ac_status=$? | |
6024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6025 | (exit $ac_status); }; }; then | |
653f71ca | 6026 | ac_cv_type_size_t=yes |
252b5132 | 6027 | else |
5464f5a1 NN |
6028 | echo "$as_me: failed program was:" >&5 |
6029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3baf5d0 | 6030 | |
5464f5a1 | 6031 | ac_cv_type_size_t=no |
6be7c12c | 6032 | fi |
5464f5a1 NN |
6033 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6034 | fi | |
6035 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
6036 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
6037 | if test $ac_cv_type_size_t = yes; then | |
6038 | : | |
6039 | else | |
6040 | ||
6041 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 6042 | #define size_t unsigned |
5464f5a1 | 6043 | _ACEOF |
252b5132 RH |
6044 | |
6045 | fi | |
6046 | ||
6047 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
6048 | # for constant arguments. Useless! | |
5464f5a1 NN |
6049 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6050 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
6051 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
6052 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6053 | else | |
6054 | cat >conftest.$ac_ext <<_ACEOF | |
6055 | /* confdefs.h. */ | |
6056 | _ACEOF | |
6057 | cat confdefs.h >>conftest.$ac_ext | |
6058 | cat >>conftest.$ac_ext <<_ACEOF | |
6059 | /* end confdefs.h. */ | |
252b5132 | 6060 | #include <alloca.h> |
5464f5a1 NN |
6061 | int |
6062 | main () | |
6063 | { | |
6064 | char *p = (char *) alloca (2 * sizeof (int)); | |
6065 | ; | |
6066 | return 0; | |
6067 | } | |
6068 | _ACEOF | |
6069 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6070 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6071 | (eval $ac_link) 2>conftest.er1 | |
6072 | ac_status=$? | |
6073 | grep -v '^ *+' conftest.er1 >conftest.err | |
6074 | rm -f conftest.er1 | |
6075 | cat conftest.err >&5 | |
6076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6077 | (exit $ac_status); } && | |
e1fffbe6 AM |
6078 | { ac_try='test -z "$ac_c_werror_flag" |
6079 | || test ! -s conftest.err' | |
5464f5a1 NN |
6080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6081 | (eval $ac_try) 2>&5 | |
6082 | ac_status=$? | |
6083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6084 | (exit $ac_status); }; } && | |
6085 | { ac_try='test -s conftest$ac_exeext' | |
6086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6087 | (eval $ac_try) 2>&5 | |
6088 | ac_status=$? | |
6089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6090 | (exit $ac_status); }; }; then | |
6091 | ac_cv_working_alloca_h=yes | |
6092 | else | |
6093 | echo "$as_me: failed program was:" >&5 | |
6094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6095 | ||
6096 | ac_cv_working_alloca_h=no | |
6097 | fi | |
6098 | rm -f conftest.err conftest.$ac_objext \ | |
6099 | conftest$ac_exeext conftest.$ac_ext | |
6100 | fi | |
6101 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
6102 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
6103 | if test $ac_cv_working_alloca_h = yes; then | |
6104 | ||
6105 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 6106 | #define HAVE_ALLOCA_H 1 |
5464f5a1 | 6107 | _ACEOF |
252b5132 RH |
6108 | |
6109 | fi | |
6110 | ||
5464f5a1 NN |
6111 | echo "$as_me:$LINENO: checking for alloca" >&5 |
6112 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
6113 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
6114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6115 | else |
5464f5a1 NN |
6116 | cat >conftest.$ac_ext <<_ACEOF |
6117 | /* confdefs.h. */ | |
6118 | _ACEOF | |
6119 | cat confdefs.h >>conftest.$ac_ext | |
6120 | cat >>conftest.$ac_ext <<_ACEOF | |
6121 | /* end confdefs.h. */ | |
252b5132 RH |
6122 | #ifdef __GNUC__ |
6123 | # define alloca __builtin_alloca | |
6124 | #else | |
6125 | # ifdef _MSC_VER | |
6126 | # include <malloc.h> | |
6127 | # define alloca _alloca | |
6128 | # else | |
6129 | # if HAVE_ALLOCA_H | |
6130 | # include <alloca.h> | |
6131 | # else | |
6132 | # ifdef _AIX | |
6133 | #pragma alloca | |
6134 | # else | |
6135 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6136 | char *alloca (); | |
6137 | # endif | |
6138 | # endif | |
6139 | # endif | |
6140 | # endif | |
6141 | #endif | |
6142 | ||
5464f5a1 NN |
6143 | int |
6144 | main () | |
6145 | { | |
6146 | char *p = (char *) alloca (1); | |
6147 | ; | |
6148 | return 0; | |
6149 | } | |
6150 | _ACEOF | |
6151 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6152 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6153 | (eval $ac_link) 2>conftest.er1 | |
6154 | ac_status=$? | |
6155 | grep -v '^ *+' conftest.er1 >conftest.err | |
6156 | rm -f conftest.er1 | |
6157 | cat conftest.err >&5 | |
6158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6159 | (exit $ac_status); } && | |
e1fffbe6 AM |
6160 | { ac_try='test -z "$ac_c_werror_flag" |
6161 | || test ! -s conftest.err' | |
5464f5a1 NN |
6162 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6163 | (eval $ac_try) 2>&5 | |
6164 | ac_status=$? | |
6165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6166 | (exit $ac_status); }; } && | |
6167 | { ac_try='test -s conftest$ac_exeext' | |
6168 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6169 | (eval $ac_try) 2>&5 | |
6170 | ac_status=$? | |
6171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6172 | (exit $ac_status); }; }; then | |
252b5132 RH |
6173 | ac_cv_func_alloca_works=yes |
6174 | else | |
5464f5a1 NN |
6175 | echo "$as_me: failed program was:" >&5 |
6176 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6177 | ||
6178 | ac_cv_func_alloca_works=no | |
252b5132 | 6179 | fi |
5464f5a1 NN |
6180 | rm -f conftest.err conftest.$ac_objext \ |
6181 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 6182 | fi |
5464f5a1 NN |
6183 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6184 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
252b5132 | 6185 | |
252b5132 | 6186 | if test $ac_cv_func_alloca_works = yes; then |
252b5132 | 6187 | |
5464f5a1 NN |
6188 | cat >>confdefs.h <<\_ACEOF |
6189 | #define HAVE_ALLOCA 1 | |
6190 | _ACEOF | |
b3baf5d0 | 6191 | |
5464f5a1 | 6192 | else |
6be7c12c | 6193 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
5464f5a1 NN |
6194 | # that cause trouble. Some versions do not even contain alloca or |
6195 | # contain a buggy version. If you still want to use their alloca, | |
6196 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6197 | ||
6198 | ALLOCA=alloca.$ac_objext | |
6199 | ||
6200 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 6201 | #define C_ALLOCA 1 |
5464f5a1 | 6202 | _ACEOF |
252b5132 | 6203 | |
6be7c12c | 6204 | |
5464f5a1 NN |
6205 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6206 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
6207 | if test "${ac_cv_os_cray+set}" = set; then | |
6208 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6209 | else |
5464f5a1 NN |
6210 | cat >conftest.$ac_ext <<_ACEOF |
6211 | /* confdefs.h. */ | |
6212 | _ACEOF | |
6213 | cat confdefs.h >>conftest.$ac_ext | |
6214 | cat >>conftest.$ac_ext <<_ACEOF | |
6215 | /* end confdefs.h. */ | |
252b5132 RH |
6216 | #if defined(CRAY) && ! defined(CRAY2) |
6217 | webecray | |
6218 | #else | |
6219 | wenotbecray | |
6220 | #endif | |
6221 | ||
5464f5a1 | 6222 | _ACEOF |
252b5132 | 6223 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5464f5a1 | 6224 | $EGREP "webecray" >/dev/null 2>&1; then |
252b5132 RH |
6225 | ac_cv_os_cray=yes |
6226 | else | |
252b5132 RH |
6227 | ac_cv_os_cray=no |
6228 | fi | |
6229 | rm -f conftest* | |
6230 | ||
6231 | fi | |
5464f5a1 NN |
6232 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6233 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
252b5132 | 6234 | if test $ac_cv_os_cray = yes; then |
5464f5a1 NN |
6235 | for ac_func in _getb67 GETB67 getb67; do |
6236 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6237 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6238 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6239 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6241 | else | |
6242 | cat >conftest.$ac_ext <<_ACEOF | |
6243 | /* confdefs.h. */ | |
6244 | _ACEOF | |
6245 | cat confdefs.h >>conftest.$ac_ext | |
6246 | cat >>conftest.$ac_ext <<_ACEOF | |
6247 | /* end confdefs.h. */ | |
6248 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6249 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6250 | #define $ac_func innocuous_$ac_func | |
6251 | ||
252b5132 | 6252 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
6253 | which can conflict with char $ac_func (); below. |
6254 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6255 | <limits.h> exists even on freestanding compilers. */ | |
6256 | ||
6257 | #ifdef __STDC__ | |
6258 | # include <limits.h> | |
6259 | #else | |
6260 | # include <assert.h> | |
6261 | #endif | |
6be7c12c | 6262 | |
5464f5a1 | 6263 | #undef $ac_func |
252b5132 | 6264 | |
5464f5a1 NN |
6265 | /* Override any gcc2 internal prototype to avoid an error. */ |
6266 | #ifdef __cplusplus | |
6267 | extern "C" | |
6268 | { | |
6269 | #endif | |
6270 | /* We use char because int might match the return type of a gcc2 | |
6271 | builtin and then its argument prototype would still apply. */ | |
6272 | char $ac_func (); | |
252b5132 RH |
6273 | /* The GNU C library defines this for functions which it implements |
6274 | to always fail with ENOSYS. Some functions are actually named | |
6275 | something starting with __ and the normal name is an alias. */ | |
6276 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6277 | choke me | |
6278 | #else | |
5464f5a1 NN |
6279 | char (*f) () = $ac_func; |
6280 | #endif | |
6281 | #ifdef __cplusplus | |
6282 | } | |
252b5132 RH |
6283 | #endif |
6284 | ||
5464f5a1 NN |
6285 | int |
6286 | main () | |
6287 | { | |
6288 | return f != $ac_func; | |
6289 | ; | |
6290 | return 0; | |
6291 | } | |
6292 | _ACEOF | |
6293 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6294 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6295 | (eval $ac_link) 2>conftest.er1 | |
6296 | ac_status=$? | |
6297 | grep -v '^ *+' conftest.er1 >conftest.err | |
6298 | rm -f conftest.er1 | |
6299 | cat conftest.err >&5 | |
6300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6301 | (exit $ac_status); } && | |
e1fffbe6 AM |
6302 | { ac_try='test -z "$ac_c_werror_flag" |
6303 | || test ! -s conftest.err' | |
5464f5a1 NN |
6304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6305 | (eval $ac_try) 2>&5 | |
6306 | ac_status=$? | |
6307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6308 | (exit $ac_status); }; } && | |
6309 | { ac_try='test -s conftest$ac_exeext' | |
6310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6311 | (eval $ac_try) 2>&5 | |
6312 | ac_status=$? | |
6313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6314 | (exit $ac_status); }; }; then | |
6315 | eval "$as_ac_var=yes" | |
6316 | else | |
6317 | echo "$as_me: failed program was:" >&5 | |
6318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6319 | ||
6320 | eval "$as_ac_var=no" | |
6321 | fi | |
6322 | rm -f conftest.err conftest.$ac_objext \ | |
6323 | conftest$ac_exeext conftest.$ac_ext | |
6324 | fi | |
6325 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6326 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6327 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6328 | ||
6329 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 6330 | #define CRAY_STACKSEG_END $ac_func |
5464f5a1 | 6331 | _ACEOF |
252b5132 | 6332 | |
5464f5a1 | 6333 | break |
252b5132 RH |
6334 | fi |
6335 | ||
5464f5a1 | 6336 | done |
252b5132 RH |
6337 | fi |
6338 | ||
5464f5a1 NN |
6339 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6340 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
6341 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
6342 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
6343 | else |
6344 | if test "$cross_compiling" = yes; then | |
6345 | ac_cv_c_stack_direction=0 | |
6346 | else | |
5464f5a1 NN |
6347 | cat >conftest.$ac_ext <<_ACEOF |
6348 | /* confdefs.h. */ | |
6349 | _ACEOF | |
6350 | cat confdefs.h >>conftest.$ac_ext | |
6351 | cat >>conftest.$ac_ext <<_ACEOF | |
6352 | /* end confdefs.h. */ | |
6353 | int | |
252b5132 RH |
6354 | find_stack_direction () |
6355 | { | |
6356 | static char *addr = 0; | |
6357 | auto char dummy; | |
6358 | if (addr == 0) | |
6359 | { | |
6360 | addr = &dummy; | |
6361 | return find_stack_direction (); | |
6362 | } | |
6363 | else | |
6364 | return (&dummy > addr) ? 1 : -1; | |
6365 | } | |
5464f5a1 NN |
6366 | |
6367 | int | |
252b5132 RH |
6368 | main () |
6369 | { | |
5464f5a1 | 6370 | exit (find_stack_direction () < 0); |
252b5132 | 6371 | } |
5464f5a1 NN |
6372 | _ACEOF |
6373 | rm -f conftest$ac_exeext | |
6374 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6375 | (eval $ac_link) 2>&5 | |
6376 | ac_status=$? | |
6377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6378 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6380 | (eval $ac_try) 2>&5 | |
6381 | ac_status=$? | |
6382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6383 | (exit $ac_status); }; }; then | |
252b5132 RH |
6384 | ac_cv_c_stack_direction=1 |
6385 | else | |
5464f5a1 NN |
6386 | echo "$as_me: program exited with status $ac_status" >&5 |
6387 | echo "$as_me: failed program was:" >&5 | |
6388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6389 | ||
6390 | ( exit $ac_status ) | |
6391 | ac_cv_c_stack_direction=-1 | |
252b5132 | 6392 | fi |
5464f5a1 | 6393 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 6394 | fi |
252b5132 | 6395 | fi |
5464f5a1 NN |
6396 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6397 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
252b5132 | 6398 | |
5464f5a1 | 6399 | cat >>confdefs.h <<_ACEOF |
252b5132 | 6400 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
5464f5a1 NN |
6401 | _ACEOF |
6402 | ||
252b5132 RH |
6403 | |
6404 | fi | |
6405 | ||
5464f5a1 NN |
6406 | |
6407 | ||
6408 | for ac_header in stdlib.h unistd.h | |
252b5132 | 6409 | do |
5464f5a1 NN |
6410 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6411 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6412 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6413 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6414 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6416 | fi | |
6417 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6418 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6419 | else | |
6420 | # Is the header compilable? | |
6421 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6422 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6423 | cat >conftest.$ac_ext <<_ACEOF | |
6424 | /* confdefs.h. */ | |
6425 | _ACEOF | |
6426 | cat confdefs.h >>conftest.$ac_ext | |
6427 | cat >>conftest.$ac_ext <<_ACEOF | |
6428 | /* end confdefs.h. */ | |
6429 | $ac_includes_default | |
6430 | #include <$ac_header> | |
6431 | _ACEOF | |
6432 | rm -f conftest.$ac_objext | |
6433 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6434 | (eval $ac_compile) 2>conftest.er1 | |
6435 | ac_status=$? | |
6436 | grep -v '^ *+' conftest.er1 >conftest.err | |
6437 | rm -f conftest.er1 | |
6438 | cat conftest.err >&5 | |
6439 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6440 | (exit $ac_status); } && | |
e1fffbe6 AM |
6441 | { ac_try='test -z "$ac_c_werror_flag" |
6442 | || test ! -s conftest.err' | |
5464f5a1 NN |
6443 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6444 | (eval $ac_try) 2>&5 | |
6445 | ac_status=$? | |
6446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6447 | (exit $ac_status); }; } && | |
6448 | { ac_try='test -s conftest.$ac_objext' | |
6449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6450 | (eval $ac_try) 2>&5 | |
6451 | ac_status=$? | |
6452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6453 | (exit $ac_status); }; }; then | |
6454 | ac_header_compiler=yes | |
6455 | else | |
6456 | echo "$as_me: failed program was:" >&5 | |
6457 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6458 | ||
6459 | ac_header_compiler=no | |
6460 | fi | |
6461 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6462 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6463 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6464 | ||
6465 | # Is the header present? | |
6466 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6467 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6468 | cat >conftest.$ac_ext <<_ACEOF | |
6469 | /* confdefs.h. */ | |
6470 | _ACEOF | |
6471 | cat confdefs.h >>conftest.$ac_ext | |
6472 | cat >>conftest.$ac_ext <<_ACEOF | |
6473 | /* end confdefs.h. */ | |
6474 | #include <$ac_header> | |
6475 | _ACEOF | |
6476 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6477 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6478 | ac_status=$? | |
6479 | grep -v '^ *+' conftest.er1 >conftest.err | |
6480 | rm -f conftest.er1 | |
6481 | cat conftest.err >&5 | |
6482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6483 | (exit $ac_status); } >/dev/null; then | |
6484 | if test -s conftest.err; then | |
6485 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6486 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6487 | else | |
6488 | ac_cpp_err= | |
6489 | fi | |
252b5132 | 6490 | else |
5464f5a1 | 6491 | ac_cpp_err=yes |
252b5132 | 6492 | fi |
5464f5a1 NN |
6493 | if test -z "$ac_cpp_err"; then |
6494 | ac_header_preproc=yes | |
6495 | else | |
6496 | echo "$as_me: failed program was:" >&5 | |
6497 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6498 | ||
6499 | ac_header_preproc=no | |
252b5132 | 6500 | fi |
5464f5a1 NN |
6501 | rm -f conftest.err conftest.$ac_ext |
6502 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6503 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6504 | ||
6505 | # So? What about this header? | |
6506 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6507 | yes:no: ) | |
6508 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6509 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6510 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6511 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6512 | ac_header_preproc=yes | |
6513 | ;; | |
6514 | no:yes:* ) | |
6515 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6516 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6517 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6518 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6519 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6520 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6521 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6522 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6523 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6524 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6525 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6526 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6527 | ( | |
6528 | cat <<\_ASBOX | |
6529 | ## ------------------------------------------ ## | |
6530 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6531 | ## ------------------------------------------ ## | |
6532 | _ASBOX | |
6533 | ) | | |
6534 | sed "s/^/$as_me: WARNING: /" >&2 | |
6535 | ;; | |
6536 | esac | |
6537 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6538 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6539 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6540 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 6541 | else |
5464f5a1 NN |
6542 | eval "$as_ac_Header=\$ac_header_preproc" |
6543 | fi | |
6544 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6545 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6546 | ||
252b5132 | 6547 | fi |
5464f5a1 NN |
6548 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6549 | cat >>confdefs.h <<_ACEOF | |
6550 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6551 | _ACEOF | |
6552 | ||
6553 | fi | |
6554 | ||
252b5132 RH |
6555 | done |
6556 | ||
5464f5a1 | 6557 | |
252b5132 RH |
6558 | for ac_func in getpagesize |
6559 | do | |
5464f5a1 NN |
6560 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6561 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6562 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6563 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6565 | else | |
6566 | cat >conftest.$ac_ext <<_ACEOF | |
6567 | /* confdefs.h. */ | |
6568 | _ACEOF | |
6569 | cat confdefs.h >>conftest.$ac_ext | |
6570 | cat >>conftest.$ac_ext <<_ACEOF | |
6571 | /* end confdefs.h. */ | |
6572 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6573 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6574 | #define $ac_func innocuous_$ac_func | |
6575 | ||
252b5132 | 6576 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
6577 | which can conflict with char $ac_func (); below. |
6578 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6579 | <limits.h> exists even on freestanding compilers. */ | |
6580 | ||
6581 | #ifdef __STDC__ | |
6582 | # include <limits.h> | |
6583 | #else | |
6584 | # include <assert.h> | |
6585 | #endif | |
6be7c12c | 6586 | |
5464f5a1 | 6587 | #undef $ac_func |
252b5132 | 6588 | |
5464f5a1 NN |
6589 | /* Override any gcc2 internal prototype to avoid an error. */ |
6590 | #ifdef __cplusplus | |
6591 | extern "C" | |
6592 | { | |
6593 | #endif | |
6594 | /* We use char because int might match the return type of a gcc2 | |
6595 | builtin and then its argument prototype would still apply. */ | |
6596 | char $ac_func (); | |
252b5132 RH |
6597 | /* The GNU C library defines this for functions which it implements |
6598 | to always fail with ENOSYS. Some functions are actually named | |
6599 | something starting with __ and the normal name is an alias. */ | |
6600 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6601 | choke me | |
6602 | #else | |
5464f5a1 NN |
6603 | char (*f) () = $ac_func; |
6604 | #endif | |
6605 | #ifdef __cplusplus | |
6606 | } | |
252b5132 RH |
6607 | #endif |
6608 | ||
5464f5a1 NN |
6609 | int |
6610 | main () | |
6611 | { | |
6612 | return f != $ac_func; | |
6613 | ; | |
6614 | return 0; | |
6615 | } | |
6616 | _ACEOF | |
6617 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6619 | (eval $ac_link) 2>conftest.er1 | |
6620 | ac_status=$? | |
6621 | grep -v '^ *+' conftest.er1 >conftest.err | |
6622 | rm -f conftest.er1 | |
6623 | cat conftest.err >&5 | |
6624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6625 | (exit $ac_status); } && | |
e1fffbe6 AM |
6626 | { ac_try='test -z "$ac_c_werror_flag" |
6627 | || test ! -s conftest.err' | |
5464f5a1 NN |
6628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6629 | (eval $ac_try) 2>&5 | |
6630 | ac_status=$? | |
6631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6632 | (exit $ac_status); }; } && | |
6633 | { ac_try='test -s conftest$ac_exeext' | |
6634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6635 | (eval $ac_try) 2>&5 | |
6636 | ac_status=$? | |
6637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6638 | (exit $ac_status); }; }; then | |
6639 | eval "$as_ac_var=yes" | |
6640 | else | |
6641 | echo "$as_me: failed program was:" >&5 | |
6642 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6643 | ||
6644 | eval "$as_ac_var=no" | |
6645 | fi | |
6646 | rm -f conftest.err conftest.$ac_objext \ | |
6647 | conftest$ac_exeext conftest.$ac_ext | |
6648 | fi | |
6649 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6650 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6651 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6652 | cat >>confdefs.h <<_ACEOF | |
6653 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6654 | _ACEOF | |
252b5132 | 6655 | |
252b5132 RH |
6656 | fi |
6657 | done | |
6658 | ||
5464f5a1 NN |
6659 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
6660 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
6661 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
6662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
6663 | else |
6664 | if test "$cross_compiling" = yes; then | |
6665 | ac_cv_func_mmap_fixed_mapped=no | |
6666 | else | |
5464f5a1 NN |
6667 | cat >conftest.$ac_ext <<_ACEOF |
6668 | /* confdefs.h. */ | |
6669 | _ACEOF | |
6670 | cat confdefs.h >>conftest.$ac_ext | |
6671 | cat >>conftest.$ac_ext <<_ACEOF | |
6672 | /* end confdefs.h. */ | |
6673 | $ac_includes_default | |
6674 | /* malloc might have been renamed as rpl_malloc. */ | |
6675 | #undef malloc | |
6be7c12c | 6676 | |
252b5132 RH |
6677 | /* Thanks to Mike Haertel and Jim Avera for this test. |
6678 | Here is a matrix of mmap possibilities: | |
6679 | mmap private not fixed | |
6680 | mmap private fixed at somewhere currently unmapped | |
6681 | mmap private fixed at somewhere already mapped | |
6682 | mmap shared not fixed | |
6683 | mmap shared fixed at somewhere currently unmapped | |
6684 | mmap shared fixed at somewhere already mapped | |
6685 | For private mappings, we should verify that changes cannot be read() | |
6686 | back from the file, nor mmap's back from the file at a different | |
6687 | address. (There have been systems where private was not correctly | |
6688 | implemented like the infamous i386 svr4.0, and systems where the | |
5464f5a1 | 6689 | VM page cache was not coherent with the file system buffer cache |
252b5132 RH |
6690 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
6691 | For shared mappings, we should conversely verify that changes get | |
5464f5a1 | 6692 | propagated back to all the places they're supposed to be. |
252b5132 RH |
6693 | |
6694 | Grep wants private fixed already mapped. | |
6695 | The main things grep needs to know about mmap are: | |
6696 | * does it exist and is it safe to write into the mmap'd area | |
6697 | * how to use it (BSD variants) */ | |
5464f5a1 | 6698 | |
252b5132 RH |
6699 | #include <fcntl.h> |
6700 | #include <sys/mman.h> | |
6701 | ||
5464f5a1 NN |
6702 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
6703 | char *malloc (); | |
6704 | #endif | |
6be7c12c | 6705 | |
5464f5a1 NN |
6706 | /* This mess was copied from the GNU getpagesize.h. */ |
6707 | #if !HAVE_GETPAGESIZE | |
252b5132 | 6708 | /* Assume that all systems that can run configure have sys/param.h. */ |
5464f5a1 | 6709 | # if !HAVE_SYS_PARAM_H |
252b5132 RH |
6710 | # define HAVE_SYS_PARAM_H 1 |
6711 | # endif | |
6712 | ||
6713 | # ifdef _SC_PAGESIZE | |
6714 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6715 | # else /* no _SC_PAGESIZE */ | |
5464f5a1 | 6716 | # if HAVE_SYS_PARAM_H |
252b5132 RH |
6717 | # include <sys/param.h> |
6718 | # ifdef EXEC_PAGESIZE | |
6719 | # define getpagesize() EXEC_PAGESIZE | |
6720 | # else /* no EXEC_PAGESIZE */ | |
6721 | # ifdef NBPG | |
6722 | # define getpagesize() NBPG * CLSIZE | |
6723 | # ifndef CLSIZE | |
6724 | # define CLSIZE 1 | |
6725 | # endif /* no CLSIZE */ | |
6726 | # else /* no NBPG */ | |
6727 | # ifdef NBPC | |
6728 | # define getpagesize() NBPC | |
6729 | # else /* no NBPC */ | |
6730 | # ifdef PAGESIZE | |
6731 | # define getpagesize() PAGESIZE | |
6732 | # endif /* PAGESIZE */ | |
6733 | # endif /* no NBPC */ | |
6734 | # endif /* no NBPG */ | |
6735 | # endif /* no EXEC_PAGESIZE */ | |
6736 | # else /* no HAVE_SYS_PARAM_H */ | |
6737 | # define getpagesize() 8192 /* punt totally */ | |
6738 | # endif /* no HAVE_SYS_PARAM_H */ | |
6739 | # endif /* no _SC_PAGESIZE */ | |
6740 | ||
6741 | #endif /* no HAVE_GETPAGESIZE */ | |
6742 | ||
252b5132 | 6743 | int |
5464f5a1 | 6744 | main () |
252b5132 | 6745 | { |
5464f5a1 NN |
6746 | char *data, *data2, *data3; |
6747 | int i, pagesize; | |
6748 | int fd; | |
6749 | ||
6750 | pagesize = getpagesize (); | |
6751 | ||
6752 | /* First, make a file with some known garbage in it. */ | |
6753 | data = (char *) malloc (pagesize); | |
6754 | if (!data) | |
6755 | exit (1); | |
6756 | for (i = 0; i < pagesize; ++i) | |
6757 | *(data + i) = rand (); | |
6758 | umask (0); | |
6759 | fd = creat ("conftest.mmap", 0600); | |
6760 | if (fd < 0) | |
6761 | exit (1); | |
6762 | if (write (fd, data, pagesize) != pagesize) | |
6763 | exit (1); | |
6764 | close (fd); | |
6765 | ||
6766 | /* Next, try to mmap the file at a fixed address which already has | |
6767 | something else allocated at it. If we can, also make sure that | |
6768 | we see the same garbage. */ | |
6769 | fd = open ("conftest.mmap", O_RDWR); | |
6770 | if (fd < 0) | |
6771 | exit (1); | |
6772 | data2 = (char *) malloc (2 * pagesize); | |
6773 | if (!data2) | |
6774 | exit (1); | |
6775 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
6776 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
6777 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6778 | exit (1); | |
6779 | for (i = 0; i < pagesize; ++i) | |
6780 | if (*(data + i) != *(data2 + i)) | |
6781 | exit (1); | |
6782 | ||
6783 | /* Finally, make sure that changes to the mapped area do not | |
6784 | percolate back to the file as seen by read(). (This is a bug on | |
6785 | some variants of i386 svr4.0.) */ | |
6786 | for (i = 0; i < pagesize; ++i) | |
6787 | *(data2 + i) = *(data2 + i) + 1; | |
6788 | data3 = (char *) malloc (pagesize); | |
6789 | if (!data3) | |
6790 | exit (1); | |
6791 | if (read (fd, data3, pagesize) != pagesize) | |
6792 | exit (1); | |
6793 | for (i = 0; i < pagesize; ++i) | |
6794 | if (*(data + i) != *(data3 + i)) | |
6795 | exit (1); | |
6796 | close (fd); | |
6797 | exit (0); | |
252b5132 | 6798 | } |
5464f5a1 NN |
6799 | _ACEOF |
6800 | rm -f conftest$ac_exeext | |
6801 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6802 | (eval $ac_link) 2>&5 | |
6803 | ac_status=$? | |
6804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6805 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6807 | (eval $ac_try) 2>&5 | |
6808 | ac_status=$? | |
6809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6810 | (exit $ac_status); }; }; then | |
252b5132 RH |
6811 | ac_cv_func_mmap_fixed_mapped=yes |
6812 | else | |
5464f5a1 NN |
6813 | echo "$as_me: program exited with status $ac_status" >&5 |
6814 | echo "$as_me: failed program was:" >&5 | |
6815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6816 | ||
6817 | ( exit $ac_status ) | |
6818 | ac_cv_func_mmap_fixed_mapped=no | |
252b5132 | 6819 | fi |
5464f5a1 | 6820 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 6821 | fi |
252b5132 | 6822 | fi |
5464f5a1 NN |
6823 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
6824 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
6be7c12c | 6825 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
5464f5a1 NN |
6826 | |
6827 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 6828 | #define HAVE_MMAP 1 |
5464f5a1 | 6829 | _ACEOF |
252b5132 RH |
6830 | |
6831 | fi | |
5464f5a1 NN |
6832 | rm -f conftest.mmap |
6833 | ||
6834 | ||
252b5132 | 6835 | |
5464f5a1 NN |
6836 | |
6837 | ||
6838 | ||
6839 | ||
6840 | ||
6841 | ||
6842 | ||
6843 | ||
6844 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
252b5132 RH |
6845 | unistd.h values.h sys/param.h |
6846 | do | |
5464f5a1 NN |
6847 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6848 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6849 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6850 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6851 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6852 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6853 | fi | |
6854 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6855 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6856 | else | |
6857 | # Is the header compilable? | |
6858 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6859 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6860 | cat >conftest.$ac_ext <<_ACEOF | |
6861 | /* confdefs.h. */ | |
6862 | _ACEOF | |
6863 | cat confdefs.h >>conftest.$ac_ext | |
6864 | cat >>conftest.$ac_ext <<_ACEOF | |
6865 | /* end confdefs.h. */ | |
6866 | $ac_includes_default | |
6867 | #include <$ac_header> | |
6868 | _ACEOF | |
6869 | rm -f conftest.$ac_objext | |
6870 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6871 | (eval $ac_compile) 2>conftest.er1 | |
6872 | ac_status=$? | |
6873 | grep -v '^ *+' conftest.er1 >conftest.err | |
6874 | rm -f conftest.er1 | |
6875 | cat conftest.err >&5 | |
6876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6877 | (exit $ac_status); } && | |
e1fffbe6 AM |
6878 | { ac_try='test -z "$ac_c_werror_flag" |
6879 | || test ! -s conftest.err' | |
5464f5a1 NN |
6880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6881 | (eval $ac_try) 2>&5 | |
6882 | ac_status=$? | |
6883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6884 | (exit $ac_status); }; } && | |
6885 | { ac_try='test -s conftest.$ac_objext' | |
6886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6887 | (eval $ac_try) 2>&5 | |
6888 | ac_status=$? | |
6889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6890 | (exit $ac_status); }; }; then | |
6891 | ac_header_compiler=yes | |
6892 | else | |
6893 | echo "$as_me: failed program was:" >&5 | |
6894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6895 | ||
6896 | ac_header_compiler=no | |
6897 | fi | |
6898 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6899 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6900 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6901 | ||
6902 | # Is the header present? | |
6903 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6904 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6905 | cat >conftest.$ac_ext <<_ACEOF | |
6906 | /* confdefs.h. */ | |
6907 | _ACEOF | |
6908 | cat confdefs.h >>conftest.$ac_ext | |
6909 | cat >>conftest.$ac_ext <<_ACEOF | |
6910 | /* end confdefs.h. */ | |
6911 | #include <$ac_header> | |
6912 | _ACEOF | |
6913 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6914 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6915 | ac_status=$? | |
6916 | grep -v '^ *+' conftest.er1 >conftest.err | |
6917 | rm -f conftest.er1 | |
6918 | cat conftest.err >&5 | |
6919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6920 | (exit $ac_status); } >/dev/null; then | |
6921 | if test -s conftest.err; then | |
6922 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6923 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6924 | else | |
6925 | ac_cpp_err= | |
6926 | fi | |
252b5132 | 6927 | else |
5464f5a1 | 6928 | ac_cpp_err=yes |
252b5132 | 6929 | fi |
5464f5a1 NN |
6930 | if test -z "$ac_cpp_err"; then |
6931 | ac_header_preproc=yes | |
6932 | else | |
6933 | echo "$as_me: failed program was:" >&5 | |
6934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6935 | ||
6936 | ac_header_preproc=no | |
252b5132 | 6937 | fi |
5464f5a1 NN |
6938 | rm -f conftest.err conftest.$ac_ext |
6939 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6940 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6941 | ||
6942 | # So? What about this header? | |
6943 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6944 | yes:no: ) | |
6945 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6946 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6947 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6948 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6949 | ac_header_preproc=yes | |
6950 | ;; | |
6951 | no:yes:* ) | |
6952 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6953 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6954 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6955 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6956 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6957 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6958 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6959 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6960 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6961 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6962 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6963 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6964 | ( | |
6965 | cat <<\_ASBOX | |
6966 | ## ------------------------------------------ ## | |
6967 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6968 | ## ------------------------------------------ ## | |
6969 | _ASBOX | |
6970 | ) | | |
6971 | sed "s/^/$as_me: WARNING: /" >&2 | |
6972 | ;; | |
6973 | esac | |
6974 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6975 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6976 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6977 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 6978 | else |
5464f5a1 NN |
6979 | eval "$as_ac_Header=\$ac_header_preproc" |
6980 | fi | |
6981 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6982 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6983 | ||
6984 | fi | |
6985 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6986 | cat >>confdefs.h <<_ACEOF | |
6987 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6988 | _ACEOF | |
6989 | ||
252b5132 | 6990 | fi |
5464f5a1 | 6991 | |
252b5132 RH |
6992 | done |
6993 | ||
5464f5a1 NN |
6994 | |
6995 | ||
6996 | ||
6997 | ||
6998 | ||
6999 | ||
7000 | ||
7001 | ||
7002 | ||
7003 | ||
7004 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
252b5132 RH |
7005 | __argz_count __argz_stringify __argz_next |
7006 | do | |
5464f5a1 NN |
7007 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7008 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7009 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7010 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7012 | else | |
7013 | cat >conftest.$ac_ext <<_ACEOF | |
7014 | /* confdefs.h. */ | |
7015 | _ACEOF | |
7016 | cat confdefs.h >>conftest.$ac_ext | |
7017 | cat >>conftest.$ac_ext <<_ACEOF | |
7018 | /* end confdefs.h. */ | |
7019 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7020 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7021 | #define $ac_func innocuous_$ac_func | |
7022 | ||
252b5132 | 7023 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
7024 | which can conflict with char $ac_func (); below. |
7025 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7026 | <limits.h> exists even on freestanding compilers. */ | |
7027 | ||
7028 | #ifdef __STDC__ | |
7029 | # include <limits.h> | |
7030 | #else | |
7031 | # include <assert.h> | |
7032 | #endif | |
7033 | ||
7034 | #undef $ac_func | |
7035 | ||
252b5132 | 7036 | /* Override any gcc2 internal prototype to avoid an error. */ |
5464f5a1 NN |
7037 | #ifdef __cplusplus |
7038 | extern "C" | |
7039 | { | |
7040 | #endif | |
252b5132 | 7041 | /* We use char because int might match the return type of a gcc2 |
5464f5a1 NN |
7042 | builtin and then its argument prototype would still apply. */ |
7043 | char $ac_func (); | |
252b5132 RH |
7044 | /* The GNU C library defines this for functions which it implements |
7045 | to always fail with ENOSYS. Some functions are actually named | |
7046 | something starting with __ and the normal name is an alias. */ | |
7047 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7048 | choke me | |
7049 | #else | |
5464f5a1 NN |
7050 | char (*f) () = $ac_func; |
7051 | #endif | |
7052 | #ifdef __cplusplus | |
7053 | } | |
252b5132 RH |
7054 | #endif |
7055 | ||
5464f5a1 NN |
7056 | int |
7057 | main () | |
7058 | { | |
7059 | return f != $ac_func; | |
7060 | ; | |
7061 | return 0; | |
7062 | } | |
7063 | _ACEOF | |
7064 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7066 | (eval $ac_link) 2>conftest.er1 | |
7067 | ac_status=$? | |
7068 | grep -v '^ *+' conftest.er1 >conftest.err | |
7069 | rm -f conftest.er1 | |
7070 | cat conftest.err >&5 | |
7071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7072 | (exit $ac_status); } && | |
e1fffbe6 AM |
7073 | { ac_try='test -z "$ac_c_werror_flag" |
7074 | || test ! -s conftest.err' | |
5464f5a1 NN |
7075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7076 | (eval $ac_try) 2>&5 | |
7077 | ac_status=$? | |
7078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7079 | (exit $ac_status); }; } && | |
7080 | { ac_try='test -s conftest$ac_exeext' | |
7081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7082 | (eval $ac_try) 2>&5 | |
7083 | ac_status=$? | |
7084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7085 | (exit $ac_status); }; }; then | |
7086 | eval "$as_ac_var=yes" | |
7087 | else | |
7088 | echo "$as_me: failed program was:" >&5 | |
7089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7090 | ||
7091 | eval "$as_ac_var=no" | |
7092 | fi | |
7093 | rm -f conftest.err conftest.$ac_objext \ | |
7094 | conftest$ac_exeext conftest.$ac_ext | |
7095 | fi | |
7096 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7097 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7098 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7099 | cat >>confdefs.h <<_ACEOF | |
7100 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7101 | _ACEOF | |
252b5132 | 7102 | |
252b5132 RH |
7103 | fi |
7104 | done | |
7105 | ||
b3baf5d0 | 7106 | |
6be7c12c | 7107 | if test "${ac_cv_func_stpcpy+set}" != "set"; then |
5464f5a1 NN |
7108 | |
7109 | for ac_func in stpcpy | |
252b5132 | 7110 | do |
5464f5a1 NN |
7111 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7112 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7113 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7114 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7116 | else | |
7117 | cat >conftest.$ac_ext <<_ACEOF | |
7118 | /* confdefs.h. */ | |
7119 | _ACEOF | |
7120 | cat confdefs.h >>conftest.$ac_ext | |
7121 | cat >>conftest.$ac_ext <<_ACEOF | |
7122 | /* end confdefs.h. */ | |
7123 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7124 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7125 | #define $ac_func innocuous_$ac_func | |
7126 | ||
252b5132 | 7127 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
7128 | which can conflict with char $ac_func (); below. |
7129 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7130 | <limits.h> exists even on freestanding compilers. */ | |
7131 | ||
7132 | #ifdef __STDC__ | |
7133 | # include <limits.h> | |
7134 | #else | |
7135 | # include <assert.h> | |
7136 | #endif | |
6be7c12c | 7137 | |
5464f5a1 | 7138 | #undef $ac_func |
252b5132 | 7139 | |
5464f5a1 NN |
7140 | /* Override any gcc2 internal prototype to avoid an error. */ |
7141 | #ifdef __cplusplus | |
7142 | extern "C" | |
7143 | { | |
7144 | #endif | |
7145 | /* We use char because int might match the return type of a gcc2 | |
7146 | builtin and then its argument prototype would still apply. */ | |
7147 | char $ac_func (); | |
252b5132 RH |
7148 | /* The GNU C library defines this for functions which it implements |
7149 | to always fail with ENOSYS. Some functions are actually named | |
7150 | something starting with __ and the normal name is an alias. */ | |
7151 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7152 | choke me | |
7153 | #else | |
5464f5a1 NN |
7154 | char (*f) () = $ac_func; |
7155 | #endif | |
7156 | #ifdef __cplusplus | |
7157 | } | |
252b5132 RH |
7158 | #endif |
7159 | ||
5464f5a1 NN |
7160 | int |
7161 | main () | |
7162 | { | |
7163 | return f != $ac_func; | |
7164 | ; | |
7165 | return 0; | |
7166 | } | |
7167 | _ACEOF | |
7168 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7169 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7170 | (eval $ac_link) 2>conftest.er1 | |
7171 | ac_status=$? | |
7172 | grep -v '^ *+' conftest.er1 >conftest.err | |
7173 | rm -f conftest.er1 | |
7174 | cat conftest.err >&5 | |
7175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7176 | (exit $ac_status); } && | |
e1fffbe6 AM |
7177 | { ac_try='test -z "$ac_c_werror_flag" |
7178 | || test ! -s conftest.err' | |
5464f5a1 NN |
7179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7180 | (eval $ac_try) 2>&5 | |
7181 | ac_status=$? | |
7182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7183 | (exit $ac_status); }; } && | |
7184 | { ac_try='test -s conftest$ac_exeext' | |
7185 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7186 | (eval $ac_try) 2>&5 | |
7187 | ac_status=$? | |
7188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7189 | (exit $ac_status); }; }; then | |
7190 | eval "$as_ac_var=yes" | |
7191 | else | |
7192 | echo "$as_me: failed program was:" >&5 | |
7193 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7194 | ||
7195 | eval "$as_ac_var=no" | |
7196 | fi | |
7197 | rm -f conftest.err conftest.$ac_objext \ | |
7198 | conftest$ac_exeext conftest.$ac_ext | |
7199 | fi | |
7200 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7201 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7202 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7203 | cat >>confdefs.h <<_ACEOF | |
7204 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7205 | _ACEOF | |
252b5132 | 7206 | |
252b5132 RH |
7207 | fi |
7208 | done | |
7209 | ||
7210 | fi | |
7211 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
5464f5a1 NN |
7212 | |
7213 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7214 | #define HAVE_STPCPY 1 |
5464f5a1 | 7215 | _ACEOF |
252b5132 RH |
7216 | |
7217 | fi | |
7218 | ||
7219 | if test $ac_cv_header_locale_h = yes; then | |
5464f5a1 NN |
7220 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
7221 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 | |
7222 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
7223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7224 | else | |
7225 | cat >conftest.$ac_ext <<_ACEOF | |
7226 | /* confdefs.h. */ | |
7227 | _ACEOF | |
7228 | cat confdefs.h >>conftest.$ac_ext | |
7229 | cat >>conftest.$ac_ext <<_ACEOF | |
7230 | /* end confdefs.h. */ | |
252b5132 | 7231 | #include <locale.h> |
5464f5a1 NN |
7232 | int |
7233 | main () | |
7234 | { | |
252b5132 | 7235 | return LC_MESSAGES |
5464f5a1 NN |
7236 | ; |
7237 | return 0; | |
7238 | } | |
7239 | _ACEOF | |
7240 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7241 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7242 | (eval $ac_link) 2>conftest.er1 | |
7243 | ac_status=$? | |
7244 | grep -v '^ *+' conftest.er1 >conftest.err | |
7245 | rm -f conftest.er1 | |
7246 | cat conftest.err >&5 | |
7247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7248 | (exit $ac_status); } && | |
e1fffbe6 AM |
7249 | { ac_try='test -z "$ac_c_werror_flag" |
7250 | || test ! -s conftest.err' | |
5464f5a1 NN |
7251 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7252 | (eval $ac_try) 2>&5 | |
7253 | ac_status=$? | |
7254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7255 | (exit $ac_status); }; } && | |
7256 | { ac_try='test -s conftest$ac_exeext' | |
7257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7258 | (eval $ac_try) 2>&5 | |
7259 | ac_status=$? | |
7260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7261 | (exit $ac_status); }; }; then | |
252b5132 RH |
7262 | am_cv_val_LC_MESSAGES=yes |
7263 | else | |
5464f5a1 NN |
7264 | echo "$as_me: failed program was:" >&5 |
7265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7266 | ||
7267 | am_cv_val_LC_MESSAGES=no | |
252b5132 | 7268 | fi |
5464f5a1 NN |
7269 | rm -f conftest.err conftest.$ac_objext \ |
7270 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 7271 | fi |
5464f5a1 NN |
7272 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
7273 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 | |
6be7c12c | 7274 | if test $am_cv_val_LC_MESSAGES = yes; then |
5464f5a1 NN |
7275 | |
7276 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7277 | #define HAVE_LC_MESSAGES 1 |
5464f5a1 | 7278 | _ACEOF |
252b5132 RH |
7279 | |
7280 | fi | |
7281 | fi | |
5464f5a1 NN |
7282 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
7283 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
252b5132 RH |
7284 | # Check whether --enable-nls or --disable-nls was given. |
7285 | if test "${enable_nls+set}" = set; then | |
7286 | enableval="$enable_nls" | |
7287 | USE_NLS=$enableval | |
7288 | else | |
7289 | USE_NLS=yes | |
5464f5a1 NN |
7290 | fi; |
7291 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
7292 | echo "${ECHO_T}$USE_NLS" >&6 | |
6be7c12c | 7293 | |
252b5132 RH |
7294 | |
7295 | USE_INCLUDED_LIBINTL=no | |
7296 | ||
7297 | if test "$USE_NLS" = "yes"; then | |
5464f5a1 NN |
7298 | echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
7299 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 | |
7300 | ||
7301 | # Check whether --with-included-gettext or --without-included-gettext was given. | |
252b5132 RH |
7302 | if test "${with_included_gettext+set}" = set; then |
7303 | withval="$with_included_gettext" | |
7304 | nls_cv_force_use_gnu_gettext=$withval | |
7305 | else | |
7306 | nls_cv_force_use_gnu_gettext=no | |
5464f5a1 NN |
7307 | fi; |
7308 | echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 | |
7309 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 | |
252b5132 RH |
7310 | |
7311 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
7312 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
7313 | nls_cv_header_intl= | |
7314 | nls_cv_header_libgt= | |
a53bf506 | 7315 | CATOBJEXT= |
252b5132 | 7316 | |
5464f5a1 NN |
7317 | if test "${ac_cv_header_libintl_h+set}" = set; then |
7318 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
7319 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
7320 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
7321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7322 | fi | |
7323 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
7324 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
7325 | else | |
7326 | # Is the header compilable? | |
7327 | echo "$as_me:$LINENO: checking libintl.h usability" >&5 | |
7328 | echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 | |
7329 | cat >conftest.$ac_ext <<_ACEOF | |
7330 | /* confdefs.h. */ | |
7331 | _ACEOF | |
7332 | cat confdefs.h >>conftest.$ac_ext | |
7333 | cat >>conftest.$ac_ext <<_ACEOF | |
7334 | /* end confdefs.h. */ | |
7335 | $ac_includes_default | |
252b5132 | 7336 | #include <libintl.h> |
5464f5a1 NN |
7337 | _ACEOF |
7338 | rm -f conftest.$ac_objext | |
7339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7340 | (eval $ac_compile) 2>conftest.er1 | |
7341 | ac_status=$? | |
7342 | grep -v '^ *+' conftest.er1 >conftest.err | |
7343 | rm -f conftest.er1 | |
7344 | cat conftest.err >&5 | |
7345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7346 | (exit $ac_status); } && | |
e1fffbe6 AM |
7347 | { ac_try='test -z "$ac_c_werror_flag" |
7348 | || test ! -s conftest.err' | |
5464f5a1 NN |
7349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7350 | (eval $ac_try) 2>&5 | |
7351 | ac_status=$? | |
7352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7353 | (exit $ac_status); }; } && | |
7354 | { ac_try='test -s conftest.$ac_objext' | |
7355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7356 | (eval $ac_try) 2>&5 | |
7357 | ac_status=$? | |
7358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7359 | (exit $ac_status); }; }; then | |
7360 | ac_header_compiler=yes | |
7361 | else | |
7362 | echo "$as_me: failed program was:" >&5 | |
7363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7364 | ||
7365 | ac_header_compiler=no | |
7366 | fi | |
7367 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7368 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7369 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7370 | ||
7371 | # Is the header present? | |
7372 | echo "$as_me:$LINENO: checking libintl.h presence" >&5 | |
7373 | echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 | |
7374 | cat >conftest.$ac_ext <<_ACEOF | |
7375 | /* confdefs.h. */ | |
7376 | _ACEOF | |
7377 | cat confdefs.h >>conftest.$ac_ext | |
7378 | cat >>conftest.$ac_ext <<_ACEOF | |
7379 | /* end confdefs.h. */ | |
7380 | #include <libintl.h> | |
7381 | _ACEOF | |
7382 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7383 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7384 | ac_status=$? | |
7385 | grep -v '^ *+' conftest.er1 >conftest.err | |
7386 | rm -f conftest.er1 | |
7387 | cat conftest.err >&5 | |
7388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7389 | (exit $ac_status); } >/dev/null; then | |
7390 | if test -s conftest.err; then | |
7391 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7392 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7393 | else | |
7394 | ac_cpp_err= | |
7395 | fi | |
252b5132 | 7396 | else |
5464f5a1 | 7397 | ac_cpp_err=yes |
252b5132 | 7398 | fi |
5464f5a1 NN |
7399 | if test -z "$ac_cpp_err"; then |
7400 | ac_header_preproc=yes | |
7401 | else | |
7402 | echo "$as_me: failed program was:" >&5 | |
7403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7404 | ||
7405 | ac_header_preproc=no | |
252b5132 | 7406 | fi |
5464f5a1 NN |
7407 | rm -f conftest.err conftest.$ac_ext |
7408 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7409 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7410 | ||
7411 | # So? What about this header? | |
7412 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7413 | yes:no: ) | |
7414 | { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7415 | echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7416 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 | |
7417 | echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} | |
7418 | ac_header_preproc=yes | |
7419 | ;; | |
7420 | no:yes:* ) | |
7421 | { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 | |
7422 | echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} | |
7423 | { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 | |
7424 | echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} | |
7425 | { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 | |
7426 | echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} | |
7427 | { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
7428 | echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
7429 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 | |
7430 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} | |
7431 | { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 | |
7432 | echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} | |
7433 | ( | |
7434 | cat <<\_ASBOX | |
7435 | ## ------------------------------------------ ## | |
7436 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7437 | ## ------------------------------------------ ## | |
7438 | _ASBOX | |
7439 | ) | | |
7440 | sed "s/^/$as_me: WARNING: /" >&2 | |
7441 | ;; | |
7442 | esac | |
7443 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
7444 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
7445 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
7446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7447 | else |
5464f5a1 NN |
7448 | ac_cv_header_libintl_h=$ac_header_preproc |
7449 | fi | |
7450 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
7451 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
7452 | ||
7453 | fi | |
7454 | if test $ac_cv_header_libintl_h = yes; then | |
7455 | echo "$as_me:$LINENO: checking for gettext in libc" >&5 | |
7456 | echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6 | |
7457 | if test "${gt_cv_func_gettext_libc+set}" = set; then | |
7458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7459 | else | |
7460 | cat >conftest.$ac_ext <<_ACEOF | |
7461 | /* confdefs.h. */ | |
7462 | _ACEOF | |
7463 | cat confdefs.h >>conftest.$ac_ext | |
7464 | cat >>conftest.$ac_ext <<_ACEOF | |
7465 | /* end confdefs.h. */ | |
252b5132 | 7466 | #include <libintl.h> |
5464f5a1 NN |
7467 | int |
7468 | main () | |
7469 | { | |
252b5132 | 7470 | return (int) gettext ("") |
5464f5a1 NN |
7471 | ; |
7472 | return 0; | |
7473 | } | |
7474 | _ACEOF | |
7475 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7476 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7477 | (eval $ac_link) 2>conftest.er1 | |
7478 | ac_status=$? | |
7479 | grep -v '^ *+' conftest.er1 >conftest.err | |
7480 | rm -f conftest.er1 | |
7481 | cat conftest.err >&5 | |
7482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7483 | (exit $ac_status); } && | |
e1fffbe6 AM |
7484 | { ac_try='test -z "$ac_c_werror_flag" |
7485 | || test ! -s conftest.err' | |
5464f5a1 NN |
7486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7487 | (eval $ac_try) 2>&5 | |
7488 | ac_status=$? | |
7489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7490 | (exit $ac_status); }; } && | |
7491 | { ac_try='test -s conftest$ac_exeext' | |
7492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7493 | (eval $ac_try) 2>&5 | |
7494 | ac_status=$? | |
7495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7496 | (exit $ac_status); }; }; then | |
252b5132 RH |
7497 | gt_cv_func_gettext_libc=yes |
7498 | else | |
5464f5a1 NN |
7499 | echo "$as_me: failed program was:" >&5 |
7500 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7501 | ||
7502 | gt_cv_func_gettext_libc=no | |
252b5132 | 7503 | fi |
5464f5a1 NN |
7504 | rm -f conftest.err conftest.$ac_objext \ |
7505 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 7506 | fi |
5464f5a1 NN |
7507 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5 |
7508 | echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6 | |
252b5132 RH |
7509 | |
7510 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
5464f5a1 NN |
7511 | echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 |
7512 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 | |
7513 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then | |
7514 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7515 | else |
5464f5a1 | 7516 | ac_check_lib_save_LIBS=$LIBS |
252b5132 | 7517 | LIBS="-lintl $LIBS" |
5464f5a1 NN |
7518 | cat >conftest.$ac_ext <<_ACEOF |
7519 | /* confdefs.h. */ | |
7520 | _ACEOF | |
7521 | cat confdefs.h >>conftest.$ac_ext | |
7522 | cat >>conftest.$ac_ext <<_ACEOF | |
7523 | /* end confdefs.h. */ | |
7524 | ||
252b5132 | 7525 | /* Override any gcc2 internal prototype to avoid an error. */ |
5464f5a1 NN |
7526 | #ifdef __cplusplus |
7527 | extern "C" | |
7528 | #endif | |
252b5132 | 7529 | /* We use char because int might match the return type of a gcc2 |
5464f5a1 NN |
7530 | builtin and then its argument prototype would still apply. */ |
7531 | char bindtextdomain (); | |
7532 | int | |
7533 | main () | |
7534 | { | |
7535 | bindtextdomain (); | |
7536 | ; | |
7537 | return 0; | |
7538 | } | |
7539 | _ACEOF | |
7540 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7541 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7542 | (eval $ac_link) 2>conftest.er1 | |
7543 | ac_status=$? | |
7544 | grep -v '^ *+' conftest.er1 >conftest.err | |
7545 | rm -f conftest.er1 | |
7546 | cat conftest.err >&5 | |
7547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7548 | (exit $ac_status); } && | |
e1fffbe6 AM |
7549 | { ac_try='test -z "$ac_c_werror_flag" |
7550 | || test ! -s conftest.err' | |
5464f5a1 NN |
7551 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7552 | (eval $ac_try) 2>&5 | |
7553 | ac_status=$? | |
7554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7555 | (exit $ac_status); }; } && | |
7556 | { ac_try='test -s conftest$ac_exeext' | |
7557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7558 | (eval $ac_try) 2>&5 | |
7559 | ac_status=$? | |
7560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7561 | (exit $ac_status); }; }; then | |
7562 | ac_cv_lib_intl_bindtextdomain=yes | |
7563 | else | |
7564 | echo "$as_me: failed program was:" >&5 | |
7565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7566 | ||
7567 | ac_cv_lib_intl_bindtextdomain=no | |
7568 | fi | |
7569 | rm -f conftest.err conftest.$ac_objext \ | |
7570 | conftest$ac_exeext conftest.$ac_ext | |
7571 | LIBS=$ac_check_lib_save_LIBS | |
7572 | fi | |
7573 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 | |
7574 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 | |
7575 | if test $ac_cv_lib_intl_bindtextdomain = yes; then | |
7576 | echo "$as_me:$LINENO: checking for gettext in libintl" >&5 | |
7577 | echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6 | |
7578 | if test "${gt_cv_func_gettext_libintl+set}" = set; then | |
7579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7580 | else | |
7581 | cat >conftest.$ac_ext <<_ACEOF | |
7582 | /* confdefs.h. */ | |
7583 | _ACEOF | |
7584 | cat confdefs.h >>conftest.$ac_ext | |
7585 | cat >>conftest.$ac_ext <<_ACEOF | |
7586 | /* end confdefs.h. */ | |
252b5132 | 7587 | |
5464f5a1 NN |
7588 | int |
7589 | main () | |
7590 | { | |
252b5132 | 7591 | return (int) gettext ("") |
5464f5a1 NN |
7592 | ; |
7593 | return 0; | |
7594 | } | |
7595 | _ACEOF | |
7596 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7597 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7598 | (eval $ac_link) 2>conftest.er1 | |
7599 | ac_status=$? | |
7600 | grep -v '^ *+' conftest.er1 >conftest.err | |
7601 | rm -f conftest.er1 | |
7602 | cat conftest.err >&5 | |
7603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7604 | (exit $ac_status); } && | |
e1fffbe6 AM |
7605 | { ac_try='test -z "$ac_c_werror_flag" |
7606 | || test ! -s conftest.err' | |
5464f5a1 NN |
7607 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7608 | (eval $ac_try) 2>&5 | |
7609 | ac_status=$? | |
7610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7611 | (exit $ac_status); }; } && | |
7612 | { ac_try='test -s conftest$ac_exeext' | |
7613 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7614 | (eval $ac_try) 2>&5 | |
7615 | ac_status=$? | |
7616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7617 | (exit $ac_status); }; }; then | |
252b5132 RH |
7618 | gt_cv_func_gettext_libintl=yes |
7619 | else | |
5464f5a1 NN |
7620 | echo "$as_me: failed program was:" >&5 |
7621 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7622 | ||
7623 | gt_cv_func_gettext_libintl=no | |
252b5132 | 7624 | fi |
5464f5a1 NN |
7625 | rm -f conftest.err conftest.$ac_objext \ |
7626 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 7627 | fi |
5464f5a1 NN |
7628 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5 |
7629 | echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6 | |
252b5132 RH |
7630 | fi |
7631 | ||
7632 | fi | |
7633 | ||
7634 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
7635 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
5464f5a1 NN |
7636 | |
7637 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7638 | #define HAVE_GETTEXT 1 |
5464f5a1 | 7639 | _ACEOF |
252b5132 RH |
7640 | |
7641 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7642 | set dummy msgfmt; ac_word=$2 | |
5464f5a1 NN |
7643 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7644 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7645 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
7646 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7647 | else |
7648 | case "$MSGFMT" in | |
7649 | /*) | |
7650 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7651 | ;; | |
7652 | *) | |
7653 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7654 | for ac_dir in $PATH; do | |
7655 | test -z "$ac_dir" && ac_dir=. | |
7656 | if test -f $ac_dir/$ac_word; then | |
7657 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7658 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7659 | break | |
7660 | fi | |
7661 | fi | |
7662 | done | |
7663 | IFS="$ac_save_ifs" | |
7664 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
7665 | ;; | |
7666 | esac | |
7667 | fi | |
7668 | MSGFMT="$ac_cv_path_MSGFMT" | |
7669 | if test -n "$MSGFMT"; then | |
5464f5a1 NN |
7670 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
7671 | echo "${ECHO_T}$MSGFMT" >&6 | |
252b5132 | 7672 | else |
5464f5a1 NN |
7673 | echo "$as_me:$LINENO: result: no" >&5 |
7674 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7675 | fi |
7676 | if test "$MSGFMT" != "no"; then | |
5464f5a1 NN |
7677 | |
7678 | for ac_func in dcgettext | |
252b5132 | 7679 | do |
5464f5a1 NN |
7680 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7681 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7682 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7683 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7684 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7685 | else | |
7686 | cat >conftest.$ac_ext <<_ACEOF | |
7687 | /* confdefs.h. */ | |
7688 | _ACEOF | |
7689 | cat confdefs.h >>conftest.$ac_ext | |
7690 | cat >>conftest.$ac_ext <<_ACEOF | |
7691 | /* end confdefs.h. */ | |
7692 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7693 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7694 | #define $ac_func innocuous_$ac_func | |
7695 | ||
252b5132 | 7696 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
7697 | which can conflict with char $ac_func (); below. |
7698 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7699 | <limits.h> exists even on freestanding compilers. */ | |
7700 | ||
7701 | #ifdef __STDC__ | |
7702 | # include <limits.h> | |
7703 | #else | |
7704 | # include <assert.h> | |
7705 | #endif | |
6be7c12c | 7706 | |
5464f5a1 | 7707 | #undef $ac_func |
252b5132 | 7708 | |
5464f5a1 NN |
7709 | /* Override any gcc2 internal prototype to avoid an error. */ |
7710 | #ifdef __cplusplus | |
7711 | extern "C" | |
7712 | { | |
7713 | #endif | |
7714 | /* We use char because int might match the return type of a gcc2 | |
7715 | builtin and then its argument prototype would still apply. */ | |
7716 | char $ac_func (); | |
252b5132 RH |
7717 | /* The GNU C library defines this for functions which it implements |
7718 | to always fail with ENOSYS. Some functions are actually named | |
7719 | something starting with __ and the normal name is an alias. */ | |
7720 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7721 | choke me | |
7722 | #else | |
5464f5a1 NN |
7723 | char (*f) () = $ac_func; |
7724 | #endif | |
7725 | #ifdef __cplusplus | |
7726 | } | |
252b5132 RH |
7727 | #endif |
7728 | ||
5464f5a1 NN |
7729 | int |
7730 | main () | |
7731 | { | |
7732 | return f != $ac_func; | |
7733 | ; | |
7734 | return 0; | |
7735 | } | |
7736 | _ACEOF | |
7737 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7738 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7739 | (eval $ac_link) 2>conftest.er1 | |
7740 | ac_status=$? | |
7741 | grep -v '^ *+' conftest.er1 >conftest.err | |
7742 | rm -f conftest.er1 | |
7743 | cat conftest.err >&5 | |
7744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7745 | (exit $ac_status); } && | |
e1fffbe6 AM |
7746 | { ac_try='test -z "$ac_c_werror_flag" |
7747 | || test ! -s conftest.err' | |
5464f5a1 NN |
7748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7749 | (eval $ac_try) 2>&5 | |
7750 | ac_status=$? | |
7751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7752 | (exit $ac_status); }; } && | |
7753 | { ac_try='test -s conftest$ac_exeext' | |
7754 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7755 | (eval $ac_try) 2>&5 | |
7756 | ac_status=$? | |
7757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7758 | (exit $ac_status); }; }; then | |
7759 | eval "$as_ac_var=yes" | |
7760 | else | |
7761 | echo "$as_me: failed program was:" >&5 | |
7762 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7763 | ||
7764 | eval "$as_ac_var=no" | |
7765 | fi | |
7766 | rm -f conftest.err conftest.$ac_objext \ | |
7767 | conftest$ac_exeext conftest.$ac_ext | |
7768 | fi | |
7769 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7770 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7771 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7772 | cat >>confdefs.h <<_ACEOF | |
7773 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7774 | _ACEOF | |
252b5132 | 7775 | |
252b5132 RH |
7776 | fi |
7777 | done | |
7778 | ||
7779 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7780 | set dummy gmsgfmt; ac_word=$2 | |
5464f5a1 NN |
7781 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7782 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7783 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
7784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7785 | else |
5464f5a1 NN |
7786 | case $GMSGFMT in |
7787 | [\\/]* | ?:[\\/]*) | |
252b5132 RH |
7788 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
7789 | ;; | |
252b5132 | 7790 | *) |
5464f5a1 NN |
7791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7792 | for as_dir in $PATH | |
7793 | do | |
7794 | IFS=$as_save_IFS | |
7795 | test -z "$as_dir" && as_dir=. | |
7796 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7797 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7798 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
7799 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7800 | break 2 | |
7801 | fi | |
7802 | done | |
7803 | done | |
7804 | ||
252b5132 RH |
7805 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
7806 | ;; | |
7807 | esac | |
7808 | fi | |
5464f5a1 NN |
7809 | GMSGFMT=$ac_cv_path_GMSGFMT |
7810 | ||
252b5132 | 7811 | if test -n "$GMSGFMT"; then |
5464f5a1 NN |
7812 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
7813 | echo "${ECHO_T}$GMSGFMT" >&6 | |
252b5132 | 7814 | else |
5464f5a1 NN |
7815 | echo "$as_me:$LINENO: result: no" >&5 |
7816 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7817 | fi |
7818 | ||
7819 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7820 | set dummy xgettext; ac_word=$2 | |
5464f5a1 NN |
7821 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7822 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7823 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
7824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7825 | else |
7826 | case "$XGETTEXT" in | |
7827 | /*) | |
7828 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7829 | ;; | |
7830 | *) | |
7831 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7832 | for ac_dir in $PATH; do | |
7833 | test -z "$ac_dir" && ac_dir=. | |
7834 | if test -f $ac_dir/$ac_word; then | |
7835 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7836 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7837 | break | |
7838 | fi | |
7839 | fi | |
7840 | done | |
7841 | IFS="$ac_save_ifs" | |
7842 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7843 | ;; | |
7844 | esac | |
7845 | fi | |
7846 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7847 | if test -n "$XGETTEXT"; then | |
5464f5a1 NN |
7848 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
7849 | echo "${ECHO_T}$XGETTEXT" >&6 | |
252b5132 | 7850 | else |
5464f5a1 NN |
7851 | echo "$as_me:$LINENO: result: no" >&5 |
7852 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7853 | fi |
7854 | ||
5464f5a1 NN |
7855 | cat >conftest.$ac_ext <<_ACEOF |
7856 | /* confdefs.h. */ | |
7857 | _ACEOF | |
7858 | cat confdefs.h >>conftest.$ac_ext | |
7859 | cat >>conftest.$ac_ext <<_ACEOF | |
7860 | /* end confdefs.h. */ | |
252b5132 | 7861 | |
5464f5a1 NN |
7862 | int |
7863 | main () | |
7864 | { | |
252b5132 RH |
7865 | extern int _nl_msg_cat_cntr; |
7866 | return _nl_msg_cat_cntr | |
5464f5a1 NN |
7867 | ; |
7868 | return 0; | |
7869 | } | |
7870 | _ACEOF | |
7871 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7872 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7873 | (eval $ac_link) 2>conftest.er1 | |
7874 | ac_status=$? | |
7875 | grep -v '^ *+' conftest.er1 >conftest.err | |
7876 | rm -f conftest.er1 | |
7877 | cat conftest.err >&5 | |
7878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7879 | (exit $ac_status); } && | |
e1fffbe6 AM |
7880 | { ac_try='test -z "$ac_c_werror_flag" |
7881 | || test ! -s conftest.err' | |
5464f5a1 NN |
7882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7883 | (eval $ac_try) 2>&5 | |
7884 | ac_status=$? | |
7885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7886 | (exit $ac_status); }; } && | |
7887 | { ac_try='test -s conftest$ac_exeext' | |
7888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7889 | (eval $ac_try) 2>&5 | |
7890 | ac_status=$? | |
7891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7892 | (exit $ac_status); }; }; then | |
252b5132 RH |
7893 | CATOBJEXT=.gmo |
7894 | DATADIRNAME=share | |
7895 | else | |
5464f5a1 NN |
7896 | echo "$as_me: failed program was:" >&5 |
7897 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7898 | ||
7899 | CATOBJEXT=.mo | |
252b5132 RH |
7900 | DATADIRNAME=lib |
7901 | fi | |
5464f5a1 NN |
7902 | rm -f conftest.err conftest.$ac_objext \ |
7903 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 RH |
7904 | INSTOBJEXT=.mo |
7905 | fi | |
7906 | fi | |
5464f5a1 | 7907 | |
b3baf5d0 | 7908 | fi |
252b5132 | 7909 | |
6be7c12c | 7910 | |
5464f5a1 NN |
7911 | |
7912 | ||
a53bf506 | 7913 | if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then |
45181ed1 AC |
7914 | # Neither gettext nor catgets in included in the C library. |
7915 | # Fall back on GNU gettext library (assuming it is present). | |
7916 | nls_cv_use_gnu_gettext=yes | |
252b5132 RH |
7917 | fi |
7918 | fi | |
7919 | ||
7920 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
7921 | INTLOBJS="\$(GETTOBJS)" | |
7922 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7923 | set dummy msgfmt; ac_word=$2 | |
5464f5a1 NN |
7924 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7925 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7926 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
7927 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7928 | else |
7929 | case "$MSGFMT" in | |
7930 | /*) | |
7931 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7932 | ;; | |
7933 | *) | |
7934 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7935 | for ac_dir in $PATH; do | |
7936 | test -z "$ac_dir" && ac_dir=. | |
7937 | if test -f $ac_dir/$ac_word; then | |
7938 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7939 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7940 | break | |
7941 | fi | |
7942 | fi | |
7943 | done | |
7944 | IFS="$ac_save_ifs" | |
7945 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
7946 | ;; | |
7947 | esac | |
7948 | fi | |
7949 | MSGFMT="$ac_cv_path_MSGFMT" | |
7950 | if test -n "$MSGFMT"; then | |
5464f5a1 NN |
7951 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
7952 | echo "${ECHO_T}$MSGFMT" >&6 | |
252b5132 | 7953 | else |
5464f5a1 NN |
7954 | echo "$as_me:$LINENO: result: no" >&5 |
7955 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7956 | fi |
7957 | ||
7958 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7959 | set dummy gmsgfmt; ac_word=$2 | |
5464f5a1 NN |
7960 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7961 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7962 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
7963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7964 | else |
5464f5a1 NN |
7965 | case $GMSGFMT in |
7966 | [\\/]* | ?:[\\/]*) | |
252b5132 RH |
7967 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
7968 | ;; | |
252b5132 | 7969 | *) |
5464f5a1 NN |
7970 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7971 | for as_dir in $PATH | |
7972 | do | |
7973 | IFS=$as_save_IFS | |
7974 | test -z "$as_dir" && as_dir=. | |
7975 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7976 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7977 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
7978 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7979 | break 2 | |
7980 | fi | |
7981 | done | |
7982 | done | |
7983 | ||
252b5132 RH |
7984 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
7985 | ;; | |
7986 | esac | |
7987 | fi | |
5464f5a1 NN |
7988 | GMSGFMT=$ac_cv_path_GMSGFMT |
7989 | ||
252b5132 | 7990 | if test -n "$GMSGFMT"; then |
5464f5a1 NN |
7991 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
7992 | echo "${ECHO_T}$GMSGFMT" >&6 | |
252b5132 | 7993 | else |
5464f5a1 NN |
7994 | echo "$as_me:$LINENO: result: no" >&5 |
7995 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7996 | fi |
7997 | ||
7998 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7999 | set dummy xgettext; ac_word=$2 | |
5464f5a1 NN |
8000 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
8001 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8002 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
8003 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
8004 | else |
8005 | case "$XGETTEXT" in | |
8006 | /*) | |
8007 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
8008 | ;; | |
8009 | *) | |
8010 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
8011 | for ac_dir in $PATH; do | |
8012 | test -z "$ac_dir" && ac_dir=. | |
8013 | if test -f $ac_dir/$ac_word; then | |
8014 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
8015 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
8016 | break | |
8017 | fi | |
8018 | fi | |
8019 | done | |
8020 | IFS="$ac_save_ifs" | |
8021 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
8022 | ;; | |
8023 | esac | |
8024 | fi | |
8025 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
8026 | if test -n "$XGETTEXT"; then | |
5464f5a1 NN |
8027 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
8028 | echo "${ECHO_T}$XGETTEXT" >&6 | |
252b5132 | 8029 | else |
5464f5a1 NN |
8030 | echo "$as_me:$LINENO: result: no" >&5 |
8031 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
8032 | fi |
8033 | ||
5464f5a1 | 8034 | |
252b5132 RH |
8035 | USE_INCLUDED_LIBINTL=yes |
8036 | CATOBJEXT=.gmo | |
8037 | INSTOBJEXT=.mo | |
8038 | DATADIRNAME=share | |
8039 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
8040 | INTLLIBS=$INTLDEPS | |
8041 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
8042 | nls_cv_header_intl=libintl.h | |
8043 | nls_cv_header_libgt=libgettext.h | |
8044 | fi | |
8045 | ||
8046 | if test "$XGETTEXT" != ":"; then | |
8047 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
8048 | : ; | |
8049 | else | |
5464f5a1 NN |
8050 | echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5 |
8051 | echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6 | |
252b5132 RH |
8052 | XGETTEXT=":" |
8053 | fi | |
8054 | fi | |
8055 | ||
8056 | # We need to process the po/ directory. | |
8057 | POSUB=po | |
8058 | else | |
8059 | DATADIRNAME=share | |
8060 | nls_cv_header_intl=libintl.h | |
8061 | nls_cv_header_libgt=libgettext.h | |
8062 | fi | |
8063 | ||
8064 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
8065 | # because some of the sources are only built for this goal. | |
8066 | if test "$PACKAGE" = gettext; then | |
8067 | USE_NLS=yes | |
8068 | USE_INCLUDED_LIBINTL=yes | |
8069 | fi | |
8070 | ||
8071 | for lang in $ALL_LINGUAS; do | |
8072 | GMOFILES="$GMOFILES $lang.gmo" | |
8073 | POFILES="$POFILES $lang.po" | |
8074 | done | |
8075 | ||
5464f5a1 NN |
8076 | |
8077 | ||
8078 | ||
8079 | ||
8080 | ||
8081 | ||
8082 | ||
8083 | ||
8084 | ||
8085 | ||
8086 | ||
c46f8c51 AC |
8087 | if test "x$CATOBJEXT" != "x"; then |
8088 | ||
8089 | cat >>confdefs.h <<\_ACEOF | |
8090 | #define ENABLE_NLS 1 | |
8091 | _ACEOF | |
8092 | ||
8093 | fi | |
5464f5a1 | 8094 | |
6be7c12c | 8095 | |
252b5132 RH |
8096 | if test "x$CATOBJEXT" != "x"; then |
8097 | if test "x$ALL_LINGUAS" = "x"; then | |
8098 | LINGUAS= | |
8099 | else | |
5464f5a1 NN |
8100 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
8101 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
252b5132 RH |
8102 | NEW_LINGUAS= |
8103 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
8104 | case "$ALL_LINGUAS" in | |
8105 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
8106 | esac | |
8107 | done | |
8108 | LINGUAS=$NEW_LINGUAS | |
5464f5a1 NN |
8109 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 |
8110 | echo "${ECHO_T}$LINGUAS" >&6 | |
252b5132 RH |
8111 | fi |
8112 | ||
8113 | if test -n "$LINGUAS"; then | |
8114 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
8115 | fi | |
8116 | fi | |
8117 | ||
8118 | if test $ac_cv_header_locale_h = yes; then | |
8119 | INCLUDE_LOCALE_H="#include <locale.h>" | |
8120 | else | |
8121 | INCLUDE_LOCALE_H="\ | |
8122 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
8123 | fi | |
5464f5a1 | 8124 | |
252b5132 RH |
8125 | |
8126 | if test -f $srcdir/po2tbl.sed.in; then | |
8127 | if test "$CATOBJEXT" = ".cat"; then | |
5464f5a1 NN |
8128 | if test "${ac_cv_header_linux_version_h+set}" = set; then |
8129 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
8130 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
8131 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
8132 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8133 | fi | |
8134 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
8135 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
8136 | else | |
8137 | # Is the header compilable? | |
8138 | echo "$as_me:$LINENO: checking linux/version.h usability" >&5 | |
8139 | echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6 | |
8140 | cat >conftest.$ac_ext <<_ACEOF | |
8141 | /* confdefs.h. */ | |
8142 | _ACEOF | |
8143 | cat confdefs.h >>conftest.$ac_ext | |
8144 | cat >>conftest.$ac_ext <<_ACEOF | |
8145 | /* end confdefs.h. */ | |
8146 | $ac_includes_default | |
252b5132 | 8147 | #include <linux/version.h> |
5464f5a1 NN |
8148 | _ACEOF |
8149 | rm -f conftest.$ac_objext | |
8150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8151 | (eval $ac_compile) 2>conftest.er1 | |
8152 | ac_status=$? | |
8153 | grep -v '^ *+' conftest.er1 >conftest.err | |
8154 | rm -f conftest.er1 | |
8155 | cat conftest.err >&5 | |
8156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8157 | (exit $ac_status); } && | |
e1fffbe6 AM |
8158 | { ac_try='test -z "$ac_c_werror_flag" |
8159 | || test ! -s conftest.err' | |
5464f5a1 NN |
8160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8161 | (eval $ac_try) 2>&5 | |
8162 | ac_status=$? | |
8163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8164 | (exit $ac_status); }; } && | |
8165 | { ac_try='test -s conftest.$ac_objext' | |
8166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8167 | (eval $ac_try) 2>&5 | |
8168 | ac_status=$? | |
8169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8170 | (exit $ac_status); }; }; then | |
8171 | ac_header_compiler=yes | |
8172 | else | |
8173 | echo "$as_me: failed program was:" >&5 | |
8174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8175 | ||
8176 | ac_header_compiler=no | |
8177 | fi | |
8178 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8179 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8180 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8181 | ||
8182 | # Is the header present? | |
8183 | echo "$as_me:$LINENO: checking linux/version.h presence" >&5 | |
8184 | echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6 | |
8185 | cat >conftest.$ac_ext <<_ACEOF | |
8186 | /* confdefs.h. */ | |
8187 | _ACEOF | |
8188 | cat confdefs.h >>conftest.$ac_ext | |
8189 | cat >>conftest.$ac_ext <<_ACEOF | |
8190 | /* end confdefs.h. */ | |
8191 | #include <linux/version.h> | |
8192 | _ACEOF | |
8193 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8194 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8195 | ac_status=$? | |
8196 | grep -v '^ *+' conftest.er1 >conftest.err | |
8197 | rm -f conftest.er1 | |
8198 | cat conftest.err >&5 | |
8199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8200 | (exit $ac_status); } >/dev/null; then | |
8201 | if test -s conftest.err; then | |
8202 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8203 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8204 | else | |
8205 | ac_cpp_err= | |
8206 | fi | |
252b5132 | 8207 | else |
5464f5a1 | 8208 | ac_cpp_err=yes |
252b5132 | 8209 | fi |
5464f5a1 NN |
8210 | if test -z "$ac_cpp_err"; then |
8211 | ac_header_preproc=yes | |
8212 | else | |
8213 | echo "$as_me: failed program was:" >&5 | |
8214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8215 | ||
8216 | ac_header_preproc=no | |
8217 | fi | |
8218 | rm -f conftest.err conftest.$ac_ext | |
8219 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8220 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8221 | ||
8222 | # So? What about this header? | |
8223 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8224 | yes:no: ) | |
8225 | { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8226 | echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8227 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5 | |
8228 | echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;} | |
8229 | ac_header_preproc=yes | |
8230 | ;; | |
8231 | no:yes:* ) | |
8232 | { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5 | |
8233 | echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;} | |
8234 | { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5 | |
8235 | echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;} | |
8236 | { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5 | |
8237 | echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;} | |
8238 | { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5 | |
8239 | echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
8240 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 | |
8241 | echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;} | |
8242 | { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5 | |
8243 | echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;} | |
8244 | ( | |
8245 | cat <<\_ASBOX | |
8246 | ## ------------------------------------------ ## | |
8247 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8248 | ## ------------------------------------------ ## | |
8249 | _ASBOX | |
8250 | ) | | |
8251 | sed "s/^/$as_me: WARNING: /" >&2 | |
8252 | ;; | |
8253 | esac | |
8254 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
8255 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
8256 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
8257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8258 | else | |
8259 | ac_cv_header_linux_version_h=$ac_header_preproc | |
8260 | fi | |
8261 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
8262 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
8263 | ||
252b5132 | 8264 | fi |
5464f5a1 | 8265 | if test $ac_cv_header_linux_version_h = yes; then |
252b5132 RH |
8266 | msgformat=linux |
8267 | else | |
5464f5a1 | 8268 | msgformat=xopen |
252b5132 RH |
8269 | fi |
8270 | ||
6be7c12c | 8271 | |
5464f5a1 | 8272 | |
252b5132 RH |
8273 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed |
8274 | fi | |
8275 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
8276 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
8277 | fi | |
8278 | ||
8279 | if test "$PACKAGE" = "gettext"; then | |
8280 | GT_NO="#NO#" | |
8281 | GT_YES= | |
8282 | else | |
8283 | GT_NO= | |
8284 | GT_YES="#YES#" | |
8285 | fi | |
5464f5a1 NN |
8286 | |
8287 | ||
252b5132 RH |
8288 | |
8289 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
5464f5a1 | 8290 | |
252b5132 RH |
8291 | |
8292 | l= | |
5464f5a1 | 8293 | |
252b5132 | 8294 | |
3c3bdf30 | 8295 | if test -f $srcdir/po/POTFILES.in; then |
252b5132 RH |
8296 | test -d po || mkdir po |
8297 | if test "x$srcdir" != "x."; then | |
8298 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
8299 | posrcprefix="$srcdir/" | |
8300 | else | |
8301 | posrcprefix="../$srcdir/" | |
8302 | fi | |
8303 | else | |
8304 | posrcprefix="../" | |
8305 | fi | |
8306 | rm -f po/POTFILES | |
8307 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
8308 | < $srcdir/po/POTFILES.in > po/POTFILES | |
8309 | fi | |
5464f5a1 | 8310 | |
252b5132 RH |
8311 | |
8312 | # Permit host specific settings. | |
8313 | . ${srcdir}/configure.host | |
8314 | ||
6be7c12c | 8315 | |
252b5132 RH |
8316 | # Find a good install program. We prefer a C program (faster), |
8317 | # so one script is as good as another. But avoid the broken or | |
8318 | # incompatible versions: | |
8319 | # SysV /etc/install, /usr/sbin/install | |
8320 | # SunOS /usr/etc/install | |
8321 | # IRIX /sbin/install | |
8322 | # AIX /bin/install | |
5464f5a1 | 8323 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
252b5132 RH |
8324 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
8325 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8326 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5464f5a1 | 8327 | # OS/2's system install, which has a completely different semantic |
252b5132 | 8328 | # ./install, which can be erroneously created by make from ./install.sh. |
5464f5a1 NN |
8329 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
8330 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
252b5132 | 8331 | if test -z "$INSTALL"; then |
5464f5a1 NN |
8332 | if test "${ac_cv_path_install+set}" = set; then |
8333 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 8334 | else |
5464f5a1 NN |
8335 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8336 | for as_dir in $PATH | |
8337 | do | |
8338 | IFS=$as_save_IFS | |
8339 | test -z "$as_dir" && as_dir=. | |
8340 | # Account for people who put trailing slashes in PATH elements. | |
8341 | case $as_dir/ in | |
8342 | ./ | .// | /cC/* | \ | |
8343 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
8344 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
8345 | /usr/ucb/* ) ;; | |
8346 | *) | |
8347 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8348 | # Don't use installbsd from OSF since it installs stuff as root | |
8349 | # by default. | |
8350 | for ac_prog in ginstall scoinst install; do | |
8351 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8352 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
252b5132 | 8353 | if test $ac_prog = install && |
5464f5a1 | 8354 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
8355 | # AIX install. It has an incompatible calling convention. |
8356 | : | |
5464f5a1 NN |
8357 | elif test $ac_prog = install && |
8358 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
8359 | # program-specific install script used by HP pwplus--don't use. | |
8360 | : | |
252b5132 | 8361 | else |
5464f5a1 NN |
8362 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
8363 | break 3 | |
252b5132 RH |
8364 | fi |
8365 | fi | |
8366 | done | |
5464f5a1 NN |
8367 | done |
8368 | ;; | |
8369 | esac | |
8370 | done | |
8371 | ||
252b5132 RH |
8372 | |
8373 | fi | |
8374 | if test "${ac_cv_path_install+set}" = set; then | |
5464f5a1 | 8375 | INSTALL=$ac_cv_path_install |
252b5132 RH |
8376 | else |
8377 | # As a last resort, use the slow shell script. We don't cache a | |
8378 | # path for INSTALL within a source directory, because that will | |
8379 | # break other packages using the cache if that directory is | |
8380 | # removed, or if the path is relative. | |
5464f5a1 | 8381 | INSTALL=$ac_install_sh |
252b5132 RH |
8382 | fi |
8383 | fi | |
5464f5a1 NN |
8384 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
8385 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
8386 | |
8387 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8388 | # It thinks the first close brace ends the variable substitution. | |
8389 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8390 | ||
5464f5a1 | 8391 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
8392 | |
8393 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8394 | ||
6be7c12c | 8395 | |
252b5132 | 8396 | BFD_HOST_64BIT_LONG=0 |
ec317fb1 | 8397 | BFD_HOST_LONG_LONG=0 |
252b5132 RH |
8398 | BFD_HOST_64_BIT_DEFINED=0 |
8399 | BFD_HOST_64_BIT= | |
8400 | BFD_HOST_U_64_BIT= | |
252b5132 | 8401 | |
5464f5a1 NN |
8402 | echo "$as_me:$LINENO: checking for long long" >&5 |
8403 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
8404 | if test "${bfd_cv_has_long_long+set}" = set; then | |
8405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ec317fb1 | 8406 | else |
5464f5a1 NN |
8407 | cat >conftest.$ac_ext <<_ACEOF |
8408 | /* confdefs.h. */ | |
8409 | _ACEOF | |
8410 | cat confdefs.h >>conftest.$ac_ext | |
8411 | cat >>conftest.$ac_ext <<_ACEOF | |
8412 | /* end confdefs.h. */ | |
ec317fb1 | 8413 | |
5464f5a1 NN |
8414 | int |
8415 | main () | |
8416 | { | |
ec317fb1 | 8417 | unsigned long long ll = 18446744073709551615ULL; |
5464f5a1 NN |
8418 | ; |
8419 | return 0; | |
8420 | } | |
8421 | _ACEOF | |
8422 | rm -f conftest.$ac_objext | |
8423 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8424 | (eval $ac_compile) 2>conftest.er1 | |
8425 | ac_status=$? | |
8426 | grep -v '^ *+' conftest.er1 >conftest.err | |
8427 | rm -f conftest.er1 | |
8428 | cat conftest.err >&5 | |
8429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8430 | (exit $ac_status); } && | |
e1fffbe6 AM |
8431 | { ac_try='test -z "$ac_c_werror_flag" |
8432 | || test ! -s conftest.err' | |
5464f5a1 NN |
8433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8434 | (eval $ac_try) 2>&5 | |
8435 | ac_status=$? | |
8436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8437 | (exit $ac_status); }; } && | |
8438 | { ac_try='test -s conftest.$ac_objext' | |
8439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8440 | (eval $ac_try) 2>&5 | |
8441 | ac_status=$? | |
8442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8443 | (exit $ac_status); }; }; then | |
ec317fb1 ILT |
8444 | bfd_cv_has_long_long=yes |
8445 | else | |
5464f5a1 NN |
8446 | echo "$as_me: failed program was:" >&5 |
8447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8448 | ||
8449 | bfd_cv_has_long_long=no | |
ec317fb1 | 8450 | fi |
5464f5a1 | 8451 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ec317fb1 ILT |
8452 | fi |
8453 | ||
5464f5a1 NN |
8454 | echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5 |
8455 | echo "${ECHO_T}$bfd_cv_has_long_long" >&6 | |
ec317fb1 ILT |
8456 | if test $bfd_cv_has_long_long = yes; then |
8457 | BFD_HOST_LONG_LONG=1 | |
2ba49b59 KC |
8458 | echo "$as_me:$LINENO: checking for long long" >&5 |
8459 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
8460 | if test "${ac_cv_type_long_long+set}" = set; then | |
5464f5a1 | 8461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6726e1ea | 8462 | else |
5464f5a1 NN |
8463 | cat >conftest.$ac_ext <<_ACEOF |
8464 | /* confdefs.h. */ | |
8465 | _ACEOF | |
8466 | cat confdefs.h >>conftest.$ac_ext | |
8467 | cat >>conftest.$ac_ext <<_ACEOF | |
8468 | /* end confdefs.h. */ | |
2ba49b59 | 8469 | $ac_includes_default |
5464f5a1 NN |
8470 | int |
8471 | main () | |
8472 | { | |
2ba49b59 KC |
8473 | if ((long long *) 0) |
8474 | return 0; | |
8475 | if (sizeof (long long)) | |
8476 | return 0; | |
5464f5a1 NN |
8477 | ; |
8478 | return 0; | |
8479 | } | |
8480 | _ACEOF | |
8481 | rm -f conftest.$ac_objext | |
8482 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8483 | (eval $ac_compile) 2>conftest.er1 | |
8484 | ac_status=$? | |
8485 | grep -v '^ *+' conftest.er1 >conftest.err | |
8486 | rm -f conftest.er1 | |
8487 | cat conftest.err >&5 | |
8488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8489 | (exit $ac_status); } && | |
e1fffbe6 AM |
8490 | { ac_try='test -z "$ac_c_werror_flag" |
8491 | || test ! -s conftest.err' | |
5464f5a1 NN |
8492 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8493 | (eval $ac_try) 2>&5 | |
8494 | ac_status=$? | |
8495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8496 | (exit $ac_status); }; } && | |
8497 | { ac_try='test -s conftest.$ac_objext' | |
8498 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8499 | (eval $ac_try) 2>&5 | |
8500 | ac_status=$? | |
8501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8502 | (exit $ac_status); }; }; then | |
2ba49b59 | 8503 | ac_cv_type_long_long=yes |
6726e1ea | 8504 | else |
5464f5a1 NN |
8505 | echo "$as_me: failed program was:" >&5 |
8506 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8507 | ||
2ba49b59 | 8508 | ac_cv_type_long_long=no |
6726e1ea | 8509 | fi |
5464f5a1 | 8510 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6726e1ea | 8511 | fi |
2ba49b59 KC |
8512 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
8513 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
6726e1ea | 8514 | |
2ba49b59 KC |
8515 | echo "$as_me:$LINENO: checking size of long long" >&5 |
8516 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
8517 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
5464f5a1 | 8518 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6726e1ea | 8519 | else |
2ba49b59 KC |
8520 | if test "$ac_cv_type_long_long" = yes; then |
8521 | # The cast to unsigned long works around a bug in the HP C Compiler | |
8522 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
8523 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
8524 | # This bug is HP SR number 8606223364. | |
8525 | if test "$cross_compiling" = yes; then | |
8526 | # Depending upon the size, compute the lo and hi bounds. | |
8527 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
8528 | /* confdefs.h. */ |
8529 | _ACEOF | |
8530 | cat confdefs.h >>conftest.$ac_ext | |
8531 | cat >>conftest.$ac_ext <<_ACEOF | |
8532 | /* end confdefs.h. */ | |
2ba49b59 KC |
8533 | $ac_includes_default |
8534 | int | |
8535 | main () | |
8536 | { | |
8537 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
8538 | test_array [0] = 0 | |
6726e1ea | 8539 | |
2ba49b59 KC |
8540 | ; |
8541 | return 0; | |
8542 | } | |
8543 | _ACEOF | |
8544 | rm -f conftest.$ac_objext | |
8545 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8546 | (eval $ac_compile) 2>conftest.er1 | |
8547 | ac_status=$? | |
8548 | grep -v '^ *+' conftest.er1 >conftest.err | |
8549 | rm -f conftest.er1 | |
8550 | cat conftest.err >&5 | |
8551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8552 | (exit $ac_status); } && | |
e1fffbe6 AM |
8553 | { ac_try='test -z "$ac_c_werror_flag" |
8554 | || test ! -s conftest.err' | |
2ba49b59 KC |
8555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8556 | (eval $ac_try) 2>&5 | |
8557 | ac_status=$? | |
8558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8559 | (exit $ac_status); }; } && | |
8560 | { ac_try='test -s conftest.$ac_objext' | |
8561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8562 | (eval $ac_try) 2>&5 | |
8563 | ac_status=$? | |
8564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8565 | (exit $ac_status); }; }; then | |
8566 | ac_lo=0 ac_mid=0 | |
8567 | while :; do | |
8568 | cat >conftest.$ac_ext <<_ACEOF | |
8569 | /* confdefs.h. */ | |
8570 | _ACEOF | |
8571 | cat confdefs.h >>conftest.$ac_ext | |
8572 | cat >>conftest.$ac_ext <<_ACEOF | |
8573 | /* end confdefs.h. */ | |
8574 | $ac_includes_default | |
5464f5a1 NN |
8575 | int |
8576 | main () | |
8577 | { | |
2ba49b59 KC |
8578 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
8579 | test_array [0] = 0 | |
8580 | ||
5464f5a1 NN |
8581 | ; |
8582 | return 0; | |
8583 | } | |
8584 | _ACEOF | |
8585 | rm -f conftest.$ac_objext | |
8586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8587 | (eval $ac_compile) 2>conftest.er1 | |
8588 | ac_status=$? | |
8589 | grep -v '^ *+' conftest.er1 >conftest.err | |
8590 | rm -f conftest.er1 | |
8591 | cat conftest.err >&5 | |
8592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8593 | (exit $ac_status); } && | |
e1fffbe6 AM |
8594 | { ac_try='test -z "$ac_c_werror_flag" |
8595 | || test ! -s conftest.err' | |
5464f5a1 NN |
8596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8597 | (eval $ac_try) 2>&5 | |
8598 | ac_status=$? | |
8599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8600 | (exit $ac_status); }; } && | |
8601 | { ac_try='test -s conftest.$ac_objext' | |
8602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8603 | (eval $ac_try) 2>&5 | |
8604 | ac_status=$? | |
8605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8606 | (exit $ac_status); }; }; then | |
2ba49b59 | 8607 | ac_hi=$ac_mid; break |
6726e1ea | 8608 | else |
5464f5a1 NN |
8609 | echo "$as_me: failed program was:" >&5 |
8610 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8611 | ||
2ba49b59 KC |
8612 | ac_lo=`expr $ac_mid + 1` |
8613 | if test $ac_lo -le $ac_mid; then | |
8614 | ac_lo= ac_hi= | |
8615 | break | |
8616 | fi | |
8617 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
6726e1ea | 8618 | fi |
5464f5a1 | 8619 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2ba49b59 | 8620 | done |
252b5132 | 8621 | else |
2ba49b59 KC |
8622 | echo "$as_me: failed program was:" >&5 |
8623 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5464f5a1 | 8624 | |
5464f5a1 NN |
8625 | cat >conftest.$ac_ext <<_ACEOF |
8626 | /* confdefs.h. */ | |
8627 | _ACEOF | |
8628 | cat confdefs.h >>conftest.$ac_ext | |
8629 | cat >>conftest.$ac_ext <<_ACEOF | |
8630 | /* end confdefs.h. */ | |
8631 | $ac_includes_default | |
2ba49b59 KC |
8632 | int |
8633 | main () | |
8634 | { | |
8635 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
8636 | test_array [0] = 0 | |
8637 | ||
8638 | ; | |
8639 | return 0; | |
8640 | } | |
5464f5a1 NN |
8641 | _ACEOF |
8642 | rm -f conftest.$ac_objext | |
8643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8644 | (eval $ac_compile) 2>conftest.er1 | |
8645 | ac_status=$? | |
8646 | grep -v '^ *+' conftest.er1 >conftest.err | |
8647 | rm -f conftest.er1 | |
8648 | cat conftest.err >&5 | |
8649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8650 | (exit $ac_status); } && | |
e1fffbe6 AM |
8651 | { ac_try='test -z "$ac_c_werror_flag" |
8652 | || test ! -s conftest.err' | |
5464f5a1 NN |
8653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8654 | (eval $ac_try) 2>&5 | |
8655 | ac_status=$? | |
8656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8657 | (exit $ac_status); }; } && | |
8658 | { ac_try='test -s conftest.$ac_objext' | |
8659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8660 | (eval $ac_try) 2>&5 | |
8661 | ac_status=$? | |
8662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8663 | (exit $ac_status); }; }; then | |
2ba49b59 KC |
8664 | ac_hi=-1 ac_mid=-1 |
8665 | while :; do | |
8666 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
8667 | /* confdefs.h. */ |
8668 | _ACEOF | |
8669 | cat confdefs.h >>conftest.$ac_ext | |
8670 | cat >>conftest.$ac_ext <<_ACEOF | |
8671 | /* end confdefs.h. */ | |
2ba49b59 KC |
8672 | $ac_includes_default |
8673 | int | |
8674 | main () | |
8675 | { | |
8676 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
8677 | test_array [0] = 0 | |
8678 | ||
8679 | ; | |
8680 | return 0; | |
8681 | } | |
5464f5a1 | 8682 | _ACEOF |
2ba49b59 KC |
8683 | rm -f conftest.$ac_objext |
8684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8685 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
8686 | ac_status=$? |
8687 | grep -v '^ *+' conftest.er1 >conftest.err | |
8688 | rm -f conftest.er1 | |
8689 | cat conftest.err >&5 | |
8690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2ba49b59 | 8691 | (exit $ac_status); } && |
e1fffbe6 AM |
8692 | { ac_try='test -z "$ac_c_werror_flag" |
8693 | || test ! -s conftest.err' | |
2ba49b59 KC |
8694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8695 | (eval $ac_try) 2>&5 | |
8696 | ac_status=$? | |
8697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8698 | (exit $ac_status); }; } && | |
8699 | { ac_try='test -s conftest.$ac_objext' | |
8700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8701 | (eval $ac_try) 2>&5 | |
8702 | ac_status=$? | |
8703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8704 | (exit $ac_status); }; }; then | |
8705 | ac_lo=$ac_mid; break | |
252b5132 | 8706 | else |
2ba49b59 KC |
8707 | echo "$as_me: failed program was:" >&5 |
8708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8709 | ||
8710 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
8711 | if test $ac_mid -le $ac_hi; then | |
8712 | ac_lo= ac_hi= | |
8713 | break | |
8714 | fi | |
8715 | ac_mid=`expr 2 '*' $ac_mid` | |
252b5132 | 8716 | fi |
2ba49b59 KC |
8717 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8718 | done | |
5464f5a1 NN |
8719 | else |
8720 | echo "$as_me: failed program was:" >&5 | |
8721 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8722 | ||
2ba49b59 | 8723 | ac_lo= ac_hi= |
252b5132 | 8724 | fi |
2ba49b59 KC |
8725 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8726 | fi | |
8727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8728 | # Binary search between lo and hi bounds. | |
8729 | while test "x$ac_lo" != "x$ac_hi"; do | |
8730 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
8731 | cat >conftest.$ac_ext <<_ACEOF | |
8732 | /* confdefs.h. */ | |
8733 | _ACEOF | |
8734 | cat confdefs.h >>conftest.$ac_ext | |
8735 | cat >>conftest.$ac_ext <<_ACEOF | |
8736 | /* end confdefs.h. */ | |
8737 | $ac_includes_default | |
8738 | int | |
8739 | main () | |
8740 | { | |
8741 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
8742 | test_array [0] = 0 | |
5464f5a1 | 8743 | |
2ba49b59 KC |
8744 | ; |
8745 | return 0; | |
8746 | } | |
5464f5a1 NN |
8747 | _ACEOF |
8748 | rm -f conftest.$ac_objext | |
8749 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8750 | (eval $ac_compile) 2>conftest.er1 | |
8751 | ac_status=$? | |
8752 | grep -v '^ *+' conftest.er1 >conftest.err | |
8753 | rm -f conftest.er1 | |
8754 | cat conftest.err >&5 | |
8755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8756 | (exit $ac_status); } && | |
e1fffbe6 AM |
8757 | { ac_try='test -z "$ac_c_werror_flag" |
8758 | || test ! -s conftest.err' | |
5464f5a1 NN |
8759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8760 | (eval $ac_try) 2>&5 | |
8761 | ac_status=$? | |
8762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8763 | (exit $ac_status); }; } && | |
8764 | { ac_try='test -s conftest.$ac_objext' | |
8765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8766 | (eval $ac_try) 2>&5 | |
8767 | ac_status=$? | |
8768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8769 | (exit $ac_status); }; }; then | |
2ba49b59 | 8770 | ac_hi=$ac_mid |
5464f5a1 NN |
8771 | else |
8772 | echo "$as_me: failed program was:" >&5 | |
8773 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8774 | ||
2ba49b59 | 8775 | ac_lo=`expr '(' $ac_mid ')' + 1` |
5464f5a1 NN |
8776 | fi |
8777 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2ba49b59 KC |
8778 | done |
8779 | case $ac_lo in | |
8780 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
8781 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
8782 | See \`config.log' for more details." >&5 | |
8783 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
8784 | See \`config.log' for more details." >&2;} | |
8785 | { (exit 1); exit 1; }; } ;; | |
8786 | esac | |
8787 | else | |
8788 | if test "$cross_compiling" = yes; then | |
e1fffbe6 AM |
8789 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
8790 | See \`config.log' for more details." >&5 | |
8791 | echo "$as_me: error: cannot run test program while cross compiling | |
8792 | See \`config.log' for more details." >&2;} | |
2ba49b59 KC |
8793 | { (exit 1); exit 1; }; } |
8794 | else | |
8795 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
8796 | /* confdefs.h. */ |
8797 | _ACEOF | |
8798 | cat confdefs.h >>conftest.$ac_ext | |
8799 | cat >>conftest.$ac_ext <<_ACEOF | |
8800 | /* end confdefs.h. */ | |
2ba49b59 KC |
8801 | $ac_includes_default |
8802 | long longval () { return (long) (sizeof (long long)); } | |
8803 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
8804 | #include <stdio.h> | |
8805 | #include <stdlib.h> | |
8806 | int | |
8807 | main () | |
8808 | { | |
8809 | ||
8810 | FILE *f = fopen ("conftest.val", "w"); | |
8811 | if (! f) | |
8812 | exit (1); | |
8813 | if (((long) (sizeof (long long))) < 0) | |
8814 | { | |
8815 | long i = longval (); | |
8816 | if (i != ((long) (sizeof (long long)))) | |
8817 | exit (1); | |
8818 | fprintf (f, "%ld\n", i); | |
8819 | } | |
8820 | else | |
8821 | { | |
8822 | unsigned long i = ulongval (); | |
8823 | if (i != ((long) (sizeof (long long)))) | |
8824 | exit (1); | |
8825 | fprintf (f, "%lu\n", i); | |
8826 | } | |
8827 | exit (ferror (f) || fclose (f) != 0); | |
8828 | ||
8829 | ; | |
8830 | return 0; | |
8831 | } | |
5464f5a1 | 8832 | _ACEOF |
2ba49b59 KC |
8833 | rm -f conftest$ac_exeext |
8834 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8835 | (eval $ac_link) 2>&5 | |
5464f5a1 | 8836 | ac_status=$? |
5464f5a1 | 8837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2ba49b59 KC |
8838 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
8839 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8840 | (eval $ac_try) 2>&5 | |
8841 | ac_status=$? | |
8842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8843 | (exit $ac_status); }; }; then | |
8844 | ac_cv_sizeof_long_long=`cat conftest.val` | |
5464f5a1 | 8845 | else |
2ba49b59 KC |
8846 | echo "$as_me: program exited with status $ac_status" >&5 |
8847 | echo "$as_me: failed program was:" >&5 | |
5464f5a1 NN |
8848 | sed 's/^/| /' conftest.$ac_ext >&5 |
8849 | ||
2ba49b59 KC |
8850 | ( exit $ac_status ) |
8851 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
8852 | See \`config.log' for more details." >&5 | |
8853 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
8854 | See \`config.log' for more details." >&2;} | |
8855 | { (exit 1); exit 1; }; } | |
252b5132 | 8856 | fi |
2ba49b59 KC |
8857 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
8858 | fi | |
8859 | fi | |
8860 | rm -f conftest.val | |
6be7c12c | 8861 | else |
2ba49b59 | 8862 | ac_cv_sizeof_long_long=0 |
5464f5a1 | 8863 | fi |
5464f5a1 | 8864 | fi |
2ba49b59 KC |
8865 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
8866 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
8867 | cat >>confdefs.h <<_ACEOF | |
8868 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
5464f5a1 NN |
8869 | _ACEOF |
8870 | ||
5464f5a1 | 8871 | |
2ba49b59 | 8872 | fi |
252b5132 | 8873 | |
2ba49b59 KC |
8874 | echo "$as_me:$LINENO: checking for long" >&5 |
8875 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
8876 | if test "${ac_cv_type_long+set}" = set; then | |
5464f5a1 NN |
8877 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8878 | else | |
8879 | cat >conftest.$ac_ext <<_ACEOF | |
8880 | /* confdefs.h. */ | |
8881 | _ACEOF | |
8882 | cat confdefs.h >>conftest.$ac_ext | |
8883 | cat >>conftest.$ac_ext <<_ACEOF | |
8884 | /* end confdefs.h. */ | |
2ba49b59 | 8885 | $ac_includes_default |
5464f5a1 NN |
8886 | int |
8887 | main () | |
8888 | { | |
2ba49b59 KC |
8889 | if ((long *) 0) |
8890 | return 0; | |
8891 | if (sizeof (long)) | |
8892 | return 0; | |
5464f5a1 NN |
8893 | ; |
8894 | return 0; | |
8895 | } | |
8896 | _ACEOF | |
8897 | rm -f conftest.$ac_objext | |
8898 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8899 | (eval $ac_compile) 2>conftest.er1 | |
8900 | ac_status=$? | |
8901 | grep -v '^ *+' conftest.er1 >conftest.err | |
8902 | rm -f conftest.er1 | |
8903 | cat conftest.err >&5 | |
8904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8905 | (exit $ac_status); } && | |
e1fffbe6 AM |
8906 | { ac_try='test -z "$ac_c_werror_flag" |
8907 | || test ! -s conftest.err' | |
5464f5a1 NN |
8908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8909 | (eval $ac_try) 2>&5 | |
8910 | ac_status=$? | |
8911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8912 | (exit $ac_status); }; } && | |
8913 | { ac_try='test -s conftest.$ac_objext' | |
8914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8915 | (eval $ac_try) 2>&5 | |
8916 | ac_status=$? | |
8917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8918 | (exit $ac_status); }; }; then | |
2ba49b59 | 8919 | ac_cv_type_long=yes |
252b5132 | 8920 | else |
5464f5a1 NN |
8921 | echo "$as_me: failed program was:" >&5 |
8922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8923 | ||
2ba49b59 | 8924 | ac_cv_type_long=no |
252b5132 | 8925 | fi |
5464f5a1 | 8926 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 8927 | fi |
2ba49b59 KC |
8928 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
8929 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
5464f5a1 | 8930 | |
2ba49b59 KC |
8931 | echo "$as_me:$LINENO: checking size of long" >&5 |
8932 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
8933 | if test "${ac_cv_sizeof_long+set}" = set; then | |
5464f5a1 NN |
8934 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8935 | else | |
2ba49b59 KC |
8936 | if test "$ac_cv_type_long" = yes; then |
8937 | # The cast to unsigned long works around a bug in the HP C Compiler | |
8938 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
8939 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
8940 | # This bug is HP SR number 8606223364. | |
8941 | if test "$cross_compiling" = yes; then | |
8942 | # Depending upon the size, compute the lo and hi bounds. | |
8943 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
8944 | /* confdefs.h. */ |
8945 | _ACEOF | |
8946 | cat confdefs.h >>conftest.$ac_ext | |
8947 | cat >>conftest.$ac_ext <<_ACEOF | |
8948 | /* end confdefs.h. */ | |
2ba49b59 | 8949 | $ac_includes_default |
5464f5a1 NN |
8950 | int |
8951 | main () | |
8952 | { | |
2ba49b59 KC |
8953 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
8954 | test_array [0] = 0 | |
8955 | ||
5464f5a1 NN |
8956 | ; |
8957 | return 0; | |
8958 | } | |
8959 | _ACEOF | |
8960 | rm -f conftest.$ac_objext | |
8961 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8962 | (eval $ac_compile) 2>conftest.er1 | |
8963 | ac_status=$? | |
8964 | grep -v '^ *+' conftest.er1 >conftest.err | |
8965 | rm -f conftest.er1 | |
8966 | cat conftest.err >&5 | |
8967 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8968 | (exit $ac_status); } && | |
e1fffbe6 AM |
8969 | { ac_try='test -z "$ac_c_werror_flag" |
8970 | || test ! -s conftest.err' | |
5464f5a1 NN |
8971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8972 | (eval $ac_try) 2>&5 | |
8973 | ac_status=$? | |
8974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8975 | (exit $ac_status); }; } && | |
8976 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
2ba49b59 KC |
8982 | ac_lo=0 ac_mid=0 |
8983 | while :; do | |
8984 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
8985 | /* confdefs.h. */ |
8986 | _ACEOF | |
8987 | cat confdefs.h >>conftest.$ac_ext | |
8988 | cat >>conftest.$ac_ext <<_ACEOF | |
8989 | /* end confdefs.h. */ | |
2ba49b59 | 8990 | $ac_includes_default |
5464f5a1 NN |
8991 | int |
8992 | main () | |
8993 | { | |
2ba49b59 KC |
8994 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
8995 | test_array [0] = 0 | |
8996 | ||
5464f5a1 NN |
8997 | ; |
8998 | return 0; | |
8999 | } | |
9000 | _ACEOF | |
2ba49b59 KC |
9001 | rm -f conftest.$ac_objext |
9002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9003 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
9004 | ac_status=$? |
9005 | grep -v '^ *+' conftest.er1 >conftest.err | |
9006 | rm -f conftest.er1 | |
9007 | cat conftest.err >&5 | |
9008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9009 | (exit $ac_status); } && | |
e1fffbe6 AM |
9010 | { ac_try='test -z "$ac_c_werror_flag" |
9011 | || test ! -s conftest.err' | |
5464f5a1 NN |
9012 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9013 | (eval $ac_try) 2>&5 | |
9014 | ac_status=$? | |
9015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9016 | (exit $ac_status); }; } && | |
2ba49b59 | 9017 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
9018 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9019 | (eval $ac_try) 2>&5 | |
9020 | ac_status=$? | |
9021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9022 | (exit $ac_status); }; }; then | |
2ba49b59 | 9023 | ac_hi=$ac_mid; break |
5464f5a1 NN |
9024 | else |
9025 | echo "$as_me: failed program was:" >&5 | |
9026 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9027 | ||
2ba49b59 KC |
9028 | ac_lo=`expr $ac_mid + 1` |
9029 | if test $ac_lo -le $ac_mid; then | |
9030 | ac_lo= ac_hi= | |
9031 | break | |
9032 | fi | |
9033 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
5464f5a1 | 9034 | fi |
2ba49b59 KC |
9035 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9036 | done | |
9037 | else | |
9038 | echo "$as_me: failed program was:" >&5 | |
9039 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9040 | ||
9041 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
9042 | /* confdefs.h. */ |
9043 | _ACEOF | |
9044 | cat confdefs.h >>conftest.$ac_ext | |
9045 | cat >>conftest.$ac_ext <<_ACEOF | |
9046 | /* end confdefs.h. */ | |
2ba49b59 | 9047 | $ac_includes_default |
5464f5a1 NN |
9048 | int |
9049 | main () | |
9050 | { | |
2ba49b59 KC |
9051 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
9052 | test_array [0] = 0 | |
9053 | ||
5464f5a1 NN |
9054 | ; |
9055 | return 0; | |
9056 | } | |
9057 | _ACEOF | |
2ba49b59 KC |
9058 | rm -f conftest.$ac_objext |
9059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9060 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
9061 | ac_status=$? |
9062 | grep -v '^ *+' conftest.er1 >conftest.err | |
9063 | rm -f conftest.er1 | |
9064 | cat conftest.err >&5 | |
9065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9066 | (exit $ac_status); } && | |
e1fffbe6 AM |
9067 | { ac_try='test -z "$ac_c_werror_flag" |
9068 | || test ! -s conftest.err' | |
5464f5a1 NN |
9069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9070 | (eval $ac_try) 2>&5 | |
9071 | ac_status=$? | |
9072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9073 | (exit $ac_status); }; } && | |
2ba49b59 | 9074 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
9075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9076 | (eval $ac_try) 2>&5 | |
9077 | ac_status=$? | |
9078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9079 | (exit $ac_status); }; }; then | |
2ba49b59 KC |
9080 | ac_hi=-1 ac_mid=-1 |
9081 | while :; do | |
9082 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
9083 | /* confdefs.h. */ |
9084 | _ACEOF | |
9085 | cat confdefs.h >>conftest.$ac_ext | |
9086 | cat >>conftest.$ac_ext <<_ACEOF | |
9087 | /* end confdefs.h. */ | |
2ba49b59 | 9088 | $ac_includes_default |
5464f5a1 NN |
9089 | int |
9090 | main () | |
9091 | { | |
2ba49b59 KC |
9092 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
9093 | test_array [0] = 0 | |
9094 | ||
5464f5a1 NN |
9095 | ; |
9096 | return 0; | |
9097 | } | |
9098 | _ACEOF | |
2ba49b59 KC |
9099 | rm -f conftest.$ac_objext |
9100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9101 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
9102 | ac_status=$? |
9103 | grep -v '^ *+' conftest.er1 >conftest.err | |
9104 | rm -f conftest.er1 | |
9105 | cat conftest.err >&5 | |
9106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9107 | (exit $ac_status); } && | |
e1fffbe6 AM |
9108 | { ac_try='test -z "$ac_c_werror_flag" |
9109 | || test ! -s conftest.err' | |
5464f5a1 NN |
9110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9111 | (eval $ac_try) 2>&5 | |
9112 | ac_status=$? | |
9113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9114 | (exit $ac_status); }; } && | |
2ba49b59 | 9115 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
9116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9117 | (eval $ac_try) 2>&5 | |
9118 | ac_status=$? | |
9119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9120 | (exit $ac_status); }; }; then | |
2ba49b59 | 9121 | ac_lo=$ac_mid; break |
5464f5a1 NN |
9122 | else |
9123 | echo "$as_me: failed program was:" >&5 | |
9124 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9125 | ||
2ba49b59 KC |
9126 | ac_hi=`expr '(' $ac_mid ')' - 1` |
9127 | if test $ac_mid -le $ac_hi; then | |
9128 | ac_lo= ac_hi= | |
9129 | break | |
9130 | fi | |
9131 | ac_mid=`expr 2 '*' $ac_mid` | |
5464f5a1 | 9132 | fi |
2ba49b59 KC |
9133 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9134 | done | |
9135 | else | |
9136 | echo "$as_me: failed program was:" >&5 | |
9137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9138 | ||
9139 | ac_lo= ac_hi= | |
9140 | fi | |
9141 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9142 | fi | |
9143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9144 | # Binary search between lo and hi bounds. | |
9145 | while test "x$ac_lo" != "x$ac_hi"; do | |
9146 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
9147 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
9148 | /* confdefs.h. */ |
9149 | _ACEOF | |
9150 | cat confdefs.h >>conftest.$ac_ext | |
9151 | cat >>conftest.$ac_ext <<_ACEOF | |
9152 | /* end confdefs.h. */ | |
2ba49b59 | 9153 | $ac_includes_default |
5464f5a1 NN |
9154 | int |
9155 | main () | |
9156 | { | |
2ba49b59 KC |
9157 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
9158 | test_array [0] = 0 | |
9159 | ||
5464f5a1 NN |
9160 | ; |
9161 | return 0; | |
9162 | } | |
9163 | _ACEOF | |
2ba49b59 KC |
9164 | rm -f conftest.$ac_objext |
9165 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9166 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
9167 | ac_status=$? |
9168 | grep -v '^ *+' conftest.er1 >conftest.err | |
9169 | rm -f conftest.er1 | |
9170 | cat conftest.err >&5 | |
9171 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9172 | (exit $ac_status); } && | |
e1fffbe6 AM |
9173 | { ac_try='test -z "$ac_c_werror_flag" |
9174 | || test ! -s conftest.err' | |
5464f5a1 NN |
9175 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9176 | (eval $ac_try) 2>&5 | |
9177 | ac_status=$? | |
9178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9179 | (exit $ac_status); }; } && | |
2ba49b59 | 9180 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
9181 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9182 | (eval $ac_try) 2>&5 | |
9183 | ac_status=$? | |
9184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9185 | (exit $ac_status); }; }; then | |
2ba49b59 | 9186 | ac_hi=$ac_mid |
5464f5a1 NN |
9187 | else |
9188 | echo "$as_me: failed program was:" >&5 | |
9189 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9190 | ||
2ba49b59 | 9191 | ac_lo=`expr '(' $ac_mid ')' + 1` |
5464f5a1 | 9192 | fi |
2ba49b59 KC |
9193 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
9194 | done | |
9195 | case $ac_lo in | |
9196 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
9197 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
9198 | See \`config.log' for more details." >&5 | |
9199 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
9200 | See \`config.log' for more details." >&2;} | |
9201 | { (exit 1); exit 1; }; } ;; | |
9202 | esac | |
9203 | else | |
9204 | if test "$cross_compiling" = yes; then | |
e1fffbe6 AM |
9205 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
9206 | See \`config.log' for more details." >&5 | |
9207 | echo "$as_me: error: cannot run test program while cross compiling | |
9208 | See \`config.log' for more details." >&2;} | |
2ba49b59 | 9209 | { (exit 1); exit 1; }; } |
2e0fbf77 JW |
9210 | else |
9211 | cat >conftest.$ac_ext <<_ACEOF | |
9212 | /* confdefs.h. */ | |
9213 | _ACEOF | |
9214 | cat confdefs.h >>conftest.$ac_ext | |
9215 | cat >>conftest.$ac_ext <<_ACEOF | |
9216 | /* end confdefs.h. */ | |
2ba49b59 KC |
9217 | $ac_includes_default |
9218 | long longval () { return (long) (sizeof (long)); } | |
9219 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
9220 | #include <stdio.h> | |
9221 | #include <stdlib.h> | |
2e0fbf77 JW |
9222 | int |
9223 | main () | |
9224 | { | |
9225 | ||
2ba49b59 KC |
9226 | FILE *f = fopen ("conftest.val", "w"); |
9227 | if (! f) | |
9228 | exit (1); | |
9229 | if (((long) (sizeof (long))) < 0) | |
9230 | { | |
9231 | long i = longval (); | |
9232 | if (i != ((long) (sizeof (long)))) | |
9233 | exit (1); | |
9234 | fprintf (f, "%ld\n", i); | |
9235 | } | |
9236 | else | |
9237 | { | |
9238 | unsigned long i = ulongval (); | |
9239 | if (i != ((long) (sizeof (long)))) | |
9240 | exit (1); | |
9241 | fprintf (f, "%lu\n", i); | |
9242 | } | |
9243 | exit (ferror (f) || fclose (f) != 0); | |
9244 | ||
2e0fbf77 JW |
9245 | ; |
9246 | return 0; | |
9247 | } | |
9248 | _ACEOF | |
2ba49b59 KC |
9249 | rm -f conftest$ac_exeext |
9250 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9251 | (eval $ac_link) 2>&5 | |
2e0fbf77 JW |
9252 | ac_status=$? |
9253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2ba49b59 | 9254 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
2e0fbf77 JW |
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 | |
2ba49b59 | 9260 | ac_cv_sizeof_long=`cat conftest.val` |
2e0fbf77 | 9261 | else |
2ba49b59 KC |
9262 | echo "$as_me: program exited with status $ac_status" >&5 |
9263 | echo "$as_me: failed program was:" >&5 | |
2e0fbf77 JW |
9264 | sed 's/^/| /' conftest.$ac_ext >&5 |
9265 | ||
2ba49b59 KC |
9266 | ( exit $ac_status ) |
9267 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
9268 | See \`config.log' for more details." >&5 | |
9269 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
9270 | See \`config.log' for more details." >&2;} | |
9271 | { (exit 1); exit 1; }; } | |
2e0fbf77 | 9272 | fi |
2ba49b59 | 9273 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
2e0fbf77 | 9274 | fi |
2ba49b59 KC |
9275 | fi |
9276 | rm -f conftest.val | |
9277 | else | |
9278 | ac_cv_sizeof_long=0 | |
9279 | fi | |
9280 | fi | |
9281 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
9282 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
9283 | cat >>confdefs.h <<_ACEOF | |
9284 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
9285 | _ACEOF | |
9286 | ||
9287 | ||
9288 | if test "x${ac_cv_sizeof_long}" = "x8"; then | |
9289 | host64=true | |
9290 | BFD_HOST_64BIT_LONG=1 | |
9291 | test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long" | |
9292 | test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long" | |
9293 | elif test "x${ac_cv_sizeof_long_long}" = "x8"; then | |
9294 | test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long" | |
9295 | test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long" | |
9296 | fi | |
9297 | ||
9298 | if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then | |
9299 | BFD_HOST_64_BIT_DEFINED=1 | |
9300 | BFD_HOST_64_BIT="${HOST_64BIT_TYPE}" | |
9301 | BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}" | |
9302 | fi | |
9303 | ||
9304 | ||
9305 | ||
9306 | ||
9307 | ||
9308 | ||
9309 | ||
9310 | # Put a plausible default for CC_FOR_BUILD in Makefile. | |
9311 | if test -z "$CC_FOR_BUILD"; then | |
9312 | if test "x$cross_compiling" = "xno"; then | |
9313 | CC_FOR_BUILD='$(CC)' | |
9314 | else | |
9315 | CC_FOR_BUILD=gcc | |
9316 | fi | |
9317 | fi | |
9318 | ||
9319 | # Also set EXEEXT_FOR_BUILD. | |
9320 | if test "x$cross_compiling" = "xno"; then | |
9321 | EXEEXT_FOR_BUILD='$(EXEEXT)' | |
9322 | else | |
9323 | echo "$as_me:$LINENO: checking for build system executable suffix" >&5 | |
9324 | echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6 | |
9325 | if test "${bfd_cv_build_exeext+set}" = set; then | |
9326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9327 | else | |
9328 | rm -f conftest* | |
9329 | echo 'int main () { return 0; }' > conftest.c | |
9330 | bfd_cv_build_exeext= | |
9331 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 | |
9332 | for file in conftest.*; do | |
9333 | case $file in | |
9334 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
9335 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; | |
9336 | esac | |
9337 | done | |
9338 | rm -f conftest* | |
9339 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no | |
9340 | fi | |
9341 | echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5 | |
9342 | echo "${ECHO_T}$bfd_cv_build_exeext" >&6 | |
9343 | EXEEXT_FOR_BUILD="" | |
9344 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} | |
9345 | fi | |
9346 | ||
9347 | ||
9348 | ||
9349 | ||
9350 | ||
9351 | ||
9352 | ||
9353 | ||
9354 | for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h | |
9355 | do | |
9356 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9357 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9358 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9359 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9360 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9362 | fi | |
9363 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9364 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9365 | else | |
9366 | # Is the header compilable? | |
9367 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9368 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9369 | cat >conftest.$ac_ext <<_ACEOF | |
9370 | /* confdefs.h. */ | |
9371 | _ACEOF | |
9372 | cat confdefs.h >>conftest.$ac_ext | |
9373 | cat >>conftest.$ac_ext <<_ACEOF | |
9374 | /* end confdefs.h. */ | |
9375 | $ac_includes_default | |
9376 | #include <$ac_header> | |
9377 | _ACEOF | |
9378 | rm -f conftest.$ac_objext | |
9379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9380 | (eval $ac_compile) 2>conftest.er1 | |
9381 | ac_status=$? | |
9382 | grep -v '^ *+' conftest.er1 >conftest.err | |
9383 | rm -f conftest.er1 | |
9384 | cat conftest.err >&5 | |
9385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9386 | (exit $ac_status); } && | |
e1fffbe6 AM |
9387 | { ac_try='test -z "$ac_c_werror_flag" |
9388 | || test ! -s conftest.err' | |
2ba49b59 KC |
9389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9390 | (eval $ac_try) 2>&5 | |
9391 | ac_status=$? | |
9392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9393 | (exit $ac_status); }; } && | |
9394 | { ac_try='test -s conftest.$ac_objext' | |
9395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9396 | (eval $ac_try) 2>&5 | |
9397 | ac_status=$? | |
9398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9399 | (exit $ac_status); }; }; then | |
9400 | ac_header_compiler=yes | |
9401 | else | |
9402 | echo "$as_me: failed program was:" >&5 | |
9403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9404 | ||
9405 | ac_header_compiler=no | |
9406 | fi | |
9407 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9408 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9409 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9410 | ||
9411 | # Is the header present? | |
9412 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9413 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9414 | cat >conftest.$ac_ext <<_ACEOF | |
9415 | /* confdefs.h. */ | |
9416 | _ACEOF | |
9417 | cat confdefs.h >>conftest.$ac_ext | |
9418 | cat >>conftest.$ac_ext <<_ACEOF | |
9419 | /* end confdefs.h. */ | |
9420 | #include <$ac_header> | |
9421 | _ACEOF | |
9422 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9423 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9424 | ac_status=$? | |
9425 | grep -v '^ *+' conftest.er1 >conftest.err | |
9426 | rm -f conftest.er1 | |
9427 | cat conftest.err >&5 | |
9428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9429 | (exit $ac_status); } >/dev/null; then | |
9430 | if test -s conftest.err; then | |
9431 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9432 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9433 | else | |
9434 | ac_cpp_err= | |
9435 | fi | |
9436 | else | |
9437 | ac_cpp_err=yes | |
9438 | fi | |
9439 | if test -z "$ac_cpp_err"; then | |
9440 | ac_header_preproc=yes | |
9441 | else | |
9442 | echo "$as_me: failed program was:" >&5 | |
9443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9444 | ||
9445 | ac_header_preproc=no | |
9446 | fi | |
9447 | rm -f conftest.err conftest.$ac_ext | |
9448 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9449 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9450 | ||
9451 | # So? What about this header? | |
9452 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9453 | yes:no: ) | |
9454 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9455 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9456 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9457 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9458 | ac_header_preproc=yes | |
9459 | ;; | |
9460 | no:yes:* ) | |
9461 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9462 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9463 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9464 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9465 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9466 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9467 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9468 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9469 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9470 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9471 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9472 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9473 | ( | |
9474 | cat <<\_ASBOX | |
9475 | ## ------------------------------------------ ## | |
9476 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9477 | ## ------------------------------------------ ## | |
9478 | _ASBOX | |
9479 | ) | | |
9480 | sed "s/^/$as_me: WARNING: /" >&2 | |
9481 | ;; | |
9482 | esac | |
9483 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9484 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9485 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9487 | else | |
9488 | eval "$as_ac_Header=\$ac_header_preproc" | |
9489 | fi | |
9490 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9491 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9492 | ||
9493 | fi | |
9494 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9495 | cat >>confdefs.h <<_ACEOF | |
9496 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9497 | _ACEOF | |
9498 | ||
9499 | fi | |
9500 | ||
9501 | done | |
9502 | ||
9503 | ||
9504 | ||
9505 | ||
9506 | for ac_header in fcntl.h sys/file.h sys/time.h | |
9507 | do | |
9508 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
9509 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9510 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9511 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9512 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9514 | fi | |
9515 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9516 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9517 | else | |
9518 | # Is the header compilable? | |
9519 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
9520 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
9521 | cat >conftest.$ac_ext <<_ACEOF | |
9522 | /* confdefs.h. */ | |
9523 | _ACEOF | |
9524 | cat confdefs.h >>conftest.$ac_ext | |
9525 | cat >>conftest.$ac_ext <<_ACEOF | |
9526 | /* end confdefs.h. */ | |
9527 | $ac_includes_default | |
9528 | #include <$ac_header> | |
9529 | _ACEOF | |
9530 | rm -f conftest.$ac_objext | |
9531 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9532 | (eval $ac_compile) 2>conftest.er1 | |
9533 | ac_status=$? | |
9534 | grep -v '^ *+' conftest.er1 >conftest.err | |
9535 | rm -f conftest.er1 | |
9536 | cat conftest.err >&5 | |
9537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9538 | (exit $ac_status); } && | |
e1fffbe6 AM |
9539 | { ac_try='test -z "$ac_c_werror_flag" |
9540 | || test ! -s conftest.err' | |
2ba49b59 KC |
9541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9542 | (eval $ac_try) 2>&5 | |
9543 | ac_status=$? | |
9544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9545 | (exit $ac_status); }; } && | |
9546 | { ac_try='test -s conftest.$ac_objext' | |
9547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9548 | (eval $ac_try) 2>&5 | |
9549 | ac_status=$? | |
9550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9551 | (exit $ac_status); }; }; then | |
9552 | ac_header_compiler=yes | |
9553 | else | |
9554 | echo "$as_me: failed program was:" >&5 | |
9555 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9556 | ||
9557 | ac_header_compiler=no | |
9558 | fi | |
9559 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9560 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
9561 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
9562 | ||
9563 | # Is the header present? | |
9564 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
9565 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
9566 | cat >conftest.$ac_ext <<_ACEOF | |
9567 | /* confdefs.h. */ | |
9568 | _ACEOF | |
9569 | cat confdefs.h >>conftest.$ac_ext | |
9570 | cat >>conftest.$ac_ext <<_ACEOF | |
9571 | /* end confdefs.h. */ | |
9572 | #include <$ac_header> | |
9573 | _ACEOF | |
9574 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
9575 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
9576 | ac_status=$? | |
9577 | grep -v '^ *+' conftest.er1 >conftest.err | |
9578 | rm -f conftest.er1 | |
9579 | cat conftest.err >&5 | |
9580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9581 | (exit $ac_status); } >/dev/null; then | |
9582 | if test -s conftest.err; then | |
9583 | ac_cpp_err=$ac_c_preproc_warn_flag | |
9584 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
9585 | else | |
9586 | ac_cpp_err= | |
9587 | fi | |
9588 | else | |
9589 | ac_cpp_err=yes | |
9590 | fi | |
9591 | if test -z "$ac_cpp_err"; then | |
9592 | ac_header_preproc=yes | |
9593 | else | |
9594 | echo "$as_me: failed program was:" >&5 | |
9595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9596 | ||
9597 | ac_header_preproc=no | |
9598 | fi | |
9599 | rm -f conftest.err conftest.$ac_ext | |
9600 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
9601 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
9602 | ||
9603 | # So? What about this header? | |
9604 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
9605 | yes:no: ) | |
9606 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
9607 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
9608 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
9609 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
9610 | ac_header_preproc=yes | |
9611 | ;; | |
9612 | no:yes:* ) | |
9613 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
9614 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
9615 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
9616 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
9617 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
9618 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
9619 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
9620 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
9621 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
9622 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
9623 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
9624 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
9625 | ( | |
9626 | cat <<\_ASBOX | |
9627 | ## ------------------------------------------ ## | |
9628 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
9629 | ## ------------------------------------------ ## | |
9630 | _ASBOX | |
9631 | ) | | |
9632 | sed "s/^/$as_me: WARNING: /" >&2 | |
9633 | ;; | |
9634 | esac | |
9635 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
9636 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
9637 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9639 | else | |
9640 | eval "$as_ac_Header=\$ac_header_preproc" | |
9641 | fi | |
9642 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9643 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9644 | ||
9645 | fi | |
9646 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9647 | cat >>confdefs.h <<_ACEOF | |
9648 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
9649 | _ACEOF | |
9650 | ||
9651 | fi | |
9652 | ||
9653 | done | |
9654 | ||
9655 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 | |
9656 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
9657 | if test "${ac_cv_header_time+set}" = set; then | |
9658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9659 | else | |
9660 | cat >conftest.$ac_ext <<_ACEOF | |
9661 | /* confdefs.h. */ | |
9662 | _ACEOF | |
9663 | cat confdefs.h >>conftest.$ac_ext | |
9664 | cat >>conftest.$ac_ext <<_ACEOF | |
9665 | /* end confdefs.h. */ | |
9666 | #include <sys/types.h> | |
9667 | #include <sys/time.h> | |
9668 | #include <time.h> | |
9669 | ||
9670 | int | |
9671 | main () | |
9672 | { | |
9673 | if ((struct tm *) 0) | |
9674 | return 0; | |
9675 | ; | |
9676 | return 0; | |
9677 | } | |
9678 | _ACEOF | |
9679 | rm -f conftest.$ac_objext | |
9680 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9681 | (eval $ac_compile) 2>conftest.er1 | |
9682 | ac_status=$? | |
9683 | grep -v '^ *+' conftest.er1 >conftest.err | |
9684 | rm -f conftest.er1 | |
9685 | cat conftest.err >&5 | |
9686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9687 | (exit $ac_status); } && | |
e1fffbe6 AM |
9688 | { ac_try='test -z "$ac_c_werror_flag" |
9689 | || test ! -s conftest.err' | |
2ba49b59 KC |
9690 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9691 | (eval $ac_try) 2>&5 | |
9692 | ac_status=$? | |
9693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9694 | (exit $ac_status); }; } && | |
9695 | { ac_try='test -s conftest.$ac_objext' | |
9696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9697 | (eval $ac_try) 2>&5 | |
9698 | ac_status=$? | |
9699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9700 | (exit $ac_status); }; }; then | |
9701 | ac_cv_header_time=yes | |
9702 | else | |
9703 | echo "$as_me: failed program was:" >&5 | |
9704 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9705 | ||
9706 | ac_cv_header_time=no | |
9707 | fi | |
9708 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9709 | fi | |
9710 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | |
9711 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
9712 | if test $ac_cv_header_time = yes; then | |
9713 | ||
9714 | cat >>confdefs.h <<\_ACEOF | |
9715 | #define TIME_WITH_SYS_TIME 1 | |
9716 | _ACEOF | |
9717 | ||
9718 | fi | |
9719 | ||
9720 | ||
9721 | ||
9722 | ||
9723 | ||
9724 | ||
9725 | ac_header_dirent=no | |
9726 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
9727 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
9728 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
9729 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
9730 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
9731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9732 | else | |
9733 | cat >conftest.$ac_ext <<_ACEOF | |
9734 | /* confdefs.h. */ | |
9735 | _ACEOF | |
9736 | cat confdefs.h >>conftest.$ac_ext | |
9737 | cat >>conftest.$ac_ext <<_ACEOF | |
9738 | /* end confdefs.h. */ | |
9739 | #include <sys/types.h> | |
9740 | #include <$ac_hdr> | |
9741 | ||
9742 | int | |
9743 | main () | |
9744 | { | |
9745 | if ((DIR *) 0) | |
9746 | return 0; | |
9747 | ; | |
9748 | return 0; | |
9749 | } | |
9750 | _ACEOF | |
9751 | rm -f conftest.$ac_objext | |
9752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9753 | (eval $ac_compile) 2>conftest.er1 | |
9754 | ac_status=$? | |
9755 | grep -v '^ *+' conftest.er1 >conftest.err | |
9756 | rm -f conftest.er1 | |
9757 | cat conftest.err >&5 | |
9758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9759 | (exit $ac_status); } && | |
e1fffbe6 AM |
9760 | { ac_try='test -z "$ac_c_werror_flag" |
9761 | || test ! -s conftest.err' | |
2ba49b59 KC |
9762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9763 | (eval $ac_try) 2>&5 | |
9764 | ac_status=$? | |
9765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9766 | (exit $ac_status); }; } && | |
9767 | { ac_try='test -s conftest.$ac_objext' | |
9768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9769 | (eval $ac_try) 2>&5 | |
9770 | ac_status=$? | |
9771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9772 | (exit $ac_status); }; }; then | |
9773 | eval "$as_ac_Header=yes" | |
9774 | else | |
9775 | echo "$as_me: failed program was:" >&5 | |
9776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9777 | ||
9778 | eval "$as_ac_Header=no" | |
9779 | fi | |
9780 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9781 | fi | |
9782 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9783 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9784 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9785 | cat >>confdefs.h <<_ACEOF | |
9786 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
9787 | _ACEOF | |
9788 | ||
9789 | ac_header_dirent=$ac_hdr; break | |
9790 | fi | |
9791 | ||
9792 | done | |
9793 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
9794 | if test $ac_header_dirent = dirent.h; then | |
9795 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 | |
9796 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
9797 | if test "${ac_cv_search_opendir+set}" = set; then | |
9798 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9799 | else | |
9800 | ac_func_search_save_LIBS=$LIBS | |
9801 | ac_cv_search_opendir=no | |
9802 | cat >conftest.$ac_ext <<_ACEOF | |
9803 | /* confdefs.h. */ | |
9804 | _ACEOF | |
9805 | cat confdefs.h >>conftest.$ac_ext | |
9806 | cat >>conftest.$ac_ext <<_ACEOF | |
9807 | /* end confdefs.h. */ | |
9808 | ||
9809 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9810 | #ifdef __cplusplus | |
9811 | extern "C" | |
9812 | #endif | |
9813 | /* We use char because int might match the return type of a gcc2 | |
9814 | builtin and then its argument prototype would still apply. */ | |
9815 | char opendir (); | |
9816 | int | |
9817 | main () | |
9818 | { | |
9819 | opendir (); | |
9820 | ; | |
9821 | return 0; | |
9822 | } | |
9823 | _ACEOF | |
9824 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9825 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9826 | (eval $ac_link) 2>conftest.er1 | |
9827 | ac_status=$? | |
9828 | grep -v '^ *+' conftest.er1 >conftest.err | |
9829 | rm -f conftest.er1 | |
9830 | cat conftest.err >&5 | |
9831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9832 | (exit $ac_status); } && | |
e1fffbe6 AM |
9833 | { ac_try='test -z "$ac_c_werror_flag" |
9834 | || test ! -s conftest.err' | |
2ba49b59 KC |
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); }; } && | |
9840 | { ac_try='test -s conftest$ac_exeext' | |
9841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9842 | (eval $ac_try) 2>&5 | |
9843 | ac_status=$? | |
9844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9845 | (exit $ac_status); }; }; then | |
9846 | ac_cv_search_opendir="none required" | |
9847 | else | |
9848 | echo "$as_me: failed program was:" >&5 | |
9849 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9850 | ||
9851 | fi | |
9852 | rm -f conftest.err conftest.$ac_objext \ | |
9853 | conftest$ac_exeext conftest.$ac_ext | |
9854 | if test "$ac_cv_search_opendir" = no; then | |
9855 | for ac_lib in dir; do | |
9856 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9857 | cat >conftest.$ac_ext <<_ACEOF | |
9858 | /* confdefs.h. */ | |
9859 | _ACEOF | |
9860 | cat confdefs.h >>conftest.$ac_ext | |
9861 | cat >>conftest.$ac_ext <<_ACEOF | |
9862 | /* end confdefs.h. */ | |
9863 | ||
9864 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9865 | #ifdef __cplusplus | |
9866 | extern "C" | |
9867 | #endif | |
9868 | /* We use char because int might match the return type of a gcc2 | |
9869 | builtin and then its argument prototype would still apply. */ | |
9870 | char opendir (); | |
9871 | int | |
9872 | main () | |
9873 | { | |
9874 | opendir (); | |
9875 | ; | |
9876 | return 0; | |
9877 | } | |
9878 | _ACEOF | |
9879 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9880 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9881 | (eval $ac_link) 2>conftest.er1 | |
9882 | ac_status=$? | |
9883 | grep -v '^ *+' conftest.er1 >conftest.err | |
9884 | rm -f conftest.er1 | |
9885 | cat conftest.err >&5 | |
9886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9887 | (exit $ac_status); } && | |
e1fffbe6 AM |
9888 | { ac_try='test -z "$ac_c_werror_flag" |
9889 | || test ! -s conftest.err' | |
2ba49b59 KC |
9890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9891 | (eval $ac_try) 2>&5 | |
9892 | ac_status=$? | |
9893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9894 | (exit $ac_status); }; } && | |
9895 | { ac_try='test -s conftest$ac_exeext' | |
9896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9897 | (eval $ac_try) 2>&5 | |
9898 | ac_status=$? | |
9899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9900 | (exit $ac_status); }; }; then | |
9901 | ac_cv_search_opendir="-l$ac_lib" | |
9902 | break | |
9903 | else | |
9904 | echo "$as_me: failed program was:" >&5 | |
9905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9906 | ||
9907 | fi | |
9908 | rm -f conftest.err conftest.$ac_objext \ | |
9909 | conftest$ac_exeext conftest.$ac_ext | |
9910 | done | |
9911 | fi | |
9912 | LIBS=$ac_func_search_save_LIBS | |
9913 | fi | |
9914 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
9915 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
9916 | if test "$ac_cv_search_opendir" != no; then | |
9917 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
9918 | ||
9919 | fi | |
9920 | ||
9921 | else | |
9922 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 | |
9923 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
9924 | if test "${ac_cv_search_opendir+set}" = set; then | |
9925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9926 | else | |
9927 | ac_func_search_save_LIBS=$LIBS | |
9928 | ac_cv_search_opendir=no | |
9929 | cat >conftest.$ac_ext <<_ACEOF | |
9930 | /* confdefs.h. */ | |
9931 | _ACEOF | |
9932 | cat confdefs.h >>conftest.$ac_ext | |
9933 | cat >>conftest.$ac_ext <<_ACEOF | |
9934 | /* end confdefs.h. */ | |
9935 | ||
9936 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9937 | #ifdef __cplusplus | |
9938 | extern "C" | |
9939 | #endif | |
9940 | /* We use char because int might match the return type of a gcc2 | |
9941 | builtin and then its argument prototype would still apply. */ | |
9942 | char opendir (); | |
9943 | int | |
9944 | main () | |
9945 | { | |
9946 | opendir (); | |
9947 | ; | |
9948 | return 0; | |
9949 | } | |
9950 | _ACEOF | |
9951 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9952 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9953 | (eval $ac_link) 2>conftest.er1 | |
9954 | ac_status=$? | |
9955 | grep -v '^ *+' conftest.er1 >conftest.err | |
9956 | rm -f conftest.er1 | |
9957 | cat conftest.err >&5 | |
9958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9959 | (exit $ac_status); } && | |
e1fffbe6 AM |
9960 | { ac_try='test -z "$ac_c_werror_flag" |
9961 | || test ! -s conftest.err' | |
2ba49b59 KC |
9962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9963 | (eval $ac_try) 2>&5 | |
9964 | ac_status=$? | |
9965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9966 | (exit $ac_status); }; } && | |
9967 | { ac_try='test -s conftest$ac_exeext' | |
9968 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9969 | (eval $ac_try) 2>&5 | |
9970 | ac_status=$? | |
9971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9972 | (exit $ac_status); }; }; then | |
9973 | ac_cv_search_opendir="none required" | |
9974 | else | |
9975 | echo "$as_me: failed program was:" >&5 | |
9976 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9977 | ||
9978 | fi | |
9979 | rm -f conftest.err conftest.$ac_objext \ | |
9980 | conftest$ac_exeext conftest.$ac_ext | |
9981 | if test "$ac_cv_search_opendir" = no; then | |
9982 | for ac_lib in x; do | |
9983 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9984 | cat >conftest.$ac_ext <<_ACEOF | |
9985 | /* confdefs.h. */ | |
9986 | _ACEOF | |
9987 | cat confdefs.h >>conftest.$ac_ext | |
9988 | cat >>conftest.$ac_ext <<_ACEOF | |
9989 | /* end confdefs.h. */ | |
9990 | ||
9991 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9992 | #ifdef __cplusplus | |
9993 | extern "C" | |
9994 | #endif | |
9995 | /* We use char because int might match the return type of a gcc2 | |
9996 | builtin and then its argument prototype would still apply. */ | |
9997 | char opendir (); | |
9998 | int | |
9999 | main () | |
10000 | { | |
10001 | opendir (); | |
10002 | ; | |
10003 | return 0; | |
10004 | } | |
10005 | _ACEOF | |
10006 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10007 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10008 | (eval $ac_link) 2>conftest.er1 | |
10009 | ac_status=$? | |
10010 | grep -v '^ *+' conftest.er1 >conftest.err | |
10011 | rm -f conftest.er1 | |
10012 | cat conftest.err >&5 | |
10013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10014 | (exit $ac_status); } && | |
e1fffbe6 AM |
10015 | { ac_try='test -z "$ac_c_werror_flag" |
10016 | || test ! -s conftest.err' | |
2ba49b59 KC |
10017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10018 | (eval $ac_try) 2>&5 | |
10019 | ac_status=$? | |
10020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10021 | (exit $ac_status); }; } && | |
10022 | { ac_try='test -s conftest$ac_exeext' | |
10023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10024 | (eval $ac_try) 2>&5 | |
10025 | ac_status=$? | |
10026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10027 | (exit $ac_status); }; }; then | |
10028 | ac_cv_search_opendir="-l$ac_lib" | |
10029 | break | |
10030 | else | |
10031 | echo "$as_me: failed program was:" >&5 | |
10032 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10033 | ||
10034 | fi | |
10035 | rm -f conftest.err conftest.$ac_objext \ | |
10036 | conftest$ac_exeext conftest.$ac_ext | |
10037 | done | |
10038 | fi | |
10039 | LIBS=$ac_func_search_save_LIBS | |
10040 | fi | |
10041 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
10042 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
10043 | if test "$ac_cv_search_opendir" != no; then | |
10044 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
10045 | ||
10046 | fi | |
10047 | ||
10048 | fi | |
10049 | ||
10050 | echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5 | |
10051 | echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6 | |
10052 | if test "${gcc_cv_header_string+set}" = set; then | |
10053 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10054 | else | |
10055 | cat >conftest.$ac_ext <<_ACEOF | |
10056 | /* confdefs.h. */ | |
10057 | _ACEOF | |
10058 | cat confdefs.h >>conftest.$ac_ext | |
10059 | cat >>conftest.$ac_ext <<_ACEOF | |
10060 | /* end confdefs.h. */ | |
10061 | #include <string.h> | |
10062 | #include <strings.h> | |
10063 | int | |
10064 | main () | |
10065 | { | |
10066 | ||
10067 | ; | |
10068 | return 0; | |
10069 | } | |
10070 | _ACEOF | |
10071 | rm -f conftest.$ac_objext | |
10072 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10073 | (eval $ac_compile) 2>conftest.er1 | |
10074 | ac_status=$? | |
10075 | grep -v '^ *+' conftest.er1 >conftest.err | |
10076 | rm -f conftest.er1 | |
10077 | cat conftest.err >&5 | |
10078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10079 | (exit $ac_status); } && | |
e1fffbe6 AM |
10080 | { ac_try='test -z "$ac_c_werror_flag" |
10081 | || test ! -s conftest.err' | |
2ba49b59 KC |
10082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10083 | (eval $ac_try) 2>&5 | |
10084 | ac_status=$? | |
10085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10086 | (exit $ac_status); }; } && | |
10087 | { ac_try='test -s conftest.$ac_objext' | |
10088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10089 | (eval $ac_try) 2>&5 | |
10090 | ac_status=$? | |
10091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10092 | (exit $ac_status); }; }; then | |
10093 | gcc_cv_header_string=yes | |
10094 | else | |
10095 | echo "$as_me: failed program was:" >&5 | |
10096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10097 | ||
10098 | gcc_cv_header_string=no | |
10099 | fi | |
10100 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10101 | fi | |
10102 | echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5 | |
10103 | echo "${ECHO_T}$gcc_cv_header_string" >&6 | |
10104 | if test $gcc_cv_header_string = yes; then | |
10105 | ||
10106 | cat >>confdefs.h <<\_ACEOF | |
10107 | #define STRING_WITH_STRINGS 1 | |
10108 | _ACEOF | |
10109 | ||
2e0fbf77 JW |
10110 | fi |
10111 | ||
5464f5a1 NN |
10112 | |
10113 | ||
10114 | ||
10115 | ||
10116 | ||
10117 | ||
10118 | ||
633fd09f | 10119 | for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid |
252b5132 | 10120 | do |
5464f5a1 NN |
10121 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10122 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10123 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
10124 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10125 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10126 | else | |
10127 | cat >conftest.$ac_ext <<_ACEOF | |
10128 | /* confdefs.h. */ | |
10129 | _ACEOF | |
10130 | cat confdefs.h >>conftest.$ac_ext | |
10131 | cat >>conftest.$ac_ext <<_ACEOF | |
10132 | /* end confdefs.h. */ | |
10133 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10134 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10135 | #define $ac_func innocuous_$ac_func | |
10136 | ||
252b5132 | 10137 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
10138 | which can conflict with char $ac_func (); below. |
10139 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10140 | <limits.h> exists even on freestanding compilers. */ | |
10141 | ||
10142 | #ifdef __STDC__ | |
10143 | # include <limits.h> | |
10144 | #else | |
10145 | # include <assert.h> | |
10146 | #endif | |
6be7c12c | 10147 | |
5464f5a1 | 10148 | #undef $ac_func |
252b5132 | 10149 | |
5464f5a1 NN |
10150 | /* Override any gcc2 internal prototype to avoid an error. */ |
10151 | #ifdef __cplusplus | |
10152 | extern "C" | |
10153 | { | |
10154 | #endif | |
10155 | /* We use char because int might match the return type of a gcc2 | |
10156 | builtin and then its argument prototype would still apply. */ | |
10157 | char $ac_func (); | |
252b5132 RH |
10158 | /* The GNU C library defines this for functions which it implements |
10159 | to always fail with ENOSYS. Some functions are actually named | |
10160 | something starting with __ and the normal name is an alias. */ | |
10161 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10162 | choke me | |
10163 | #else | |
5464f5a1 NN |
10164 | char (*f) () = $ac_func; |
10165 | #endif | |
10166 | #ifdef __cplusplus | |
10167 | } | |
252b5132 RH |
10168 | #endif |
10169 | ||
5464f5a1 NN |
10170 | int |
10171 | main () | |
10172 | { | |
10173 | return f != $ac_func; | |
10174 | ; | |
10175 | return 0; | |
10176 | } | |
10177 | _ACEOF | |
10178 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10179 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10180 | (eval $ac_link) 2>conftest.er1 | |
10181 | ac_status=$? | |
10182 | grep -v '^ *+' conftest.er1 >conftest.err | |
10183 | rm -f conftest.er1 | |
10184 | cat conftest.err >&5 | |
10185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10186 | (exit $ac_status); } && | |
e1fffbe6 AM |
10187 | { ac_try='test -z "$ac_c_werror_flag" |
10188 | || test ! -s conftest.err' | |
5464f5a1 NN |
10189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10190 | (eval $ac_try) 2>&5 | |
10191 | ac_status=$? | |
10192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10193 | (exit $ac_status); }; } && | |
10194 | { ac_try='test -s conftest$ac_exeext' | |
10195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10196 | (eval $ac_try) 2>&5 | |
10197 | ac_status=$? | |
10198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10199 | (exit $ac_status); }; }; then | |
10200 | eval "$as_ac_var=yes" | |
10201 | else | |
10202 | echo "$as_me: failed program was:" >&5 | |
10203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10204 | ||
10205 | eval "$as_ac_var=no" | |
10206 | fi | |
10207 | rm -f conftest.err conftest.$ac_objext \ | |
10208 | conftest$ac_exeext conftest.$ac_ext | |
10209 | fi | |
10210 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
10211 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
10212 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10213 | cat >>confdefs.h <<_ACEOF | |
10214 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10215 | _ACEOF | |
252b5132 | 10216 | |
252b5132 RH |
10217 | fi |
10218 | done | |
10219 | ||
5464f5a1 | 10220 | |
49c97a80 ILT |
10221 | for ac_func in strtoull |
10222 | do | |
5464f5a1 NN |
10223 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
10224 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
10225 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
10226 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
10227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10228 | else | |
10229 | cat >conftest.$ac_ext <<_ACEOF | |
10230 | /* confdefs.h. */ | |
10231 | _ACEOF | |
10232 | cat confdefs.h >>conftest.$ac_ext | |
10233 | cat >>conftest.$ac_ext <<_ACEOF | |
10234 | /* end confdefs.h. */ | |
10235 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
10236 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10237 | #define $ac_func innocuous_$ac_func | |
10238 | ||
49c97a80 | 10239 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
10240 | which can conflict with char $ac_func (); below. |
10241 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10242 | <limits.h> exists even on freestanding compilers. */ | |
10243 | ||
10244 | #ifdef __STDC__ | |
10245 | # include <limits.h> | |
10246 | #else | |
10247 | # include <assert.h> | |
10248 | #endif | |
49c97a80 | 10249 | |
5464f5a1 | 10250 | #undef $ac_func |
49c97a80 | 10251 | |
5464f5a1 NN |
10252 | /* Override any gcc2 internal prototype to avoid an error. */ |
10253 | #ifdef __cplusplus | |
10254 | extern "C" | |
10255 | { | |
10256 | #endif | |
10257 | /* We use char because int might match the return type of a gcc2 | |
10258 | builtin and then its argument prototype would still apply. */ | |
10259 | char $ac_func (); | |
49c97a80 ILT |
10260 | /* The GNU C library defines this for functions which it implements |
10261 | to always fail with ENOSYS. Some functions are actually named | |
10262 | something starting with __ and the normal name is an alias. */ | |
10263 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
10264 | choke me | |
10265 | #else | |
5464f5a1 NN |
10266 | char (*f) () = $ac_func; |
10267 | #endif | |
10268 | #ifdef __cplusplus | |
10269 | } | |
49c97a80 ILT |
10270 | #endif |
10271 | ||
5464f5a1 NN |
10272 | int |
10273 | main () | |
10274 | { | |
10275 | return f != $ac_func; | |
10276 | ; | |
10277 | return 0; | |
10278 | } | |
10279 | _ACEOF | |
10280 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10281 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10282 | (eval $ac_link) 2>conftest.er1 | |
10283 | ac_status=$? | |
10284 | grep -v '^ *+' conftest.er1 >conftest.err | |
10285 | rm -f conftest.er1 | |
10286 | cat conftest.err >&5 | |
10287 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10288 | (exit $ac_status); } && | |
e1fffbe6 AM |
10289 | { ac_try='test -z "$ac_c_werror_flag" |
10290 | || test ! -s conftest.err' | |
5464f5a1 NN |
10291 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10292 | (eval $ac_try) 2>&5 | |
10293 | ac_status=$? | |
10294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10295 | (exit $ac_status); }; } && | |
10296 | { ac_try='test -s conftest$ac_exeext' | |
10297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10298 | (eval $ac_try) 2>&5 | |
10299 | ac_status=$? | |
10300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10301 | (exit $ac_status); }; }; then | |
10302 | eval "$as_ac_var=yes" | |
10303 | else | |
10304 | echo "$as_me: failed program was:" >&5 | |
10305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10306 | ||
10307 | eval "$as_ac_var=no" | |
10308 | fi | |
10309 | rm -f conftest.err conftest.$ac_objext \ | |
10310 | conftest$ac_exeext conftest.$ac_ext | |
10311 | fi | |
10312 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
10313 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
10314 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
10315 | cat >>confdefs.h <<_ACEOF | |
10316 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
10317 | _ACEOF | |
49c97a80 | 10318 | |
49c97a80 ILT |
10319 | fi |
10320 | done | |
10321 | ||
6be7c12c | 10322 | |
2e9ebff5 JG |
10323 | echo "$as_me:$LINENO: checking whether basename is declared" >&5 |
10324 | echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6 | |
10325 | if test "${ac_cv_have_decl_basename+set}" = set; then | |
10326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10327 | else | |
10328 | cat >conftest.$ac_ext <<_ACEOF | |
10329 | /* confdefs.h. */ | |
10330 | _ACEOF | |
10331 | cat confdefs.h >>conftest.$ac_ext | |
10332 | cat >>conftest.$ac_ext <<_ACEOF | |
10333 | /* end confdefs.h. */ | |
ec7b76fe | 10334 | $ac_includes_default |
2e9ebff5 JG |
10335 | int |
10336 | main () | |
10337 | { | |
10338 | #ifndef basename | |
10339 | char *p = (char *) basename; | |
10340 | #endif | |
10341 | ||
10342 | ; | |
10343 | return 0; | |
10344 | } | |
10345 | _ACEOF | |
10346 | rm -f conftest.$ac_objext | |
10347 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10348 | (eval $ac_compile) 2>conftest.er1 | |
10349 | ac_status=$? | |
10350 | grep -v '^ *+' conftest.er1 >conftest.err | |
10351 | rm -f conftest.er1 | |
10352 | cat conftest.err >&5 | |
10353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10354 | (exit $ac_status); } && | |
e1fffbe6 AM |
10355 | { ac_try='test -z "$ac_c_werror_flag" |
10356 | || test ! -s conftest.err' | |
2e9ebff5 JG |
10357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10358 | (eval $ac_try) 2>&5 | |
10359 | ac_status=$? | |
10360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10361 | (exit $ac_status); }; } && | |
10362 | { ac_try='test -s conftest.$ac_objext' | |
10363 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10364 | (eval $ac_try) 2>&5 | |
10365 | ac_status=$? | |
10366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10367 | (exit $ac_status); }; }; then | |
10368 | ac_cv_have_decl_basename=yes | |
10369 | else | |
10370 | echo "$as_me: failed program was:" >&5 | |
10371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10372 | ||
10373 | ac_cv_have_decl_basename=no | |
10374 | fi | |
10375 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10376 | fi | |
10377 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5 | |
10378 | echo "${ECHO_T}$ac_cv_have_decl_basename" >&6 | |
10379 | if test $ac_cv_have_decl_basename = yes; then | |
10380 | ||
10381 | cat >>confdefs.h <<_ACEOF | |
10382 | #define HAVE_DECL_BASENAME 1 | |
10383 | _ACEOF | |
10384 | ||
10385 | ||
10386 | else | |
10387 | cat >>confdefs.h <<_ACEOF | |
10388 | #define HAVE_DECL_BASENAME 0 | |
10389 | _ACEOF | |
10390 | ||
10391 | ||
10392 | fi | |
10393 | ||
10394 | ||
ec7b76fe JG |
10395 | echo "$as_me:$LINENO: checking whether ftello is declared" >&5 |
10396 | echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6 | |
10397 | if test "${ac_cv_have_decl_ftello+set}" = set; then | |
10398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10399 | else | |
10400 | cat >conftest.$ac_ext <<_ACEOF | |
10401 | /* confdefs.h. */ | |
10402 | _ACEOF | |
10403 | cat confdefs.h >>conftest.$ac_ext | |
10404 | cat >>conftest.$ac_ext <<_ACEOF | |
10405 | /* end confdefs.h. */ | |
10406 | $ac_includes_default | |
10407 | int | |
10408 | main () | |
10409 | { | |
10410 | #ifndef ftello | |
10411 | char *p = (char *) ftello; | |
10412 | #endif | |
10413 | ||
10414 | ; | |
10415 | return 0; | |
10416 | } | |
10417 | _ACEOF | |
10418 | rm -f conftest.$ac_objext | |
10419 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10420 | (eval $ac_compile) 2>conftest.er1 | |
10421 | ac_status=$? | |
10422 | grep -v '^ *+' conftest.er1 >conftest.err | |
10423 | rm -f conftest.er1 | |
10424 | cat conftest.err >&5 | |
10425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10426 | (exit $ac_status); } && | |
e1fffbe6 AM |
10427 | { ac_try='test -z "$ac_c_werror_flag" |
10428 | || test ! -s conftest.err' | |
ec7b76fe JG |
10429 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10430 | (eval $ac_try) 2>&5 | |
10431 | ac_status=$? | |
10432 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10433 | (exit $ac_status); }; } && | |
10434 | { ac_try='test -s conftest.$ac_objext' | |
10435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10436 | (eval $ac_try) 2>&5 | |
10437 | ac_status=$? | |
10438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10439 | (exit $ac_status); }; }; then | |
10440 | ac_cv_have_decl_ftello=yes | |
10441 | else | |
10442 | echo "$as_me: failed program was:" >&5 | |
10443 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10444 | ||
10445 | ac_cv_have_decl_ftello=no | |
10446 | fi | |
10447 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10448 | fi | |
10449 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5 | |
10450 | echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6 | |
10451 | if test $ac_cv_have_decl_ftello = yes; then | |
10452 | ||
10453 | cat >>confdefs.h <<_ACEOF | |
10454 | #define HAVE_DECL_FTELLO 1 | |
10455 | _ACEOF | |
10456 | ||
10457 | ||
10458 | else | |
10459 | cat >>confdefs.h <<_ACEOF | |
10460 | #define HAVE_DECL_FTELLO 0 | |
10461 | _ACEOF | |
10462 | ||
10463 | ||
10464 | fi | |
10465 | ||
10466 | ||
10467 | echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5 | |
10468 | echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6 | |
10469 | if test "${ac_cv_have_decl_ftello64+set}" = set; then | |
10470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10471 | else | |
10472 | cat >conftest.$ac_ext <<_ACEOF | |
10473 | /* confdefs.h. */ | |
10474 | _ACEOF | |
10475 | cat confdefs.h >>conftest.$ac_ext | |
10476 | cat >>conftest.$ac_ext <<_ACEOF | |
10477 | /* end confdefs.h. */ | |
10478 | $ac_includes_default | |
10479 | int | |
10480 | main () | |
10481 | { | |
10482 | #ifndef ftello64 | |
10483 | char *p = (char *) ftello64; | |
10484 | #endif | |
10485 | ||
10486 | ; | |
10487 | return 0; | |
10488 | } | |
10489 | _ACEOF | |
10490 | rm -f conftest.$ac_objext | |
10491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10492 | (eval $ac_compile) 2>conftest.er1 | |
10493 | ac_status=$? | |
10494 | grep -v '^ *+' conftest.er1 >conftest.err | |
10495 | rm -f conftest.er1 | |
10496 | cat conftest.err >&5 | |
10497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10498 | (exit $ac_status); } && | |
e1fffbe6 AM |
10499 | { ac_try='test -z "$ac_c_werror_flag" |
10500 | || test ! -s conftest.err' | |
ec7b76fe JG |
10501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10502 | (eval $ac_try) 2>&5 | |
10503 | ac_status=$? | |
10504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10505 | (exit $ac_status); }; } && | |
10506 | { ac_try='test -s conftest.$ac_objext' | |
10507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10508 | (eval $ac_try) 2>&5 | |
10509 | ac_status=$? | |
10510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10511 | (exit $ac_status); }; }; then | |
10512 | ac_cv_have_decl_ftello64=yes | |
10513 | else | |
10514 | echo "$as_me: failed program was:" >&5 | |
10515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10516 | ||
10517 | ac_cv_have_decl_ftello64=no | |
10518 | fi | |
10519 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10520 | fi | |
10521 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5 | |
10522 | echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6 | |
10523 | if test $ac_cv_have_decl_ftello64 = yes; then | |
10524 | ||
10525 | cat >>confdefs.h <<_ACEOF | |
10526 | #define HAVE_DECL_FTELLO64 1 | |
10527 | _ACEOF | |
10528 | ||
10529 | ||
10530 | else | |
10531 | cat >>confdefs.h <<_ACEOF | |
10532 | #define HAVE_DECL_FTELLO64 0 | |
10533 | _ACEOF | |
10534 | ||
10535 | ||
10536 | fi | |
10537 | ||
10538 | ||
10539 | echo "$as_me:$LINENO: checking whether fseeko is declared" >&5 | |
10540 | echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6 | |
10541 | if test "${ac_cv_have_decl_fseeko+set}" = set; then | |
10542 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10543 | else | |
10544 | cat >conftest.$ac_ext <<_ACEOF | |
10545 | /* confdefs.h. */ | |
10546 | _ACEOF | |
10547 | cat confdefs.h >>conftest.$ac_ext | |
10548 | cat >>conftest.$ac_ext <<_ACEOF | |
10549 | /* end confdefs.h. */ | |
10550 | $ac_includes_default | |
10551 | int | |
10552 | main () | |
10553 | { | |
10554 | #ifndef fseeko | |
10555 | char *p = (char *) fseeko; | |
10556 | #endif | |
10557 | ||
10558 | ; | |
10559 | return 0; | |
10560 | } | |
10561 | _ACEOF | |
10562 | rm -f conftest.$ac_objext | |
10563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10564 | (eval $ac_compile) 2>conftest.er1 | |
10565 | ac_status=$? | |
10566 | grep -v '^ *+' conftest.er1 >conftest.err | |
10567 | rm -f conftest.er1 | |
10568 | cat conftest.err >&5 | |
10569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10570 | (exit $ac_status); } && | |
e1fffbe6 AM |
10571 | { ac_try='test -z "$ac_c_werror_flag" |
10572 | || test ! -s conftest.err' | |
ec7b76fe JG |
10573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10574 | (eval $ac_try) 2>&5 | |
10575 | ac_status=$? | |
10576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10577 | (exit $ac_status); }; } && | |
10578 | { ac_try='test -s conftest.$ac_objext' | |
10579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10580 | (eval $ac_try) 2>&5 | |
10581 | ac_status=$? | |
10582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10583 | (exit $ac_status); }; }; then | |
10584 | ac_cv_have_decl_fseeko=yes | |
10585 | else | |
10586 | echo "$as_me: failed program was:" >&5 | |
10587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10588 | ||
10589 | ac_cv_have_decl_fseeko=no | |
10590 | fi | |
10591 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10592 | fi | |
10593 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5 | |
10594 | echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6 | |
10595 | if test $ac_cv_have_decl_fseeko = yes; then | |
10596 | ||
10597 | cat >>confdefs.h <<_ACEOF | |
10598 | #define HAVE_DECL_FSEEKO 1 | |
10599 | _ACEOF | |
10600 | ||
10601 | ||
10602 | else | |
10603 | cat >>confdefs.h <<_ACEOF | |
10604 | #define HAVE_DECL_FSEEKO 0 | |
10605 | _ACEOF | |
10606 | ||
10607 | ||
10608 | fi | |
10609 | ||
10610 | ||
10611 | echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5 | |
10612 | echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6 | |
10613 | if test "${ac_cv_have_decl_fseeko64+set}" = set; then | |
10614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10615 | else | |
10616 | cat >conftest.$ac_ext <<_ACEOF | |
10617 | /* confdefs.h. */ | |
10618 | _ACEOF | |
10619 | cat confdefs.h >>conftest.$ac_ext | |
10620 | cat >>conftest.$ac_ext <<_ACEOF | |
10621 | /* end confdefs.h. */ | |
10622 | $ac_includes_default | |
10623 | int | |
10624 | main () | |
10625 | { | |
10626 | #ifndef fseeko64 | |
10627 | char *p = (char *) fseeko64; | |
10628 | #endif | |
10629 | ||
10630 | ; | |
10631 | return 0; | |
10632 | } | |
10633 | _ACEOF | |
10634 | rm -f conftest.$ac_objext | |
10635 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10636 | (eval $ac_compile) 2>conftest.er1 | |
10637 | ac_status=$? | |
10638 | grep -v '^ *+' conftest.er1 >conftest.err | |
10639 | rm -f conftest.er1 | |
10640 | cat conftest.err >&5 | |
10641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10642 | (exit $ac_status); } && | |
e1fffbe6 AM |
10643 | { ac_try='test -z "$ac_c_werror_flag" |
10644 | || test ! -s conftest.err' | |
ec7b76fe JG |
10645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10646 | (eval $ac_try) 2>&5 | |
10647 | ac_status=$? | |
10648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10649 | (exit $ac_status); }; } && | |
10650 | { ac_try='test -s conftest.$ac_objext' | |
10651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10652 | (eval $ac_try) 2>&5 | |
10653 | ac_status=$? | |
10654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10655 | (exit $ac_status); }; }; then | |
10656 | ac_cv_have_decl_fseeko64=yes | |
10657 | else | |
10658 | echo "$as_me: failed program was:" >&5 | |
10659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10660 | ||
10661 | ac_cv_have_decl_fseeko64=no | |
10662 | fi | |
10663 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10664 | fi | |
10665 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5 | |
10666 | echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6 | |
10667 | if test $ac_cv_have_decl_fseeko64 = yes; then | |
10668 | ||
10669 | cat >>confdefs.h <<_ACEOF | |
10670 | #define HAVE_DECL_FSEEKO64 1 | |
10671 | _ACEOF | |
10672 | ||
10673 | ||
10674 | else | |
10675 | cat >>confdefs.h <<_ACEOF | |
10676 | #define HAVE_DECL_FSEEKO64 0 | |
10677 | _ACEOF | |
10678 | ||
10679 | ||
10680 | fi | |
10681 | ||
10682 | ||
2e9ebff5 | 10683 | |
6be7c12c | 10684 | |
252b5132 | 10685 | case "${host}" in |
855b0be7 | 10686 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) |
5464f5a1 NN |
10687 | |
10688 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 10689 | #define USE_BINARY_FOPEN 1 |
5464f5a1 | 10690 | _ACEOF |
252b5132 RH |
10691 | ;; |
10692 | esac | |
10693 | ||
d34a2b1d JG |
10694 | echo "$as_me:$LINENO: checking whether ffs is declared" >&5 |
10695 | echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6 | |
10696 | if test "${ac_cv_have_decl_ffs+set}" = set; then | |
5464f5a1 | 10697 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 10698 | else |
5464f5a1 NN |
10699 | cat >conftest.$ac_ext <<_ACEOF |
10700 | /* confdefs.h. */ | |
10701 | _ACEOF | |
10702 | cat confdefs.h >>conftest.$ac_ext | |
10703 | cat >>conftest.$ac_ext <<_ACEOF | |
10704 | /* end confdefs.h. */ | |
d34a2b1d | 10705 | $ac_includes_default |
5464f5a1 NN |
10706 | int |
10707 | main () | |
10708 | { | |
d34a2b1d JG |
10709 | #ifndef ffs |
10710 | char *p = (char *) ffs; | |
10711 | #endif | |
10712 | ||
5464f5a1 NN |
10713 | ; |
10714 | return 0; | |
10715 | } | |
10716 | _ACEOF | |
10717 | rm -f conftest.$ac_objext | |
10718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10719 | (eval $ac_compile) 2>conftest.er1 | |
10720 | ac_status=$? | |
10721 | grep -v '^ *+' conftest.er1 >conftest.err | |
10722 | rm -f conftest.er1 | |
10723 | cat conftest.err >&5 | |
10724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10725 | (exit $ac_status); } && | |
e1fffbe6 AM |
10726 | { ac_try='test -z "$ac_c_werror_flag" |
10727 | || test ! -s conftest.err' | |
5464f5a1 NN |
10728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10729 | (eval $ac_try) 2>&5 | |
10730 | ac_status=$? | |
10731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10732 | (exit $ac_status); }; } && | |
10733 | { ac_try='test -s conftest.$ac_objext' | |
10734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10735 | (eval $ac_try) 2>&5 | |
10736 | ac_status=$? | |
10737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10738 | (exit $ac_status); }; }; then | |
d34a2b1d | 10739 | ac_cv_have_decl_ffs=yes |
252b5132 | 10740 | else |
5464f5a1 NN |
10741 | echo "$as_me: failed program was:" >&5 |
10742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10743 | ||
d34a2b1d | 10744 | ac_cv_have_decl_ffs=no |
252b5132 | 10745 | fi |
5464f5a1 | 10746 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 10747 | fi |
d34a2b1d JG |
10748 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5 |
10749 | echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6 | |
10750 | if test $ac_cv_have_decl_ffs = yes; then | |
252b5132 | 10751 | |
d34a2b1d JG |
10752 | cat >>confdefs.h <<_ACEOF |
10753 | #define HAVE_DECL_FFS 1 | |
10754 | _ACEOF | |
5464f5a1 | 10755 | |
d34a2b1d JG |
10756 | |
10757 | else | |
10758 | cat >>confdefs.h <<_ACEOF | |
10759 | #define HAVE_DECL_FFS 0 | |
5464f5a1 | 10760 | _ACEOF |
252b5132 | 10761 | |
d34a2b1d | 10762 | |
252b5132 RH |
10763 | fi |
10764 | ||
d34a2b1d JG |
10765 | |
10766 | echo "$as_me:$LINENO: checking whether free is declared" >&5 | |
10767 | echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6 | |
10768 | if test "${ac_cv_have_decl_free+set}" = set; then | |
5464f5a1 | 10769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 10770 | else |
5464f5a1 NN |
10771 | cat >conftest.$ac_ext <<_ACEOF |
10772 | /* confdefs.h. */ | |
10773 | _ACEOF | |
10774 | cat confdefs.h >>conftest.$ac_ext | |
10775 | cat >>conftest.$ac_ext <<_ACEOF | |
10776 | /* end confdefs.h. */ | |
d34a2b1d | 10777 | $ac_includes_default |
5464f5a1 NN |
10778 | int |
10779 | main () | |
10780 | { | |
d34a2b1d JG |
10781 | #ifndef free |
10782 | char *p = (char *) free; | |
10783 | #endif | |
10784 | ||
5464f5a1 NN |
10785 | ; |
10786 | return 0; | |
10787 | } | |
10788 | _ACEOF | |
10789 | rm -f conftest.$ac_objext | |
10790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10791 | (eval $ac_compile) 2>conftest.er1 | |
10792 | ac_status=$? | |
10793 | grep -v '^ *+' conftest.er1 >conftest.err | |
10794 | rm -f conftest.er1 | |
10795 | cat conftest.err >&5 | |
10796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10797 | (exit $ac_status); } && | |
e1fffbe6 AM |
10798 | { ac_try='test -z "$ac_c_werror_flag" |
10799 | || test ! -s conftest.err' | |
5464f5a1 NN |
10800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10801 | (eval $ac_try) 2>&5 | |
10802 | ac_status=$? | |
10803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10804 | (exit $ac_status); }; } && | |
10805 | { ac_try='test -s conftest.$ac_objext' | |
10806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10807 | (eval $ac_try) 2>&5 | |
10808 | ac_status=$? | |
10809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10810 | (exit $ac_status); }; }; then | |
d34a2b1d | 10811 | ac_cv_have_decl_free=yes |
252b5132 | 10812 | else |
5464f5a1 NN |
10813 | echo "$as_me: failed program was:" >&5 |
10814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10815 | ||
d34a2b1d | 10816 | ac_cv_have_decl_free=no |
252b5132 | 10817 | fi |
5464f5a1 | 10818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 10819 | fi |
d34a2b1d JG |
10820 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5 |
10821 | echo "${ECHO_T}$ac_cv_have_decl_free" >&6 | |
10822 | if test $ac_cv_have_decl_free = yes; then | |
10823 | ||
10824 | cat >>confdefs.h <<_ACEOF | |
10825 | #define HAVE_DECL_FREE 1 | |
10826 | _ACEOF | |
252b5132 | 10827 | |
5464f5a1 | 10828 | |
d34a2b1d JG |
10829 | else |
10830 | cat >>confdefs.h <<_ACEOF | |
10831 | #define HAVE_DECL_FREE 0 | |
5464f5a1 | 10832 | _ACEOF |
252b5132 | 10833 | |
d34a2b1d | 10834 | |
252b5132 RH |
10835 | fi |
10836 | ||
d34a2b1d JG |
10837 | |
10838 | echo "$as_me:$LINENO: checking whether getenv is declared" >&5 | |
10839 | echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6 | |
10840 | if test "${ac_cv_have_decl_getenv+set}" = set; then | |
5464f5a1 | 10841 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 10842 | else |
5464f5a1 NN |
10843 | cat >conftest.$ac_ext <<_ACEOF |
10844 | /* confdefs.h. */ | |
10845 | _ACEOF | |
10846 | cat confdefs.h >>conftest.$ac_ext | |
10847 | cat >>conftest.$ac_ext <<_ACEOF | |
10848 | /* end confdefs.h. */ | |
d34a2b1d | 10849 | $ac_includes_default |
5464f5a1 NN |
10850 | int |
10851 | main () | |
10852 | { | |
d34a2b1d JG |
10853 | #ifndef getenv |
10854 | char *p = (char *) getenv; | |
10855 | #endif | |
10856 | ||
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); } && | |
e1fffbe6 AM |
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 | |
d34a2b1d | 10883 | ac_cv_have_decl_getenv=yes |
252b5132 | 10884 | else |
5464f5a1 NN |
10885 | echo "$as_me: failed program was:" >&5 |
10886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10887 | ||
d34a2b1d | 10888 | ac_cv_have_decl_getenv=no |
252b5132 | 10889 | fi |
5464f5a1 | 10890 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 10891 | fi |
d34a2b1d JG |
10892 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5 |
10893 | echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6 | |
10894 | if test $ac_cv_have_decl_getenv = yes; then | |
252b5132 | 10895 | |
d34a2b1d JG |
10896 | cat >>confdefs.h <<_ACEOF |
10897 | #define HAVE_DECL_GETENV 1 | |
10898 | _ACEOF | |
5464f5a1 | 10899 | |
d34a2b1d JG |
10900 | |
10901 | else | |
10902 | cat >>confdefs.h <<_ACEOF | |
10903 | #define HAVE_DECL_GETENV 0 | |
5464f5a1 | 10904 | _ACEOF |
252b5132 | 10905 | |
d34a2b1d | 10906 | |
252b5132 RH |
10907 | fi |
10908 | ||
d34a2b1d JG |
10909 | |
10910 | echo "$as_me:$LINENO: checking whether malloc is declared" >&5 | |
10911 | echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6 | |
10912 | if test "${ac_cv_have_decl_malloc+set}" = set; then | |
5464f5a1 | 10913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 10914 | else |
5464f5a1 NN |
10915 | cat >conftest.$ac_ext <<_ACEOF |
10916 | /* confdefs.h. */ | |
10917 | _ACEOF | |
10918 | cat confdefs.h >>conftest.$ac_ext | |
10919 | cat >>conftest.$ac_ext <<_ACEOF | |
10920 | /* end confdefs.h. */ | |
d34a2b1d | 10921 | $ac_includes_default |
5464f5a1 NN |
10922 | int |
10923 | main () | |
10924 | { | |
d34a2b1d JG |
10925 | #ifndef malloc |
10926 | char *p = (char *) malloc; | |
10927 | #endif | |
10928 | ||
5464f5a1 NN |
10929 | ; |
10930 | return 0; | |
10931 | } | |
10932 | _ACEOF | |
10933 | rm -f conftest.$ac_objext | |
10934 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10935 | (eval $ac_compile) 2>conftest.er1 | |
10936 | ac_status=$? | |
10937 | grep -v '^ *+' conftest.er1 >conftest.err | |
10938 | rm -f conftest.er1 | |
10939 | cat conftest.err >&5 | |
10940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10941 | (exit $ac_status); } && | |
e1fffbe6 AM |
10942 | { ac_try='test -z "$ac_c_werror_flag" |
10943 | || test ! -s conftest.err' | |
5464f5a1 NN |
10944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10945 | (eval $ac_try) 2>&5 | |
10946 | ac_status=$? | |
10947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10948 | (exit $ac_status); }; } && | |
10949 | { ac_try='test -s conftest.$ac_objext' | |
10950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10951 | (eval $ac_try) 2>&5 | |
10952 | ac_status=$? | |
10953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10954 | (exit $ac_status); }; }; then | |
d34a2b1d | 10955 | ac_cv_have_decl_malloc=yes |
252b5132 | 10956 | else |
5464f5a1 NN |
10957 | echo "$as_me: failed program was:" >&5 |
10958 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10959 | ||
d34a2b1d | 10960 | ac_cv_have_decl_malloc=no |
252b5132 | 10961 | fi |
5464f5a1 | 10962 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 10963 | fi |
d34a2b1d JG |
10964 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5 |
10965 | echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6 | |
10966 | if test $ac_cv_have_decl_malloc = yes; then | |
252b5132 | 10967 | |
d34a2b1d JG |
10968 | cat >>confdefs.h <<_ACEOF |
10969 | #define HAVE_DECL_MALLOC 1 | |
10970 | _ACEOF | |
5464f5a1 | 10971 | |
d34a2b1d JG |
10972 | |
10973 | else | |
10974 | cat >>confdefs.h <<_ACEOF | |
10975 | #define HAVE_DECL_MALLOC 0 | |
5464f5a1 | 10976 | _ACEOF |
252b5132 | 10977 | |
d34a2b1d | 10978 | |
252b5132 RH |
10979 | fi |
10980 | ||
d34a2b1d JG |
10981 | |
10982 | echo "$as_me:$LINENO: checking whether realloc is declared" >&5 | |
10983 | echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6 | |
10984 | if test "${ac_cv_have_decl_realloc+set}" = set; then | |
5464f5a1 | 10985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 10986 | else |
5464f5a1 NN |
10987 | cat >conftest.$ac_ext <<_ACEOF |
10988 | /* confdefs.h. */ | |
10989 | _ACEOF | |
10990 | cat confdefs.h >>conftest.$ac_ext | |
10991 | cat >>conftest.$ac_ext <<_ACEOF | |
10992 | /* end confdefs.h. */ | |
d34a2b1d | 10993 | $ac_includes_default |
5464f5a1 NN |
10994 | int |
10995 | main () | |
10996 | { | |
d34a2b1d JG |
10997 | #ifndef realloc |
10998 | char *p = (char *) realloc; | |
10999 | #endif | |
11000 | ||
5464f5a1 NN |
11001 | ; |
11002 | return 0; | |
11003 | } | |
11004 | _ACEOF | |
11005 | rm -f conftest.$ac_objext | |
11006 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11007 | (eval $ac_compile) 2>conftest.er1 | |
11008 | ac_status=$? | |
11009 | grep -v '^ *+' conftest.er1 >conftest.err | |
11010 | rm -f conftest.er1 | |
11011 | cat conftest.err >&5 | |
11012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11013 | (exit $ac_status); } && | |
e1fffbe6 AM |
11014 | { ac_try='test -z "$ac_c_werror_flag" |
11015 | || test ! -s conftest.err' | |
5464f5a1 NN |
11016 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11017 | (eval $ac_try) 2>&5 | |
11018 | ac_status=$? | |
11019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11020 | (exit $ac_status); }; } && | |
11021 | { ac_try='test -s conftest.$ac_objext' | |
11022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11023 | (eval $ac_try) 2>&5 | |
11024 | ac_status=$? | |
11025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11026 | (exit $ac_status); }; }; then | |
d34a2b1d | 11027 | ac_cv_have_decl_realloc=yes |
252b5132 | 11028 | else |
5464f5a1 NN |
11029 | echo "$as_me: failed program was:" >&5 |
11030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11031 | ||
d34a2b1d | 11032 | ac_cv_have_decl_realloc=no |
252b5132 | 11033 | fi |
5464f5a1 | 11034 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 11035 | fi |
d34a2b1d JG |
11036 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5 |
11037 | echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6 | |
11038 | if test $ac_cv_have_decl_realloc = yes; then | |
11039 | ||
11040 | cat >>confdefs.h <<_ACEOF | |
11041 | #define HAVE_DECL_REALLOC 1 | |
11042 | _ACEOF | |
252b5132 | 11043 | |
5464f5a1 | 11044 | |
d34a2b1d JG |
11045 | else |
11046 | cat >>confdefs.h <<_ACEOF | |
11047 | #define HAVE_DECL_REALLOC 0 | |
efa9bda4 AL |
11048 | _ACEOF |
11049 | ||
d34a2b1d | 11050 | |
efa9bda4 AL |
11051 | fi |
11052 | ||
d34a2b1d | 11053 | |
be5cacdb L |
11054 | echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5 |
11055 | echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6 | |
11056 | if test "${ac_cv_have_decl_stpcpy+set}" = set; then | |
11057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11058 | else | |
11059 | cat >conftest.$ac_ext <<_ACEOF | |
11060 | /* confdefs.h. */ | |
11061 | _ACEOF | |
11062 | cat confdefs.h >>conftest.$ac_ext | |
11063 | cat >>conftest.$ac_ext <<_ACEOF | |
11064 | /* end confdefs.h. */ | |
11065 | $ac_includes_default | |
11066 | int | |
11067 | main () | |
11068 | { | |
11069 | #ifndef stpcpy | |
11070 | char *p = (char *) stpcpy; | |
11071 | #endif | |
11072 | ||
11073 | ; | |
11074 | return 0; | |
11075 | } | |
11076 | _ACEOF | |
11077 | rm -f conftest.$ac_objext | |
11078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11079 | (eval $ac_compile) 2>conftest.er1 | |
11080 | ac_status=$? | |
11081 | grep -v '^ *+' conftest.er1 >conftest.err | |
11082 | rm -f conftest.er1 | |
11083 | cat conftest.err >&5 | |
11084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11085 | (exit $ac_status); } && | |
e1fffbe6 AM |
11086 | { ac_try='test -z "$ac_c_werror_flag" |
11087 | || test ! -s conftest.err' | |
be5cacdb L |
11088 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11089 | (eval $ac_try) 2>&5 | |
11090 | ac_status=$? | |
11091 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11092 | (exit $ac_status); }; } && | |
11093 | { ac_try='test -s conftest.$ac_objext' | |
11094 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11095 | (eval $ac_try) 2>&5 | |
11096 | ac_status=$? | |
11097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11098 | (exit $ac_status); }; }; then | |
11099 | ac_cv_have_decl_stpcpy=yes | |
11100 | else | |
11101 | echo "$as_me: failed program was:" >&5 | |
11102 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11103 | ||
11104 | ac_cv_have_decl_stpcpy=no | |
11105 | fi | |
11106 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11107 | fi | |
11108 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5 | |
11109 | echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6 | |
11110 | if test $ac_cv_have_decl_stpcpy = yes; then | |
11111 | ||
11112 | cat >>confdefs.h <<_ACEOF | |
11113 | #define HAVE_DECL_STPCPY 1 | |
11114 | _ACEOF | |
11115 | ||
11116 | ||
11117 | else | |
11118 | cat >>confdefs.h <<_ACEOF | |
11119 | #define HAVE_DECL_STPCPY 0 | |
11120 | _ACEOF | |
11121 | ||
11122 | ||
11123 | fi | |
11124 | ||
11125 | ||
d34a2b1d JG |
11126 | echo "$as_me:$LINENO: checking whether strstr is declared" >&5 |
11127 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 | |
11128 | if test "${ac_cv_have_decl_strstr+set}" = set; then | |
efa9bda4 AL |
11129 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11130 | else | |
11131 | cat >conftest.$ac_ext <<_ACEOF | |
11132 | /* confdefs.h. */ | |
11133 | _ACEOF | |
11134 | cat confdefs.h >>conftest.$ac_ext | |
11135 | cat >>conftest.$ac_ext <<_ACEOF | |
11136 | /* end confdefs.h. */ | |
d34a2b1d | 11137 | $ac_includes_default |
efa9bda4 AL |
11138 | int |
11139 | main () | |
11140 | { | |
d34a2b1d JG |
11141 | #ifndef strstr |
11142 | char *p = (char *) strstr; | |
11143 | #endif | |
11144 | ||
efa9bda4 AL |
11145 | ; |
11146 | return 0; | |
11147 | } | |
11148 | _ACEOF | |
11149 | rm -f conftest.$ac_objext | |
11150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11151 | (eval $ac_compile) 2>conftest.er1 | |
11152 | ac_status=$? | |
11153 | grep -v '^ *+' conftest.er1 >conftest.err | |
11154 | rm -f conftest.er1 | |
11155 | cat conftest.err >&5 | |
11156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11157 | (exit $ac_status); } && | |
e1fffbe6 AM |
11158 | { ac_try='test -z "$ac_c_werror_flag" |
11159 | || test ! -s conftest.err' | |
efa9bda4 AL |
11160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11161 | (eval $ac_try) 2>&5 | |
11162 | ac_status=$? | |
11163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11164 | (exit $ac_status); }; } && | |
11165 | { ac_try='test -s conftest.$ac_objext' | |
11166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11167 | (eval $ac_try) 2>&5 | |
11168 | ac_status=$? | |
11169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11170 | (exit $ac_status); }; }; then | |
d34a2b1d | 11171 | ac_cv_have_decl_strstr=yes |
efa9bda4 AL |
11172 | else |
11173 | echo "$as_me: failed program was:" >&5 | |
11174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11175 | ||
d34a2b1d | 11176 | ac_cv_have_decl_strstr=no |
efa9bda4 AL |
11177 | fi |
11178 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11179 | fi | |
d34a2b1d JG |
11180 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 |
11181 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 | |
11182 | if test $ac_cv_have_decl_strstr = yes; then | |
efa9bda4 | 11183 | |
d34a2b1d JG |
11184 | cat >>confdefs.h <<_ACEOF |
11185 | #define HAVE_DECL_STRSTR 1 | |
11186 | _ACEOF | |
efa9bda4 | 11187 | |
d34a2b1d JG |
11188 | |
11189 | else | |
11190 | cat >>confdefs.h <<_ACEOF | |
11191 | #define HAVE_DECL_STRSTR 0 | |
5464f5a1 | 11192 | _ACEOF |
252b5132 | 11193 | |
d34a2b1d | 11194 | |
252b5132 RH |
11195 | fi |
11196 | ||
6be7c12c | 11197 | |
36527912 AJ |
11198 | echo "$as_me:$LINENO: checking whether snprintf is declared" >&5 |
11199 | echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6 | |
11200 | if test "${ac_cv_have_decl_snprintf+set}" = set; then | |
11201 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11202 | else | |
11203 | cat >conftest.$ac_ext <<_ACEOF | |
11204 | /* confdefs.h. */ | |
11205 | _ACEOF | |
11206 | cat confdefs.h >>conftest.$ac_ext | |
11207 | cat >>conftest.$ac_ext <<_ACEOF | |
11208 | /* end confdefs.h. */ | |
11209 | $ac_includes_default | |
11210 | int | |
11211 | main () | |
11212 | { | |
11213 | #ifndef snprintf | |
11214 | char *p = (char *) snprintf; | |
11215 | #endif | |
11216 | ||
11217 | ; | |
11218 | return 0; | |
11219 | } | |
11220 | _ACEOF | |
11221 | rm -f conftest.$ac_objext | |
11222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11223 | (eval $ac_compile) 2>conftest.er1 | |
11224 | ac_status=$? | |
11225 | grep -v '^ *+' conftest.er1 >conftest.err | |
11226 | rm -f conftest.er1 | |
11227 | cat conftest.err >&5 | |
11228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11229 | (exit $ac_status); } && | |
e1fffbe6 AM |
11230 | { ac_try='test -z "$ac_c_werror_flag" |
11231 | || test ! -s conftest.err' | |
36527912 AJ |
11232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11233 | (eval $ac_try) 2>&5 | |
11234 | ac_status=$? | |
11235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11236 | (exit $ac_status); }; } && | |
11237 | { ac_try='test -s conftest.$ac_objext' | |
11238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11239 | (eval $ac_try) 2>&5 | |
11240 | ac_status=$? | |
11241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11242 | (exit $ac_status); }; }; then | |
11243 | ac_cv_have_decl_snprintf=yes | |
11244 | else | |
11245 | echo "$as_me: failed program was:" >&5 | |
11246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11247 | ||
11248 | ac_cv_have_decl_snprintf=no | |
11249 | fi | |
11250 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11251 | fi | |
11252 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5 | |
11253 | echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6 | |
11254 | if test $ac_cv_have_decl_snprintf = yes; then | |
11255 | ||
11256 | cat >>confdefs.h <<_ACEOF | |
11257 | #define HAVE_DECL_SNPRINTF 1 | |
11258 | _ACEOF | |
11259 | ||
11260 | ||
11261 | else | |
11262 | cat >>confdefs.h <<_ACEOF | |
11263 | #define HAVE_DECL_SNPRINTF 0 | |
11264 | _ACEOF | |
11265 | ||
11266 | ||
11267 | fi | |
11268 | ||
11269 | ||
11270 | echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 | |
11271 | echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6 | |
11272 | if test "${ac_cv_have_decl_vsnprintf+set}" = set; then | |
11273 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11274 | else | |
11275 | cat >conftest.$ac_ext <<_ACEOF | |
11276 | /* confdefs.h. */ | |
11277 | _ACEOF | |
11278 | cat confdefs.h >>conftest.$ac_ext | |
11279 | cat >>conftest.$ac_ext <<_ACEOF | |
11280 | /* end confdefs.h. */ | |
11281 | $ac_includes_default | |
11282 | int | |
11283 | main () | |
11284 | { | |
11285 | #ifndef vsnprintf | |
11286 | char *p = (char *) vsnprintf; | |
11287 | #endif | |
11288 | ||
11289 | ; | |
11290 | return 0; | |
11291 | } | |
11292 | _ACEOF | |
11293 | rm -f conftest.$ac_objext | |
11294 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11295 | (eval $ac_compile) 2>conftest.er1 | |
11296 | ac_status=$? | |
11297 | grep -v '^ *+' conftest.er1 >conftest.err | |
11298 | rm -f conftest.er1 | |
11299 | cat conftest.err >&5 | |
11300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11301 | (exit $ac_status); } && | |
e1fffbe6 AM |
11302 | { ac_try='test -z "$ac_c_werror_flag" |
11303 | || test ! -s conftest.err' | |
36527912 AJ |
11304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11305 | (eval $ac_try) 2>&5 | |
11306 | ac_status=$? | |
11307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11308 | (exit $ac_status); }; } && | |
11309 | { ac_try='test -s conftest.$ac_objext' | |
11310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11311 | (eval $ac_try) 2>&5 | |
11312 | ac_status=$? | |
11313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11314 | (exit $ac_status); }; }; then | |
11315 | ac_cv_have_decl_vsnprintf=yes | |
11316 | else | |
11317 | echo "$as_me: failed program was:" >&5 | |
11318 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11319 | ||
11320 | ac_cv_have_decl_vsnprintf=no | |
11321 | fi | |
11322 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11323 | fi | |
11324 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 | |
11325 | echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6 | |
11326 | if test $ac_cv_have_decl_vsnprintf = yes; then | |
11327 | ||
11328 | cat >>confdefs.h <<_ACEOF | |
11329 | #define HAVE_DECL_VSNPRINTF 1 | |
11330 | _ACEOF | |
11331 | ||
11332 | ||
11333 | else | |
11334 | cat >>confdefs.h <<_ACEOF | |
11335 | #define HAVE_DECL_VSNPRINTF 0 | |
11336 | _ACEOF | |
11337 | ||
11338 | ||
11339 | fi | |
11340 | ||
11341 | ||
d34a2b1d | 11342 | |
252b5132 RH |
11343 | # If we are configured native, pick a core file support file. |
11344 | COREFILE= | |
11345 | COREFLAG= | |
11346 | TRAD_HEADER= | |
11347 | if test "${target}" = "${host}"; then | |
11348 | case "${host}" in | |
13dfd2d0 | 11349 | alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu) |
46d59bfa DB |
11350 | COREFILE='' |
11351 | ;; | |
ed84e695 | 11352 | alpha*-*-linux-*) |
252b5132 RH |
11353 | COREFILE=trad-core.lo |
11354 | TRAD_HEADER='"hosts/alphalinux.h"' | |
11355 | ;; | |
690cc98b NC |
11356 | alpha*-*-netbsd* | alpha*-*-openbsd*) |
11357 | COREFILE=netbsd-core.lo | |
11358 | ;; | |
252b5132 | 11359 | alpha*-*-*) COREFILE=osf-core.lo ;; |
13dfd2d0 NC |
11360 | arm-*-freebsd* | arm-*-kfreebsd*-gnu) |
11361 | COREFILE='' ;; | |
61d0bc33 | 11362 | arm-*-netbsd*) COREFILE=netbsd-core.lo ;; |
252b5132 RH |
11363 | arm-*-riscix) COREFILE=trad-core.lo ;; |
11364 | hppa*-*-hpux*) COREFILE=hpux-core.lo ;; | |
11365 | hppa*-*-hiux*) COREFILE=hpux-core.lo ;; | |
11366 | hppa*-*-mpeix*) COREFILE=hpux-core.lo ;; | |
11367 | hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo" | |
11368 | COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; | |
eef0f186 MK |
11369 | hppa*-*-netbsd* | hppa*-*-openbsd*) |
11370 | COREFILE=netbsd-core.lo | |
11371 | ;; | |
11372 | ||
dc810e39 | 11373 | i370-*-*) |
5b93d8bb AM |
11374 | COREFILE=trad-core.lo |
11375 | TRAD_HEADER='"hosts/i370linux.h"' | |
11376 | ;; | |
11377 | ||
80c7c40a | 11378 | i[3-7]86-sequent-bsd*) |
5b93d8bb | 11379 | COREFILE=trad-core.lo |
252b5132 RH |
11380 | TRAD_HEADER='"hosts/symmetry.h"' |
11381 | ;; | |
80c7c40a NC |
11382 | i[3-7]86-sequent-sysv4*) ;; |
11383 | i[3-7]86-sequent-sysv*) | |
252b5132 RH |
11384 | COREFILE=trad-core.lo |
11385 | TRAD_HEADER='"hosts/symmetry.h"' | |
11386 | ;; | |
80c7c40a | 11387 | i[3-7]86-*-bsdi) |
7e3b3466 NC |
11388 | COREFILE= |
11389 | ;; | |
d2bef492 | 11390 | 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 |
11391 | COREFILE=trad-core.lo |
11392 | TRAD_HEADER='"hosts/i386bsd.h"' | |
11393 | ;; | |
13dfd2d0 | 11394 | i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu) |
d4af9775 DB |
11395 | COREFILE='' |
11396 | TRAD_HEADER='"hosts/i386bsd.h"' | |
11397 | ;; | |
4615568e | 11398 | i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*) |
252b5132 RH |
11399 | COREFILE=netbsd-core.lo |
11400 | ;; | |
80c7c40a | 11401 | i[3-7]86-esix-sysv3*) |
252b5132 RH |
11402 | COREFILE=trad-core.lo |
11403 | TRAD_HEADER='"hosts/esix.h"' | |
11404 | ;; | |
80c7c40a | 11405 | i[3-7]86-*-sco3.2v5*) |
252b5132 RH |
11406 | COREFILE=sco5-core.lo |
11407 | ;; | |
80c7c40a | 11408 | i[3-7]86-*-sco* | i[3-7]86-*-isc*) |
252b5132 RH |
11409 | COREFILE=trad-core.lo |
11410 | TRAD_HEADER='"hosts/i386sco.h"' | |
11411 | ;; | |
80c7c40a | 11412 | i[3-7]86-*-mach3*) |
252b5132 RH |
11413 | COREFILE=trad-core.lo |
11414 | TRAD_HEADER='"hosts/i386mach3.h"' | |
11415 | ;; | |
ed84e695 | 11416 | i[3-7]86-*-linux-*) |
252b5132 RH |
11417 | COREFILE=trad-core.lo |
11418 | TRAD_HEADER='"hosts/i386linux.h"' | |
11419 | ;; | |
80c7c40a NC |
11420 | i[3-7]86-*-isc*) COREFILE=trad-core.lo ;; |
11421 | i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;; | |
252b5132 RH |
11422 | i860-*-mach3* | i860-*-osf1*) |
11423 | COREFILE=trad-core.lo | |
11424 | TRAD_HEADER='"hosts/i860mach3.h"' | |
11425 | ;; | |
252b5132 RH |
11426 | mips-*-netbsd* | mips*-*-openbsd*) |
11427 | COREFILE=netbsd-core.lo | |
11428 | ;; | |
11429 | mips-dec-*) | |
11430 | COREFILE=trad-core.lo | |
11431 | TRAD_HEADER='"hosts/decstation.h"' | |
11432 | ;; | |
11433 | mips-sgi-irix4*) COREFILE=irix-core.lo ;; | |
11434 | mips-sgi-irix5*) COREFILE=irix-core.lo ;; | |
11435 | mips-sgi-irix6*) COREFILE=irix-core.lo ;; | |
252b5132 RH |
11436 | mips-*-sysv4*) ;; |
11437 | mips-*-sysv* | mips-*-riscos*) | |
11438 | COREFILE=trad-core.lo | |
11439 | TRAD_HEADER='"hosts/riscos.h"' | |
11440 | ;; | |
11441 | mips-sony-bsd*) | |
11442 | COREFILE=trad-core.lo | |
11443 | TRAD_HEADER='"hosts/news-mips.h"' | |
11444 | ;; | |
11445 | m68*-bull*-sysv*) | |
11446 | COREFILE=trad-core.lo | |
11447 | TRAD_HEADER='"hosts/dpx2.h"' | |
11448 | ;; | |
11449 | m68*-hp-hpux*) COREFILE=hpux-core.lo ;; | |
11450 | m68*-hp-bsd*) | |
11451 | COREFILE=trad-core.lo | |
11452 | TRAD_HEADER='"hosts/hp300bsd.h"' | |
11453 | ;; | |
ed84e695 | 11454 | m68*-*-linux-*) |
252b5132 RH |
11455 | COREFILE=trad-core.lo |
11456 | TRAD_HEADER='"hosts/m68klinux.h"' | |
11457 | ;; | |
11458 | m68*-motorola-sysv*) | |
11459 | COREFILE=trad-core.lo | |
11460 | TRAD_HEADER='"hosts/delta68.h"' | |
11461 | ;; | |
11462 | m68*-sony-*) | |
11463 | COREFILE=trad-core.lo | |
11464 | TRAD_HEADER='"hosts/news.h"' | |
11465 | ;; | |
11466 | m68*-*-netbsd* | m68*-*-openbsd*) | |
11467 | COREFILE=netbsd-core.lo | |
11468 | ;; | |
11469 | m68*-apple-aux*) | |
11470 | COREFILE=trad-core.lo | |
11471 | TRAD_HEADER='"hosts/m68kaux.h"' | |
11472 | ;; | |
eb1e0e80 NC |
11473 | m88*-*-sysv4*) |
11474 | ;; | |
11475 | m88*-motorola-sysv*) | |
11476 | COREFILE=ptrace-core.lo | |
11477 | ;; | |
252b5132 RH |
11478 | m88*-*-mach3*) |
11479 | COREFILE=trad-core.lo | |
11480 | TRAD_HEADER='"hosts/m88kmach3.h"' | |
11481 | ;; | |
c6f8758f NC |
11482 | m88*-*-openbsd*) |
11483 | COREFILE=netbsd-core.lo | |
11484 | ;; | |
252b5132 RH |
11485 | ns32k-pc532-mach) |
11486 | COREFILE=trad-core.lo | |
11487 | TRAD_HEADER='"hosts/pc532mach.h"' | |
11488 | ;; | |
11489 | ns32k-*-netbsd* | ns32k-*-openbsd*) | |
11490 | COREFILE=netbsd-core.lo | |
11491 | ;; | |
eb1e0e80 NC |
11492 | rs6000-*-lynx*) |
11493 | COREFILE=lynx-core.lo | |
11494 | ;; | |
11495 | rs6000-*-aix5.* | powerpc-*-aix5.*) | |
11496 | COREFILE=rs6000-core.lo | |
11497 | COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE" | |
11498 | ;; | |
83954261 | 11499 | rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*) |
653f71ca KB |
11500 | COREFILE=rs6000-core.lo |
11501 | COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE" | |
83954261 AM |
11502 | # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE |
11503 | # have c_impl as a member of struct core_dumpx | |
5464f5a1 NN |
11504 | echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5 |
11505 | echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6 | |
11506 | cat >conftest.$ac_ext <<_ACEOF | |
11507 | /* confdefs.h. */ | |
11508 | _ACEOF | |
11509 | cat confdefs.h >>conftest.$ac_ext | |
11510 | cat >>conftest.$ac_ext <<_ACEOF | |
11511 | /* end confdefs.h. */ | |
83954261 | 11512 | #include <core.h> |
5464f5a1 NN |
11513 | int |
11514 | main () | |
11515 | { | |
83954261 | 11516 | struct core_dumpx c; c.c_impl = 0; |
5464f5a1 NN |
11517 | ; |
11518 | return 0; | |
11519 | } | |
11520 | _ACEOF | |
11521 | rm -f conftest.$ac_objext | |
11522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11523 | (eval $ac_compile) 2>conftest.er1 | |
11524 | ac_status=$? | |
11525 | grep -v '^ *+' conftest.er1 >conftest.err | |
11526 | rm -f conftest.er1 | |
11527 | cat conftest.err >&5 | |
11528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11529 | (exit $ac_status); } && | |
e1fffbe6 AM |
11530 | { ac_try='test -z "$ac_c_werror_flag" |
11531 | || test ! -s conftest.err' | |
5464f5a1 NN |
11532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11533 | (eval $ac_try) 2>&5 | |
11534 | ac_status=$? | |
11535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11536 | (exit $ac_status); }; } && | |
11537 | { ac_try='test -s conftest.$ac_objext' | |
11538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11539 | (eval $ac_try) 2>&5 | |
11540 | ac_status=$? | |
11541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11542 | (exit $ac_status); }; }; then | |
11543 | ||
11544 | cat >>confdefs.h <<\_ACEOF | |
83954261 | 11545 | #define HAVE_ST_C_IMPL 1 |
5464f5a1 | 11546 | _ACEOF |
83954261 | 11547 | |
5464f5a1 NN |
11548 | echo "$as_me:$LINENO: result: yes" >&5 |
11549 | echo "${ECHO_T}yes" >&6 | |
83954261 | 11550 | else |
5464f5a1 NN |
11551 | echo "$as_me: failed program was:" >&5 |
11552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11553 | ||
11554 | echo "$as_me:$LINENO: result: no" >&5 | |
11555 | echo "${ECHO_T}no" >&6 | |
83954261 | 11556 | fi |
5464f5a1 | 11557 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
653f71ca | 11558 | ;; |
252b5132 RH |
11559 | rs6000-*-aix4*) COREFILE=rs6000-core.lo ;; |
11560 | rs6000-*-*) COREFILE=rs6000-core.lo ;; | |
252b5132 RH |
11561 | powerpc-*-aix4*) COREFILE=rs6000-core.lo ;; |
11562 | powerpc-*-aix*) COREFILE=rs6000-core.lo ;; | |
11563 | powerpc-*-beos*) ;; | |
13dfd2d0 NC |
11564 | powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu) |
11565 | COREFILE='' ;; | |
252b5132 | 11566 | powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;; |
d4af9775 | 11567 | powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;; |
dc810e39 | 11568 | s390*-*-*) COREFILE=trad-core.lo ;; |
8d05742f | 11569 | sh*-*-netbsd*) COREFILE=netbsd-core.lo ;; |
a9bf1154 | 11570 | sparc-*-netbsd* | sparc*-*-openbsd*) |
252b5132 RH |
11571 | COREFILE=netbsd-core.lo |
11572 | ;; | |
11573 | tahoe-*-*) | |
11574 | COREFILE=trad-core.lo | |
11575 | TRAD_HEADER='"hosts/tahoe.h"' | |
11576 | ;; | |
de6e5e1a NC |
11577 | vax-*-netbsd* | vax-*-openbsd*) |
11578 | COREFILE=netbsd-core.lo | |
11579 | ;; | |
252b5132 RH |
11580 | vax-*-ultrix2*) |
11581 | COREFILE=trad-core.lo | |
11582 | TRAD_HEADER='"hosts/vaxult2.h"' | |
11583 | ;; | |
11584 | vax-*-ultrix*) | |
11585 | COREFILE=trad-core.lo | |
11586 | TRAD_HEADER='"hosts/vaxult2.h"' | |
11587 | ;; | |
ed84e695 | 11588 | vax-*-linux-*) |
f8fc3443 NC |
11589 | COREFILE=trad-core.lo |
11590 | TRAD_HEADER='"hosts/vaxlinux.h"' | |
11591 | ;; | |
252b5132 RH |
11592 | vax-*-*) |
11593 | COREFILE=trad-core.lo | |
11594 | TRAD_HEADER='"hosts/vaxbsd.h"' | |
11595 | ;; | |
85cfd8d3 MK |
11596 | x86_64-*-netbsd* | x86_64-*-openbsd*) |
11597 | COREFILE=netbsd-core.lo | |
11598 | ;; | |
252b5132 RH |
11599 | esac |
11600 | ||
11601 | case "$COREFILE" in | |
11602 | aix386-core.lo) COREFLAG=-DAIX386_CORE ;; | |
11603 | hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;; | |
11604 | hpux-core.lo) COREFLAG=-DHPUX_CORE ;; | |
11605 | irix-core.lo) COREFLAG=-DIRIX_CORE ;; | |
11606 | lynx-core.lo) COREFLAG=-DLYNX_CORE ;; | |
11607 | netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;; | |
11608 | osf-core.lo) COREFLAG=-DOSF_CORE ;; | |
11609 | ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;; | |
11610 | rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;; | |
11611 | sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;; | |
11612 | trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;; | |
11613 | esac | |
11614 | ||
11615 | # ELF corefile support has several flavors, but all of | |
11616 | # them use something called <sys/procfs.h> | |
5464f5a1 NN |
11617 | |
11618 | for ac_header in sys/procfs.h | |
252b5132 | 11619 | do |
5464f5a1 NN |
11620 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
11621 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11622 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11623 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11624 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11625 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11626 | fi | |
11627 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11628 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11629 | else | |
11630 | # Is the header compilable? | |
11631 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
11632 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
11633 | cat >conftest.$ac_ext <<_ACEOF | |
11634 | /* confdefs.h. */ | |
11635 | _ACEOF | |
11636 | cat confdefs.h >>conftest.$ac_ext | |
11637 | cat >>conftest.$ac_ext <<_ACEOF | |
11638 | /* end confdefs.h. */ | |
11639 | $ac_includes_default | |
11640 | #include <$ac_header> | |
11641 | _ACEOF | |
11642 | rm -f conftest.$ac_objext | |
11643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11644 | (eval $ac_compile) 2>conftest.er1 | |
11645 | ac_status=$? | |
11646 | grep -v '^ *+' conftest.er1 >conftest.err | |
11647 | rm -f conftest.er1 | |
11648 | cat conftest.err >&5 | |
11649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11650 | (exit $ac_status); } && | |
e1fffbe6 AM |
11651 | { ac_try='test -z "$ac_c_werror_flag" |
11652 | || test ! -s conftest.err' | |
5464f5a1 NN |
11653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11654 | (eval $ac_try) 2>&5 | |
11655 | ac_status=$? | |
11656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11657 | (exit $ac_status); }; } && | |
11658 | { ac_try='test -s conftest.$ac_objext' | |
11659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11660 | (eval $ac_try) 2>&5 | |
11661 | ac_status=$? | |
11662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11663 | (exit $ac_status); }; }; then | |
11664 | ac_header_compiler=yes | |
11665 | else | |
11666 | echo "$as_me: failed program was:" >&5 | |
11667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11668 | ||
11669 | ac_header_compiler=no | |
11670 | fi | |
11671 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11672 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
11673 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
11674 | ||
11675 | # Is the header present? | |
11676 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
11677 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
11678 | cat >conftest.$ac_ext <<_ACEOF | |
11679 | /* confdefs.h. */ | |
11680 | _ACEOF | |
11681 | cat confdefs.h >>conftest.$ac_ext | |
11682 | cat >>conftest.$ac_ext <<_ACEOF | |
11683 | /* end confdefs.h. */ | |
11684 | #include <$ac_header> | |
11685 | _ACEOF | |
11686 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
11687 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
11688 | ac_status=$? | |
11689 | grep -v '^ *+' conftest.er1 >conftest.err | |
11690 | rm -f conftest.er1 | |
11691 | cat conftest.err >&5 | |
11692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11693 | (exit $ac_status); } >/dev/null; then | |
11694 | if test -s conftest.err; then | |
11695 | ac_cpp_err=$ac_c_preproc_warn_flag | |
11696 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
11697 | else | |
11698 | ac_cpp_err= | |
11699 | fi | |
252b5132 | 11700 | else |
5464f5a1 | 11701 | ac_cpp_err=yes |
252b5132 | 11702 | fi |
5464f5a1 NN |
11703 | if test -z "$ac_cpp_err"; then |
11704 | ac_header_preproc=yes | |
11705 | else | |
11706 | echo "$as_me: failed program was:" >&5 | |
11707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11708 | ||
11709 | ac_header_preproc=no | |
252b5132 | 11710 | fi |
5464f5a1 NN |
11711 | rm -f conftest.err conftest.$ac_ext |
11712 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
11713 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
11714 | ||
11715 | # So? What about this header? | |
11716 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
11717 | yes:no: ) | |
11718 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
11719 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
11720 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
11721 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
11722 | ac_header_preproc=yes | |
11723 | ;; | |
11724 | no:yes:* ) | |
11725 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
11726 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
11727 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
11728 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
11729 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
11730 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
11731 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
11732 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
11733 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
11734 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
11735 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
11736 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
11737 | ( | |
11738 | cat <<\_ASBOX | |
11739 | ## ------------------------------------------ ## | |
11740 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
11741 | ## ------------------------------------------ ## | |
11742 | _ASBOX | |
11743 | ) | | |
11744 | sed "s/^/$as_me: WARNING: /" >&2 | |
11745 | ;; | |
11746 | esac | |
11747 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
11748 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
11749 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
11750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 11751 | else |
5464f5a1 NN |
11752 | eval "$as_ac_Header=\$ac_header_preproc" |
11753 | fi | |
11754 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
11755 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
11756 | ||
252b5132 | 11757 | fi |
5464f5a1 NN |
11758 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
11759 | cat >>confdefs.h <<_ACEOF | |
11760 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
11761 | _ACEOF | |
11762 | ||
11763 | fi | |
11764 | ||
252b5132 RH |
11765 | done |
11766 | ||
11767 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
5464f5a1 NN |
11768 | echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5 |
11769 | echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
11770 | if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then | |
11771 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11772 | else | |
11773 | cat >conftest.$ac_ext <<_ACEOF | |
11774 | /* confdefs.h. */ | |
11775 | _ACEOF | |
11776 | cat confdefs.h >>conftest.$ac_ext | |
11777 | cat >>conftest.$ac_ext <<_ACEOF | |
11778 | /* end confdefs.h. */ | |
7ee38065 MS |
11779 | |
11780 | #define _SYSCALL32 | |
252b5132 | 11781 | #include <sys/procfs.h> |
5464f5a1 NN |
11782 | int |
11783 | main () | |
11784 | { | |
252b5132 | 11785 | prstatus_t avar |
5464f5a1 NN |
11786 | ; |
11787 | return 0; | |
11788 | } | |
11789 | _ACEOF | |
11790 | rm -f conftest.$ac_objext | |
11791 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11792 | (eval $ac_compile) 2>conftest.er1 | |
11793 | ac_status=$? | |
11794 | grep -v '^ *+' conftest.er1 >conftest.err | |
11795 | rm -f conftest.er1 | |
11796 | cat conftest.err >&5 | |
11797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11798 | (exit $ac_status); } && | |
e1fffbe6 AM |
11799 | { ac_try='test -z "$ac_c_werror_flag" |
11800 | || test ! -s conftest.err' | |
5464f5a1 NN |
11801 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11802 | (eval $ac_try) 2>&5 | |
11803 | ac_status=$? | |
11804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11805 | (exit $ac_status); }; } && | |
11806 | { ac_try='test -s conftest.$ac_objext' | |
11807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11808 | (eval $ac_try) 2>&5 | |
11809 | ac_status=$? | |
11810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11811 | (exit $ac_status); }; }; then | |
252b5132 RH |
11812 | bfd_cv_have_sys_procfs_type_prstatus_t=yes |
11813 | else | |
5464f5a1 NN |
11814 | echo "$as_me: failed program was:" >&5 |
11815 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11816 | ||
11817 | bfd_cv_have_sys_procfs_type_prstatus_t=no | |
11818 | ||
252b5132 | 11819 | fi |
5464f5a1 | 11820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
11821 | fi |
11822 | ||
11823 | if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then | |
5464f5a1 NN |
11824 | |
11825 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 11826 | #define HAVE_PRSTATUS_T 1 |
5464f5a1 | 11827 | _ACEOF |
252b5132 RH |
11828 | |
11829 | fi | |
5464f5a1 NN |
11830 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5 |
11831 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6 | |
252b5132 | 11832 | |
5464f5a1 NN |
11833 | echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5 |
11834 | echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6 | |
11835 | if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then | |
11836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 11837 | else |
5464f5a1 NN |
11838 | cat >conftest.$ac_ext <<_ACEOF |
11839 | /* confdefs.h. */ | |
11840 | _ACEOF | |
11841 | cat confdefs.h >>conftest.$ac_ext | |
11842 | cat >>conftest.$ac_ext <<_ACEOF | |
11843 | /* end confdefs.h. */ | |
7ee38065 MS |
11844 | |
11845 | #define _SYSCALL32 | |
11846 | #include <sys/procfs.h> | |
5464f5a1 NN |
11847 | int |
11848 | main () | |
11849 | { | |
7ee38065 | 11850 | prstatus32_t avar |
5464f5a1 NN |
11851 | ; |
11852 | return 0; | |
11853 | } | |
11854 | _ACEOF | |
11855 | rm -f conftest.$ac_objext | |
11856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11857 | (eval $ac_compile) 2>conftest.er1 | |
11858 | ac_status=$? | |
11859 | grep -v '^ *+' conftest.er1 >conftest.err | |
11860 | rm -f conftest.er1 | |
11861 | cat conftest.err >&5 | |
11862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11863 | (exit $ac_status); } && | |
e1fffbe6 AM |
11864 | { ac_try='test -z "$ac_c_werror_flag" |
11865 | || test ! -s conftest.err' | |
5464f5a1 NN |
11866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11867 | (eval $ac_try) 2>&5 | |
11868 | ac_status=$? | |
11869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11870 | (exit $ac_status); }; } && | |
11871 | { ac_try='test -s conftest.$ac_objext' | |
11872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11873 | (eval $ac_try) 2>&5 | |
11874 | ac_status=$? | |
11875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11876 | (exit $ac_status); }; }; then | |
7ee38065 MS |
11877 | bfd_cv_have_sys_procfs_type_prstatus32_t=yes |
11878 | else | |
5464f5a1 NN |
11879 | echo "$as_me: failed program was:" >&5 |
11880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11881 | ||
11882 | bfd_cv_have_sys_procfs_type_prstatus32_t=no | |
11883 | ||
7ee38065 | 11884 | fi |
5464f5a1 | 11885 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
11886 | fi |
11887 | ||
11888 | if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then | |
5464f5a1 NN |
11889 | |
11890 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 11891 | #define HAVE_PRSTATUS32_T 1 |
5464f5a1 | 11892 | _ACEOF |
7ee38065 MS |
11893 | |
11894 | fi | |
5464f5a1 NN |
11895 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5 |
11896 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6 | |
7ee38065 | 11897 | |
5464f5a1 NN |
11898 | echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5 |
11899 | echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6 | |
11900 | if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then | |
11901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 11902 | else |
5464f5a1 NN |
11903 | cat >conftest.$ac_ext <<_ACEOF |
11904 | /* confdefs.h. */ | |
11905 | _ACEOF | |
11906 | cat confdefs.h >>conftest.$ac_ext | |
11907 | cat >>conftest.$ac_ext <<_ACEOF | |
11908 | /* end confdefs.h. */ | |
7ee38065 MS |
11909 | |
11910 | #define _SYSCALL32 | |
252b5132 | 11911 | #include <sys/procfs.h> |
5464f5a1 NN |
11912 | int |
11913 | main () | |
11914 | { | |
252b5132 | 11915 | prstatus_t avar; void* aref = (void*) &avar.pr_who |
5464f5a1 NN |
11916 | ; |
11917 | return 0; | |
11918 | } | |
11919 | _ACEOF | |
11920 | rm -f conftest.$ac_objext | |
11921 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11922 | (eval $ac_compile) 2>conftest.er1 | |
11923 | ac_status=$? | |
11924 | grep -v '^ *+' conftest.er1 >conftest.err | |
11925 | rm -f conftest.er1 | |
11926 | cat conftest.err >&5 | |
11927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11928 | (exit $ac_status); } && | |
e1fffbe6 AM |
11929 | { ac_try='test -z "$ac_c_werror_flag" |
11930 | || test ! -s conftest.err' | |
5464f5a1 NN |
11931 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11932 | (eval $ac_try) 2>&5 | |
11933 | ac_status=$? | |
11934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11935 | (exit $ac_status); }; } && | |
11936 | { ac_try='test -s conftest.$ac_objext' | |
11937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11938 | (eval $ac_try) 2>&5 | |
11939 | ac_status=$? | |
11940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11941 | (exit $ac_status); }; }; then | |
252b5132 RH |
11942 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes |
11943 | else | |
5464f5a1 NN |
11944 | echo "$as_me: failed program was:" >&5 |
11945 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11946 | ||
11947 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no | |
11948 | ||
252b5132 | 11949 | fi |
5464f5a1 | 11950 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
11951 | fi |
11952 | ||
11953 | if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then | |
5464f5a1 NN |
11954 | |
11955 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 11956 | #define HAVE_PRSTATUS_T_PR_WHO 1 |
5464f5a1 | 11957 | _ACEOF |
252b5132 RH |
11958 | |
11959 | fi | |
5464f5a1 NN |
11960 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5 |
11961 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6 | |
252b5132 | 11962 | |
5464f5a1 NN |
11963 | echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5 |
11964 | echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6 | |
11965 | if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then | |
11966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 11967 | else |
5464f5a1 NN |
11968 | cat >conftest.$ac_ext <<_ACEOF |
11969 | /* confdefs.h. */ | |
11970 | _ACEOF | |
11971 | cat confdefs.h >>conftest.$ac_ext | |
11972 | cat >>conftest.$ac_ext <<_ACEOF | |
11973 | /* end confdefs.h. */ | |
7ee38065 MS |
11974 | |
11975 | #define _SYSCALL32 | |
11976 | #include <sys/procfs.h> | |
5464f5a1 NN |
11977 | int |
11978 | main () | |
11979 | { | |
7ee38065 | 11980 | prstatus32_t avar; void* aref = (void*) &avar.pr_who |
5464f5a1 NN |
11981 | ; |
11982 | return 0; | |
11983 | } | |
11984 | _ACEOF | |
11985 | rm -f conftest.$ac_objext | |
11986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11987 | (eval $ac_compile) 2>conftest.er1 | |
11988 | ac_status=$? | |
11989 | grep -v '^ *+' conftest.er1 >conftest.err | |
11990 | rm -f conftest.er1 | |
11991 | cat conftest.err >&5 | |
11992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11993 | (exit $ac_status); } && | |
e1fffbe6 AM |
11994 | { ac_try='test -z "$ac_c_werror_flag" |
11995 | || test ! -s conftest.err' | |
5464f5a1 NN |
11996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11997 | (eval $ac_try) 2>&5 | |
11998 | ac_status=$? | |
11999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12000 | (exit $ac_status); }; } && | |
12001 | { ac_try='test -s conftest.$ac_objext' | |
12002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12003 | (eval $ac_try) 2>&5 | |
12004 | ac_status=$? | |
12005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12006 | (exit $ac_status); }; }; then | |
7ee38065 MS |
12007 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes |
12008 | else | |
5464f5a1 NN |
12009 | echo "$as_me: failed program was:" >&5 |
12010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12011 | ||
12012 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no | |
12013 | ||
7ee38065 | 12014 | fi |
5464f5a1 | 12015 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
12016 | fi |
12017 | ||
12018 | if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then | |
5464f5a1 NN |
12019 | |
12020 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 12021 | #define HAVE_PRSTATUS32_T_PR_WHO 1 |
5464f5a1 | 12022 | _ACEOF |
7ee38065 MS |
12023 | |
12024 | fi | |
5464f5a1 NN |
12025 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5 |
12026 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6 | |
7ee38065 | 12027 | |
5464f5a1 NN |
12028 | echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5 |
12029 | echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
12030 | if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then | |
12031 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 12032 | else |
5464f5a1 NN |
12033 | cat >conftest.$ac_ext <<_ACEOF |
12034 | /* confdefs.h. */ | |
12035 | _ACEOF | |
12036 | cat confdefs.h >>conftest.$ac_ext | |
12037 | cat >>conftest.$ac_ext <<_ACEOF | |
12038 | /* end confdefs.h. */ | |
7ee38065 MS |
12039 | |
12040 | #define _SYSCALL32 | |
252b5132 | 12041 | #include <sys/procfs.h> |
5464f5a1 NN |
12042 | int |
12043 | main () | |
12044 | { | |
252b5132 | 12045 | pstatus_t avar |
5464f5a1 NN |
12046 | ; |
12047 | return 0; | |
12048 | } | |
12049 | _ACEOF | |
12050 | rm -f conftest.$ac_objext | |
12051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12052 | (eval $ac_compile) 2>conftest.er1 | |
12053 | ac_status=$? | |
12054 | grep -v '^ *+' conftest.er1 >conftest.err | |
12055 | rm -f conftest.er1 | |
12056 | cat conftest.err >&5 | |
12057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12058 | (exit $ac_status); } && | |
e1fffbe6 AM |
12059 | { ac_try='test -z "$ac_c_werror_flag" |
12060 | || test ! -s conftest.err' | |
5464f5a1 NN |
12061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12062 | (eval $ac_try) 2>&5 | |
12063 | ac_status=$? | |
12064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12065 | (exit $ac_status); }; } && | |
12066 | { ac_try='test -s conftest.$ac_objext' | |
12067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12068 | (eval $ac_try) 2>&5 | |
12069 | ac_status=$? | |
12070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12071 | (exit $ac_status); }; }; then | |
252b5132 RH |
12072 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
12073 | else | |
5464f5a1 NN |
12074 | echo "$as_me: failed program was:" >&5 |
12075 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12076 | ||
12077 | bfd_cv_have_sys_procfs_type_pstatus_t=no | |
12078 | ||
252b5132 | 12079 | fi |
5464f5a1 | 12080 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
12081 | fi |
12082 | ||
12083 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then | |
5464f5a1 NN |
12084 | |
12085 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 12086 | #define HAVE_PSTATUS_T 1 |
5464f5a1 | 12087 | _ACEOF |
252b5132 RH |
12088 | |
12089 | fi | |
5464f5a1 NN |
12090 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 |
12091 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6 | |
252b5132 | 12092 | |
5464f5a1 NN |
12093 | echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5 |
12094 | echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
12095 | if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then | |
12096 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f572a39d | 12097 | else |
5464f5a1 NN |
12098 | cat >conftest.$ac_ext <<_ACEOF |
12099 | /* confdefs.h. */ | |
12100 | _ACEOF | |
12101 | cat confdefs.h >>conftest.$ac_ext | |
12102 | cat >>conftest.$ac_ext <<_ACEOF | |
12103 | /* end confdefs.h. */ | |
f572a39d AM |
12104 | |
12105 | #define _SYSCALL32 | |
12106 | #include <sys/procfs.h> | |
5464f5a1 NN |
12107 | int |
12108 | main () | |
12109 | { | |
f572a39d | 12110 | pxstatus_t avar |
5464f5a1 NN |
12111 | ; |
12112 | return 0; | |
12113 | } | |
12114 | _ACEOF | |
12115 | rm -f conftest.$ac_objext | |
12116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12117 | (eval $ac_compile) 2>conftest.er1 | |
12118 | ac_status=$? | |
12119 | grep -v '^ *+' conftest.er1 >conftest.err | |
12120 | rm -f conftest.er1 | |
12121 | cat conftest.err >&5 | |
12122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12123 | (exit $ac_status); } && | |
e1fffbe6 AM |
12124 | { ac_try='test -z "$ac_c_werror_flag" |
12125 | || test ! -s conftest.err' | |
5464f5a1 NN |
12126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12127 | (eval $ac_try) 2>&5 | |
12128 | ac_status=$? | |
12129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12130 | (exit $ac_status); }; } && | |
12131 | { ac_try='test -s conftest.$ac_objext' | |
12132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12133 | (eval $ac_try) 2>&5 | |
12134 | ac_status=$? | |
12135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12136 | (exit $ac_status); }; }; then | |
f572a39d AM |
12137 | bfd_cv_have_sys_procfs_type_pxstatus_t=yes |
12138 | else | |
5464f5a1 NN |
12139 | echo "$as_me: failed program was:" >&5 |
12140 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12141 | ||
12142 | bfd_cv_have_sys_procfs_type_pxstatus_t=no | |
12143 | ||
f572a39d | 12144 | fi |
5464f5a1 | 12145 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f572a39d AM |
12146 | fi |
12147 | ||
12148 | if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then | |
5464f5a1 NN |
12149 | |
12150 | cat >>confdefs.h <<\_ACEOF | |
f572a39d | 12151 | #define HAVE_PXSTATUS_T 1 |
5464f5a1 | 12152 | _ACEOF |
f572a39d AM |
12153 | |
12154 | fi | |
5464f5a1 NN |
12155 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5 |
12156 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6 | |
f572a39d | 12157 | |
5464f5a1 NN |
12158 | echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5 |
12159 | echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6 | |
12160 | if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then | |
12161 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 12162 | else |
5464f5a1 NN |
12163 | cat >conftest.$ac_ext <<_ACEOF |
12164 | /* confdefs.h. */ | |
12165 | _ACEOF | |
12166 | cat confdefs.h >>conftest.$ac_ext | |
12167 | cat >>conftest.$ac_ext <<_ACEOF | |
12168 | /* end confdefs.h. */ | |
7ee38065 MS |
12169 | |
12170 | #define _SYSCALL32 | |
12171 | #include <sys/procfs.h> | |
5464f5a1 NN |
12172 | int |
12173 | main () | |
12174 | { | |
7ee38065 | 12175 | pstatus32_t avar |
5464f5a1 NN |
12176 | ; |
12177 | return 0; | |
12178 | } | |
12179 | _ACEOF | |
12180 | rm -f conftest.$ac_objext | |
12181 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12182 | (eval $ac_compile) 2>conftest.er1 | |
12183 | ac_status=$? | |
12184 | grep -v '^ *+' conftest.er1 >conftest.err | |
12185 | rm -f conftest.er1 | |
12186 | cat conftest.err >&5 | |
12187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12188 | (exit $ac_status); } && | |
e1fffbe6 AM |
12189 | { ac_try='test -z "$ac_c_werror_flag" |
12190 | || test ! -s conftest.err' | |
5464f5a1 NN |
12191 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12192 | (eval $ac_try) 2>&5 | |
12193 | ac_status=$? | |
12194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12195 | (exit $ac_status); }; } && | |
12196 | { ac_try='test -s conftest.$ac_objext' | |
12197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12198 | (eval $ac_try) 2>&5 | |
12199 | ac_status=$? | |
12200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12201 | (exit $ac_status); }; }; then | |
7ee38065 MS |
12202 | bfd_cv_have_sys_procfs_type_pstatus32_t=yes |
12203 | else | |
5464f5a1 NN |
12204 | echo "$as_me: failed program was:" >&5 |
12205 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12206 | ||
12207 | bfd_cv_have_sys_procfs_type_pstatus32_t=no | |
12208 | ||
7ee38065 | 12209 | fi |
5464f5a1 | 12210 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
12211 | fi |
12212 | ||
12213 | if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then | |
5464f5a1 NN |
12214 | |
12215 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 12216 | #define HAVE_PSTATUS32_T 1 |
5464f5a1 | 12217 | _ACEOF |
7ee38065 MS |
12218 | |
12219 | fi | |
5464f5a1 NN |
12220 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5 |
12221 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6 | |
7ee38065 | 12222 | |
5464f5a1 NN |
12223 | echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5 |
12224 | echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6 | |
12225 | if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then | |
12226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 12227 | else |
5464f5a1 NN |
12228 | cat >conftest.$ac_ext <<_ACEOF |
12229 | /* confdefs.h. */ | |
12230 | _ACEOF | |
12231 | cat confdefs.h >>conftest.$ac_ext | |
12232 | cat >>conftest.$ac_ext <<_ACEOF | |
12233 | /* end confdefs.h. */ | |
7ee38065 MS |
12234 | |
12235 | #define _SYSCALL32 | |
252b5132 | 12236 | #include <sys/procfs.h> |
5464f5a1 NN |
12237 | int |
12238 | main () | |
12239 | { | |
252b5132 | 12240 | prpsinfo_t avar |
5464f5a1 NN |
12241 | ; |
12242 | return 0; | |
12243 | } | |
12244 | _ACEOF | |
12245 | rm -f conftest.$ac_objext | |
12246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12247 | (eval $ac_compile) 2>conftest.er1 | |
12248 | ac_status=$? | |
12249 | grep -v '^ *+' conftest.er1 >conftest.err | |
12250 | rm -f conftest.er1 | |
12251 | cat conftest.err >&5 | |
12252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12253 | (exit $ac_status); } && | |
e1fffbe6 AM |
12254 | { ac_try='test -z "$ac_c_werror_flag" |
12255 | || test ! -s conftest.err' | |
5464f5a1 NN |
12256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12257 | (eval $ac_try) 2>&5 | |
12258 | ac_status=$? | |
12259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12260 | (exit $ac_status); }; } && | |
12261 | { ac_try='test -s conftest.$ac_objext' | |
12262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12263 | (eval $ac_try) 2>&5 | |
12264 | ac_status=$? | |
12265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12266 | (exit $ac_status); }; }; then | |
252b5132 RH |
12267 | bfd_cv_have_sys_procfs_type_prpsinfo_t=yes |
12268 | else | |
5464f5a1 NN |
12269 | echo "$as_me: failed program was:" >&5 |
12270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12271 | ||
12272 | bfd_cv_have_sys_procfs_type_prpsinfo_t=no | |
12273 | ||
252b5132 | 12274 | fi |
5464f5a1 | 12275 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
12276 | fi |
12277 | ||
12278 | if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then | |
5464f5a1 NN |
12279 | |
12280 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 12281 | #define HAVE_PRPSINFO_T 1 |
5464f5a1 | 12282 | _ACEOF |
252b5132 RH |
12283 | |
12284 | fi | |
5464f5a1 NN |
12285 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5 |
12286 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6 | |
252b5132 | 12287 | |
5464f5a1 NN |
12288 | echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5 |
12289 | echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6 | |
12290 | if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then | |
12291 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 12292 | else |
5464f5a1 NN |
12293 | cat >conftest.$ac_ext <<_ACEOF |
12294 | /* confdefs.h. */ | |
12295 | _ACEOF | |
12296 | cat confdefs.h >>conftest.$ac_ext | |
12297 | cat >>conftest.$ac_ext <<_ACEOF | |
12298 | /* end confdefs.h. */ | |
7ee38065 MS |
12299 | |
12300 | #define _SYSCALL32 | |
12301 | #include <sys/procfs.h> | |
5464f5a1 NN |
12302 | int |
12303 | main () | |
12304 | { | |
7ee38065 | 12305 | prpsinfo32_t avar |
5464f5a1 NN |
12306 | ; |
12307 | return 0; | |
12308 | } | |
12309 | _ACEOF | |
12310 | rm -f conftest.$ac_objext | |
12311 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12312 | (eval $ac_compile) 2>conftest.er1 | |
12313 | ac_status=$? | |
12314 | grep -v '^ *+' conftest.er1 >conftest.err | |
12315 | rm -f conftest.er1 | |
12316 | cat conftest.err >&5 | |
12317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12318 | (exit $ac_status); } && | |
e1fffbe6 AM |
12319 | { ac_try='test -z "$ac_c_werror_flag" |
12320 | || test ! -s conftest.err' | |
5464f5a1 NN |
12321 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12322 | (eval $ac_try) 2>&5 | |
12323 | ac_status=$? | |
12324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12325 | (exit $ac_status); }; } && | |
12326 | { ac_try='test -s conftest.$ac_objext' | |
12327 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12328 | (eval $ac_try) 2>&5 | |
12329 | ac_status=$? | |
12330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12331 | (exit $ac_status); }; }; then | |
7ee38065 MS |
12332 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes |
12333 | else | |
5464f5a1 NN |
12334 | echo "$as_me: failed program was:" >&5 |
12335 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12336 | ||
12337 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=no | |
12338 | ||
7ee38065 | 12339 | fi |
5464f5a1 | 12340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
12341 | fi |
12342 | ||
12343 | if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then | |
5464f5a1 NN |
12344 | |
12345 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 12346 | #define HAVE_PRPSINFO32_T 1 |
5464f5a1 | 12347 | _ACEOF |
7ee38065 MS |
12348 | |
12349 | fi | |
5464f5a1 NN |
12350 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5 |
12351 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6 | |
7ee38065 | 12352 | |
5464f5a1 NN |
12353 | echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5 |
12354 | echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6 | |
12355 | if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then | |
12356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 12357 | else |
5464f5a1 NN |
12358 | cat >conftest.$ac_ext <<_ACEOF |
12359 | /* confdefs.h. */ | |
12360 | _ACEOF | |
12361 | cat confdefs.h >>conftest.$ac_ext | |
12362 | cat >>conftest.$ac_ext <<_ACEOF | |
12363 | /* end confdefs.h. */ | |
7ee38065 MS |
12364 | |
12365 | #define _SYSCALL32 | |
252b5132 | 12366 | #include <sys/procfs.h> |
5464f5a1 NN |
12367 | int |
12368 | main () | |
12369 | { | |
252b5132 | 12370 | psinfo_t avar |
5464f5a1 NN |
12371 | ; |
12372 | return 0; | |
12373 | } | |
12374 | _ACEOF | |
12375 | rm -f conftest.$ac_objext | |
12376 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12377 | (eval $ac_compile) 2>conftest.er1 | |
12378 | ac_status=$? | |
12379 | grep -v '^ *+' conftest.er1 >conftest.err | |
12380 | rm -f conftest.er1 | |
12381 | cat conftest.err >&5 | |
12382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12383 | (exit $ac_status); } && | |
e1fffbe6 AM |
12384 | { ac_try='test -z "$ac_c_werror_flag" |
12385 | || test ! -s conftest.err' | |
5464f5a1 NN |
12386 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12387 | (eval $ac_try) 2>&5 | |
12388 | ac_status=$? | |
12389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12390 | (exit $ac_status); }; } && | |
12391 | { ac_try='test -s conftest.$ac_objext' | |
12392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12393 | (eval $ac_try) 2>&5 | |
12394 | ac_status=$? | |
12395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12396 | (exit $ac_status); }; }; then | |
252b5132 RH |
12397 | bfd_cv_have_sys_procfs_type_psinfo_t=yes |
12398 | else | |
5464f5a1 NN |
12399 | echo "$as_me: failed program was:" >&5 |
12400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12401 | ||
12402 | bfd_cv_have_sys_procfs_type_psinfo_t=no | |
12403 | ||
252b5132 | 12404 | fi |
5464f5a1 | 12405 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
12406 | fi |
12407 | ||
12408 | if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then | |
5464f5a1 NN |
12409 | |
12410 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 12411 | #define HAVE_PSINFO_T 1 |
5464f5a1 | 12412 | _ACEOF |
252b5132 RH |
12413 | |
12414 | fi | |
5464f5a1 NN |
12415 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5 |
12416 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6 | |
252b5132 | 12417 | |
5464f5a1 NN |
12418 | echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5 |
12419 | echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6 | |
12420 | if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then | |
12421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 12422 | else |
5464f5a1 NN |
12423 | cat >conftest.$ac_ext <<_ACEOF |
12424 | /* confdefs.h. */ | |
12425 | _ACEOF | |
12426 | cat confdefs.h >>conftest.$ac_ext | |
12427 | cat >>conftest.$ac_ext <<_ACEOF | |
12428 | /* end confdefs.h. */ | |
7ee38065 MS |
12429 | |
12430 | #define _SYSCALL32 | |
12431 | #include <sys/procfs.h> | |
5464f5a1 NN |
12432 | int |
12433 | main () | |
12434 | { | |
7ee38065 | 12435 | psinfo32_t avar |
5464f5a1 NN |
12436 | ; |
12437 | return 0; | |
12438 | } | |
12439 | _ACEOF | |
12440 | rm -f conftest.$ac_objext | |
12441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12442 | (eval $ac_compile) 2>conftest.er1 | |
12443 | ac_status=$? | |
12444 | grep -v '^ *+' conftest.er1 >conftest.err | |
12445 | rm -f conftest.er1 | |
12446 | cat conftest.err >&5 | |
12447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12448 | (exit $ac_status); } && | |
e1fffbe6 AM |
12449 | { ac_try='test -z "$ac_c_werror_flag" |
12450 | || test ! -s conftest.err' | |
5464f5a1 NN |
12451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12452 | (eval $ac_try) 2>&5 | |
12453 | ac_status=$? | |
12454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12455 | (exit $ac_status); }; } && | |
12456 | { ac_try='test -s conftest.$ac_objext' | |
12457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12458 | (eval $ac_try) 2>&5 | |
12459 | ac_status=$? | |
12460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12461 | (exit $ac_status); }; }; then | |
7ee38065 MS |
12462 | bfd_cv_have_sys_procfs_type_psinfo32_t=yes |
12463 | else | |
5464f5a1 NN |
12464 | echo "$as_me: failed program was:" >&5 |
12465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12466 | ||
12467 | bfd_cv_have_sys_procfs_type_psinfo32_t=no | |
12468 | ||
7ee38065 | 12469 | fi |
5464f5a1 | 12470 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
12471 | fi |
12472 | ||
12473 | if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then | |
5464f5a1 NN |
12474 | |
12475 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 12476 | #define HAVE_PSINFO32_T 1 |
5464f5a1 | 12477 | _ACEOF |
7ee38065 MS |
12478 | |
12479 | fi | |
5464f5a1 NN |
12480 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5 |
12481 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6 | |
7ee38065 | 12482 | |
5464f5a1 NN |
12483 | echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5 |
12484 | echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
12485 | if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then | |
12486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 12487 | else |
5464f5a1 NN |
12488 | cat >conftest.$ac_ext <<_ACEOF |
12489 | /* confdefs.h. */ | |
12490 | _ACEOF | |
12491 | cat confdefs.h >>conftest.$ac_ext | |
12492 | cat >>conftest.$ac_ext <<_ACEOF | |
12493 | /* end confdefs.h. */ | |
7ee38065 MS |
12494 | |
12495 | #define _SYSCALL32 | |
252b5132 | 12496 | #include <sys/procfs.h> |
5464f5a1 NN |
12497 | int |
12498 | main () | |
12499 | { | |
252b5132 | 12500 | lwpstatus_t avar |
5464f5a1 NN |
12501 | ; |
12502 | return 0; | |
12503 | } | |
12504 | _ACEOF | |
12505 | rm -f conftest.$ac_objext | |
12506 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12507 | (eval $ac_compile) 2>conftest.er1 | |
12508 | ac_status=$? | |
12509 | grep -v '^ *+' conftest.er1 >conftest.err | |
12510 | rm -f conftest.er1 | |
12511 | cat conftest.err >&5 | |
12512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12513 | (exit $ac_status); } && | |
e1fffbe6 AM |
12514 | { ac_try='test -z "$ac_c_werror_flag" |
12515 | || test ! -s conftest.err' | |
5464f5a1 NN |
12516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12517 | (eval $ac_try) 2>&5 | |
12518 | ac_status=$? | |
12519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12520 | (exit $ac_status); }; } && | |
12521 | { ac_try='test -s conftest.$ac_objext' | |
12522 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12523 | (eval $ac_try) 2>&5 | |
12524 | ac_status=$? | |
12525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12526 | (exit $ac_status); }; }; then | |
252b5132 RH |
12527 | bfd_cv_have_sys_procfs_type_lwpstatus_t=yes |
12528 | else | |
5464f5a1 NN |
12529 | echo "$as_me: failed program was:" >&5 |
12530 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12531 | ||
12532 | bfd_cv_have_sys_procfs_type_lwpstatus_t=no | |
12533 | ||
252b5132 | 12534 | fi |
5464f5a1 | 12535 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
12536 | fi |
12537 | ||
12538 | if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then | |
5464f5a1 NN |
12539 | |
12540 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 12541 | #define HAVE_LWPSTATUS_T 1 |
5464f5a1 | 12542 | _ACEOF |
252b5132 RH |
12543 | |
12544 | fi | |
5464f5a1 NN |
12545 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5 |
12546 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6 | |
252b5132 | 12547 | |
5464f5a1 NN |
12548 | echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5 |
12549 | echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
12550 | if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then | |
12551 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f572a39d | 12552 | else |
5464f5a1 NN |
12553 | cat >conftest.$ac_ext <<_ACEOF |
12554 | /* confdefs.h. */ | |
12555 | _ACEOF | |
12556 | cat confdefs.h >>conftest.$ac_ext | |
12557 | cat >>conftest.$ac_ext <<_ACEOF | |
12558 | /* end confdefs.h. */ | |
f572a39d AM |
12559 | |
12560 | #define _SYSCALL32 | |
12561 | #include <sys/procfs.h> | |
5464f5a1 NN |
12562 | int |
12563 | main () | |
12564 | { | |
f572a39d | 12565 | lwpxstatus_t avar |
5464f5a1 NN |
12566 | ; |
12567 | return 0; | |
12568 | } | |
12569 | _ACEOF | |
12570 | rm -f conftest.$ac_objext | |
12571 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12572 | (eval $ac_compile) 2>conftest.er1 | |
12573 | ac_status=$? | |
12574 | grep -v '^ *+' conftest.er1 >conftest.err | |
12575 | rm -f conftest.er1 | |
12576 | cat conftest.err >&5 | |
12577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12578 | (exit $ac_status); } && | |
e1fffbe6 AM |
12579 | { ac_try='test -z "$ac_c_werror_flag" |
12580 | || test ! -s conftest.err' | |
5464f5a1 NN |
12581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12582 | (eval $ac_try) 2>&5 | |
12583 | ac_status=$? | |
12584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12585 | (exit $ac_status); }; } && | |
12586 | { ac_try='test -s conftest.$ac_objext' | |
12587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12588 | (eval $ac_try) 2>&5 | |
12589 | ac_status=$? | |
12590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12591 | (exit $ac_status); }; }; then | |
f572a39d AM |
12592 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes |
12593 | else | |
5464f5a1 NN |
12594 | echo "$as_me: failed program was:" >&5 |
12595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12596 | ||
12597 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=no | |
12598 | ||
f572a39d | 12599 | fi |
5464f5a1 | 12600 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f572a39d AM |
12601 | fi |
12602 | ||
12603 | if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then | |
5464f5a1 NN |
12604 | |
12605 | cat >>confdefs.h <<\_ACEOF | |
f572a39d | 12606 | #define HAVE_LWPXSTATUS_T 1 |
5464f5a1 | 12607 | _ACEOF |
f572a39d AM |
12608 | |
12609 | fi | |
5464f5a1 NN |
12610 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5 |
12611 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6 | |
f572a39d | 12612 | |
5464f5a1 NN |
12613 | echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5 |
12614 | echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6 | |
12615 | if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then | |
12616 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 12617 | else |
5464f5a1 NN |
12618 | cat >conftest.$ac_ext <<_ACEOF |
12619 | /* confdefs.h. */ | |
12620 | _ACEOF | |
12621 | cat confdefs.h >>conftest.$ac_ext | |
12622 | cat >>conftest.$ac_ext <<_ACEOF | |
12623 | /* end confdefs.h. */ | |
7ee38065 MS |
12624 | |
12625 | #define _SYSCALL32 | |
252b5132 | 12626 | #include <sys/procfs.h> |
5464f5a1 NN |
12627 | int |
12628 | main () | |
12629 | { | |
252b5132 | 12630 | lwpstatus_t avar; void* aref = (void*) &avar.pr_context |
5464f5a1 NN |
12631 | ; |
12632 | return 0; | |
12633 | } | |
12634 | _ACEOF | |
12635 | rm -f conftest.$ac_objext | |
12636 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12637 | (eval $ac_compile) 2>conftest.er1 | |
12638 | ac_status=$? | |
12639 | grep -v '^ *+' conftest.er1 >conftest.err | |
12640 | rm -f conftest.er1 | |
12641 | cat conftest.err >&5 | |
12642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12643 | (exit $ac_status); } && | |
e1fffbe6 AM |
12644 | { ac_try='test -z "$ac_c_werror_flag" |
12645 | || test ! -s conftest.err' | |
5464f5a1 NN |
12646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12647 | (eval $ac_try) 2>&5 | |
12648 | ac_status=$? | |
12649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12650 | (exit $ac_status); }; } && | |
12651 | { ac_try='test -s conftest.$ac_objext' | |
12652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12653 | (eval $ac_try) 2>&5 | |
12654 | ac_status=$? | |
12655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12656 | (exit $ac_status); }; }; then | |
252b5132 RH |
12657 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes |
12658 | else | |
5464f5a1 NN |
12659 | echo "$as_me: failed program was:" >&5 |
12660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12661 | ||
12662 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no | |
12663 | ||
252b5132 | 12664 | fi |
5464f5a1 | 12665 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
12666 | fi |
12667 | ||
12668 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then | |
5464f5a1 NN |
12669 | |
12670 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 12671 | #define HAVE_LWPSTATUS_T_PR_CONTEXT 1 |
5464f5a1 | 12672 | _ACEOF |
252b5132 RH |
12673 | |
12674 | fi | |
5464f5a1 NN |
12675 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5 |
12676 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6 | |
252b5132 | 12677 | |
5464f5a1 NN |
12678 | echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5 |
12679 | echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6 | |
12680 | if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then | |
12681 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 12682 | else |
5464f5a1 NN |
12683 | cat >conftest.$ac_ext <<_ACEOF |
12684 | /* confdefs.h. */ | |
12685 | _ACEOF | |
12686 | cat confdefs.h >>conftest.$ac_ext | |
12687 | cat >>conftest.$ac_ext <<_ACEOF | |
12688 | /* end confdefs.h. */ | |
7ee38065 MS |
12689 | |
12690 | #define _SYSCALL32 | |
252b5132 | 12691 | #include <sys/procfs.h> |
5464f5a1 NN |
12692 | int |
12693 | main () | |
12694 | { | |
252b5132 | 12695 | lwpstatus_t avar; void* aref = (void*) &avar.pr_reg |
5464f5a1 NN |
12696 | ; |
12697 | return 0; | |
12698 | } | |
12699 | _ACEOF | |
12700 | rm -f conftest.$ac_objext | |
12701 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12702 | (eval $ac_compile) 2>conftest.er1 | |
12703 | ac_status=$? | |
12704 | grep -v '^ *+' conftest.er1 >conftest.err | |
12705 | rm -f conftest.er1 | |
12706 | cat conftest.err >&5 | |
12707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12708 | (exit $ac_status); } && | |
e1fffbe6 AM |
12709 | { ac_try='test -z "$ac_c_werror_flag" |
12710 | || test ! -s conftest.err' | |
5464f5a1 NN |
12711 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12712 | (eval $ac_try) 2>&5 | |
12713 | ac_status=$? | |
12714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12715 | (exit $ac_status); }; } && | |
12716 | { ac_try='test -s conftest.$ac_objext' | |
12717 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12718 | (eval $ac_try) 2>&5 | |
12719 | ac_status=$? | |
12720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12721 | (exit $ac_status); }; }; then | |
252b5132 RH |
12722 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes |
12723 | else | |
5464f5a1 NN |
12724 | echo "$as_me: failed program was:" >&5 |
12725 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12726 | ||
12727 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no | |
12728 | ||
252b5132 | 12729 | fi |
5464f5a1 | 12730 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
12731 | fi |
12732 | ||
12733 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then | |
5464f5a1 NN |
12734 | |
12735 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 12736 | #define HAVE_LWPSTATUS_T_PR_REG 1 |
5464f5a1 | 12737 | _ACEOF |
252b5132 RH |
12738 | |
12739 | fi | |
5464f5a1 NN |
12740 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5 |
12741 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6 | |
252b5132 | 12742 | |
5464f5a1 NN |
12743 | echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5 |
12744 | echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
12745 | if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then | |
12746 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e3c976c4 | 12747 | else |
5464f5a1 NN |
12748 | cat >conftest.$ac_ext <<_ACEOF |
12749 | /* confdefs.h. */ | |
12750 | _ACEOF | |
12751 | cat confdefs.h >>conftest.$ac_ext | |
12752 | cat >>conftest.$ac_ext <<_ACEOF | |
12753 | /* end confdefs.h. */ | |
7ee38065 MS |
12754 | |
12755 | #define _SYSCALL32 | |
e3c976c4 | 12756 | #include <sys/procfs.h> |
5464f5a1 NN |
12757 | int |
12758 | main () | |
12759 | { | |
e3c976c4 | 12760 | win32_pstatus_t avar |
5464f5a1 NN |
12761 | ; |
12762 | return 0; | |
12763 | } | |
12764 | _ACEOF | |
12765 | rm -f conftest.$ac_objext | |
12766 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12767 | (eval $ac_compile) 2>conftest.er1 | |
12768 | ac_status=$? | |
12769 | grep -v '^ *+' conftest.er1 >conftest.err | |
12770 | rm -f conftest.er1 | |
12771 | cat conftest.err >&5 | |
12772 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12773 | (exit $ac_status); } && | |
e1fffbe6 AM |
12774 | { ac_try='test -z "$ac_c_werror_flag" |
12775 | || test ! -s conftest.err' | |
5464f5a1 NN |
12776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12777 | (eval $ac_try) 2>&5 | |
12778 | ac_status=$? | |
12779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12780 | (exit $ac_status); }; } && | |
12781 | { ac_try='test -s conftest.$ac_objext' | |
12782 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12783 | (eval $ac_try) 2>&5 | |
12784 | ac_status=$? | |
12785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12786 | (exit $ac_status); }; }; then | |
e3c976c4 ILT |
12787 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes |
12788 | else | |
5464f5a1 NN |
12789 | echo "$as_me: failed program was:" >&5 |
12790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12791 | ||
12792 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=no | |
12793 | ||
e3c976c4 | 12794 | fi |
5464f5a1 | 12795 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
12796 | fi |
12797 | ||
e3c976c4 | 12798 | if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then |
5464f5a1 NN |
12799 | |
12800 | cat >>confdefs.h <<\_ACEOF | |
e3c976c4 | 12801 | #define HAVE_WIN32_PSTATUS_T 1 |
5464f5a1 | 12802 | _ACEOF |
16e9c715 NC |
12803 | |
12804 | fi | |
5464f5a1 NN |
12805 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5 |
12806 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6 | |
e3c976c4 ILT |
12807 | |
12808 | fi | |
12809 | fi | |
16e9c715 | 12810 | |
b3baf5d0 | 12811 | |
6be7c12c | 12812 | if test -n "$TRAD_HEADER"; then |
5464f5a1 NN |
12813 | |
12814 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 12815 | #define TRAD_HEADER $TRAD_HEADER |
5464f5a1 | 12816 | _ACEOF |
252b5132 | 12817 | |
3f9b03b5 | 12818 | fi |
252b5132 RH |
12819 | |
12820 | # Horrible hacks to build DLLs on Windows. | |
12821 | WIN32LDFLAGS= | |
12822 | WIN32LIBADD= | |
12823 | case "${host}" in | |
12824 | *-*-cygwin*) | |
12825 | if test "$enable_shared" = "yes"; then | |
12826 | WIN32LDFLAGS="-no-undefined" | |
12827 | WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32" | |
12828 | fi | |
12829 | ;; | |
78be1d6e | 12830 | *-*-linux*) |
39691762 L |
12831 | # We borrow WIN32LIBADD so that the shared libbfd won't depend on |
12832 | # libiberty.a. | |
ca51bfff L |
12833 | case "${host}" in |
12834 | mips*-*-linux*) | |
12835 | # Linux/MIPS uses PIC by default. | |
12836 | if test "$enable_shared" = "yes"; then | |
12837 | WIN32LIBADD="-L../libiberty -liberty" | |
12838 | fi | |
12839 | ;; | |
12840 | *) | |
66e25bab | 12841 | x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` |
bb2a49f2 | 12842 | if test -n "$x"; then |
ca51bfff L |
12843 | WIN32LIBADD="-L../libiberty/pic -liberty" |
12844 | fi | |
12845 | ;; | |
12846 | esac | |
39691762 | 12847 | ;; |
252b5132 RH |
12848 | esac |
12849 | ||
6be7c12c AO |
12850 | |
12851 | ||
252b5132 RH |
12852 | # target stuff: |
12853 | ||
12854 | # Canonicalize the secondary target names. | |
12855 | if test -n "$enable_targets" ; then | |
12856 | for targ in `echo $enable_targets | sed 's/,/ /g'` | |
12857 | do | |
6d83c84b | 12858 | result=`$ac_config_sub $targ 2>/dev/null` |
252b5132 RH |
12859 | if test -n "$result" ; then |
12860 | canon_targets="$canon_targets $result" | |
12861 | else | |
12862 | # Allow targets that config.sub doesn't recognize, like "all". | |
12863 | canon_targets="$canon_targets $targ" | |
12864 | fi | |
12865 | done | |
12866 | fi | |
12867 | ||
12868 | all_targets=false | |
12869 | defvec= | |
12870 | selvecs= | |
08f74004 | 12871 | assocvecs= |
252b5132 RH |
12872 | selarchs= |
12873 | TDEFINES= | |
12874 | for targ in $target $canon_targets | |
12875 | do | |
12876 | if test "x$targ" = "xall"; then | |
12877 | all_targets=true | |
08f74004 | 12878 | assocvecs="$assocvecs $targ_defvec $targ_selvecs" |
252b5132 RH |
12879 | else |
12880 | . $srcdir/config.bfd | |
12881 | if test "x$targ" = "x$target"; then | |
12882 | defvec=$targ_defvec | |
12883 | fi | |
12884 | selvecs="$selvecs $targ_defvec $targ_selvecs" | |
12885 | selarchs="$selarchs $targ_archs" | |
12886 | TDEFINES="$TDEFINES $targ_cflags" | |
12887 | fi | |
12888 | done | |
12889 | ||
6be7c12c | 12890 | |
252b5132 RH |
12891 | # This processing still needs to be done if we're to decide properly whether |
12892 | # 64-bit support needs to be compiled in. Currently, it will be included if | |
12893 | # the default or any other explicitly requested target requires it; it | |
12894 | # will not be included on a 32-bit host if no 64-bit target is requested, and | |
9eb7245e | 12895 | # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is |
252b5132 RH |
12896 | # used. |
12897 | ||
12898 | # uniq the default and selected vectors in all the configured targets. | |
12899 | f="" | |
12900 | for i in $selvecs ; do | |
12901 | case " $f " in | |
12902 | *" $i "*) ;; | |
12903 | *) f="$f $i" ;; | |
12904 | esac | |
12905 | done | |
12906 | selvecs="$f" | |
12907 | ||
6be7c12c | 12908 | |
08f74004 AM |
12909 | # uniq the associated vectors in all the configured targets. |
12910 | f="" | |
12911 | for i in $assocvecs ; do | |
12912 | case " $f " in | |
12913 | *" $i "*) ;; | |
12914 | *) f="$f $i" ;; | |
12915 | esac | |
12916 | done | |
12917 | assocvecs="$f" | |
12918 | ||
12919 | ||
252b5132 RH |
12920 | # uniq the architectures in all the configured targets. |
12921 | f="" | |
12922 | for i in $selarchs ; do | |
12923 | case " $f " in | |
12924 | *" $i "*) ;; | |
12925 | *) f="$f $i" ;; | |
12926 | esac | |
12927 | done | |
12928 | selarchs="$f" | |
12929 | ||
12930 | # Target backend .o files. | |
12931 | tb= | |
12932 | ||
65765700 | 12933 | elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo" |
252b5132 RH |
12934 | |
12935 | for vec in $selvecs | |
12936 | do | |
69263e90 | 12937 | target_size=32 |
252b5132 RH |
12938 | case "$vec" in |
12939 | # This list is alphabetized to make it easy to compare | |
dc810e39 AM |
12940 | # with the two vector lists in targets.c. For the same reason, |
12941 | # use one entry per line, even though this leads to long lines. | |
252b5132 RH |
12942 | a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;; |
12943 | a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;; | |
341ca622 | 12944 | aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;; |
252b5132 RH |
12945 | aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;; |
12946 | aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;; | |
12947 | aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;; | |
252b5132 | 12948 | apollocoff_vec) tb="$tb coff-apollo.lo" ;; |
dc810e39 AM |
12949 | arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; |
12950 | arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; | |
12951 | arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; | |
12952 | arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; | |
12953 | armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;; | |
12954 | armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;; | |
12955 | armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;; | |
12956 | armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; | |
12957 | armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; | |
12958 | armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; | |
12959 | armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; | |
252b5132 RH |
12960 | b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;; |
12961 | b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;; | |
fac41780 | 12962 | bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;; |
dc810e39 | 12963 | bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;; |
73c3cd1c | 12964 | bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;; |
adde6300 | 12965 | bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;; |
dc810e39 | 12966 | bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; |
252b5132 | 12967 | bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; |
7f266840 | 12968 | bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;; |
e5a52504 | 12969 | bfd_elf32_bigarm_symbian_vec) |
7f266840 | 12970 | tb="$tb elf32-arm.lo elf32.lo $elf" ;; |
4e7fd91e PB |
12971 | bfd_elf32_bigarm_vxworks_vec) |
12972 | tb="$tb elf32-arm.lo elf32.lo $elf" ;; | |
c6e90b02 | 12973 | bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;; |
0949843d | 12974 | bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;; |
06c15ad7 | 12975 | bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
5464f5a1 | 12976 | bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;; |
252b5132 RH |
12977 | bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; |
12978 | bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;; | |
d172d4ba | 12979 | bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;; |
252b5132 | 12980 | bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;; |
4e5ba5b7 | 12981 | bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; |
43850d5b | 12982 | bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; |
e01b0e69 | 12983 | bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;; |
dc810e39 | 12984 | bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
225247f0 | 12985 | bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
dc810e39 | 12986 | bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
5b93d8bb | 12987 | bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;; |
eac338cf PB |
12988 | bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; |
12989 | bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; | |
12990 | bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; | |
9d751335 | 12991 | bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; |
dc810e39 | 12992 | bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; |
b2ef150d | 12993 | bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;; |
dc810e39 | 12994 | bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;; |
fcf12726 | 12995 | bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";; |
cf88bb9f | 12996 | bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;; |
a75473eb | 12997 | bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;; |
252b5132 | 12998 | bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; |
dc810e39 | 12999 | bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; |
e5a52504 | 13000 | bfd_elf32_littlearm_symbian_vec) |
7f266840 | 13001 | tb="$tb elf32-arm.lo elf32.lo $elf" ;; |
4e7fd91e PB |
13002 | bfd_elf32_littlearm_vxworks_vec) |
13003 | tb="$tb elf32-arm.lo elf32.lo $elf" ;; | |
7f266840 | 13004 | bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;; |
c6e90b02 | 13005 | bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;; |
252b5132 | 13006 | bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; |
6edf0760 NC |
13007 | bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; |
13008 | bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; | |
13009 | bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; | |
f5a6f915 SC |
13010 | bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;; |
13011 | bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;; | |
252b5132 RH |
13012 | bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;; |
13013 | bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;; | |
13014 | bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; | |
13015 | bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; | |
13016 | bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;; | |
13017 | bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;; | |
de33e640 | 13018 | bfd_elf32_ms1_vec) tb="$tb elf32-ms1.lo elf32.lo $elf" ;; |
2469cfa2 | 13019 | bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;; |
8a397dad TS |
13020 | bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
13021 | bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
13022 | bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
13023 | bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
b3baf5d0 | 13024 | bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;; |
3b16e843 | 13025 | bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;; |
0bcb993b ILT |
13026 | bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; |
13027 | bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; | |
b6821651 AM |
13028 | bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; |
13029 | bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; | |
a85d7ed0 | 13030 | bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;; |
eb1e0e80 NC |
13031 | # FIXME: We include cofflink.lo not because it's needed for |
13032 | # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec | |
13033 | # which needs it but does not list it. Should be fixed in right place. | |
9cba27b2 JT |
13034 | bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; |
13035 | bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; | |
2bc3c89a AM |
13036 | bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; |
13037 | bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; | |
13038 | bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;; | |
13039 | bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;; | |
b6821651 AM |
13040 | bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; |
13041 | bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
13042 | bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; | |
85fbca6a | 13043 | bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;; |
b6821651 AM |
13044 | bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; |
13045 | bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
13046 | bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
22b75d0a | 13047 | bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf32.lo $elf" ;; |
c6e90b02 TS |
13048 | bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;; |
13049 | bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;; | |
dc810e39 | 13050 | bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
252b5132 | 13051 | bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; |
90ace9e9 | 13052 | bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;; |
93fbbb04 | 13053 | bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;; |
e0001a05 NC |
13054 | bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; |
13055 | bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; | |
2238051f | 13056 | bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; |
dc810e39 AM |
13057 | bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; |
13058 | bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; | |
c6e90b02 | 13059 | bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
dc810e39 AM |
13060 | bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; |
13061 | bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; | |
dc810e39 | 13062 | bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; |
fcf12726 | 13063 | bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; |
dc810e39 AM |
13064 | bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; |
13065 | bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; | |
c6e90b02 | 13066 | bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
3c3bdf30 | 13067 | bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;; |
dc810e39 AM |
13068 | bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;; |
13069 | bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; | |
13070 | bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;; | |
341ca622 AM |
13071 | bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; |
13072 | bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
2bc3c89a AM |
13073 | bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; |
13074 | bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
13075 | bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
13076 | bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
22b75d0a | 13077 | bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf64.lo $elf"; target_size=64 ;; |
c6e90b02 TS |
13078 | bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
13079 | bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
dc810e39 | 13080 | bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;; |
3c3bdf30 | 13081 | bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;; |
dc810e39 AM |
13082 | bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; |
13083 | bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; | |
13084 | bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; | |
13085 | bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; | |
06c15ad7 | 13086 | cris_aout_vec) tb="$tb aout-cris.lo" ;; |
dc810e39 | 13087 | demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;; |
252b5132 | 13088 | ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
252b5132 | 13089 | ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
dc810e39 AM |
13090 | ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
13091 | ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;; | |
252b5132 RH |
13092 | go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;; |
13093 | go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;; | |
13094 | h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;; | |
13095 | h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;; | |
13096 | host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;; | |
13097 | hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;; | |
13098 | hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;; | |
13099 | i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;; | |
13100 | i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;; | |
13101 | i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;; | |
13102 | i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;; | |
13103 | i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;; | |
252b5132 RH |
13104 | i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;; |
13105 | i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;; | |
13106 | i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;; | |
13107 | i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;; | |
dc810e39 | 13108 | i386msdos_vec) tb="$tb i386msdos.lo" ;; |
252b5132 RH |
13109 | i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;; |
13110 | i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;; | |
dc810e39 AM |
13111 | i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;; |
13112 | i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;; | |
252b5132 RH |
13113 | i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;; |
13114 | icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;; | |
13115 | icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;; | |
13116 | ieee_vec) tb="$tb ieee.lo" ;; | |
dc810e39 AM |
13117 | m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;; |
13118 | m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;; | |
252b5132 RH |
13119 | m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;; |
13120 | m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;; | |
13121 | m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;; | |
13122 | m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;; | |
13123 | m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;; | |
13124 | m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;; | |
252b5132 RH |
13125 | m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;; |
13126 | m88kbcs_vec) tb="$tb coff-m88k.lo" ;; | |
341ca622 | 13127 | m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;; |
c6f8758f | 13128 | m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;; |
7499d566 | 13129 | maxqcoff_vec) tb="$tb coff-maxq.lo" ;; |
93509525 KD |
13130 | mach_o_be_vec) tb="$tb mach-o.lo" ;; |
13131 | mach_o_le_vec) tb="$tb mach-o.lo" ;; | |
13132 | mach_o_fat_vec) tb="$tb mach-o.lo" ;; | |
277d1b5e ILT |
13133 | mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; |
13134 | mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; | |
13135 | mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; | |
13136 | mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; | |
dc810e39 AM |
13137 | mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;; |
13138 | mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;; | |
252b5132 | 13139 | newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;; |
dc810e39 | 13140 | nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;; |
252b5132 | 13141 | nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;; |
252b5132 | 13142 | nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;; |
dc810e39 | 13143 | nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;; |
3b16e843 | 13144 | or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;; |
252b5132 | 13145 | pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;; |
dc810e39 | 13146 | pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;; |
93509525 KD |
13147 | pef_vec) tb="$tb pef.lo" ;; |
13148 | pef_xlib_vec) tb="$tb pef.lo" ;; | |
e135f41b | 13149 | pdp11_aout_vec) tb="$tb pdp11.lo" ;; |
6768c14a | 13150 | pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; |
252b5132 | 13151 | ppcboot_vec) tb="$tb ppcboot.lo" ;; |
dc810e39 | 13152 | riscix_vec) tb="$tb aout32.lo riscix.lo" ;; |
eb1e0e80 | 13153 | rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;; |
dc810e39 | 13154 | rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; |
252b5132 | 13155 | shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
dc810e39 | 13156 | shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
252b5132 | 13157 | shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
dc810e39 | 13158 | shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
60bcf0fa NC |
13159 | shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; |
13160 | shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; | |
252b5132 | 13161 | som_vec) tb="$tb som.lo" ;; |
dc810e39 | 13162 | sparccoff_vec) tb="$tb coff-sparc.lo" ;; |
252b5132 RH |
13163 | sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;; |
13164 | sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;; | |
13165 | sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;; | |
13166 | sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;; | |
13167 | sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;; | |
252b5132 | 13168 | sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;; |
93509525 | 13169 | sym_vec) tb="$tb xsym.lo" ;; |
252b5132 RH |
13170 | tic30_aout_vec) tb="$tb aout-tic30.lo" ;; |
13171 | tic30_coff_vec) tb="$tb coff-tic30.lo" ;; | |
026df7c5 NC |
13172 | tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;; |
13173 | tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
13174 | tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;; | |
13175 | tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
13176 | tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;; | |
13177 | tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
81635ce4 | 13178 | tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 13179 | tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;; |
81635ce4 | 13180 | tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 13181 | tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;; |
81635ce4 | 13182 | tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 13183 | tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;; |
252b5132 | 13184 | tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;; |
90ace9e9 | 13185 | vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;; |
3c2bfad6 | 13186 | vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;; |
ba26fd96 | 13187 | vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;; |
252b5132 | 13188 | versados_vec) tb="$tb versados.lo" ;; |
dc810e39 | 13189 | vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;; |
252b5132 RH |
13190 | vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;; |
13191 | w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;; | |
13192 | we32kcoff_vec) tb="$tb coff-we32k.lo" ;; | |
13193 | z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;; | |
13194 | ||
341ca622 AM |
13195 | # These appear out of order in targets.c |
13196 | srec_vec) tb="$tb srec.lo" ;; | |
13197 | symbolsrec_vec) tb="$tb srec.lo" ;; | |
13198 | tekhex_vec) tb="$tb tekhex.lo" ;; | |
13199 | cisco_core_big_vec) tb="$tb cisco-core.lo" ;; | |
13200 | cisco_core_little_vec) tb="$tb cisco-core.lo" ;; | |
13201 | ||
252b5132 | 13202 | "") ;; |
5464f5a1 NN |
13203 | *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5 |
13204 | echo "$as_me: error: *** unknown target vector $vec" >&2;} | |
13205 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 13206 | esac |
69263e90 AM |
13207 | |
13208 | if test ${target_size} = 64; then | |
13209 | target64=true | |
13210 | fi | |
13211 | if test x"${vec}" = x"${defvec}"; then | |
13212 | bfd_default_target_size=${target_size} | |
13213 | fi | |
252b5132 RH |
13214 | done |
13215 | ||
13216 | # Target architecture .o files. | |
13217 | # A couple of CPUs use shorter file names to avoid problems on DOS | |
13218 | # filesystems. | |
13219 | ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` | |
13220 | ||
13221 | # Weed out duplicate .o files. | |
13222 | f="" | |
13223 | for i in $tb ; do | |
13224 | case " $f " in | |
13225 | *" $i "*) ;; | |
13226 | *) f="$f $i" ;; | |
13227 | esac | |
13228 | done | |
13229 | tb="$f" | |
13230 | ||
13231 | f="" | |
13232 | for i in $ta ; do | |
13233 | case " $f " in | |
13234 | *" $i "*) ;; | |
13235 | *) f="$f $i" ;; | |
13236 | esac | |
13237 | done | |
13238 | ta="$f" | |
13239 | ||
13240 | bfd_backends="$tb" | |
13241 | bfd_machines="$ta" | |
13242 | ||
13243 | if test x${all_targets} = xtrue ; then | |
13244 | bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)' | |
13245 | bfd_machines="${bfd_machines}"' $(ALL_MACHINES)' | |
13246 | selvecs= | |
13247 | havevecs= | |
13248 | selarchs= | |
08f74004 AM |
13249 | test -n "$assocvecs" && |
13250 | assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
252b5132 RH |
13251 | else # all_targets is true |
13252 | # Only set these if they will be nonempty, for the clever echo. | |
13253 | havevecs= | |
08f74004 | 13254 | assocvecs= |
252b5132 RH |
13255 | test -n "$selvecs" && |
13256 | havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'` | |
13257 | test -n "$selvecs" && | |
13258 | selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
13259 | test -n "$selarchs" && | |
13260 | selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
13261 | fi # all_targets is true | |
13262 | ||
13263 | case ${host64}-${target64}-${want64} in | |
13264 | *true*) | |
13265 | wordsize=64 | |
2858ef35 | 13266 | bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)' |
252b5132 | 13267 | all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)' |
ccba357f | 13268 | if test $BFD_HOST_64_BIT_DEFINED = 0; then |
5464f5a1 NN |
13269 | { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5 |
13270 | echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;} | |
13271 | { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5 | |
13272 | echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;} | |
252b5132 | 13273 | fi |
966abd70 HPN |
13274 | if test -n "$GCC" ; then |
13275 | bad_64bit_gcc=no; | |
5464f5a1 NN |
13276 | echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5 |
13277 | echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6 | |
966abd70 | 13278 | # Add more tests for gcc versions with non-working 64-bit support here. |
5464f5a1 NN |
13279 | cat >conftest.$ac_ext <<_ACEOF |
13280 | /* confdefs.h. */ | |
13281 | _ACEOF | |
13282 | cat confdefs.h >>conftest.$ac_ext | |
13283 | cat >>conftest.$ac_ext <<_ACEOF | |
13284 | /* end confdefs.h. */ | |
966abd70 | 13285 | :__GNUC__:__GNUC_MINOR__:__i386__: |
5464f5a1 | 13286 | _ACEOF |
966abd70 | 13287 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5464f5a1 | 13288 | $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then |
966abd70 | 13289 | bad_64bit_gcc=yes; |
5464f5a1 NN |
13290 | echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5 |
13291 | echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6 | |
966abd70 | 13292 | else |
5464f5a1 NN |
13293 | echo "$as_me:$LINENO: result: no" >&5 |
13294 | echo "${ECHO_T}no" >&6 | |
966abd70 HPN |
13295 | fi |
13296 | rm -f conftest* | |
13297 | ||
13298 | if test $bad_64bit_gcc = yes ; then | |
5464f5a1 NN |
13299 | { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5 |
13300 | echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;} | |
13301 | { (exit 1); exit 1; }; } | |
966abd70 HPN |
13302 | fi |
13303 | fi | |
252b5132 RH |
13304 | ;; |
13305 | false-false-false) | |
13306 | wordsize=32 | |
2858ef35 | 13307 | bfd_libs='$(BFD32_LIBS)' |
252b5132 RH |
13308 | all_backends='$(BFD32_BACKENDS)' |
13309 | ;; | |
13310 | esac | |
13311 | ||
6be7c12c AO |
13312 | |
13313 | ||
13314 | ||
13315 | ||
13316 | ||
69263e90 | 13317 | |
2858ef35 | 13318 | |
1012372a AC |
13319 | # Determine the host dependant file_ptr a.k.a. off_t type. In order |
13320 | # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and | |
13321 | # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long. | |
13322 | # Hopefully a reasonable assumption since fseeko et.al. should be | |
13323 | # upward compatible. | |
5464f5a1 NN |
13324 | |
13325 | ||
13326 | ||
13327 | ||
1012372a AC |
13328 | for ac_func in ftello ftello64 fseeko fseeko64 |
13329 | do | |
5464f5a1 NN |
13330 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
13331 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
13332 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
13333 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
13334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13335 | else | |
2ba49b59 KC |
13336 | cat >conftest.$ac_ext <<_ACEOF |
13337 | /* confdefs.h. */ | |
13338 | _ACEOF | |
13339 | cat confdefs.h >>conftest.$ac_ext | |
13340 | cat >>conftest.$ac_ext <<_ACEOF | |
13341 | /* end confdefs.h. */ | |
13342 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
13343 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
13344 | #define $ac_func innocuous_$ac_func | |
13345 | ||
13346 | /* System header to define __stub macros and hopefully few prototypes, | |
13347 | which can conflict with char $ac_func (); below. | |
13348 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
13349 | <limits.h> exists even on freestanding compilers. */ | |
13350 | ||
13351 | #ifdef __STDC__ | |
13352 | # include <limits.h> | |
13353 | #else | |
13354 | # include <assert.h> | |
13355 | #endif | |
13356 | ||
13357 | #undef $ac_func | |
13358 | ||
13359 | /* Override any gcc2 internal prototype to avoid an error. */ | |
13360 | #ifdef __cplusplus | |
13361 | extern "C" | |
13362 | { | |
13363 | #endif | |
13364 | /* We use char because int might match the return type of a gcc2 | |
13365 | builtin and then its argument prototype would still apply. */ | |
13366 | char $ac_func (); | |
13367 | /* The GNU C library defines this for functions which it implements | |
13368 | to always fail with ENOSYS. Some functions are actually named | |
13369 | something starting with __ and the normal name is an alias. */ | |
13370 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13371 | choke me | |
13372 | #else | |
13373 | char (*f) () = $ac_func; | |
13374 | #endif | |
13375 | #ifdef __cplusplus | |
13376 | } | |
13377 | #endif | |
13378 | ||
13379 | int | |
13380 | main () | |
13381 | { | |
13382 | return f != $ac_func; | |
13383 | ; | |
13384 | return 0; | |
13385 | } | |
13386 | _ACEOF | |
13387 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13388 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13389 | (eval $ac_link) 2>conftest.er1 | |
13390 | ac_status=$? | |
13391 | grep -v '^ *+' conftest.er1 >conftest.err | |
13392 | rm -f conftest.er1 | |
13393 | cat conftest.err >&5 | |
13394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13395 | (exit $ac_status); } && | |
e1fffbe6 AM |
13396 | { ac_try='test -z "$ac_c_werror_flag" |
13397 | || test ! -s conftest.err' | |
2ba49b59 KC |
13398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13399 | (eval $ac_try) 2>&5 | |
13400 | ac_status=$? | |
13401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13402 | (exit $ac_status); }; } && | |
13403 | { ac_try='test -s conftest$ac_exeext' | |
13404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13405 | (eval $ac_try) 2>&5 | |
13406 | ac_status=$? | |
13407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13408 | (exit $ac_status); }; }; then | |
13409 | eval "$as_ac_var=yes" | |
13410 | else | |
13411 | echo "$as_me: failed program was:" >&5 | |
13412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13413 | ||
13414 | eval "$as_ac_var=no" | |
13415 | fi | |
13416 | rm -f conftest.err conftest.$ac_objext \ | |
13417 | conftest$ac_exeext conftest.$ac_ext | |
13418 | fi | |
13419 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13420 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13421 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13422 | cat >>confdefs.h <<_ACEOF | |
13423 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13424 | _ACEOF | |
13425 | ||
13426 | fi | |
13427 | done | |
13428 | ||
13429 | if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then | |
13430 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
13431 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
13432 | if test "${ac_cv_type_off_t+set}" = set; then | |
13433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13434 | else | |
13435 | cat >conftest.$ac_ext <<_ACEOF | |
13436 | /* confdefs.h. */ | |
13437 | _ACEOF | |
13438 | cat confdefs.h >>conftest.$ac_ext | |
13439 | cat >>conftest.$ac_ext <<_ACEOF | |
13440 | /* end confdefs.h. */ | |
13441 | $ac_includes_default | |
13442 | int | |
13443 | main () | |
13444 | { | |
13445 | if ((off_t *) 0) | |
13446 | return 0; | |
13447 | if (sizeof (off_t)) | |
13448 | return 0; | |
13449 | ; | |
13450 | return 0; | |
13451 | } | |
13452 | _ACEOF | |
13453 | rm -f conftest.$ac_objext | |
13454 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13455 | (eval $ac_compile) 2>conftest.er1 | |
13456 | ac_status=$? | |
13457 | grep -v '^ *+' conftest.er1 >conftest.err | |
13458 | rm -f conftest.er1 | |
13459 | cat conftest.err >&5 | |
13460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13461 | (exit $ac_status); } && | |
e1fffbe6 AM |
13462 | { ac_try='test -z "$ac_c_werror_flag" |
13463 | || test ! -s conftest.err' | |
2ba49b59 KC |
13464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13465 | (eval $ac_try) 2>&5 | |
13466 | ac_status=$? | |
13467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13468 | (exit $ac_status); }; } && | |
13469 | { ac_try='test -s conftest.$ac_objext' | |
13470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13471 | (eval $ac_try) 2>&5 | |
13472 | ac_status=$? | |
13473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13474 | (exit $ac_status); }; }; then | |
13475 | ac_cv_type_off_t=yes | |
13476 | else | |
13477 | echo "$as_me: failed program was:" >&5 | |
13478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13479 | ||
13480 | ac_cv_type_off_t=no | |
13481 | fi | |
13482 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13483 | fi | |
13484 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
13485 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
13486 | ||
13487 | echo "$as_me:$LINENO: checking size of off_t" >&5 | |
13488 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 | |
13489 | if test "${ac_cv_sizeof_off_t+set}" = set; then | |
13490 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13491 | else | |
13492 | if test "$ac_cv_type_off_t" = yes; then | |
13493 | # The cast to unsigned long works around a bug in the HP C Compiler | |
13494 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13495 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13496 | # This bug is HP SR number 8606223364. | |
13497 | if test "$cross_compiling" = yes; then | |
13498 | # Depending upon the size, compute the lo and hi bounds. | |
13499 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
13500 | /* confdefs.h. */ |
13501 | _ACEOF | |
13502 | cat confdefs.h >>conftest.$ac_ext | |
13503 | cat >>conftest.$ac_ext <<_ACEOF | |
13504 | /* end confdefs.h. */ | |
2ba49b59 KC |
13505 | $ac_includes_default |
13506 | int | |
13507 | main () | |
13508 | { | |
13509 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)]; | |
13510 | test_array [0] = 0 | |
5464f5a1 | 13511 | |
2ba49b59 KC |
13512 | ; |
13513 | return 0; | |
13514 | } | |
13515 | _ACEOF | |
13516 | rm -f conftest.$ac_objext | |
13517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13518 | (eval $ac_compile) 2>conftest.er1 | |
13519 | ac_status=$? | |
13520 | grep -v '^ *+' conftest.er1 >conftest.err | |
13521 | rm -f conftest.er1 | |
13522 | cat conftest.err >&5 | |
13523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13524 | (exit $ac_status); } && | |
e1fffbe6 AM |
13525 | { ac_try='test -z "$ac_c_werror_flag" |
13526 | || test ! -s conftest.err' | |
2ba49b59 KC |
13527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13528 | (eval $ac_try) 2>&5 | |
13529 | ac_status=$? | |
13530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13531 | (exit $ac_status); }; } && | |
13532 | { ac_try='test -s conftest.$ac_objext' | |
13533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13534 | (eval $ac_try) 2>&5 | |
13535 | ac_status=$? | |
13536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13537 | (exit $ac_status); }; }; then | |
13538 | ac_lo=0 ac_mid=0 | |
13539 | while :; do | |
13540 | cat >conftest.$ac_ext <<_ACEOF | |
13541 | /* confdefs.h. */ | |
13542 | _ACEOF | |
13543 | cat confdefs.h >>conftest.$ac_ext | |
13544 | cat >>conftest.$ac_ext <<_ACEOF | |
13545 | /* end confdefs.h. */ | |
13546 | $ac_includes_default | |
13547 | int | |
13548 | main () | |
13549 | { | |
13550 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)]; | |
13551 | test_array [0] = 0 | |
5464f5a1 | 13552 | |
2ba49b59 KC |
13553 | ; |
13554 | return 0; | |
13555 | } | |
13556 | _ACEOF | |
13557 | rm -f conftest.$ac_objext | |
13558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13559 | (eval $ac_compile) 2>conftest.er1 | |
13560 | ac_status=$? | |
13561 | grep -v '^ *+' conftest.er1 >conftest.err | |
13562 | rm -f conftest.er1 | |
13563 | cat conftest.err >&5 | |
13564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13565 | (exit $ac_status); } && | |
e1fffbe6 AM |
13566 | { ac_try='test -z "$ac_c_werror_flag" |
13567 | || test ! -s conftest.err' | |
2ba49b59 KC |
13568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13569 | (eval $ac_try) 2>&5 | |
13570 | ac_status=$? | |
13571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13572 | (exit $ac_status); }; } && | |
13573 | { ac_try='test -s conftest.$ac_objext' | |
13574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13575 | (eval $ac_try) 2>&5 | |
13576 | ac_status=$? | |
13577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13578 | (exit $ac_status); }; }; then | |
13579 | ac_hi=$ac_mid; break | |
13580 | else | |
13581 | echo "$as_me: failed program was:" >&5 | |
13582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1012372a | 13583 | |
2ba49b59 KC |
13584 | ac_lo=`expr $ac_mid + 1` |
13585 | if test $ac_lo -le $ac_mid; then | |
13586 | ac_lo= ac_hi= | |
13587 | break | |
13588 | fi | |
13589 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
13590 | fi | |
13591 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13592 | done | |
13593 | else | |
13594 | echo "$as_me: failed program was:" >&5 | |
13595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1012372a | 13596 | |
2ba49b59 KC |
13597 | cat >conftest.$ac_ext <<_ACEOF |
13598 | /* confdefs.h. */ | |
13599 | _ACEOF | |
13600 | cat confdefs.h >>conftest.$ac_ext | |
13601 | cat >>conftest.$ac_ext <<_ACEOF | |
13602 | /* end confdefs.h. */ | |
13603 | $ac_includes_default | |
13604 | int | |
13605 | main () | |
5464f5a1 | 13606 | { |
2ba49b59 KC |
13607 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)]; |
13608 | test_array [0] = 0 | |
1012372a | 13609 | |
2ba49b59 KC |
13610 | ; |
13611 | return 0; | |
13612 | } | |
13613 | _ACEOF | |
13614 | rm -f conftest.$ac_objext | |
13615 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13616 | (eval $ac_compile) 2>conftest.er1 | |
13617 | ac_status=$? | |
13618 | grep -v '^ *+' conftest.er1 >conftest.err | |
13619 | rm -f conftest.er1 | |
13620 | cat conftest.err >&5 | |
13621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13622 | (exit $ac_status); } && | |
e1fffbe6 AM |
13623 | { ac_try='test -z "$ac_c_werror_flag" |
13624 | || test ! -s conftest.err' | |
2ba49b59 KC |
13625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13626 | (eval $ac_try) 2>&5 | |
13627 | ac_status=$? | |
13628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13629 | (exit $ac_status); }; } && | |
13630 | { ac_try='test -s conftest.$ac_objext' | |
13631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13632 | (eval $ac_try) 2>&5 | |
13633 | ac_status=$? | |
13634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13635 | (exit $ac_status); }; }; then | |
13636 | ac_hi=-1 ac_mid=-1 | |
13637 | while :; do | |
13638 | cat >conftest.$ac_ext <<_ACEOF | |
13639 | /* confdefs.h. */ | |
13640 | _ACEOF | |
13641 | cat confdefs.h >>conftest.$ac_ext | |
13642 | cat >>conftest.$ac_ext <<_ACEOF | |
13643 | /* end confdefs.h. */ | |
13644 | $ac_includes_default | |
5464f5a1 NN |
13645 | int |
13646 | main () | |
13647 | { | |
2ba49b59 KC |
13648 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)]; |
13649 | test_array [0] = 0 | |
13650 | ||
5464f5a1 NN |
13651 | ; |
13652 | return 0; | |
13653 | } | |
13654 | _ACEOF | |
2ba49b59 KC |
13655 | rm -f conftest.$ac_objext |
13656 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13657 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
13658 | ac_status=$? |
13659 | grep -v '^ *+' conftest.er1 >conftest.err | |
13660 | rm -f conftest.er1 | |
13661 | cat conftest.err >&5 | |
13662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13663 | (exit $ac_status); } && | |
e1fffbe6 AM |
13664 | { ac_try='test -z "$ac_c_werror_flag" |
13665 | || test ! -s conftest.err' | |
5464f5a1 NN |
13666 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13667 | (eval $ac_try) 2>&5 | |
13668 | ac_status=$? | |
13669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13670 | (exit $ac_status); }; } && | |
2ba49b59 | 13671 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
13672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13673 | (eval $ac_try) 2>&5 | |
13674 | ac_status=$? | |
13675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13676 | (exit $ac_status); }; }; then | |
2ba49b59 | 13677 | ac_lo=$ac_mid; break |
5464f5a1 NN |
13678 | else |
13679 | echo "$as_me: failed program was:" >&5 | |
13680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13681 | ||
2ba49b59 KC |
13682 | ac_hi=`expr '(' $ac_mid ')' - 1` |
13683 | if test $ac_mid -le $ac_hi; then | |
13684 | ac_lo= ac_hi= | |
13685 | break | |
13686 | fi | |
13687 | ac_mid=`expr 2 '*' $ac_mid` | |
5464f5a1 | 13688 | fi |
2ba49b59 KC |
13689 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13690 | done | |
13691 | else | |
13692 | echo "$as_me: failed program was:" >&5 | |
13693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1012372a | 13694 | |
2ba49b59 | 13695 | ac_lo= ac_hi= |
1012372a | 13696 | fi |
2ba49b59 KC |
13697 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13698 | fi | |
13699 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13700 | # Binary search between lo and hi bounds. | |
13701 | while test "x$ac_lo" != "x$ac_hi"; do | |
13702 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5464f5a1 NN |
13703 | cat >conftest.$ac_ext <<_ACEOF |
13704 | /* confdefs.h. */ | |
13705 | _ACEOF | |
13706 | cat confdefs.h >>conftest.$ac_ext | |
13707 | cat >>conftest.$ac_ext <<_ACEOF | |
13708 | /* end confdefs.h. */ | |
2ba49b59 | 13709 | $ac_includes_default |
5464f5a1 NN |
13710 | int |
13711 | main () | |
13712 | { | |
2ba49b59 KC |
13713 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)]; |
13714 | test_array [0] = 0 | |
13715 | ||
5464f5a1 NN |
13716 | ; |
13717 | return 0; | |
13718 | } | |
13719 | _ACEOF | |
13720 | rm -f conftest.$ac_objext | |
13721 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13722 | (eval $ac_compile) 2>conftest.er1 | |
13723 | ac_status=$? | |
13724 | grep -v '^ *+' conftest.er1 >conftest.err | |
13725 | rm -f conftest.er1 | |
13726 | cat conftest.err >&5 | |
13727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13728 | (exit $ac_status); } && | |
e1fffbe6 AM |
13729 | { ac_try='test -z "$ac_c_werror_flag" |
13730 | || test ! -s conftest.err' | |
5464f5a1 NN |
13731 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13732 | (eval $ac_try) 2>&5 | |
13733 | ac_status=$? | |
13734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13735 | (exit $ac_status); }; } && | |
13736 | { ac_try='test -s conftest.$ac_objext' | |
13737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13738 | (eval $ac_try) 2>&5 | |
13739 | ac_status=$? | |
13740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13741 | (exit $ac_status); }; }; then | |
2ba49b59 | 13742 | ac_hi=$ac_mid |
1012372a | 13743 | else |
5464f5a1 NN |
13744 | echo "$as_me: failed program was:" >&5 |
13745 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13746 | ||
2ba49b59 | 13747 | ac_lo=`expr '(' $ac_mid ')' + 1` |
1012372a | 13748 | fi |
5464f5a1 | 13749 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
1012372a | 13750 | done |
2ba49b59 KC |
13751 | case $ac_lo in |
13752 | ?*) ac_cv_sizeof_off_t=$ac_lo;; | |
13753 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77 | |
13754 | See \`config.log' for more details." >&5 | |
13755 | echo "$as_me: error: cannot compute sizeof (off_t), 77 | |
13756 | See \`config.log' for more details." >&2;} | |
13757 | { (exit 1); exit 1; }; } ;; | |
13758 | esac | |
13759 | else | |
13760 | if test "$cross_compiling" = yes; then | |
e1fffbe6 AM |
13761 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
13762 | See \`config.log' for more details." >&5 | |
13763 | echo "$as_me: error: cannot run test program while cross compiling | |
13764 | See \`config.log' for more details." >&2;} | |
2ba49b59 KC |
13765 | { (exit 1); exit 1; }; } |
13766 | else | |
13767 | cat >conftest.$ac_ext <<_ACEOF | |
13768 | /* confdefs.h. */ | |
13769 | _ACEOF | |
13770 | cat confdefs.h >>conftest.$ac_ext | |
13771 | cat >>conftest.$ac_ext <<_ACEOF | |
13772 | /* end confdefs.h. */ | |
13773 | $ac_includes_default | |
13774 | long longval () { return (long) (sizeof (off_t)); } | |
13775 | unsigned long ulongval () { return (long) (sizeof (off_t)); } | |
13776 | #include <stdio.h> | |
13777 | #include <stdlib.h> | |
13778 | int | |
13779 | main () | |
13780 | { | |
1012372a | 13781 | |
2ba49b59 KC |
13782 | FILE *f = fopen ("conftest.val", "w"); |
13783 | if (! f) | |
13784 | exit (1); | |
13785 | if (((long) (sizeof (off_t))) < 0) | |
13786 | { | |
13787 | long i = longval (); | |
13788 | if (i != ((long) (sizeof (off_t)))) | |
13789 | exit (1); | |
13790 | fprintf (f, "%ld\n", i); | |
13791 | } | |
13792 | else | |
13793 | { | |
13794 | unsigned long i = ulongval (); | |
13795 | if (i != ((long) (sizeof (off_t)))) | |
13796 | exit (1); | |
13797 | fprintf (f, "%lu\n", i); | |
13798 | } | |
13799 | exit (ferror (f) || fclose (f) != 0); | |
13800 | ||
13801 | ; | |
13802 | return 0; | |
13803 | } | |
13804 | _ACEOF | |
13805 | rm -f conftest$ac_exeext | |
13806 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13807 | (eval $ac_link) 2>&5 | |
13808 | ac_status=$? | |
13809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13810 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13811 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13812 | (eval $ac_try) 2>&5 | |
13813 | ac_status=$? | |
13814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13815 | (exit $ac_status); }; }; then | |
13816 | ac_cv_sizeof_off_t=`cat conftest.val` | |
13817 | else | |
13818 | echo "$as_me: program exited with status $ac_status" >&5 | |
13819 | echo "$as_me: failed program was:" >&5 | |
13820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1012372a | 13821 | |
2ba49b59 KC |
13822 | ( exit $ac_status ) |
13823 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77 | |
13824 | See \`config.log' for more details." >&5 | |
13825 | echo "$as_me: error: cannot compute sizeof (off_t), 77 | |
13826 | See \`config.log' for more details." >&2;} | |
5464f5a1 | 13827 | { (exit 1); exit 1; }; } |
1012372a | 13828 | fi |
2ba49b59 KC |
13829 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
13830 | fi | |
13831 | fi | |
13832 | rm -f conftest.val | |
13833 | else | |
13834 | ac_cv_sizeof_off_t=0 | |
13835 | fi | |
13836 | fi | |
5464f5a1 NN |
13837 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
13838 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 | |
5464f5a1 | 13839 | cat >>confdefs.h <<_ACEOF |
1012372a | 13840 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
5464f5a1 | 13841 | _ACEOF |
1012372a AC |
13842 | |
13843 | ||
1012372a | 13844 | fi |
5464f5a1 NN |
13845 | echo "$as_me:$LINENO: checking file_ptr type" >&5 |
13846 | echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6 | |
ccba357f AM |
13847 | bfd_file_ptr="long" |
13848 | bfd_ufile_ptr="unsigned long" | |
13849 | if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \ | |
13850 | -o x"${ac_cv_sizeof_off_t}" = x8; then | |
1012372a AC |
13851 | bfd_file_ptr=BFD_HOST_64_BIT |
13852 | bfd_ufile_ptr=BFD_HOST_U_64_BIT | |
13853 | fi | |
5464f5a1 NN |
13854 | echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5 |
13855 | echo "${ECHO_T}$bfd_file_ptr" >&6 | |
1012372a AC |
13856 | |
13857 | ||
13858 | ||
13859 | ||
252b5132 RH |
13860 | tdefaults="" |
13861 | test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" | |
13862 | test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" | |
08f74004 | 13863 | test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'" |
252b5132 RH |
13864 | test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'" |
13865 | test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}" | |
13866 | ||
6be7c12c | 13867 | |
5464f5a1 NN |
13868 | |
13869 | ||
13870 | for ac_header in stdlib.h unistd.h | |
252b5132 | 13871 | do |
5464f5a1 NN |
13872 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
13873 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13874 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13875 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13876 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13878 | fi | |
13879 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13880 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13881 | else | |
13882 | # Is the header compilable? | |
13883 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13884 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13885 | cat >conftest.$ac_ext <<_ACEOF | |
13886 | /* confdefs.h. */ | |
13887 | _ACEOF | |
13888 | cat confdefs.h >>conftest.$ac_ext | |
13889 | cat >>conftest.$ac_ext <<_ACEOF | |
13890 | /* end confdefs.h. */ | |
13891 | $ac_includes_default | |
13892 | #include <$ac_header> | |
13893 | _ACEOF | |
13894 | rm -f conftest.$ac_objext | |
13895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13896 | (eval $ac_compile) 2>conftest.er1 | |
13897 | ac_status=$? | |
13898 | grep -v '^ *+' conftest.er1 >conftest.err | |
13899 | rm -f conftest.er1 | |
13900 | cat conftest.err >&5 | |
13901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13902 | (exit $ac_status); } && | |
e1fffbe6 AM |
13903 | { ac_try='test -z "$ac_c_werror_flag" |
13904 | || test ! -s conftest.err' | |
5464f5a1 NN |
13905 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13906 | (eval $ac_try) 2>&5 | |
13907 | ac_status=$? | |
13908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13909 | (exit $ac_status); }; } && | |
13910 | { ac_try='test -s conftest.$ac_objext' | |
13911 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13912 | (eval $ac_try) 2>&5 | |
13913 | ac_status=$? | |
13914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13915 | (exit $ac_status); }; }; then | |
13916 | ac_header_compiler=yes | |
13917 | else | |
13918 | echo "$as_me: failed program was:" >&5 | |
13919 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13920 | ||
13921 | ac_header_compiler=no | |
13922 | fi | |
13923 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13924 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13925 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13926 | ||
13927 | # Is the header present? | |
13928 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13929 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13930 | cat >conftest.$ac_ext <<_ACEOF | |
13931 | /* confdefs.h. */ | |
13932 | _ACEOF | |
13933 | cat confdefs.h >>conftest.$ac_ext | |
13934 | cat >>conftest.$ac_ext <<_ACEOF | |
13935 | /* end confdefs.h. */ | |
13936 | #include <$ac_header> | |
13937 | _ACEOF | |
13938 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
13939 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
13940 | ac_status=$? | |
13941 | grep -v '^ *+' conftest.er1 >conftest.err | |
13942 | rm -f conftest.er1 | |
13943 | cat conftest.err >&5 | |
13944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13945 | (exit $ac_status); } >/dev/null; then | |
13946 | if test -s conftest.err; then | |
13947 | ac_cpp_err=$ac_c_preproc_warn_flag | |
13948 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
13949 | else | |
13950 | ac_cpp_err= | |
13951 | fi | |
252b5132 | 13952 | else |
5464f5a1 | 13953 | ac_cpp_err=yes |
252b5132 | 13954 | fi |
5464f5a1 NN |
13955 | if test -z "$ac_cpp_err"; then |
13956 | ac_header_preproc=yes | |
13957 | else | |
13958 | echo "$as_me: failed program was:" >&5 | |
13959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13960 | ||
13961 | ac_header_preproc=no | |
252b5132 | 13962 | fi |
5464f5a1 NN |
13963 | rm -f conftest.err conftest.$ac_ext |
13964 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
13965 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
13966 | ||
13967 | # So? What about this header? | |
13968 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
13969 | yes:no: ) | |
13970 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
13971 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
13972 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
13973 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
13974 | ac_header_preproc=yes | |
13975 | ;; | |
13976 | no:yes:* ) | |
13977 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
13978 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
13979 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
13980 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
13981 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
13982 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
13983 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
13984 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
13985 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
13986 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
13987 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
13988 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
13989 | ( | |
13990 | cat <<\_ASBOX | |
13991 | ## ------------------------------------------ ## | |
13992 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
13993 | ## ------------------------------------------ ## | |
13994 | _ASBOX | |
13995 | ) | | |
13996 | sed "s/^/$as_me: WARNING: /" >&2 | |
13997 | ;; | |
13998 | esac | |
13999 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14000 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14001 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14002 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 14003 | else |
5464f5a1 NN |
14004 | eval "$as_ac_Header=\$ac_header_preproc" |
14005 | fi | |
14006 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14007 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14008 | ||
14009 | fi | |
14010 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14011 | cat >>confdefs.h <<_ACEOF | |
14012 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14013 | _ACEOF | |
14014 | ||
252b5132 | 14015 | fi |
5464f5a1 | 14016 | |
252b5132 RH |
14017 | done |
14018 | ||
5464f5a1 | 14019 | |
252b5132 RH |
14020 | for ac_func in getpagesize |
14021 | do | |
5464f5a1 NN |
14022 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
14023 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14024 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14025 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14027 | else | |
14028 | cat >conftest.$ac_ext <<_ACEOF | |
14029 | /* confdefs.h. */ | |
14030 | _ACEOF | |
14031 | cat confdefs.h >>conftest.$ac_ext | |
14032 | cat >>conftest.$ac_ext <<_ACEOF | |
14033 | /* end confdefs.h. */ | |
14034 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14035 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14036 | #define $ac_func innocuous_$ac_func | |
14037 | ||
252b5132 | 14038 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
14039 | which can conflict with char $ac_func (); below. |
14040 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14041 | <limits.h> exists even on freestanding compilers. */ | |
14042 | ||
14043 | #ifdef __STDC__ | |
14044 | # include <limits.h> | |
14045 | #else | |
14046 | # include <assert.h> | |
14047 | #endif | |
6be7c12c | 14048 | |
5464f5a1 | 14049 | #undef $ac_func |
252b5132 | 14050 | |
5464f5a1 NN |
14051 | /* Override any gcc2 internal prototype to avoid an error. */ |
14052 | #ifdef __cplusplus | |
14053 | extern "C" | |
14054 | { | |
14055 | #endif | |
14056 | /* We use char because int might match the return type of a gcc2 | |
14057 | builtin and then its argument prototype would still apply. */ | |
14058 | char $ac_func (); | |
252b5132 RH |
14059 | /* The GNU C library defines this for functions which it implements |
14060 | to always fail with ENOSYS. Some functions are actually named | |
14061 | something starting with __ and the normal name is an alias. */ | |
14062 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14063 | choke me | |
14064 | #else | |
5464f5a1 NN |
14065 | char (*f) () = $ac_func; |
14066 | #endif | |
14067 | #ifdef __cplusplus | |
14068 | } | |
252b5132 RH |
14069 | #endif |
14070 | ||
5464f5a1 NN |
14071 | int |
14072 | main () | |
14073 | { | |
14074 | return f != $ac_func; | |
14075 | ; | |
14076 | return 0; | |
14077 | } | |
14078 | _ACEOF | |
14079 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14080 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14081 | (eval $ac_link) 2>conftest.er1 | |
14082 | ac_status=$? | |
14083 | grep -v '^ *+' conftest.er1 >conftest.err | |
14084 | rm -f conftest.er1 | |
14085 | cat conftest.err >&5 | |
14086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14087 | (exit $ac_status); } && | |
e1fffbe6 AM |
14088 | { ac_try='test -z "$ac_c_werror_flag" |
14089 | || test ! -s conftest.err' | |
5464f5a1 NN |
14090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14091 | (eval $ac_try) 2>&5 | |
14092 | ac_status=$? | |
14093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14094 | (exit $ac_status); }; } && | |
14095 | { ac_try='test -s conftest$ac_exeext' | |
14096 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14097 | (eval $ac_try) 2>&5 | |
14098 | ac_status=$? | |
14099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14100 | (exit $ac_status); }; }; then | |
14101 | eval "$as_ac_var=yes" | |
14102 | else | |
14103 | echo "$as_me: failed program was:" >&5 | |
14104 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14105 | ||
14106 | eval "$as_ac_var=no" | |
14107 | fi | |
14108 | rm -f conftest.err conftest.$ac_objext \ | |
14109 | conftest$ac_exeext conftest.$ac_ext | |
14110 | fi | |
14111 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
14112 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14113 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14114 | cat >>confdefs.h <<_ACEOF | |
14115 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14116 | _ACEOF | |
252b5132 | 14117 | |
252b5132 RH |
14118 | fi |
14119 | done | |
14120 | ||
5464f5a1 NN |
14121 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
14122 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
14123 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
14124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
14125 | else |
14126 | if test "$cross_compiling" = yes; then | |
14127 | ac_cv_func_mmap_fixed_mapped=no | |
14128 | else | |
5464f5a1 NN |
14129 | cat >conftest.$ac_ext <<_ACEOF |
14130 | /* confdefs.h. */ | |
14131 | _ACEOF | |
14132 | cat confdefs.h >>conftest.$ac_ext | |
14133 | cat >>conftest.$ac_ext <<_ACEOF | |
14134 | /* end confdefs.h. */ | |
14135 | $ac_includes_default | |
14136 | /* malloc might have been renamed as rpl_malloc. */ | |
14137 | #undef malloc | |
6be7c12c | 14138 | |
252b5132 RH |
14139 | /* Thanks to Mike Haertel and Jim Avera for this test. |
14140 | Here is a matrix of mmap possibilities: | |
14141 | mmap private not fixed | |
14142 | mmap private fixed at somewhere currently unmapped | |
14143 | mmap private fixed at somewhere already mapped | |
14144 | mmap shared not fixed | |
14145 | mmap shared fixed at somewhere currently unmapped | |
14146 | mmap shared fixed at somewhere already mapped | |
14147 | For private mappings, we should verify that changes cannot be read() | |
14148 | back from the file, nor mmap's back from the file at a different | |
14149 | address. (There have been systems where private was not correctly | |
14150 | implemented like the infamous i386 svr4.0, and systems where the | |
5464f5a1 | 14151 | VM page cache was not coherent with the file system buffer cache |
252b5132 RH |
14152 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
14153 | For shared mappings, we should conversely verify that changes get | |
5464f5a1 | 14154 | propagated back to all the places they're supposed to be. |
252b5132 RH |
14155 | |
14156 | Grep wants private fixed already mapped. | |
14157 | The main things grep needs to know about mmap are: | |
14158 | * does it exist and is it safe to write into the mmap'd area | |
14159 | * how to use it (BSD variants) */ | |
5464f5a1 | 14160 | |
252b5132 RH |
14161 | #include <fcntl.h> |
14162 | #include <sys/mman.h> | |
14163 | ||
5464f5a1 NN |
14164 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
14165 | char *malloc (); | |
14166 | #endif | |
6be7c12c | 14167 | |
5464f5a1 NN |
14168 | /* This mess was copied from the GNU getpagesize.h. */ |
14169 | #if !HAVE_GETPAGESIZE | |
252b5132 | 14170 | /* Assume that all systems that can run configure have sys/param.h. */ |
5464f5a1 | 14171 | # if !HAVE_SYS_PARAM_H |
252b5132 RH |
14172 | # define HAVE_SYS_PARAM_H 1 |
14173 | # endif | |
14174 | ||
14175 | # ifdef _SC_PAGESIZE | |
14176 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
14177 | # else /* no _SC_PAGESIZE */ | |
5464f5a1 | 14178 | # if HAVE_SYS_PARAM_H |
252b5132 RH |
14179 | # include <sys/param.h> |
14180 | # ifdef EXEC_PAGESIZE | |
14181 | # define getpagesize() EXEC_PAGESIZE | |
14182 | # else /* no EXEC_PAGESIZE */ | |
14183 | # ifdef NBPG | |
14184 | # define getpagesize() NBPG * CLSIZE | |
14185 | # ifndef CLSIZE | |
14186 | # define CLSIZE 1 | |
14187 | # endif /* no CLSIZE */ | |
14188 | # else /* no NBPG */ | |
14189 | # ifdef NBPC | |
14190 | # define getpagesize() NBPC | |
14191 | # else /* no NBPC */ | |
14192 | # ifdef PAGESIZE | |
14193 | # define getpagesize() PAGESIZE | |
14194 | # endif /* PAGESIZE */ | |
14195 | # endif /* no NBPC */ | |
14196 | # endif /* no NBPG */ | |
14197 | # endif /* no EXEC_PAGESIZE */ | |
14198 | # else /* no HAVE_SYS_PARAM_H */ | |
14199 | # define getpagesize() 8192 /* punt totally */ | |
14200 | # endif /* no HAVE_SYS_PARAM_H */ | |
14201 | # endif /* no _SC_PAGESIZE */ | |
14202 | ||
5464f5a1 NN |
14203 | #endif /* no HAVE_GETPAGESIZE */ |
14204 | ||
14205 | int | |
14206 | main () | |
14207 | { | |
14208 | char *data, *data2, *data3; | |
14209 | int i, pagesize; | |
14210 | int fd; | |
14211 | ||
14212 | pagesize = getpagesize (); | |
14213 | ||
14214 | /* First, make a file with some known garbage in it. */ | |
14215 | data = (char *) malloc (pagesize); | |
14216 | if (!data) | |
14217 | exit (1); | |
14218 | for (i = 0; i < pagesize; ++i) | |
14219 | *(data + i) = rand (); | |
14220 | umask (0); | |
14221 | fd = creat ("conftest.mmap", 0600); | |
14222 | if (fd < 0) | |
14223 | exit (1); | |
14224 | if (write (fd, data, pagesize) != pagesize) | |
14225 | exit (1); | |
14226 | close (fd); | |
14227 | ||
14228 | /* Next, try to mmap the file at a fixed address which already has | |
14229 | something else allocated at it. If we can, also make sure that | |
14230 | we see the same garbage. */ | |
14231 | fd = open ("conftest.mmap", O_RDWR); | |
14232 | if (fd < 0) | |
14233 | exit (1); | |
14234 | data2 = (char *) malloc (2 * pagesize); | |
14235 | if (!data2) | |
14236 | exit (1); | |
14237 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
14238 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
14239 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
14240 | exit (1); | |
14241 | for (i = 0; i < pagesize; ++i) | |
14242 | if (*(data + i) != *(data2 + i)) | |
14243 | exit (1); | |
14244 | ||
14245 | /* Finally, make sure that changes to the mapped area do not | |
14246 | percolate back to the file as seen by read(). (This is a bug on | |
14247 | some variants of i386 svr4.0.) */ | |
14248 | for (i = 0; i < pagesize; ++i) | |
14249 | *(data2 + i) = *(data2 + i) + 1; | |
14250 | data3 = (char *) malloc (pagesize); | |
14251 | if (!data3) | |
14252 | exit (1); | |
14253 | if (read (fd, data3, pagesize) != pagesize) | |
14254 | exit (1); | |
14255 | for (i = 0; i < pagesize; ++i) | |
14256 | if (*(data + i) != *(data3 + i)) | |
14257 | exit (1); | |
14258 | close (fd); | |
14259 | exit (0); | |
14260 | } | |
14261 | _ACEOF | |
14262 | rm -f conftest$ac_exeext | |
14263 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14264 | (eval $ac_link) 2>&5 | |
14265 | ac_status=$? | |
14266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14267 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14269 | (eval $ac_try) 2>&5 | |
14270 | ac_status=$? | |
14271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14272 | (exit $ac_status); }; }; then | |
14273 | ac_cv_func_mmap_fixed_mapped=yes | |
14274 | else | |
14275 | echo "$as_me: program exited with status $ac_status" >&5 | |
14276 | echo "$as_me: failed program was:" >&5 | |
14277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14278 | ||
14279 | ( exit $ac_status ) | |
14280 | ac_cv_func_mmap_fixed_mapped=no | |
14281 | fi | |
14282 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14283 | fi | |
14284 | fi | |
14285 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
14286 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
14287 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
14288 | ||
14289 | cat >>confdefs.h <<\_ACEOF | |
14290 | #define HAVE_MMAP 1 | |
14291 | _ACEOF | |
14292 | ||
14293 | fi | |
14294 | rm -f conftest.mmap | |
14295 | ||
14296 | ||
14297 | ||
14298 | for ac_func in madvise mprotect | |
14299 | do | |
14300 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14301 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
14302 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
14303 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
14304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14305 | else | |
14306 | cat >conftest.$ac_ext <<_ACEOF | |
14307 | /* confdefs.h. */ | |
14308 | _ACEOF | |
14309 | cat confdefs.h >>conftest.$ac_ext | |
14310 | cat >>conftest.$ac_ext <<_ACEOF | |
14311 | /* end confdefs.h. */ | |
14312 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
14313 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
14314 | #define $ac_func innocuous_$ac_func | |
14315 | ||
14316 | /* System header to define __stub macros and hopefully few prototypes, | |
14317 | which can conflict with char $ac_func (); below. | |
14318 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
14319 | <limits.h> exists even on freestanding compilers. */ | |
14320 | ||
14321 | #ifdef __STDC__ | |
14322 | # include <limits.h> | |
14323 | #else | |
14324 | # include <assert.h> | |
14325 | #endif | |
14326 | ||
14327 | #undef $ac_func | |
14328 | ||
14329 | /* Override any gcc2 internal prototype to avoid an error. */ | |
14330 | #ifdef __cplusplus | |
14331 | extern "C" | |
14332 | { | |
14333 | #endif | |
14334 | /* We use char because int might match the return type of a gcc2 | |
14335 | builtin and then its argument prototype would still apply. */ | |
14336 | char $ac_func (); | |
14337 | /* The GNU C library defines this for functions which it implements | |
14338 | to always fail with ENOSYS. Some functions are actually named | |
14339 | something starting with __ and the normal name is an alias. */ | |
14340 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
14341 | choke me | |
14342 | #else | |
14343 | char (*f) () = $ac_func; | |
14344 | #endif | |
14345 | #ifdef __cplusplus | |
14346 | } | |
14347 | #endif | |
14348 | ||
14349 | int | |
14350 | main () | |
14351 | { | |
14352 | return f != $ac_func; | |
14353 | ; | |
14354 | return 0; | |
14355 | } | |
14356 | _ACEOF | |
14357 | rm -f conftest.$ac_objext conftest$ac_exeext | |
14358 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14359 | (eval $ac_link) 2>conftest.er1 | |
14360 | ac_status=$? | |
14361 | grep -v '^ *+' conftest.er1 >conftest.err | |
14362 | rm -f conftest.er1 | |
14363 | cat conftest.err >&5 | |
14364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14365 | (exit $ac_status); } && | |
e1fffbe6 AM |
14366 | { ac_try='test -z "$ac_c_werror_flag" |
14367 | || test ! -s conftest.err' | |
5464f5a1 NN |
14368 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14369 | (eval $ac_try) 2>&5 | |
14370 | ac_status=$? | |
14371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14372 | (exit $ac_status); }; } && | |
14373 | { ac_try='test -s conftest$ac_exeext' | |
14374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14375 | (eval $ac_try) 2>&5 | |
14376 | ac_status=$? | |
14377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14378 | (exit $ac_status); }; }; then | |
14379 | eval "$as_ac_var=yes" | |
14380 | else | |
14381 | echo "$as_me: failed program was:" >&5 | |
14382 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14383 | ||
14384 | eval "$as_ac_var=no" | |
14385 | fi | |
14386 | rm -f conftest.err conftest.$ac_objext \ | |
14387 | conftest$ac_exeext conftest.$ac_ext | |
14388 | fi | |
14389 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
14390 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
14391 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
14392 | cat >>confdefs.h <<_ACEOF | |
14393 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
14394 | _ACEOF | |
14395 | ||
14396 | fi | |
14397 | done | |
14398 | ||
14399 | case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in | |
14400 | true+yes ) | |
14401 | cat >>confdefs.h <<\_ACEOF | |
14402 | #define USE_MMAP 1 | |
14403 | _ACEOF | |
14404 | ;; | |
14405 | esac | |
14406 | ||
14407 | rm -f doc/config.status | |
14408 | ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in" | |
14409 | ||
14410 | ac_config_commands="$ac_config_commands default" | |
14411 | ||
14412 | cat >confcache <<\_ACEOF | |
14413 | # This file is a shell script that caches the results of configure | |
14414 | # tests run on this system so they can be shared between configure | |
14415 | # scripts and configure runs, see configure's option --config-cache. | |
14416 | # It is not useful on other systems. If it contains results you don't | |
14417 | # want to keep, you may remove or edit it. | |
14418 | # | |
14419 | # config.status only pays attention to the cache file if you give it | |
14420 | # the --recheck option to rerun configure. | |
14421 | # | |
14422 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
14423 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14424 | # following values. | |
14425 | ||
14426 | _ACEOF | |
14427 | ||
14428 | # The following way of writing the cache mishandles newlines in values, | |
14429 | # but we know of no workaround that is simple, portable, and efficient. | |
14430 | # So, don't put newlines in cache variables' values. | |
14431 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
14432 | # and sets the high bit in the cache file unless we assign to the vars. | |
14433 | { | |
14434 | (set) 2>&1 | | |
14435 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
14436 | *ac_space=\ *) | |
14437 | # `set' does not quote correctly, so add quotes (double-quote | |
14438 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
14439 | sed -n \ | |
14440 | "s/'/'\\\\''/g; | |
14441 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
14442 | ;; | |
14443 | *) | |
14444 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
14445 | sed -n \ | |
14446 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
14447 | ;; | |
14448 | esac; | |
14449 | } | | |
14450 | sed ' | |
14451 | t clear | |
14452 | : clear | |
14453 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
14454 | t end | |
14455 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
14456 | : end' >>confcache | |
14457 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
14458 | if test -w $cache_file; then | |
14459 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
14460 | cat confcache >$cache_file | |
14461 | else | |
14462 | echo "not updating unwritable cache $cache_file" | |
14463 | fi | |
14464 | fi | |
14465 | rm -f confcache | |
14466 | ||
14467 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
14468 | # Let make expand exec_prefix. | |
14469 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
14470 | ||
14471 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
14472 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
14473 | # trailing colons and then remove the whole line if VPATH becomes empty | |
14474 | # (actually we leave an empty line to preserve line numbers). | |
14475 | if test "x$srcdir" = x.; then | |
14476 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
14477 | s/:*\$(srcdir):*/:/; | |
14478 | s/:*\${srcdir}:*/:/; | |
14479 | s/:*@srcdir@:*/:/; | |
14480 | s/^\([^=]*=[ ]*\):*/\1/; | |
14481 | s/:*$//; | |
14482 | s/^[^=]*=[ ]*$//; | |
14483 | }' | |
14484 | fi | |
14485 | ||
14486 | DEFS=-DHAVE_CONFIG_H | |
14487 | ||
14488 | ac_libobjs= | |
14489 | ac_ltlibobjs= | |
14490 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
14491 | # 1. Remove the extension, and $U if already installed. | |
14492 | ac_i=`echo "$ac_i" | | |
14493 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
14494 | # 2. Add them. | |
14495 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
14496 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
14497 | done | |
14498 | LIBOBJS=$ac_libobjs | |
14499 | ||
14500 | LTLIBOBJS=$ac_ltlibobjs | |
14501 | ||
14502 | ||
f5385ebf AM |
14503 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
14504 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
14505 | Usually this means the macro was only invoked conditionally." >&5 | |
14506 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
14507 | Usually this means the macro was only invoked conditionally." >&2;} | |
14508 | { (exit 1); exit 1; }; } | |
14509 | fi | |
14510 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
14511 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
14512 | Usually this means the macro was only invoked conditionally." >&5 | |
14513 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
14514 | Usually this means the macro was only invoked conditionally." >&2;} | |
14515 | { (exit 1); exit 1; }; } | |
14516 | fi | |
14517 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
14518 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
14519 | Usually this means the macro was only invoked conditionally." >&5 | |
14520 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
14521 | Usually this means the macro was only invoked conditionally." >&2;} | |
14522 | { (exit 1); exit 1; }; } | |
14523 | fi | |
14524 | if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then | |
14525 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined. | |
14526 | Usually this means the macro was only invoked conditionally." >&5 | |
14527 | echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined. | |
14528 | Usually this means the macro was only invoked conditionally." >&2;} | |
14529 | { (exit 1); exit 1; }; } | |
14530 | fi | |
5464f5a1 NN |
14531 | |
14532 | : ${CONFIG_STATUS=./config.status} | |
14533 | ac_clean_files_save=$ac_clean_files | |
14534 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
14535 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
14536 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
14537 | cat >$CONFIG_STATUS <<_ACEOF | |
14538 | #! $SHELL | |
14539 | # Generated by $as_me. | |
14540 | # Run this file to recreate the current configuration. | |
14541 | # Compiler output produced by configure, useful for debugging | |
14542 | # configure, is in config.log if it exists. | |
14543 | ||
14544 | debug=false | |
14545 | ac_cs_recheck=false | |
14546 | ac_cs_silent=false | |
14547 | SHELL=\${CONFIG_SHELL-$SHELL} | |
14548 | _ACEOF | |
14549 | ||
14550 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14551 | ## --------------------- ## | |
14552 | ## M4sh Initialization. ## | |
14553 | ## --------------------- ## | |
14554 | ||
14555 | # Be Bourne compatible | |
14556 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14557 | emulate sh | |
14558 | NULLCMD=: | |
14559 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
14560 | # is contrary to our usage. Disable this feature. | |
14561 | alias -g '${1+"$@"}'='"$@"' | |
14562 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
14563 | set -o posix | |
14564 | fi | |
14565 | DUALCASE=1; export DUALCASE # for MKS sh | |
14566 | ||
14567 | # Support unset when possible. | |
14568 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
14569 | as_unset=unset | |
14570 | else | |
14571 | as_unset=false | |
14572 | fi | |
14573 | ||
14574 | ||
14575 | # Work around bugs in pre-3.0 UWIN ksh. | |
14576 | $as_unset ENV MAIL MAILPATH | |
14577 | PS1='$ ' | |
14578 | PS2='> ' | |
14579 | PS4='+ ' | |
14580 | ||
14581 | # NLS nuisances. | |
14582 | for as_var in \ | |
14583 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
14584 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
14585 | LC_TELEPHONE LC_TIME | |
14586 | do | |
14587 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
14588 | eval $as_var=C; export $as_var | |
14589 | else | |
14590 | $as_unset $as_var | |
14591 | fi | |
14592 | done | |
14593 | ||
14594 | # Required to use basename. | |
14595 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
14596 | as_expr=expr | |
14597 | else | |
14598 | as_expr=false | |
14599 | fi | |
14600 | ||
14601 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
14602 | as_basename=basename | |
14603 | else | |
14604 | as_basename=false | |
14605 | fi | |
252b5132 | 14606 | |
6be7c12c | 14607 | |
5464f5a1 NN |
14608 | # Name of the executable. |
14609 | as_me=`$as_basename "$0" || | |
14610 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
14611 | X"$0" : 'X\(//\)$' \| \ | |
14612 | X"$0" : 'X\(/\)$' \| \ | |
14613 | . : '\(.\)' 2>/dev/null || | |
14614 | echo X/"$0" | | |
14615 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
14616 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
14617 | /^X\/\(\/\).*/{ s//\1/; q; } | |
14618 | s/.*/./; q'` | |
14619 | ||
14620 | ||
14621 | # PATH needs CR, and LINENO needs CR and PATH. | |
14622 | # Avoid depending upon Character Ranges. | |
14623 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
14624 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
14625 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
14626 | as_cr_digits='0123456789' | |
14627 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
14628 | ||
14629 | # The user is always right. | |
14630 | if test "${PATH_SEPARATOR+set}" != set; then | |
14631 | echo "#! /bin/sh" >conf$$.sh | |
14632 | echo "exit 0" >>conf$$.sh | |
14633 | chmod +x conf$$.sh | |
14634 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
14635 | PATH_SEPARATOR=';' | |
14636 | else | |
14637 | PATH_SEPARATOR=: | |
14638 | fi | |
14639 | rm -f conf$$.sh | |
14640 | fi | |
14641 | ||
14642 | ||
14643 | as_lineno_1=$LINENO | |
14644 | as_lineno_2=$LINENO | |
14645 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
14646 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
14647 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
14648 | # Find who we are. Look in the path if we contain no path at all | |
14649 | # relative or not. | |
14650 | case $0 in | |
14651 | *[\\/]* ) as_myself=$0 ;; | |
14652 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14653 | for as_dir in $PATH | |
14654 | do | |
14655 | IFS=$as_save_IFS | |
14656 | test -z "$as_dir" && as_dir=. | |
14657 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
14658 | done | |
14659 | ||
14660 | ;; | |
14661 | esac | |
14662 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
14663 | # in which case we are not to be found in the path. | |
14664 | if test "x$as_myself" = x; then | |
14665 | as_myself=$0 | |
14666 | fi | |
14667 | if test ! -f "$as_myself"; then | |
14668 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
14669 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
14670 | { (exit 1); exit 1; }; } | |
14671 | fi | |
14672 | case $CONFIG_SHELL in | |
14673 | '') | |
14674 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
14675 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
14676 | do | |
14677 | IFS=$as_save_IFS | |
14678 | test -z "$as_dir" && as_dir=. | |
14679 | for as_base in sh bash ksh sh5; do | |
14680 | case $as_dir in | |
14681 | /*) | |
14682 | if ("$as_dir/$as_base" -c ' | |
14683 | as_lineno_1=$LINENO | |
14684 | as_lineno_2=$LINENO | |
14685 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
14686 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
14687 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
14688 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
14689 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
14690 | CONFIG_SHELL=$as_dir/$as_base | |
14691 | export CONFIG_SHELL | |
14692 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
14693 | fi;; | |
14694 | esac | |
14695 | done | |
14696 | done | |
14697 | ;; | |
14698 | esac | |
14699 | ||
14700 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
14701 | # uniformly replaced by the line number. The first 'sed' inserts a | |
14702 | # line-number line before each line; the second 'sed' does the real | |
14703 | # work. The second script uses 'N' to pair each line-number line | |
14704 | # with the numbered line, and appends trailing '-' during | |
14705 | # substitution so that $LINENO is not a special case at line end. | |
14706 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
14707 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
14708 | sed '=' <$as_myself | | |
14709 | sed ' | |
14710 | N | |
14711 | s,$,-, | |
14712 | : loop | |
14713 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
14714 | t loop | |
14715 | s,-$,, | |
14716 | s,^['$as_cr_digits']*\n,, | |
14717 | ' >$as_me.lineno && | |
14718 | chmod +x $as_me.lineno || | |
14719 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
14720 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
14721 | { (exit 1); exit 1; }; } | |
14722 | ||
14723 | # Don't try to exec as it changes $[0], causing all sort of problems | |
14724 | # (the dirname of $[0] is not the place where we might find the | |
14725 | # original and so on. Autoconf is especially sensible to this). | |
14726 | . ./$as_me.lineno | |
14727 | # Exit status is that of the last command. | |
14728 | exit | |
252b5132 | 14729 | } |
6be7c12c | 14730 | |
5464f5a1 NN |
14731 | |
14732 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
14733 | *c*,-n*) ECHO_N= ECHO_C=' | |
14734 | ' ECHO_T=' ' ;; | |
14735 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
14736 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
14737 | esac | |
14738 | ||
14739 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
14740 | as_expr=expr | |
252b5132 | 14741 | else |
5464f5a1 | 14742 | as_expr=false |
252b5132 | 14743 | fi |
5464f5a1 NN |
14744 | |
14745 | rm -f conf$$ conf$$.exe conf$$.file | |
14746 | echo >conf$$.file | |
14747 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
14748 | # We could just check for DJGPP; but this test a) works b) is more generic | |
14749 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
14750 | if test -f conf$$.exe; then | |
14751 | # Don't use ln at all; we don't have any links | |
14752 | as_ln_s='cp -p' | |
14753 | else | |
14754 | as_ln_s='ln -s' | |
14755 | fi | |
14756 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
14757 | as_ln_s=ln | |
14758 | else | |
14759 | as_ln_s='cp -p' | |
252b5132 | 14760 | fi |
5464f5a1 | 14761 | rm -f conf$$ conf$$.exe conf$$.file |
6be7c12c | 14762 | |
5464f5a1 NN |
14763 | if mkdir -p . 2>/dev/null; then |
14764 | as_mkdir_p=: | |
14765 | else | |
14766 | test -d ./-p && rmdir ./-p | |
14767 | as_mkdir_p=false | |
252b5132 | 14768 | fi |
b3baf5d0 | 14769 | |
5464f5a1 | 14770 | as_executable_p="test -f" |
252b5132 | 14771 | |
5464f5a1 NN |
14772 | # Sed expression to map a string onto a valid CPP name. |
14773 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
252b5132 | 14774 | |
5464f5a1 NN |
14775 | # Sed expression to map a string onto a valid variable name. |
14776 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
6be7c12c | 14777 | |
252b5132 | 14778 | |
5464f5a1 NN |
14779 | # IFS |
14780 | # We need space, tab and new line, in precisely that order. | |
14781 | as_nl=' | |
14782 | ' | |
14783 | IFS=" $as_nl" | |
252b5132 | 14784 | |
5464f5a1 NN |
14785 | # CDPATH. |
14786 | $as_unset CDPATH | |
14787 | ||
14788 | exec 6>&1 | |
14789 | ||
14790 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
14791 | # report actual input values of CONFIG_FILES etc. instead of their | |
14792 | # values after options handling. Logging --version etc. is OK. | |
14793 | exec 5>>config.log | |
14794 | { | |
14795 | echo | |
14796 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
14797 | ## Running $as_me. ## | |
14798 | _ASBOX | |
14799 | } >&5 | |
14800 | cat >&5 <<_CSEOF | |
14801 | ||
14802 | This file was extended by $as_me, which was | |
14803 | generated by GNU Autoconf 2.59. Invocation command line was | |
14804 | ||
14805 | CONFIG_FILES = $CONFIG_FILES | |
14806 | CONFIG_HEADERS = $CONFIG_HEADERS | |
14807 | CONFIG_LINKS = $CONFIG_LINKS | |
14808 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
14809 | $ $0 $@ | |
14810 | ||
14811 | _CSEOF | |
14812 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
14813 | echo >&5 | |
14814 | _ACEOF | |
14815 | ||
14816 | # Files that config.status was made for. | |
14817 | if test -n "$ac_config_files"; then | |
14818 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
6be7c12c | 14819 | fi |
5464f5a1 NN |
14820 | |
14821 | if test -n "$ac_config_headers"; then | |
14822 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
6be7c12c | 14823 | fi |
252b5132 | 14824 | |
5464f5a1 NN |
14825 | if test -n "$ac_config_links"; then |
14826 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
252b5132 | 14827 | fi |
252b5132 | 14828 | |
5464f5a1 NN |
14829 | if test -n "$ac_config_commands"; then |
14830 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
14831 | fi | |
252b5132 | 14832 | |
5464f5a1 NN |
14833 | cat >>$CONFIG_STATUS <<\_ACEOF |
14834 | ||
14835 | ac_cs_usage="\ | |
14836 | \`$as_me' instantiates files from templates according to the | |
14837 | current configuration. | |
14838 | ||
14839 | Usage: $0 [OPTIONS] [FILE]... | |
14840 | ||
14841 | -h, --help print this help, then exit | |
14842 | -V, --version print version number, then exit | |
14843 | -q, --quiet do not print progress messages | |
14844 | -d, --debug don't remove temporary files | |
14845 | --recheck update $as_me by reconfiguring in the same conditions | |
14846 | --file=FILE[:TEMPLATE] | |
14847 | instantiate the configuration file FILE | |
14848 | --header=FILE[:TEMPLATE] | |
14849 | instantiate the configuration header FILE | |
14850 | ||
14851 | Configuration files: | |
14852 | $config_files | |
14853 | ||
14854 | Configuration headers: | |
14855 | $config_headers | |
14856 | ||
14857 | Configuration commands: | |
14858 | $config_commands | |
14859 | ||
14860 | Report bugs to <[email protected]>." | |
14861 | _ACEOF | |
14862 | ||
14863 | cat >>$CONFIG_STATUS <<_ACEOF | |
14864 | ac_cs_version="\\ | |
14865 | config.status | |
14866 | configured by $0, generated by GNU Autoconf 2.59, | |
14867 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
14868 | ||
14869 | Copyright (C) 2003 Free Software Foundation, Inc. | |
14870 | This config.status script is free software; the Free Software Foundation | |
14871 | gives unlimited permission to copy, distribute and modify it." | |
14872 | srcdir=$srcdir | |
14873 | INSTALL="$INSTALL" | |
14874 | _ACEOF | |
14875 | ||
14876 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14877 | # If no file are specified by the user, then we need to provide default | |
14878 | # value. By we need to know if files were specified by the user. | |
14879 | ac_need_defaults=: | |
14880 | while test $# != 0 | |
14881 | do | |
14882 | case $1 in | |
14883 | --*=*) | |
14884 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
14885 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
14886 | ac_shift=: | |
6be7c12c | 14887 | ;; |
5464f5a1 NN |
14888 | -*) |
14889 | ac_option=$1 | |
14890 | ac_optarg=$2 | |
14891 | ac_shift=shift | |
6be7c12c | 14892 | ;; |
5464f5a1 NN |
14893 | *) # This is not an option, so the user has probably given explicit |
14894 | # arguments. | |
14895 | ac_option=$1 | |
14896 | ac_need_defaults=false;; | |
14897 | esac | |
252b5132 | 14898 | |
5464f5a1 NN |
14899 | case $ac_option in |
14900 | # Handling of the options. | |
14901 | _ACEOF | |
14902 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14903 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
14904 | ac_cs_recheck=: ;; | |
14905 | --version | --vers* | -V ) | |
14906 | echo "$ac_cs_version"; exit 0 ;; | |
14907 | --he | --h) | |
14908 | # Conflict between --help and --header | |
14909 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
14910 | Try \`$0 --help' for more information." >&5 | |
14911 | echo "$as_me: error: ambiguous option: $1 | |
14912 | Try \`$0 --help' for more information." >&2;} | |
14913 | { (exit 1); exit 1; }; };; | |
14914 | --help | --hel | -h ) | |
14915 | echo "$ac_cs_usage"; exit 0 ;; | |
14916 | --debug | --d* | -d ) | |
14917 | debug=: ;; | |
14918 | --file | --fil | --fi | --f ) | |
14919 | $ac_shift | |
14920 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
14921 | ac_need_defaults=false;; | |
14922 | --header | --heade | --head | --hea ) | |
14923 | $ac_shift | |
14924 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
14925 | ac_need_defaults=false;; | |
14926 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
14927 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
14928 | ac_cs_silent=: ;; | |
6be7c12c | 14929 | |
5464f5a1 NN |
14930 | # This is an error. |
14931 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
14932 | Try \`$0 --help' for more information." >&5 | |
14933 | echo "$as_me: error: unrecognized option: $1 | |
14934 | Try \`$0 --help' for more information." >&2;} | |
14935 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 14936 | |
5464f5a1 | 14937 | *) ac_config_targets="$ac_config_targets $1" ;; |
252b5132 | 14938 | |
5464f5a1 NN |
14939 | esac |
14940 | shift | |
14941 | done | |
6be7c12c | 14942 | |
5464f5a1 | 14943 | ac_configure_extra_args= |
252b5132 | 14944 | |
5464f5a1 NN |
14945 | if $ac_cs_silent; then |
14946 | exec 6>/dev/null | |
14947 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
14948 | fi | |
6be7c12c | 14949 | |
5464f5a1 NN |
14950 | _ACEOF |
14951 | cat >>$CONFIG_STATUS <<_ACEOF | |
14952 | if \$ac_cs_recheck; then | |
14953 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
14954 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
14955 | fi | |
14956 | ||
14957 | _ACEOF | |
14958 | ||
14959 | cat >>$CONFIG_STATUS <<_ACEOF | |
6be7c12c | 14960 | # |
5464f5a1 | 14961 | # INIT-COMMANDS section. |
6be7c12c | 14962 | # |
b3baf5d0 | 14963 | |
f5385ebf | 14964 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
5464f5a1 NN |
14965 | |
14966 | ||
14967 | _ACEOF | |
14968 | ||
14969 | ||
14970 | ||
14971 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14972 | for ac_config_target in $ac_config_targets | |
252b5132 | 14973 | do |
5464f5a1 NN |
14974 | case "$ac_config_target" in |
14975 | # Handling of arguments. | |
14976 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
14977 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
14978 | "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;; | |
14979 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
f5385ebf | 14980 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
5464f5a1 NN |
14981 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
14982 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
14983 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
14984 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
14985 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
14986 | esac |
14987 | done | |
14988 | ||
5464f5a1 NN |
14989 | # If the user did not use the arguments to specify the items to instantiate, |
14990 | # then the envvar interface is used. Set only those that are not. | |
14991 | # We use the long form for the default assignment because of an extremely | |
14992 | # bizarre bug on SunOS 4.1.3. | |
14993 | if $ac_need_defaults; then | |
14994 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
14995 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
14996 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
14997 | fi | |
14998 | ||
14999 | # Have a temporary directory for convenience. Make it in the build tree | |
15000 | # simply because there is no reason to put it here, and in addition, | |
15001 | # creating and moving files from /tmp can sometimes cause problems. | |
15002 | # Create a temporary directory, and hook for its removal unless debugging. | |
15003 | $debug || | |
15004 | { | |
15005 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
15006 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
15007 | } | |
b3baf5d0 | 15008 | |
5464f5a1 | 15009 | # Create a (secure) tmp directory for tmp files. |
b3baf5d0 | 15010 | |
5464f5a1 NN |
15011 | { |
15012 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
15013 | test -n "$tmp" && test -d "$tmp" | |
15014 | } || | |
15015 | { | |
15016 | tmp=./confstat$$-$RANDOM | |
15017 | (umask 077 && mkdir $tmp) | |
15018 | } || | |
15019 | { | |
15020 | echo "$me: cannot create a temporary directory in ." >&2 | |
15021 | { (exit 1); exit 1; } | |
15022 | } | |
15023 | ||
15024 | _ACEOF | |
15025 | ||
15026 | cat >>$CONFIG_STATUS <<_ACEOF | |
15027 | ||
15028 | # | |
15029 | # CONFIG_FILES section. | |
15030 | # | |
b3baf5d0 | 15031 | |
5464f5a1 NN |
15032 | # No need to generate the scripts if there are no CONFIG_FILES. |
15033 | # This happens for instance when ./config.status config.h | |
15034 | if test -n "\$CONFIG_FILES"; then | |
15035 | # Protect against being on the right side of a sed subst in config.status. | |
15036 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
15037 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
15038 | s,@SHELL@,$SHELL,;t t | |
15039 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
15040 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
15041 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
15042 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
15043 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
15044 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
15045 | s,@exec_prefix@,$exec_prefix,;t t | |
15046 | s,@prefix@,$prefix,;t t | |
15047 | s,@program_transform_name@,$program_transform_name,;t t | |
15048 | s,@bindir@,$bindir,;t t | |
15049 | s,@sbindir@,$sbindir,;t t | |
15050 | s,@libexecdir@,$libexecdir,;t t | |
15051 | s,@datadir@,$datadir,;t t | |
15052 | s,@sysconfdir@,$sysconfdir,;t t | |
15053 | s,@sharedstatedir@,$sharedstatedir,;t t | |
15054 | s,@localstatedir@,$localstatedir,;t t | |
15055 | s,@libdir@,$libdir,;t t | |
15056 | s,@includedir@,$includedir,;t t | |
15057 | s,@oldincludedir@,$oldincludedir,;t t | |
15058 | s,@infodir@,$infodir,;t t | |
15059 | s,@mandir@,$mandir,;t t | |
15060 | s,@build_alias@,$build_alias,;t t | |
15061 | s,@host_alias@,$host_alias,;t t | |
15062 | s,@target_alias@,$target_alias,;t t | |
15063 | s,@DEFS@,$DEFS,;t t | |
15064 | s,@ECHO_C@,$ECHO_C,;t t | |
15065 | s,@ECHO_N@,$ECHO_N,;t t | |
15066 | s,@ECHO_T@,$ECHO_T,;t t | |
15067 | s,@LIBS@,$LIBS,;t t | |
15068 | s,@build@,$build,;t t | |
15069 | s,@build_cpu@,$build_cpu,;t t | |
15070 | s,@build_vendor@,$build_vendor,;t t | |
15071 | s,@build_os@,$build_os,;t t | |
15072 | s,@host@,$host,;t t | |
15073 | s,@host_cpu@,$host_cpu,;t t | |
15074 | s,@host_vendor@,$host_vendor,;t t | |
15075 | s,@host_os@,$host_os,;t t | |
15076 | s,@target@,$target,;t t | |
15077 | s,@target_cpu@,$target_cpu,;t t | |
15078 | s,@target_vendor@,$target_vendor,;t t | |
15079 | s,@target_os@,$target_os,;t t | |
15080 | s,@CC@,$CC,;t t | |
15081 | s,@CFLAGS@,$CFLAGS,;t t | |
15082 | s,@LDFLAGS@,$LDFLAGS,;t t | |
15083 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
15084 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
15085 | s,@EXEEXT@,$EXEEXT,;t t | |
15086 | s,@OBJEXT@,$OBJEXT,;t t | |
15087 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
15088 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
15089 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
f5385ebf | 15090 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
5464f5a1 NN |
15091 | s,@PACKAGE@,$PACKAGE,;t t |
15092 | s,@VERSION@,$VERSION,;t t | |
15093 | s,@ACLOCAL@,$ACLOCAL,;t t | |
15094 | s,@AUTOCONF@,$AUTOCONF,;t t | |
15095 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
15096 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
15097 | s,@MAKEINFO@,$MAKEINFO,;t t | |
f5385ebf AM |
15098 | s,@install_sh@,$install_sh,;t t |
15099 | s,@STRIP@,$STRIP,;t t | |
15100 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
15101 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
15102 | s,@mkdir_p@,$mkdir_p,;t t | |
15103 | s,@AWK@,$AWK,;t t | |
5464f5a1 | 15104 | s,@SET_MAKE@,$SET_MAKE,;t t |
f5385ebf AM |
15105 | s,@am__leading_dot@,$am__leading_dot,;t t |
15106 | s,@AMTAR@,$AMTAR,;t t | |
15107 | s,@am__tar@,$am__tar,;t t | |
15108 | s,@am__untar@,$am__untar,;t t | |
15109 | s,@DEPDIR@,$DEPDIR,;t t | |
15110 | s,@am__include@,$am__include,;t t | |
15111 | s,@am__quote@,$am__quote,;t t | |
15112 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
15113 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
15114 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
15115 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
15116 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
15117 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
5464f5a1 NN |
15118 | s,@AR@,$AR,;t t |
15119 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
15120 | s,@RANLIB@,$RANLIB,;t t | |
15121 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
15122 | s,@LN_S@,$LN_S,;t t | |
5464f5a1 NN |
15123 | s,@LIBTOOL@,$LIBTOOL,;t t |
15124 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
9e9b66a9 | 15125 | s,@NO_WERROR@,$NO_WERROR,;t t |
5464f5a1 NN |
15126 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
15127 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
15128 | s,@MAINT@,$MAINT,;t t | |
15129 | s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t | |
15130 | s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t | |
24443139 AS |
15131 | s,@host_noncanonical@,$host_noncanonical,;t t |
15132 | s,@target_noncanonical@,$target_noncanonical,;t t | |
5464f5a1 NN |
15133 | s,@bfdlibdir@,$bfdlibdir,;t t |
15134 | s,@bfdincludedir@,$bfdincludedir,;t t | |
15135 | s,@CPP@,$CPP,;t t | |
15136 | s,@EGREP@,$EGREP,;t t | |
15137 | s,@ALLOCA@,$ALLOCA,;t t | |
15138 | s,@USE_NLS@,$USE_NLS,;t t | |
15139 | s,@MSGFMT@,$MSGFMT,;t t | |
15140 | s,@GMSGFMT@,$GMSGFMT,;t t | |
15141 | s,@XGETTEXT@,$XGETTEXT,;t t | |
15142 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t | |
15143 | s,@CATALOGS@,$CATALOGS,;t t | |
15144 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
15145 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
15146 | s,@GMOFILES@,$GMOFILES,;t t | |
15147 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
15148 | s,@INTLDEPS@,$INTLDEPS,;t t | |
15149 | s,@INTLLIBS@,$INTLLIBS,;t t | |
15150 | s,@INTLOBJS@,$INTLOBJS,;t t | |
15151 | s,@POFILES@,$POFILES,;t t | |
15152 | s,@POSUB@,$POSUB,;t t | |
15153 | s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t | |
15154 | s,@GT_NO@,$GT_NO,;t t | |
15155 | s,@GT_YES@,$GT_YES,;t t | |
15156 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | |
15157 | s,@l@,$l,;t t | |
15158 | s,@HDEFINES@,$HDEFINES,;t t | |
15159 | s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t | |
15160 | s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t | |
15161 | s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t | |
15162 | s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t | |
15163 | s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t | |
15164 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t | |
15165 | s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t | |
15166 | s,@COREFILE@,$COREFILE,;t t | |
15167 | s,@COREFLAG@,$COREFLAG,;t t | |
15168 | s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t | |
15169 | s,@WIN32LIBADD@,$WIN32LIBADD,;t t | |
15170 | s,@TDEFINES@,$TDEFINES,;t t | |
15171 | s,@wordsize@,$wordsize,;t t | |
15172 | s,@bfd_libs@,$bfd_libs,;t t | |
15173 | s,@all_backends@,$all_backends,;t t | |
15174 | s,@bfd_backends@,$bfd_backends,;t t | |
15175 | s,@bfd_machines@,$bfd_machines,;t t | |
15176 | s,@bfd_default_target_size@,$bfd_default_target_size,;t t | |
15177 | s,@bfd_file_ptr@,$bfd_file_ptr,;t t | |
15178 | s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t | |
15179 | s,@tdefaults@,$tdefaults,;t t | |
15180 | s,@LIBOBJS@,$LIBOBJS,;t t | |
15181 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
252b5132 | 15182 | CEOF |
252b5132 | 15183 | |
5464f5a1 NN |
15184 | _ACEOF |
15185 | ||
15186 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15187 | # Split the substitutions into bite-sized pieces for seds with | |
15188 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
15189 | ac_max_sed_lines=48 | |
15190 | ac_sed_frag=1 # Number of current file. | |
15191 | ac_beg=1 # First line for current file. | |
15192 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
15193 | ac_more_lines=: | |
15194 | ac_sed_cmds= | |
15195 | while $ac_more_lines; do | |
15196 | if test $ac_beg -gt 1; then | |
15197 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
252b5132 | 15198 | else |
5464f5a1 NN |
15199 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
15200 | fi | |
15201 | if test ! -s $tmp/subs.frag; then | |
15202 | ac_more_lines=false | |
15203 | else | |
15204 | # The purpose of the label and of the branching condition is to | |
15205 | # speed up the sed processing (if there are no `@' at all, there | |
15206 | # is no need to browse any of the substitutions). | |
15207 | # These are the two extra sed commands mentioned above. | |
15208 | (echo ':t | |
15209 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
15210 | if test -z "$ac_sed_cmds"; then | |
15211 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
15212 | else | |
15213 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
15214 | fi | |
15215 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
15216 | ac_beg=$ac_end | |
15217 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
252b5132 | 15218 | fi |
5464f5a1 NN |
15219 | done |
15220 | if test -z "$ac_sed_cmds"; then | |
15221 | ac_sed_cmds=cat | |
252b5132 | 15222 | fi |
5464f5a1 | 15223 | fi # test -n "$CONFIG_FILES" |
6be7c12c | 15224 | |
5464f5a1 NN |
15225 | _ACEOF |
15226 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15227 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
252b5132 | 15228 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
5464f5a1 NN |
15229 | case $ac_file in |
15230 | - | *:- | *:-:* ) # input from stdin | |
15231 | cat >$tmp/stdin | |
15232 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
15233 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
15234 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
15235 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
15236 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
15237 | esac |
15238 | ||
5464f5a1 NN |
15239 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
15240 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
15241 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15242 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15243 | X"$ac_file" : 'X\(//\)$' \| \ | |
15244 | X"$ac_file" : 'X\(/\)' \| \ | |
15245 | . : '\(.\)' 2>/dev/null || | |
15246 | echo X"$ac_file" | | |
15247 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15248 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15249 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15250 | /^X\(\/\).*/{ s//\1/; q; } | |
15251 | s/.*/./; q'` | |
15252 | { if $as_mkdir_p; then | |
15253 | mkdir -p "$ac_dir" | |
252b5132 | 15254 | else |
5464f5a1 NN |
15255 | as_dir="$ac_dir" |
15256 | as_dirs= | |
15257 | while test ! -d "$as_dir"; do | |
15258 | as_dirs="$as_dir $as_dirs" | |
15259 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
15260 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15261 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15262 | X"$as_dir" : 'X\(//\)$' \| \ | |
15263 | X"$as_dir" : 'X\(/\)' \| \ | |
15264 | . : '\(.\)' 2>/dev/null || | |
15265 | echo X"$as_dir" | | |
15266 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15267 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15268 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15269 | /^X\(\/\).*/{ s//\1/; q; } | |
15270 | s/.*/./; q'` | |
15271 | done | |
15272 | test ! -n "$as_dirs" || mkdir $as_dirs | |
15273 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
15274 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
15275 | { (exit 1); exit 1; }; }; } | |
15276 | ||
15277 | ac_builddir=. | |
15278 | ||
15279 | if test "$ac_dir" != .; then | |
15280 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
15281 | # A "../" for each directory in $ac_dir_suffix. | |
15282 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
15283 | else | |
15284 | ac_dir_suffix= ac_top_builddir= | |
15285 | fi | |
252b5132 | 15286 | |
5464f5a1 NN |
15287 | case $srcdir in |
15288 | .) # No --srcdir option. We are building in place. | |
15289 | ac_srcdir=. | |
15290 | if test -z "$ac_top_builddir"; then | |
15291 | ac_top_srcdir=. | |
15292 | else | |
15293 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
15294 | fi ;; | |
15295 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
15296 | ac_srcdir=$srcdir$ac_dir_suffix; | |
15297 | ac_top_srcdir=$srcdir ;; | |
252b5132 | 15298 | *) # Relative path. |
5464f5a1 NN |
15299 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
15300 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
15301 | esac | |
252b5132 | 15302 | |
5464f5a1 NN |
15303 | # Do not use `cd foo && pwd` to compute absolute paths, because |
15304 | # the directories may not exist. | |
15305 | case `pwd` in | |
15306 | .) ac_abs_builddir="$ac_dir";; | |
15307 | *) | |
15308 | case "$ac_dir" in | |
15309 | .) ac_abs_builddir=`pwd`;; | |
15310 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
15311 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
15312 | esac;; | |
15313 | esac | |
15314 | case $ac_abs_builddir in | |
15315 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
15316 | *) | |
15317 | case ${ac_top_builddir}. in | |
15318 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
15319 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
15320 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
15321 | esac;; | |
15322 | esac | |
15323 | case $ac_abs_builddir in | |
15324 | .) ac_abs_srcdir=$ac_srcdir;; | |
15325 | *) | |
15326 | case $ac_srcdir in | |
15327 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
15328 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
15329 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
15330 | esac;; | |
15331 | esac | |
15332 | case $ac_abs_builddir in | |
15333 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
15334 | *) | |
15335 | case $ac_top_srcdir in | |
15336 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
15337 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
15338 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
15339 | esac;; | |
15340 | esac | |
252b5132 | 15341 | |
5464f5a1 NN |
15342 | |
15343 | case $INSTALL in | |
15344 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
15345 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
6be7c12c | 15346 | esac |
252b5132 | 15347 | |
e1fffbe6 AM |
15348 | if test x"$ac_file" != x-; then |
15349 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
15350 | echo "$as_me: creating $ac_file" >&6;} | |
15351 | rm -f "$ac_file" | |
15352 | fi | |
5464f5a1 NN |
15353 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
15354 | # use $as_me), people would be surprised to read: | |
15355 | # /* config.h. Generated by config.status. */ | |
15356 | if test x"$ac_file" = x-; then | |
15357 | configure_input= | |
15358 | else | |
15359 | configure_input="$ac_file. " | |
15360 | fi | |
15361 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
15362 | sed 's,.*/,,'` by configure." | |
15363 | ||
15364 | # First look for the input files in the build tree, otherwise in the | |
15365 | # src tree. | |
15366 | ac_file_inputs=`IFS=: | |
15367 | for f in $ac_file_in; do | |
15368 | case $f in | |
15369 | -) echo $tmp/stdin ;; | |
15370 | [\\/$]*) | |
15371 | # Absolute (can't be DOS-style, as IFS=:) | |
15372 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
15373 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
15374 | { (exit 1); exit 1; }; } | |
15375 | echo "$f";; | |
15376 | *) # Relative | |
15377 | if test -f "$f"; then | |
15378 | # Build tree | |
15379 | echo "$f" | |
15380 | elif test -f "$srcdir/$f"; then | |
15381 | # Source tree | |
15382 | echo "$srcdir/$f" | |
15383 | else | |
15384 | # /dev/null tree | |
15385 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
15386 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
15387 | { (exit 1); exit 1; }; } | |
15388 | fi;; | |
15389 | esac | |
15390 | done` || { (exit 1); exit 1; } | |
5464f5a1 NN |
15391 | _ACEOF |
15392 | cat >>$CONFIG_STATUS <<_ACEOF | |
15393 | sed "$ac_vpsub | |
15394 | $extrasub | |
15395 | _ACEOF | |
15396 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15397 | :t | |
15398 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
15399 | s,@configure_input@,$configure_input,;t t | |
15400 | s,@srcdir@,$ac_srcdir,;t t | |
15401 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
15402 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
15403 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
15404 | s,@builddir@,$ac_builddir,;t t | |
15405 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
15406 | s,@top_builddir@,$ac_top_builddir,;t t | |
15407 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
15408 | s,@INSTALL@,$ac_INSTALL,;t t | |
15409 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
15410 | rm -f $tmp/stdin | |
15411 | if test x"$ac_file" != x-; then | |
15412 | mv $tmp/out $ac_file | |
15413 | else | |
15414 | cat $tmp/out | |
15415 | rm -f $tmp/out | |
15416 | fi | |
15417 | ||
15418 | done | |
15419 | _ACEOF | |
15420 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15421 | ||
15422 | # | |
15423 | # CONFIG_HEADER section. | |
15424 | # | |
252b5132 RH |
15425 | |
15426 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
15427 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
15428 | # | |
15429 | # ac_d sets the value in "#define NAME VALUE" lines. | |
5464f5a1 NN |
15430 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
15431 | ac_dB='[ ].*$,\1#\2' | |
15432 | ac_dC=' ' | |
15433 | ac_dD=',;t' | |
15434 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
15435 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
15436 | ac_uB='$,\1#\2define\3' | |
252b5132 | 15437 | ac_uC=' ' |
5464f5a1 NN |
15438 | ac_uD=',;t' |
15439 | ||
15440 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
252b5132 | 15441 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
5464f5a1 NN |
15442 | case $ac_file in |
15443 | - | *:- | *:-:* ) # input from stdin | |
15444 | cat >$tmp/stdin | |
15445 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
15446 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
15447 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
15448 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
15449 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
15450 | esac |
15451 | ||
5464f5a1 NN |
15452 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
15453 | echo "$as_me: creating $ac_file" >&6;} | |
15454 | ||
15455 | # First look for the input files in the build tree, otherwise in the | |
15456 | # src tree. | |
15457 | ac_file_inputs=`IFS=: | |
15458 | for f in $ac_file_in; do | |
15459 | case $f in | |
15460 | -) echo $tmp/stdin ;; | |
15461 | [\\/$]*) | |
15462 | # Absolute (can't be DOS-style, as IFS=:) | |
15463 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
15464 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
15465 | { (exit 1); exit 1; }; } | |
15466 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
15467 | echo "$f";; | |
15468 | *) # Relative | |
15469 | if test -f "$f"; then | |
15470 | # Build tree | |
15471 | echo "$f" | |
15472 | elif test -f "$srcdir/$f"; then | |
15473 | # Source tree | |
15474 | echo "$srcdir/$f" | |
15475 | else | |
15476 | # /dev/null tree | |
15477 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
15478 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
15479 | { (exit 1); exit 1; }; } | |
15480 | fi;; | |
15481 | esac | |
15482 | done` || { (exit 1); exit 1; } | |
15483 | # Remove the trailing spaces. | |
15484 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
15485 | ||
15486 | _ACEOF | |
15487 | ||
15488 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
15489 | # `conftest.undefs', that substitutes the proper values into | |
15490 | # config.h.in to produce config.h. The first handles `#define' | |
15491 | # templates, and the second `#undef' templates. | |
15492 | # And first: Protect against being on the right side of a sed subst in | |
15493 | # config.status. Protect against being in an unquoted here document | |
15494 | # in config.status. | |
15495 | rm -f conftest.defines conftest.undefs | |
15496 | # Using a here document instead of a string reduces the quoting nightmare. | |
15497 | # Putting comments in sed scripts is not portable. | |
15498 | # | |
15499 | # `end' is used to avoid that the second main sed command (meant for | |
15500 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
15501 | # See the Autoconf documentation for `clear'. | |
15502 | cat >confdef2sed.sed <<\_ACEOF | |
15503 | s/[\\&,]/\\&/g | |
15504 | s,[\\$`],\\&,g | |
15505 | t clear | |
15506 | : clear | |
15507 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
15508 | t end | |
15509 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
15510 | : end | |
15511 | _ACEOF | |
15512 | # If some macros were called several times there might be several times | |
15513 | # the same #defines, which is useless. Nevertheless, we may not want to | |
15514 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
15515 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
15516 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
15517 | rm -f confdef2sed.sed | |
252b5132 RH |
15518 | |
15519 | # This sed command replaces #undef with comments. This is necessary, for | |
15520 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
15521 | # on some systems where configure will not decide to define it. | |
5464f5a1 NN |
15522 | cat >>conftest.undefs <<\_ACEOF |
15523 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
15524 | _ACEOF | |
15525 | ||
15526 | # Break up conftest.defines because some shells have a limit on the size | |
15527 | # of here documents, and old seds have small limits too (100 cmds). | |
15528 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
15529 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
15530 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
15531 | echo ' :' >>$CONFIG_STATUS | |
15532 | rm -f conftest.tail | |
15533 | while grep . conftest.defines >/dev/null | |
15534 | do | |
15535 | # Write a limited-size here document to $tmp/defines.sed. | |
15536 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
15537 | # Speed up: don't consider the non `#define' lines. | |
15538 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
15539 | # Work around the forget-to-reset-the-flag bug. | |
15540 | echo 't clr' >>$CONFIG_STATUS | |
15541 | echo ': clr' >>$CONFIG_STATUS | |
15542 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
15543 | echo 'CEOF | |
15544 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
15545 | rm -f $tmp/in | |
15546 | mv $tmp/out $tmp/in | |
15547 | ' >>$CONFIG_STATUS | |
15548 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
15549 | rm -f conftest.defines | |
15550 | mv conftest.tail conftest.defines | |
15551 | done | |
15552 | rm -f conftest.defines | |
15553 | echo ' fi # grep' >>$CONFIG_STATUS | |
15554 | echo >>$CONFIG_STATUS | |
252b5132 | 15555 | |
5464f5a1 NN |
15556 | # Break up conftest.undefs because some shells have a limit on the size |
15557 | # of here documents, and old seds have small limits too (100 cmds). | |
15558 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
252b5132 | 15559 | rm -f conftest.tail |
5464f5a1 | 15560 | while grep . conftest.undefs >/dev/null |
252b5132 | 15561 | do |
5464f5a1 NN |
15562 | # Write a limited-size here document to $tmp/undefs.sed. |
15563 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
15564 | # Speed up: don't consider the non `#undef' | |
15565 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
15566 | # Work around the forget-to-reset-the-flag bug. | |
15567 | echo 't clr' >>$CONFIG_STATUS | |
15568 | echo ': clr' >>$CONFIG_STATUS | |
15569 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
252b5132 | 15570 | echo 'CEOF |
5464f5a1 NN |
15571 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
15572 | rm -f $tmp/in | |
15573 | mv $tmp/out $tmp/in | |
15574 | ' >>$CONFIG_STATUS | |
15575 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
15576 | rm -f conftest.undefs | |
15577 | mv conftest.tail conftest.undefs | |
252b5132 | 15578 | done |
5464f5a1 NN |
15579 | rm -f conftest.undefs |
15580 | ||
15581 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15582 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
15583 | # use $as_me), people would be surprised to read: | |
15584 | # /* config.h. Generated by config.status. */ | |
15585 | if test x"$ac_file" = x-; then | |
15586 | echo "/* Generated by configure. */" >$tmp/config.h | |
15587 | else | |
15588 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
15589 | fi | |
15590 | cat $tmp/in >>$tmp/config.h | |
15591 | rm -f $tmp/in | |
15592 | if test x"$ac_file" != x-; then | |
15593 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
15594 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
15595 | echo "$as_me: $ac_file is unchanged" >&6;} | |
15596 | else | |
15597 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
15598 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15599 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
15600 | X"$ac_file" : 'X\(//\)$' \| \ | |
15601 | X"$ac_file" : 'X\(/\)' \| \ | |
15602 | . : '\(.\)' 2>/dev/null || | |
15603 | echo X"$ac_file" | | |
15604 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15605 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15606 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15607 | /^X\(\/\).*/{ s//\1/; q; } | |
15608 | s/.*/./; q'` | |
15609 | { if $as_mkdir_p; then | |
15610 | mkdir -p "$ac_dir" | |
252b5132 | 15611 | else |
5464f5a1 NN |
15612 | as_dir="$ac_dir" |
15613 | as_dirs= | |
15614 | while test ! -d "$as_dir"; do | |
15615 | as_dirs="$as_dir $as_dirs" | |
15616 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
15617 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15618 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15619 | X"$as_dir" : 'X\(//\)$' \| \ | |
15620 | X"$as_dir" : 'X\(/\)' \| \ | |
15621 | . : '\(.\)' 2>/dev/null || | |
15622 | echo X"$as_dir" | | |
15623 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15624 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15625 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15626 | /^X\(\/\).*/{ s//\1/; q; } | |
15627 | s/.*/./; q'` | |
15628 | done | |
15629 | test ! -n "$as_dirs" || mkdir $as_dirs | |
15630 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
15631 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
15632 | { (exit 1); exit 1; }; }; } | |
15633 | ||
15634 | rm -f $ac_file | |
15635 | mv $tmp/config.h $ac_file | |
252b5132 | 15636 | fi |
5464f5a1 NN |
15637 | else |
15638 | cat $tmp/config.h | |
15639 | rm -f $tmp/config.h | |
252b5132 | 15640 | fi |
f5385ebf AM |
15641 | # Compute $ac_file's index in $config_headers. |
15642 | _am_stamp_count=1 | |
15643 | for _am_header in $config_headers :; do | |
15644 | case $_am_header in | |
15645 | $ac_file | $ac_file:* ) | |
15646 | break ;; | |
15647 | * ) | |
15648 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
15649 | esac | |
15650 | done | |
15651 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
15652 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15653 | X$ac_file : 'X\(//\)[^/]' \| \ | |
15654 | X$ac_file : 'X\(//\)$' \| \ | |
15655 | X$ac_file : 'X\(/\)' \| \ | |
15656 | . : '\(.\)' 2>/dev/null || | |
15657 | echo X$ac_file | | |
15658 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15659 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15660 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15661 | /^X\(\/\).*/{ s//\1/; q; } | |
15662 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
5464f5a1 NN |
15663 | done |
15664 | _ACEOF | |
15665 | cat >>$CONFIG_STATUS <<\_ACEOF | |
252b5132 | 15666 | |
5464f5a1 NN |
15667 | # |
15668 | # CONFIG_COMMANDS section. | |
15669 | # | |
15670 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
15671 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
15672 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
15673 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
15674 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15675 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
15676 | X"$ac_dest" : 'X\(//\)$' \| \ | |
15677 | X"$ac_dest" : 'X\(/\)' \| \ | |
15678 | . : '\(.\)' 2>/dev/null || | |
15679 | echo X"$ac_dest" | | |
15680 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15681 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15682 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15683 | /^X\(\/\).*/{ s//\1/; q; } | |
15684 | s/.*/./; q'` | |
15685 | { if $as_mkdir_p; then | |
15686 | mkdir -p "$ac_dir" | |
15687 | else | |
15688 | as_dir="$ac_dir" | |
15689 | as_dirs= | |
15690 | while test ! -d "$as_dir"; do | |
15691 | as_dirs="$as_dir $as_dirs" | |
15692 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
15693 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15694 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15695 | X"$as_dir" : 'X\(//\)$' \| \ | |
15696 | X"$as_dir" : 'X\(/\)' \| \ | |
15697 | . : '\(.\)' 2>/dev/null || | |
15698 | echo X"$as_dir" | | |
15699 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15700 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15701 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15702 | /^X\(\/\).*/{ s//\1/; q; } | |
15703 | s/.*/./; q'` | |
15704 | done | |
15705 | test ! -n "$as_dirs" || mkdir $as_dirs | |
15706 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
15707 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
15708 | { (exit 1); exit 1; }; }; } | |
b3baf5d0 | 15709 | |
5464f5a1 | 15710 | ac_builddir=. |
b3baf5d0 | 15711 | |
5464f5a1 NN |
15712 | if test "$ac_dir" != .; then |
15713 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
15714 | # A "../" for each directory in $ac_dir_suffix. | |
15715 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
15716 | else | |
15717 | ac_dir_suffix= ac_top_builddir= | |
15718 | fi | |
15719 | ||
15720 | case $srcdir in | |
15721 | .) # No --srcdir option. We are building in place. | |
15722 | ac_srcdir=. | |
15723 | if test -z "$ac_top_builddir"; then | |
15724 | ac_top_srcdir=. | |
15725 | else | |
15726 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
15727 | fi ;; | |
15728 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
15729 | ac_srcdir=$srcdir$ac_dir_suffix; | |
15730 | ac_top_srcdir=$srcdir ;; | |
15731 | *) # Relative path. | |
15732 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
15733 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
15734 | esac | |
15735 | ||
15736 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
15737 | # the directories may not exist. | |
15738 | case `pwd` in | |
15739 | .) ac_abs_builddir="$ac_dir";; | |
15740 | *) | |
15741 | case "$ac_dir" in | |
15742 | .) ac_abs_builddir=`pwd`;; | |
15743 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
15744 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
15745 | esac;; | |
15746 | esac | |
15747 | case $ac_abs_builddir in | |
15748 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
15749 | *) | |
15750 | case ${ac_top_builddir}. in | |
15751 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
15752 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
15753 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
15754 | esac;; | |
15755 | esac | |
15756 | case $ac_abs_builddir in | |
15757 | .) ac_abs_srcdir=$ac_srcdir;; | |
15758 | *) | |
15759 | case $ac_srcdir in | |
15760 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
15761 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
15762 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
15763 | esac;; | |
15764 | esac | |
15765 | case $ac_abs_builddir in | |
15766 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
15767 | *) | |
15768 | case $ac_top_srcdir in | |
15769 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
15770 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
15771 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
15772 | esac;; | |
15773 | esac | |
15774 | ||
15775 | ||
15776 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
15777 | echo "$as_me: executing $ac_dest commands" >&6;} | |
15778 | case $ac_dest in | |
f5385ebf AM |
15779 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
15780 | # Strip MF so we end up with the name of the file. | |
15781 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
15782 | # Check whether this is an Automake generated Makefile or not. | |
15783 | # We used to match only the files named `Makefile.in', but | |
15784 | # some people rename them; so instead we look at the file content. | |
15785 | # Grep'ing the first line is not enough: some people post-process | |
15786 | # each Makefile.in and add a new line on top of each file to say so. | |
15787 | # So let's grep whole file. | |
15788 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
15789 | dirpart=`(dirname "$mf") 2>/dev/null || | |
15790 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15791 | X"$mf" : 'X\(//\)[^/]' \| \ | |
15792 | X"$mf" : 'X\(//\)$' \| \ | |
15793 | X"$mf" : 'X\(/\)' \| \ | |
15794 | . : '\(.\)' 2>/dev/null || | |
15795 | echo X"$mf" | | |
15796 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15797 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15798 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15799 | /^X\(\/\).*/{ s//\1/; q; } | |
15800 | s/.*/./; q'` | |
15801 | else | |
15802 | continue | |
15803 | fi | |
15804 | # Extract the definition of DEPDIR, am__include, and am__quote | |
15805 | # from the Makefile without running `make'. | |
15806 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
15807 | test -z "$DEPDIR" && continue | |
15808 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
15809 | test -z "am__include" && continue | |
15810 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
15811 | # When using ansi2knr, U may be empty or an underscore; expand it | |
15812 | U=`sed -n 's/^U = //p' < "$mf"` | |
15813 | # Find all dependency output files, they are included files with | |
15814 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
15815 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
15816 | # expansion. | |
15817 | for file in `sed -n " | |
15818 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
15819 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
15820 | # Make sure the directory exists. | |
15821 | test -f "$dirpart/$file" && continue | |
15822 | fdir=`(dirname "$file") 2>/dev/null || | |
15823 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15824 | X"$file" : 'X\(//\)[^/]' \| \ | |
15825 | X"$file" : 'X\(//\)$' \| \ | |
15826 | X"$file" : 'X\(/\)' \| \ | |
15827 | . : '\(.\)' 2>/dev/null || | |
15828 | echo X"$file" | | |
15829 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15830 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15831 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15832 | /^X\(\/\).*/{ s//\1/; q; } | |
15833 | s/.*/./; q'` | |
15834 | { if $as_mkdir_p; then | |
15835 | mkdir -p $dirpart/$fdir | |
15836 | else | |
15837 | as_dir=$dirpart/$fdir | |
15838 | as_dirs= | |
15839 | while test ! -d "$as_dir"; do | |
15840 | as_dirs="$as_dir $as_dirs" | |
15841 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
15842 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15843 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15844 | X"$as_dir" : 'X\(//\)$' \| \ | |
15845 | X"$as_dir" : 'X\(/\)' \| \ | |
15846 | . : '\(.\)' 2>/dev/null || | |
15847 | echo X"$as_dir" | | |
15848 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
15849 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
15850 | /^X\(\/\/\)$/{ s//\1/; q; } | |
15851 | /^X\(\/\).*/{ s//\1/; q; } | |
15852 | s/.*/./; q'` | |
15853 | done | |
15854 | test ! -n "$as_dirs" || mkdir $as_dirs | |
15855 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
15856 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
15857 | { (exit 1); exit 1; }; }; } | |
15858 | ||
15859 | # echo "creating $dirpart/$file" | |
15860 | echo '# dummy' > "$dirpart/$file" | |
15861 | done | |
15862 | done | |
15863 | ;; | |
5464f5a1 NN |
15864 | default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;; |
15865 | esac | |
15866 | done | |
15867 | _ACEOF | |
15868 | ||
15869 | cat >>$CONFIG_STATUS <<\_ACEOF | |
15870 | ||
15871 | { (exit 0); exit 0; } | |
15872 | _ACEOF | |
252b5132 | 15873 | chmod +x $CONFIG_STATUS |
5464f5a1 NN |
15874 | ac_clean_files=$ac_clean_files_save |
15875 | ||
15876 | ||
15877 | # configure is writing to config.log, and then calls config.status. | |
15878 | # config.status does its own redirection, appending to config.log. | |
15879 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
15880 | # by configure, so config.status won't be able to write to it; its | |
15881 | # output is simply discarded. So we exec the FD to /dev/null, | |
15882 | # effectively closing config.log, so it can be properly (re)opened and | |
15883 | # appended to by config.status. When coming back to configure, we | |
15884 | # need to make the FD available again. | |
15885 | if test "$no_create" != yes; then | |
15886 | ac_cs_success=: | |
15887 | ac_config_status_args= | |
15888 | test "$silent" = yes && | |
15889 | ac_config_status_args="$ac_config_status_args --quiet" | |
15890 | exec 5>/dev/null | |
15891 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
15892 | exec 5>>config.log | |
15893 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
15894 | # would make configure fail if this is the last instruction. | |
15895 | $ac_cs_success || { (exit 1); exit 1; } | |
15896 | fi | |
252b5132 | 15897 | |
55c80943 | 15898 |