]>
Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
5464f5a1 | 3 | # Generated by GNU Autoconf 2.59. |
252b5132 | 4 | # |
5464f5a1 | 5 | # Copyright (C) 2003 Free Software Foundation, Inc. |
252b5132 RH |
6 | # This configure script is free software; the Free Software Foundation |
7 | # gives unlimited permission to copy, distribute and modify it. | |
5464f5a1 NN |
8 | ## --------------------- ## |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
11 | ||
12 | # Be Bourne compatible | |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 | emulate sh | |
15 | NULLCMD=: | |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 | set -o posix | |
21 | fi | |
22 | DUALCASE=1; export DUALCASE # for MKS sh | |
23 | ||
24 | # Support unset when possible. | |
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26 | as_unset=unset | |
27 | else | |
28 | as_unset=false | |
29 | fi | |
30 | ||
31 | ||
32 | # Work around bugs in pre-3.0 UWIN ksh. | |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
37 | ||
38 | # NLS nuisances. | |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
45 | eval $as_var=C; export $as_var | |
46 | else | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
50 | ||
51 | # Required to use basename. | |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
57 | ||
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
63 | ||
64 | ||
65 | # Name of the executable. | |
66 | as_me=`$as_basename "$0" || | |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
76 | ||
77 | ||
78 | # PATH needs CR, and LINENO needs CR and PATH. | |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
85 | ||
86 | # The user is always right. | |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
88 | echo "#! /bin/sh" >conf$$.sh | |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 | PATH_SEPARATOR=';' | |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
96 | rm -f conf$$.sh | |
97 | fi | |
98 | ||
99 | ||
100 | as_lineno_1=$LINENO | |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
116 | ||
117 | ;; | |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
146 | CONFIG_SHELL=$as_dir/$as_base | |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
155 | ||
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
158 | # line-number line before each line; the second 'sed' does the real | |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
185 | ||
186 | ||
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
192 | esac | |
193 | ||
194 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
199 | ||
200 | rm -f conf$$ conf$$.exe conf$$.file | |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
203 | # We could just check for DJGPP; but this test a) works b) is more generic | |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 | if test -f conf$$.exe; then | |
206 | # Don't use ln at all; we don't have any links | |
207 | as_ln_s='cp -p' | |
208 | else | |
209 | as_ln_s='ln -s' | |
210 | fi | |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
217 | ||
218 | if mkdir -p . 2>/dev/null; then | |
219 | as_mkdir_p=: | |
220 | else | |
221 | test -d ./-p && rmdir ./-p | |
222 | as_mkdir_p=false | |
223 | fi | |
224 | ||
225 | as_executable_p="test -f" | |
226 | ||
227 | # Sed expression to map a string onto a valid CPP name. | |
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
229 | ||
230 | # Sed expression to map a string onto a valid variable name. | |
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
232 | ||
233 | ||
234 | # IFS | |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
239 | ||
240 | # CDPATH. | |
241 | $as_unset CDPATH | |
242 | ||
243 | ||
244 | # Name of the host. | |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 | # so uname gets run too. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
252b5132 | 248 | |
5464f5a1 NN |
249 | exec 6>&1 |
250 | ||
251 | # | |
252 | # Initializations. | |
253 | # | |
252b5132 | 254 | ac_default_prefix=/usr/local |
5464f5a1 NN |
255 | ac_config_libobj_dir=. |
256 | cross_compiling=no | |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
261 | ||
262 | # Maximum number of lines to put in a shell here document. | |
263 | # This variable seems obsolete. It should probably be removed, and | |
264 | # only ac_max_sed_lines should be used. | |
265 | : ${ac_max_here_lines=38} | |
266 | ||
267 | # Identity of this package. | |
268 | PACKAGE_NAME= | |
269 | PACKAGE_TARNAME= | |
270 | PACKAGE_VERSION= | |
271 | PACKAGE_STRING= | |
272 | PACKAGE_BUGREPORT= | |
273 | ||
274 | ac_unique_file="libbfd.c" | |
275 | # Factoring default headers for most tests. | |
276 | ac_includes_default="\ | |
277 | #include <stdio.h> | |
278 | #if HAVE_SYS_TYPES_H | |
279 | # include <sys/types.h> | |
280 | #endif | |
281 | #if HAVE_SYS_STAT_H | |
282 | # include <sys/stat.h> | |
283 | #endif | |
284 | #if STDC_HEADERS | |
285 | # include <stdlib.h> | |
286 | # include <stddef.h> | |
287 | #else | |
288 | # if HAVE_STDLIB_H | |
289 | # include <stdlib.h> | |
290 | # endif | |
291 | #endif | |
292 | #if HAVE_STRING_H | |
293 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
294 | # include <memory.h> | |
295 | # endif | |
296 | # include <string.h> | |
297 | #endif | |
298 | #if HAVE_STRINGS_H | |
299 | # include <strings.h> | |
300 | #endif | |
301 | #if HAVE_INTTYPES_H | |
302 | # include <inttypes.h> | |
303 | #else | |
304 | # if HAVE_STDINT_H | |
305 | # include <stdint.h> | |
306 | # endif | |
307 | #endif | |
308 | #if HAVE_UNISTD_H | |
309 | # include <unistd.h> | |
310 | #endif" | |
311 | ||
9e9b66a9 | 312 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE AR ac_ct_AR RANLIB ac_ct_RANLIB LN_S LIBTOOL WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults LIBOBJS LTLIBOBJS' |
5464f5a1 | 313 | ac_subst_files='' |
252b5132 RH |
314 | |
315 | # Initialize some variables set by options. | |
5464f5a1 NN |
316 | ac_init_help= |
317 | ac_init_version=false | |
252b5132 RH |
318 | # The variables have the same names as the options, with |
319 | # dashes changed to underlines. | |
5464f5a1 | 320 | cache_file=/dev/null |
252b5132 | 321 | exec_prefix=NONE |
252b5132 | 322 | no_create= |
252b5132 RH |
323 | no_recursion= |
324 | prefix=NONE | |
325 | program_prefix=NONE | |
326 | program_suffix=NONE | |
327 | program_transform_name=s,x,x, | |
328 | silent= | |
329 | site= | |
330 | srcdir= | |
252b5132 RH |
331 | verbose= |
332 | x_includes=NONE | |
333 | x_libraries=NONE | |
5464f5a1 NN |
334 | |
335 | # Installation directory options. | |
336 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
337 | # and all the variables that are supposed to be based on exec_prefix | |
338 | # by default will actually change. | |
339 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
252b5132 RH |
340 | bindir='${exec_prefix}/bin' |
341 | sbindir='${exec_prefix}/sbin' | |
342 | libexecdir='${exec_prefix}/libexec' | |
343 | datadir='${prefix}/share' | |
344 | sysconfdir='${prefix}/etc' | |
345 | sharedstatedir='${prefix}/com' | |
346 | localstatedir='${prefix}/var' | |
347 | libdir='${exec_prefix}/lib' | |
348 | includedir='${prefix}/include' | |
349 | oldincludedir='/usr/include' | |
350 | infodir='${prefix}/info' | |
351 | mandir='${prefix}/man' | |
352 | ||
252b5132 RH |
353 | ac_prev= |
354 | for ac_option | |
355 | do | |
252b5132 RH |
356 | # If the previous option needs an argument, assign it. |
357 | if test -n "$ac_prev"; then | |
358 | eval "$ac_prev=\$ac_option" | |
359 | ac_prev= | |
360 | continue | |
361 | fi | |
362 | ||
5464f5a1 | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
252b5132 RH |
364 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
366 | ||
5464f5a1 | 367 | case $ac_option in |
252b5132 RH |
368 | |
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
370 | ac_prev=bindir ;; | |
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
5464f5a1 | 372 | bindir=$ac_optarg ;; |
252b5132 RH |
373 | |
374 | -build | --build | --buil | --bui | --bu) | |
5464f5a1 | 375 | ac_prev=build_alias ;; |
252b5132 | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
5464f5a1 | 377 | build_alias=$ac_optarg ;; |
252b5132 RH |
378 | |
379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
381 | ac_prev=cache_file ;; | |
382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
5464f5a1 NN |
384 | cache_file=$ac_optarg ;; |
385 | ||
386 | --config-cache | -C) | |
387 | cache_file=config.cache ;; | |
252b5132 RH |
388 | |
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
390 | ac_prev=datadir ;; | |
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
392 | | --da=*) | |
5464f5a1 | 393 | datadir=$ac_optarg ;; |
252b5132 RH |
394 | |
395 | -disable-* | --disable-*) | |
5464f5a1 | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 397 | # Reject names that are not valid shell variable names. |
5464f5a1 NN |
398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
400 | { (exit 1); exit 1; }; } | |
401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
402 | eval "enable_$ac_feature=no" ;; | |
252b5132 RH |
403 | |
404 | -enable-* | --enable-*) | |
5464f5a1 | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 406 | # Reject names that are not valid shell variable names. |
5464f5a1 NN |
407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
409 | { (exit 1); exit 1; }; } | |
410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
411 | case $ac_option in | |
412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
413 | *) ac_optarg=yes ;; |
414 | esac | |
5464f5a1 | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
252b5132 RH |
416 | |
417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
419 | | --exec | --exe | --ex) | |
420 | ac_prev=exec_prefix ;; | |
421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
423 | | --exec=* | --exe=* | --ex=*) | |
5464f5a1 | 424 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
425 | |
426 | -gas | --gas | --ga | --g) | |
427 | # Obsolete; use --with-gas. | |
428 | with_gas=yes ;; | |
429 | ||
5464f5a1 NN |
430 | -help | --help | --hel | --he | -h) |
431 | ac_init_help=long ;; | |
432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
433 | ac_init_help=recursive ;; | |
434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
435 | ac_init_help=short ;; | |
252b5132 RH |
436 | |
437 | -host | --host | --hos | --ho) | |
5464f5a1 | 438 | ac_prev=host_alias ;; |
252b5132 | 439 | -host=* | --host=* | --hos=* | --ho=*) |
5464f5a1 | 440 | host_alias=$ac_optarg ;; |
252b5132 RH |
441 | |
442 | -includedir | --includedir | --includedi | --included | --include \ | |
443 | | --includ | --inclu | --incl | --inc) | |
444 | ac_prev=includedir ;; | |
445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
446 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
5464f5a1 | 447 | includedir=$ac_optarg ;; |
252b5132 RH |
448 | |
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
450 | ac_prev=infodir ;; | |
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
5464f5a1 | 452 | infodir=$ac_optarg ;; |
252b5132 RH |
453 | |
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
5464f5a1 | 457 | libdir=$ac_optarg ;; |
252b5132 RH |
458 | |
459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
460 | | --libexe | --libex | --libe) | |
461 | ac_prev=libexecdir ;; | |
462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
463 | | --libexe=* | --libex=* | --libe=*) | |
5464f5a1 | 464 | libexecdir=$ac_optarg ;; |
252b5132 RH |
465 | |
466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
467 | | --localstate | --localstat | --localsta | --localst \ | |
468 | | --locals | --local | --loca | --loc | --lo) | |
469 | ac_prev=localstatedir ;; | |
470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
5464f5a1 | 473 | localstatedir=$ac_optarg ;; |
252b5132 RH |
474 | |
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
476 | ac_prev=mandir ;; | |
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
5464f5a1 | 478 | mandir=$ac_optarg ;; |
252b5132 RH |
479 | |
480 | -nfp | --nfp | --nf) | |
481 | # Obsolete; use --without-fp. | |
482 | with_fp=no ;; | |
483 | ||
484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
5464f5a1 | 485 | | --no-cr | --no-c | -n) |
252b5132 RH |
486 | no_create=yes ;; |
487 | ||
488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
490 | no_recursion=yes ;; | |
491 | ||
492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
494 | | --oldin | --oldi | --old | --ol | --o) | |
495 | ac_prev=oldincludedir ;; | |
496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
5464f5a1 | 499 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
500 | |
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
502 | ac_prev=prefix ;; | |
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
5464f5a1 | 504 | prefix=$ac_optarg ;; |
252b5132 RH |
505 | |
506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
507 | | --program-pre | --program-pr | --program-p) | |
508 | ac_prev=program_prefix ;; | |
509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
5464f5a1 | 511 | program_prefix=$ac_optarg ;; |
252b5132 RH |
512 | |
513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
514 | | --program-suf | --program-su | --program-s) | |
515 | ac_prev=program_suffix ;; | |
516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
5464f5a1 | 518 | program_suffix=$ac_optarg ;; |
252b5132 RH |
519 | |
520 | -program-transform-name | --program-transform-name \ | |
521 | | --program-transform-nam | --program-transform-na \ | |
522 | | --program-transform-n | --program-transform- \ | |
523 | | --program-transform | --program-transfor \ | |
524 | | --program-transfo | --program-transf \ | |
525 | | --program-trans | --program-tran \ | |
526 | | --progr-tra | --program-tr | --program-t) | |
527 | ac_prev=program_transform_name ;; | |
528 | -program-transform-name=* | --program-transform-name=* \ | |
529 | | --program-transform-nam=* | --program-transform-na=* \ | |
530 | | --program-transform-n=* | --program-transform-=* \ | |
531 | | --program-transform=* | --program-transfor=* \ | |
532 | | --program-transfo=* | --program-transf=* \ | |
533 | | --program-trans=* | --program-tran=* \ | |
534 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
5464f5a1 | 535 | program_transform_name=$ac_optarg ;; |
252b5132 RH |
536 | |
537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
538 | | -silent | --silent | --silen | --sile | --sil) | |
539 | silent=yes ;; | |
540 | ||
541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
542 | ac_prev=sbindir ;; | |
543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
544 | | --sbi=* | --sb=*) | |
5464f5a1 | 545 | sbindir=$ac_optarg ;; |
252b5132 RH |
546 | |
547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
549 | | --sharedst | --shareds | --shared | --share | --shar \ | |
550 | | --sha | --sh) | |
551 | ac_prev=sharedstatedir ;; | |
552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
555 | | --sha=* | --sh=*) | |
5464f5a1 | 556 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
557 | |
558 | -site | --site | --sit) | |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
5464f5a1 | 561 | site=$ac_optarg ;; |
6be7c12c | 562 | |
252b5132 RH |
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
564 | ac_prev=srcdir ;; | |
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
5464f5a1 | 566 | srcdir=$ac_optarg ;; |
252b5132 RH |
567 | |
568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
569 | | --syscon | --sysco | --sysc | --sys | --sy) | |
570 | ac_prev=sysconfdir ;; | |
571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
5464f5a1 | 573 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
574 | |
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
5464f5a1 | 576 | ac_prev=target_alias ;; |
252b5132 | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
5464f5a1 | 578 | target_alias=$ac_optarg ;; |
252b5132 RH |
579 | |
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
581 | verbose=yes ;; | |
582 | ||
5464f5a1 NN |
583 | -version | --version | --versio | --versi | --vers | -V) |
584 | ac_init_version=: ;; | |
252b5132 RH |
585 | |
586 | -with-* | --with-*) | |
5464f5a1 | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 588 | # Reject names that are not valid shell variable names. |
5464f5a1 NN |
589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
591 | { (exit 1); exit 1; }; } | |
252b5132 | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
5464f5a1 NN |
593 | case $ac_option in |
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
595 | *) ac_optarg=yes ;; |
596 | esac | |
5464f5a1 | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
252b5132 RH |
598 | |
599 | -without-* | --without-*) | |
5464f5a1 | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 601 | # Reject names that are not valid shell variable names. |
5464f5a1 NN |
602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
604 | { (exit 1); exit 1; }; } | |
605 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
606 | eval "with_$ac_package=no" ;; | |
252b5132 RH |
607 | |
608 | --x) | |
609 | # Obsolete; use --with-x. | |
610 | with_x=yes ;; | |
611 | ||
612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
613 | | --x-incl | --x-inc | --x-in | --x-i) | |
614 | ac_prev=x_includes ;; | |
615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
5464f5a1 | 617 | x_includes=$ac_optarg ;; |
252b5132 RH |
618 | |
619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
621 | ac_prev=x_libraries ;; | |
622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
5464f5a1 | 624 | x_libraries=$ac_optarg ;; |
252b5132 | 625 | |
5464f5a1 NN |
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
627 | Try \`$0 --help' for more information." >&2 | |
628 | { (exit 1); exit 1; }; } | |
252b5132 RH |
629 | ;; |
630 | ||
5464f5a1 NN |
631 | *=*) |
632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
633 | # Reject names that are not valid shell variable names. | |
634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
636 | { (exit 1); exit 1; }; } | |
637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
638 | eval "$ac_envvar='$ac_optarg'" | |
639 | export $ac_envvar ;; | |
640 | ||
252b5132 | 641 | *) |
5464f5a1 NN |
642 | # FIXME: should be removed in autoconf 3.0. |
643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
252b5132 RH |
647 | ;; |
648 | ||
649 | esac | |
650 | done | |
651 | ||
652 | if test -n "$ac_prev"; then | |
5464f5a1 NN |
653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
654 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
655 | { (exit 1); exit 1; }; } | |
252b5132 | 656 | fi |
252b5132 | 657 | |
5464f5a1 NN |
658 | # Be sure to have absolute paths. |
659 | for ac_var in exec_prefix prefix | |
660 | do | |
661 | eval ac_val=$`echo $ac_var` | |
662 | case $ac_val in | |
663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
665 | { (exit 1); exit 1; }; };; | |
666 | esac | |
667 | done | |
6be7c12c | 668 | |
5464f5a1 NN |
669 | # Be sure to have absolute paths. |
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
671 | localstatedir libdir includedir oldincludedir infodir mandir | |
252b5132 | 672 | do |
5464f5a1 NN |
673 | eval ac_val=$`echo $ac_var` |
674 | case $ac_val in | |
675 | [\\/$]* | ?:[\\/]* ) ;; | |
676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
677 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
678 | esac |
679 | done | |
680 | ||
5464f5a1 NN |
681 | # There might be people who depend on the old broken behavior: `$host' |
682 | # used to hold the argument of --host etc. | |
683 | # FIXME: To remove some day. | |
684 | build=$build_alias | |
685 | host=$host_alias | |
686 | target=$target_alias | |
687 | ||
688 | # FIXME: To remove some day. | |
689 | if test "x$host_alias" != x; then | |
690 | if test "x$build_alias" = x; then | |
691 | cross_compiling=maybe | |
692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
693 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
694 | elif test "x$build_alias" != "x$host_alias"; then | |
695 | cross_compiling=yes | |
696 | fi | |
697 | fi | |
252b5132 | 698 | |
5464f5a1 NN |
699 | ac_tool_prefix= |
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
701 | ||
702 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 703 | |
252b5132 RH |
704 | |
705 | # Find the source files, if location was not specified. | |
706 | if test -z "$srcdir"; then | |
707 | ac_srcdir_defaulted=yes | |
708 | # Try the directory containing this script, then its parent. | |
5464f5a1 NN |
709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
711 | X"$0" : 'X\(//\)[^/]' \| \ | |
712 | X"$0" : 'X\(//\)$' \| \ | |
713 | X"$0" : 'X\(/\)' \| \ | |
714 | . : '\(.\)' 2>/dev/null || | |
715 | echo X"$0" | | |
716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
718 | /^X\(\/\/\)$/{ s//\1/; q; } | |
719 | /^X\(\/\).*/{ s//\1/; q; } | |
720 | s/.*/./; q'` | |
252b5132 RH |
721 | srcdir=$ac_confdir |
722 | if test ! -r $srcdir/$ac_unique_file; then | |
723 | srcdir=.. | |
724 | fi | |
725 | else | |
726 | ac_srcdir_defaulted=no | |
727 | fi | |
728 | if test ! -r $srcdir/$ac_unique_file; then | |
729 | if test "$ac_srcdir_defaulted" = yes; then | |
5464f5a1 NN |
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
731 | { (exit 1); exit 1; }; } | |
252b5132 | 732 | else |
5464f5a1 NN |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
734 | { (exit 1); exit 1; }; } | |
252b5132 RH |
735 | fi |
736 | fi | |
5464f5a1 NN |
737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
739 | { (exit 1); exit 1; }; } | |
740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
741 | ac_env_build_alias_set=${build_alias+set} | |
742 | ac_env_build_alias_value=$build_alias | |
743 | ac_cv_env_build_alias_set=${build_alias+set} | |
744 | ac_cv_env_build_alias_value=$build_alias | |
745 | ac_env_host_alias_set=${host_alias+set} | |
746 | ac_env_host_alias_value=$host_alias | |
747 | ac_cv_env_host_alias_set=${host_alias+set} | |
748 | ac_cv_env_host_alias_value=$host_alias | |
749 | ac_env_target_alias_set=${target_alias+set} | |
750 | ac_env_target_alias_value=$target_alias | |
751 | ac_cv_env_target_alias_set=${target_alias+set} | |
752 | ac_cv_env_target_alias_value=$target_alias | |
753 | ac_env_CC_set=${CC+set} | |
754 | ac_env_CC_value=$CC | |
755 | ac_cv_env_CC_set=${CC+set} | |
756 | ac_cv_env_CC_value=$CC | |
757 | ac_env_CFLAGS_set=${CFLAGS+set} | |
758 | ac_env_CFLAGS_value=$CFLAGS | |
759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
760 | ac_cv_env_CFLAGS_value=$CFLAGS | |
761 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
762 | ac_env_LDFLAGS_value=$LDFLAGS | |
763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
764 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
766 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
769 | ac_env_CPP_set=${CPP+set} | |
770 | ac_env_CPP_value=$CPP | |
771 | ac_cv_env_CPP_set=${CPP+set} | |
772 | ac_cv_env_CPP_value=$CPP | |
b3baf5d0 | 773 | |
5464f5a1 NN |
774 | # |
775 | # Report the --help message. | |
776 | # | |
777 | if test "$ac_init_help" = "long"; then | |
778 | # Omit some internal or obsolete options to make the list less imposing. | |
779 | # This message is too long to be a string in the A/UX 3.1 sh. | |
780 | cat <<_ACEOF | |
781 | \`configure' configures this package to adapt to many kinds of systems. | |
252b5132 | 782 | |
5464f5a1 | 783 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 784 | |
5464f5a1 NN |
785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
786 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
6be7c12c | 787 | |
5464f5a1 | 788 | Defaults for the options are specified in brackets. |
6be7c12c | 789 | |
5464f5a1 NN |
790 | Configuration: |
791 | -h, --help display this help and exit | |
792 | --help=short display options specific to this package | |
793 | --help=recursive display the short help of all the included packages | |
794 | -V, --version display version information and exit | |
795 | -q, --quiet, --silent do not print \`checking...' messages | |
796 | --cache-file=FILE cache test results in FILE [disabled] | |
797 | -C, --config-cache alias for \`--cache-file=config.cache' | |
798 | -n, --no-create do not create output files | |
799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
800 | ||
801 | _ACEOF | |
802 | ||
803 | cat <<_ACEOF | |
804 | Installation directories: | |
805 | --prefix=PREFIX install architecture-independent files in PREFIX | |
806 | [$ac_default_prefix] | |
807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
808 | [PREFIX] | |
6be7c12c | 809 | |
5464f5a1 NN |
810 | By default, \`make install' will install all the files in |
811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
813 | for instance \`--prefix=\$HOME'. | |
6be7c12c | 814 | |
5464f5a1 | 815 | For better control, use the options below. |
6be7c12c | 816 | |
5464f5a1 NN |
817 | Fine tuning of the installation directories: |
818 | --bindir=DIR user executables [EPREFIX/bin] | |
819 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
820 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
825 | --libdir=DIR object code libraries [EPREFIX/lib] | |
826 | --includedir=DIR C header files [PREFIX/include] | |
827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
828 | --infodir=DIR info documentation [PREFIX/info] | |
829 | --mandir=DIR man documentation [PREFIX/man] | |
830 | _ACEOF | |
6be7c12c | 831 | |
5464f5a1 | 832 | cat <<\_ACEOF |
6be7c12c | 833 | |
5464f5a1 NN |
834 | Program names: |
835 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
836 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
837 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
252b5132 | 838 | |
5464f5a1 NN |
839 | System types: |
840 | --build=BUILD configure for building on BUILD [guessed] | |
841 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
842 | --target=TARGET configure for building compilers for TARGET [HOST] | |
843 | _ACEOF | |
252b5132 | 844 | fi |
252b5132 | 845 | |
5464f5a1 | 846 | if test -n "$ac_init_help"; then |
6be7c12c | 847 | |
5464f5a1 | 848 | cat <<\_ACEOF |
252b5132 | 849 | |
5464f5a1 NN |
850 | Optional Features: |
851 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
852 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
f5385ebf AM |
853 | --disable-dependency-tracking speeds up one-time build |
854 | --enable-dependency-tracking do not reject slow dependency extractors | |
5464f5a1 NN |
855 | --enable-shared=PKGS build shared libraries default=no |
856 | --enable-static=PKGS build static libraries default=yes | |
857 | --enable-fast-install=PKGS optimize for fast installation default=yes | |
858 | --disable-libtool-lock avoid locking (might break parallel builds) | |
859 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) | |
860 | --enable-targets alternative target configurations | |
861 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library | |
569acd2c | 862 | --enable-werror treat compile warnings as errors |
9e9b66a9 | 863 | --enable-build-warnings Enable build-time compiler warnings |
f5385ebf AM |
864 | --enable-maintainer-mode enable make rules and dependencies not useful |
865 | (and sometimes confusing) to the casual installer | |
5464f5a1 NN |
866 | --enable-install-libbfd controls installation of libbfd and related headers |
867 | --disable-nls do not use Native Language Support | |
868 | ||
869 | Optional Packages: | |
870 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
871 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
872 | --with-gnu-ld assume the C compiler uses GNU ld default=no | |
873 | --with-pic try to use only PIC/non-PIC objects default=use both | |
874 | --with-mmap try using mmap for BFD input files if available | |
875 | --with-included-gettext use the GNU gettext library included here | |
876 | ||
877 | Some influential environment variables: | |
878 | CC C compiler command | |
879 | CFLAGS C compiler flags | |
880 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
881 | nonstandard directory <lib dir> | |
882 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
883 | headers in a nonstandard directory <include dir> | |
884 | CPP C preprocessor | |
885 | ||
886 | Use these variables to override the choices made by `configure' or to help | |
887 | it to find libraries and programs with nonstandard names/locations. | |
888 | ||
889 | _ACEOF | |
890 | fi | |
891 | ||
892 | if test "$ac_init_help" = "recursive"; then | |
893 | # If there are subdirs, report their specific --help. | |
894 | ac_popdir=`pwd` | |
895 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
896 | test -d $ac_dir || continue | |
897 | ac_builddir=. | |
898 | ||
899 | if test "$ac_dir" != .; then | |
900 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
901 | # A "../" for each directory in $ac_dir_suffix. | |
902 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
903 | else | |
904 | ac_dir_suffix= ac_top_builddir= | |
905 | fi | |
906 | ||
907 | case $srcdir in | |
908 | .) # No --srcdir option. We are building in place. | |
909 | ac_srcdir=. | |
910 | if test -z "$ac_top_builddir"; then | |
911 | ac_top_srcdir=. | |
912 | else | |
913 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
914 | fi ;; | |
915 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
916 | ac_srcdir=$srcdir$ac_dir_suffix; | |
917 | ac_top_srcdir=$srcdir ;; | |
918 | *) # Relative path. | |
919 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
920 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
6be7c12c AO |
921 | esac |
922 | ||
5464f5a1 NN |
923 | # Do not use `cd foo && pwd` to compute absolute paths, because |
924 | # the directories may not exist. | |
925 | case `pwd` in | |
926 | .) ac_abs_builddir="$ac_dir";; | |
927 | *) | |
928 | case "$ac_dir" in | |
929 | .) ac_abs_builddir=`pwd`;; | |
930 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
931 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
932 | esac;; | |
933 | esac | |
934 | case $ac_abs_builddir in | |
935 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
936 | *) | |
937 | case ${ac_top_builddir}. in | |
938 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
939 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
940 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
941 | esac;; | |
942 | esac | |
943 | case $ac_abs_builddir in | |
944 | .) ac_abs_srcdir=$ac_srcdir;; | |
945 | *) | |
946 | case $ac_srcdir in | |
947 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
948 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
949 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
950 | esac;; | |
951 | esac | |
952 | case $ac_abs_builddir in | |
953 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
954 | *) | |
955 | case $ac_top_srcdir in | |
956 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
957 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
958 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
959 | esac;; | |
960 | esac | |
6be7c12c | 961 | |
5464f5a1 NN |
962 | cd $ac_dir |
963 | # Check for guested configure; otherwise get Cygnus style configure. | |
964 | if test -f $ac_srcdir/configure.gnu; then | |
965 | echo | |
966 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
967 | elif test -f $ac_srcdir/configure; then | |
968 | echo | |
969 | $SHELL $ac_srcdir/configure --help=recursive | |
970 | elif test -f $ac_srcdir/configure.ac || | |
971 | test -f $ac_srcdir/configure.in; then | |
972 | echo | |
973 | $ac_configure --help | |
974 | else | |
975 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
976 | fi | |
eac338cf | 977 | cd "$ac_popdir" |
5464f5a1 | 978 | done |
6be7c12c AO |
979 | fi |
980 | ||
5464f5a1 NN |
981 | test -n "$ac_init_help" && exit 0 |
982 | if $ac_init_version; then | |
983 | cat <<\_ACEOF | |
6be7c12c | 984 | |
5464f5a1 NN |
985 | Copyright (C) 2003 Free Software Foundation, Inc. |
986 | This configure script is free software; the Free Software Foundation | |
987 | gives unlimited permission to copy, distribute and modify it. | |
988 | _ACEOF | |
989 | exit 0 | |
990 | fi | |
991 | exec 5>config.log | |
992 | cat >&5 <<_ACEOF | |
993 | This file contains any messages produced by compilers while | |
994 | running configure, to aid debugging if configure makes a mistake. | |
6be7c12c | 995 | |
5464f5a1 NN |
996 | It was created by $as_me, which was |
997 | generated by GNU Autoconf 2.59. Invocation command line was | |
6be7c12c | 998 | |
5464f5a1 | 999 | $ $0 $@ |
6be7c12c | 1000 | |
5464f5a1 NN |
1001 | _ACEOF |
1002 | { | |
1003 | cat <<_ASUNAME | |
1004 | ## --------- ## | |
1005 | ## Platform. ## | |
1006 | ## --------- ## | |
1007 | ||
1008 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1009 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1010 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1011 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1012 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1013 | ||
1014 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1015 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1016 | ||
1017 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1018 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1019 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1020 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1021 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1022 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1023 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1024 | ||
1025 | _ASUNAME | |
1026 | ||
1027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1028 | for as_dir in $PATH | |
1029 | do | |
1030 | IFS=$as_save_IFS | |
1031 | test -z "$as_dir" && as_dir=. | |
1032 | echo "PATH: $as_dir" | |
1033 | done | |
6be7c12c | 1034 | |
5464f5a1 | 1035 | } >&5 |
66e25bab | 1036 | |
5464f5a1 | 1037 | cat >&5 <<_ACEOF |
b3baf5d0 | 1038 | |
6be7c12c | 1039 | |
5464f5a1 NN |
1040 | ## ----------- ## |
1041 | ## Core tests. ## | |
1042 | ## ----------- ## | |
252b5132 | 1043 | |
5464f5a1 | 1044 | _ACEOF |
c5d1701e | 1045 | |
6be7c12c | 1046 | |
5464f5a1 NN |
1047 | # Keep a trace of the command line. |
1048 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1049 | # Strip out --silent because we don't want to record it for future runs. | |
1050 | # Also quote any args containing shell meta-characters. | |
1051 | # Make two passes to allow for proper duplicate-argument suppression. | |
1052 | ac_configure_args= | |
1053 | ac_configure_args0= | |
1054 | ac_configure_args1= | |
1055 | ac_sep= | |
1056 | ac_must_keep_next=false | |
1057 | for ac_pass in 1 2 | |
1058 | do | |
1059 | for ac_arg | |
1060 | do | |
1061 | case $ac_arg in | |
1062 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1063 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1064 | | -silent | --silent | --silen | --sile | --sil) | |
1065 | continue ;; | |
1066 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1067 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1068 | esac | |
1069 | case $ac_pass in | |
1070 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1071 | 2) | |
1072 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1073 | if test $ac_must_keep_next = true; then | |
1074 | ac_must_keep_next=false # Got value, back to normal. | |
1075 | else | |
1076 | case $ac_arg in | |
1077 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1078 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1079 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1080 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1081 | case "$ac_configure_args0 " in | |
1082 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1083 | esac | |
1084 | ;; | |
1085 | -* ) ac_must_keep_next=true ;; | |
1086 | esac | |
1087 | fi | |
1088 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1089 | # Get rid of the leading space. | |
1090 | ac_sep=" " | |
1091 | ;; | |
1092 | esac | |
1093 | done | |
1094 | done | |
1095 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1096 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1097 | ||
1098 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1099 | # config.log. We remove comments because anyway the quotes in there | |
1100 | # would cause problems or look ugly. | |
1101 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1102 | # such as our DU 5.0 friend, will then `close' the trap. | |
1103 | trap 'exit_status=$? | |
1104 | # Save into config.log some information that might help in debugging. | |
1105 | { | |
1106 | echo | |
1107 | ||
1108 | cat <<\_ASBOX | |
1109 | ## ---------------- ## | |
1110 | ## Cache variables. ## | |
1111 | ## ---------------- ## | |
1112 | _ASBOX | |
1113 | echo | |
1114 | # The following way of writing the cache mishandles newlines in values, | |
1115 | { | |
1116 | (set) 2>&1 | | |
1117 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1118 | *ac_space=\ *) | |
1119 | sed -n \ | |
1120 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1121 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1122 | ;; | |
1123 | *) | |
1124 | sed -n \ | |
1125 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1126 | ;; | |
1127 | esac; | |
1128 | } | |
1129 | echo | |
1130 | ||
1131 | cat <<\_ASBOX | |
1132 | ## ----------------- ## | |
1133 | ## Output variables. ## | |
1134 | ## ----------------- ## | |
1135 | _ASBOX | |
1136 | echo | |
1137 | for ac_var in $ac_subst_vars | |
1138 | do | |
1139 | eval ac_val=$`echo $ac_var` | |
1140 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1141 | done | sort | |
1142 | echo | |
1143 | ||
1144 | if test -n "$ac_subst_files"; then | |
1145 | cat <<\_ASBOX | |
1146 | ## ------------- ## | |
1147 | ## Output files. ## | |
1148 | ## ------------- ## | |
1149 | _ASBOX | |
1150 | echo | |
1151 | for ac_var in $ac_subst_files | |
1152 | do | |
1153 | eval ac_val=$`echo $ac_var` | |
1154 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1155 | done | sort | |
1156 | echo | |
1157 | fi | |
1158 | ||
1159 | if test -s confdefs.h; then | |
1160 | cat <<\_ASBOX | |
1161 | ## ----------- ## | |
1162 | ## confdefs.h. ## | |
1163 | ## ----------- ## | |
1164 | _ASBOX | |
1165 | echo | |
1166 | sed "/^$/d" confdefs.h | sort | |
1167 | echo | |
1168 | fi | |
1169 | test "$ac_signal" != 0 && | |
1170 | echo "$as_me: caught signal $ac_signal" | |
1171 | echo "$as_me: exit $exit_status" | |
1172 | } >&5 | |
1173 | rm -f core *.core && | |
1174 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1175 | exit $exit_status | |
1176 | ' 0 | |
1177 | for ac_signal in 1 2 13 15; do | |
1178 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1179 | done | |
1180 | ac_signal=0 | |
1181 | ||
1182 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1183 | rm -rf conftest* confdefs.h | |
1184 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1185 | echo >confdefs.h | |
1186 | ||
1187 | # Predefined preprocessor variables. | |
1188 | ||
1189 | cat >>confdefs.h <<_ACEOF | |
1190 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1191 | _ACEOF | |
1192 | ||
1193 | ||
1194 | cat >>confdefs.h <<_ACEOF | |
1195 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1196 | _ACEOF | |
1197 | ||
1198 | ||
1199 | cat >>confdefs.h <<_ACEOF | |
1200 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1201 | _ACEOF | |
1202 | ||
1203 | ||
1204 | cat >>confdefs.h <<_ACEOF | |
1205 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1206 | _ACEOF | |
1207 | ||
1208 | ||
1209 | cat >>confdefs.h <<_ACEOF | |
1210 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1211 | _ACEOF | |
1212 | ||
1213 | ||
1214 | # Let the site file select an alternate cache file if it wants to. | |
1215 | # Prefer explicitly selected file to automatically selected ones. | |
1216 | if test -z "$CONFIG_SITE"; then | |
1217 | if test "x$prefix" != xNONE; then | |
1218 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1219 | else | |
1220 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1221 | fi | |
1222 | fi | |
1223 | for ac_site_file in $CONFIG_SITE; do | |
1224 | if test -r "$ac_site_file"; then | |
1225 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1226 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1227 | sed 's/^/| /' "$ac_site_file" >&5 | |
1228 | . "$ac_site_file" | |
1229 | fi | |
1230 | done | |
1231 | ||
1232 | if test -r "$cache_file"; then | |
1233 | # Some versions of bash will fail to source /dev/null (special | |
1234 | # files actually), so we avoid doing that. | |
1235 | if test -f "$cache_file"; then | |
1236 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1237 | echo "$as_me: loading cache $cache_file" >&6;} | |
1238 | case $cache_file in | |
1239 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1240 | *) . ./$cache_file;; | |
1241 | esac | |
1242 | fi | |
1243 | else | |
1244 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1245 | echo "$as_me: creating cache $cache_file" >&6;} | |
1246 | >$cache_file | |
1247 | fi | |
1248 | ||
1249 | # Check that the precious variables saved in the cache have kept the same | |
1250 | # value. | |
1251 | ac_cache_corrupted=false | |
1252 | for ac_var in `(set) 2>&1 | | |
1253 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1254 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1255 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1256 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1257 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1258 | case $ac_old_set,$ac_new_set in | |
1259 | set,) | |
1260 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1261 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1262 | ac_cache_corrupted=: ;; | |
1263 | ,set) | |
1264 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1265 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1266 | ac_cache_corrupted=: ;; | |
1267 | ,);; | |
1268 | *) | |
1269 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1270 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1271 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1272 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1273 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1274 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1275 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1276 | ac_cache_corrupted=: | |
1277 | fi;; | |
1278 | esac | |
1279 | # Pass precious variables to config.status. | |
1280 | if test "$ac_new_set" = set; then | |
1281 | case $ac_new_val in | |
1282 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1283 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1284 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1285 | esac | |
1286 | case " $ac_configure_args " in | |
1287 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1288 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1289 | esac | |
1290 | fi | |
1291 | done | |
1292 | if $ac_cache_corrupted; then | |
1293 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1294 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1295 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1296 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1297 | { (exit 1); exit 1; }; } | |
1298 | fi | |
1299 | ||
1300 | ac_ext=c | |
1301 | ac_cpp='$CPP $CPPFLAGS' | |
1302 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1303 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1304 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1305 | ||
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
1324 | ||
1325 | ||
1326 | ac_aux_dir= | |
1327 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1328 | if test -f $ac_dir/install-sh; then | |
1329 | ac_aux_dir=$ac_dir | |
1330 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1331 | break | |
1332 | elif test -f $ac_dir/install.sh; then | |
1333 | ac_aux_dir=$ac_dir | |
1334 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1335 | break | |
1336 | elif test -f $ac_dir/shtool; then | |
1337 | ac_aux_dir=$ac_dir | |
1338 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1339 | break | |
1340 | fi | |
1341 | done | |
1342 | if test -z "$ac_aux_dir"; then | |
1343 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1344 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1345 | { (exit 1); exit 1; }; } | |
1346 | fi | |
1347 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1348 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1349 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1350 | ||
1351 | # Make sure we can run config.sub. | |
1352 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1353 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1354 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1355 | { (exit 1); exit 1; }; } | |
1356 | ||
1357 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1358 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1359 | if test "${ac_cv_build+set}" = set; then | |
1360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1361 | else | |
1362 | ac_cv_build_alias=$build_alias | |
1363 | test -z "$ac_cv_build_alias" && | |
1364 | ac_cv_build_alias=`$ac_config_guess` | |
1365 | test -z "$ac_cv_build_alias" && | |
1366 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1367 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1368 | { (exit 1); exit 1; }; } | |
1369 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1370 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1371 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1372 | { (exit 1); exit 1; }; } | |
1373 | ||
1374 | fi | |
1375 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1376 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1377 | build=$ac_cv_build | |
1378 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1379 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1380 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1381 | ||
1382 | ||
1383 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1384 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1385 | if test "${ac_cv_host+set}" = set; then | |
1386 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1387 | else | |
1388 | ac_cv_host_alias=$host_alias | |
1389 | test -z "$ac_cv_host_alias" && | |
1390 | ac_cv_host_alias=$ac_cv_build_alias | |
1391 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1392 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1393 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1394 | { (exit 1); exit 1; }; } | |
1395 | ||
1396 | fi | |
1397 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1398 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1399 | host=$ac_cv_host | |
1400 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1401 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1402 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1403 | ||
1404 | ||
1405 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1406 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1407 | if test "${ac_cv_target+set}" = set; then | |
1408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1409 | else | |
1410 | ac_cv_target_alias=$target_alias | |
1411 | test "x$ac_cv_target_alias" = "x" && | |
1412 | ac_cv_target_alias=$ac_cv_host_alias | |
1413 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1414 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1415 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1416 | { (exit 1); exit 1; }; } | |
1417 | ||
1418 | fi | |
1419 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1420 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1421 | target=$ac_cv_target | |
1422 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1423 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1424 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1425 | ||
1426 | ||
1427 | # The aliases save the names the user supplied, while $host etc. | |
1428 | # will get canonicalized. | |
1429 | test -n "$target_alias" && | |
1430 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1431 | NONENONEs,x,x, && | |
1432 | program_prefix=${target_alias}- | |
1433 | ac_ext=c | |
1434 | ac_cpp='$CPP $CPPFLAGS' | |
1435 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1436 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1437 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1438 | if test -n "$ac_tool_prefix"; then | |
1439 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1440 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1441 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1442 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1443 | if test "${ac_cv_prog_CC+set}" = set; then | |
1444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1445 | else | |
1446 | if test -n "$CC"; then | |
1447 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1448 | else | |
1449 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1450 | for as_dir in $PATH | |
1451 | do | |
1452 | IFS=$as_save_IFS | |
1453 | test -z "$as_dir" && as_dir=. | |
1454 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1455 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1456 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1457 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1458 | break 2 | |
1459 | fi | |
1460 | done | |
1461 | done | |
1462 | ||
1463 | fi | |
1464 | fi | |
1465 | CC=$ac_cv_prog_CC | |
1466 | if test -n "$CC"; then | |
1467 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1468 | echo "${ECHO_T}$CC" >&6 | |
1469 | else | |
1470 | echo "$as_me:$LINENO: result: no" >&5 | |
1471 | echo "${ECHO_T}no" >&6 | |
1472 | fi | |
1473 | ||
1474 | fi | |
1475 | if test -z "$ac_cv_prog_CC"; then | |
1476 | ac_ct_CC=$CC | |
1477 | # Extract the first word of "gcc", so it can be a program name with args. | |
1478 | set dummy gcc; ac_word=$2 | |
1479 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1480 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1481 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1483 | else | |
1484 | if test -n "$ac_ct_CC"; then | |
1485 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1486 | else | |
1487 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1488 | for as_dir in $PATH | |
1489 | do | |
1490 | IFS=$as_save_IFS | |
1491 | test -z "$as_dir" && as_dir=. | |
1492 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1493 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1494 | ac_cv_prog_ac_ct_CC="gcc" | |
1495 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1496 | break 2 | |
1497 | fi | |
1498 | done | |
1499 | done | |
1500 | ||
1501 | fi | |
1502 | fi | |
1503 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1504 | if test -n "$ac_ct_CC"; then | |
1505 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1506 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1507 | else | |
1508 | echo "$as_me:$LINENO: result: no" >&5 | |
1509 | echo "${ECHO_T}no" >&6 | |
1510 | fi | |
1511 | ||
1512 | CC=$ac_ct_CC | |
1513 | else | |
1514 | CC="$ac_cv_prog_CC" | |
1515 | fi | |
1516 | ||
1517 | if test -z "$CC"; then | |
1518 | if test -n "$ac_tool_prefix"; then | |
1519 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1520 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1521 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1522 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1523 | if test "${ac_cv_prog_CC+set}" = set; then | |
1524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1525 | else | |
1526 | if test -n "$CC"; then | |
1527 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1528 | else | |
1529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1530 | for as_dir in $PATH | |
1531 | do | |
1532 | IFS=$as_save_IFS | |
1533 | test -z "$as_dir" && as_dir=. | |
1534 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1535 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1536 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1537 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1538 | break 2 | |
1539 | fi | |
1540 | done | |
1541 | done | |
1542 | ||
1543 | fi | |
1544 | fi | |
1545 | CC=$ac_cv_prog_CC | |
1546 | if test -n "$CC"; then | |
1547 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1548 | echo "${ECHO_T}$CC" >&6 | |
1549 | else | |
1550 | echo "$as_me:$LINENO: result: no" >&5 | |
1551 | echo "${ECHO_T}no" >&6 | |
1552 | fi | |
1553 | ||
1554 | fi | |
1555 | if test -z "$ac_cv_prog_CC"; then | |
1556 | ac_ct_CC=$CC | |
1557 | # Extract the first word of "cc", so it can be a program name with args. | |
1558 | set dummy cc; ac_word=$2 | |
1559 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1560 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1561 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1563 | else | |
1564 | if test -n "$ac_ct_CC"; then | |
1565 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1566 | else | |
1567 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1568 | for as_dir in $PATH | |
1569 | do | |
1570 | IFS=$as_save_IFS | |
1571 | test -z "$as_dir" && as_dir=. | |
1572 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1573 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1574 | ac_cv_prog_ac_ct_CC="cc" | |
1575 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1576 | break 2 | |
1577 | fi | |
1578 | done | |
1579 | done | |
1580 | ||
1581 | fi | |
1582 | fi | |
1583 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1584 | if test -n "$ac_ct_CC"; then | |
1585 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1586 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1587 | else | |
1588 | echo "$as_me:$LINENO: result: no" >&5 | |
1589 | echo "${ECHO_T}no" >&6 | |
1590 | fi | |
1591 | ||
1592 | CC=$ac_ct_CC | |
1593 | else | |
1594 | CC="$ac_cv_prog_CC" | |
1595 | fi | |
1596 | ||
1597 | fi | |
1598 | if test -z "$CC"; then | |
1599 | # Extract the first word of "cc", so it can be a program name with args. | |
1600 | set dummy cc; ac_word=$2 | |
1601 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1602 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1603 | if test "${ac_cv_prog_CC+set}" = set; then | |
1604 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1605 | else | |
1606 | if test -n "$CC"; then | |
1607 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1608 | else | |
1609 | ac_prog_rejected=no | |
1610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1611 | for as_dir in $PATH | |
1612 | do | |
1613 | IFS=$as_save_IFS | |
1614 | test -z "$as_dir" && as_dir=. | |
1615 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1616 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1617 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1618 | ac_prog_rejected=yes | |
1619 | continue | |
1620 | fi | |
1621 | ac_cv_prog_CC="cc" | |
1622 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1623 | break 2 | |
1624 | fi | |
1625 | done | |
1626 | done | |
1627 | ||
1628 | if test $ac_prog_rejected = yes; then | |
1629 | # We found a bogon in the path, so make sure we never use it. | |
1630 | set dummy $ac_cv_prog_CC | |
1631 | shift | |
1632 | if test $# != 0; then | |
1633 | # We chose a different compiler from the bogus one. | |
1634 | # However, it has the same basename, so the bogon will be chosen | |
1635 | # first if we set CC to just the basename; use the full file name. | |
1636 | shift | |
1637 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1638 | fi | |
1639 | fi | |
1640 | fi | |
1641 | fi | |
1642 | CC=$ac_cv_prog_CC | |
1643 | if test -n "$CC"; then | |
1644 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1645 | echo "${ECHO_T}$CC" >&6 | |
1646 | else | |
1647 | echo "$as_me:$LINENO: result: no" >&5 | |
1648 | echo "${ECHO_T}no" >&6 | |
1649 | fi | |
1650 | ||
1651 | fi | |
1652 | if test -z "$CC"; then | |
1653 | if test -n "$ac_tool_prefix"; then | |
1654 | for ac_prog in cl | |
1655 | do | |
1656 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1657 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1658 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1659 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1660 | if test "${ac_cv_prog_CC+set}" = set; then | |
1661 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1662 | else | |
1663 | if test -n "$CC"; then | |
1664 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1665 | else | |
1666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1667 | for as_dir in $PATH | |
1668 | do | |
1669 | IFS=$as_save_IFS | |
1670 | test -z "$as_dir" && as_dir=. | |
1671 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1672 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1673 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1674 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1675 | break 2 | |
1676 | fi | |
1677 | done | |
1678 | done | |
1679 | ||
1680 | fi | |
1681 | fi | |
1682 | CC=$ac_cv_prog_CC | |
1683 | if test -n "$CC"; then | |
1684 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1685 | echo "${ECHO_T}$CC" >&6 | |
1686 | else | |
1687 | echo "$as_me:$LINENO: result: no" >&5 | |
1688 | echo "${ECHO_T}no" >&6 | |
1689 | fi | |
1690 | ||
1691 | test -n "$CC" && break | |
1692 | done | |
1693 | fi | |
1694 | if test -z "$CC"; then | |
1695 | ac_ct_CC=$CC | |
1696 | for ac_prog in cl | |
1697 | do | |
1698 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1699 | set dummy $ac_prog; ac_word=$2 | |
1700 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1701 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1702 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1704 | else | |
1705 | if test -n "$ac_ct_CC"; then | |
1706 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1707 | else | |
1708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1709 | for as_dir in $PATH | |
1710 | do | |
1711 | IFS=$as_save_IFS | |
1712 | test -z "$as_dir" && as_dir=. | |
1713 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1714 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1715 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1716 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1717 | break 2 | |
1718 | fi | |
1719 | done | |
1720 | done | |
1721 | ||
1722 | fi | |
1723 | fi | |
1724 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1725 | if test -n "$ac_ct_CC"; then | |
1726 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1727 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1728 | else | |
1729 | echo "$as_me:$LINENO: result: no" >&5 | |
1730 | echo "${ECHO_T}no" >&6 | |
1731 | fi | |
1732 | ||
1733 | test -n "$ac_ct_CC" && break | |
1734 | done | |
1735 | ||
1736 | CC=$ac_ct_CC | |
1737 | fi | |
1738 | ||
1739 | fi | |
1740 | ||
1741 | ||
1742 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1743 | See \`config.log' for more details." >&5 | |
1744 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1745 | See \`config.log' for more details." >&2;} | |
1746 | { (exit 1); exit 1; }; } | |
1747 | ||
1748 | # Provide some information about the compiler. | |
1749 | echo "$as_me:$LINENO:" \ | |
1750 | "checking for C compiler version" >&5 | |
1751 | ac_compiler=`set X $ac_compile; echo $2` | |
1752 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1753 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1754 | ac_status=$? | |
1755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1756 | (exit $ac_status); } | |
1757 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1758 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1759 | ac_status=$? | |
1760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1761 | (exit $ac_status); } | |
1762 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1763 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1764 | ac_status=$? | |
1765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1766 | (exit $ac_status); } | |
1767 | ||
1768 | cat >conftest.$ac_ext <<_ACEOF | |
1769 | /* confdefs.h. */ | |
1770 | _ACEOF | |
1771 | cat confdefs.h >>conftest.$ac_ext | |
1772 | cat >>conftest.$ac_ext <<_ACEOF | |
1773 | /* end confdefs.h. */ | |
1774 | ||
1775 | int | |
1776 | main () | |
1777 | { | |
1778 | ||
1779 | ; | |
1780 | return 0; | |
1781 | } | |
1782 | _ACEOF | |
1783 | ac_clean_files_save=$ac_clean_files | |
1784 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1785 | # Try to create an executable without -o first, disregard a.out. | |
1786 | # It will help us diagnose broken compilers, and finding out an intuition | |
1787 | # of exeext. | |
1788 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1789 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1790 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1791 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1792 | (eval $ac_link_default) 2>&5 | |
1793 | ac_status=$? | |
1794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1795 | (exit $ac_status); }; then | |
1796 | # Find the output, starting from the most likely. This scheme is | |
1797 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1798 | # resort. | |
1799 | ||
1800 | # Be careful to initialize this variable, since it used to be cached. | |
1801 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1802 | ac_cv_exeext= | |
1803 | # b.out is created by i960 compilers. | |
1804 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1805 | do | |
1806 | test -f "$ac_file" || continue | |
1807 | case $ac_file in | |
1808 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1809 | ;; | |
1810 | conftest.$ac_ext ) | |
1811 | # This is the source file. | |
1812 | ;; | |
1813 | [ab].out ) | |
1814 | # We found the default executable, but exeext='' is most | |
1815 | # certainly right. | |
1816 | break;; | |
1817 | *.* ) | |
1818 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1819 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1820 | # but it would be cool to find out if it's true. Does anybody | |
1821 | # maintain Libtool? --akim. | |
1822 | export ac_cv_exeext | |
1823 | break;; | |
1824 | * ) | |
1825 | break;; | |
1826 | esac | |
1827 | done | |
1828 | else | |
1829 | echo "$as_me: failed program was:" >&5 | |
1830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1831 | ||
1832 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1833 | See \`config.log' for more details." >&5 | |
1834 | echo "$as_me: error: C compiler cannot create executables | |
1835 | See \`config.log' for more details." >&2;} | |
1836 | { (exit 77); exit 77; }; } | |
1837 | fi | |
1838 | ||
1839 | ac_exeext=$ac_cv_exeext | |
1840 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1841 | echo "${ECHO_T}$ac_file" >&6 | |
1842 | ||
1843 | # Check the compiler produces executables we can run. If not, either | |
1844 | # the compiler is broken, or we cross compile. | |
1845 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1846 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1847 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1848 | # If not cross compiling, check that we can run a simple program. | |
1849 | if test "$cross_compiling" != yes; then | |
1850 | if { ac_try='./$ac_file' | |
1851 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1852 | (eval $ac_try) 2>&5 | |
1853 | ac_status=$? | |
1854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1855 | (exit $ac_status); }; }; then | |
1856 | cross_compiling=no | |
1857 | else | |
1858 | if test "$cross_compiling" = maybe; then | |
1859 | cross_compiling=yes | |
1860 | else | |
1861 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1862 | If you meant to cross compile, use \`--host'. | |
1863 | See \`config.log' for more details." >&5 | |
1864 | echo "$as_me: error: cannot run C compiled programs. | |
1865 | If you meant to cross compile, use \`--host'. | |
1866 | See \`config.log' for more details." >&2;} | |
1867 | { (exit 1); exit 1; }; } | |
1868 | fi | |
1869 | fi | |
1870 | fi | |
1871 | echo "$as_me:$LINENO: result: yes" >&5 | |
1872 | echo "${ECHO_T}yes" >&6 | |
1873 | ||
1874 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1875 | ac_clean_files=$ac_clean_files_save | |
1876 | # Check the compiler produces executables we can run. If not, either | |
1877 | # the compiler is broken, or we cross compile. | |
1878 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1879 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1880 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1881 | echo "${ECHO_T}$cross_compiling" >&6 | |
1882 | ||
1883 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1884 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1885 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1886 | (eval $ac_link) 2>&5 | |
1887 | ac_status=$? | |
1888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1889 | (exit $ac_status); }; then | |
1890 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1891 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1892 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1893 | # `rm'. | |
1894 | for ac_file in conftest.exe conftest conftest.*; do | |
1895 | test -f "$ac_file" || continue | |
1896 | case $ac_file in | |
1897 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1898 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1899 | export ac_cv_exeext | |
1900 | break;; | |
1901 | * ) break;; | |
1902 | esac | |
1903 | done | |
1904 | else | |
1905 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
1906 | See \`config.log' for more details." >&5 | |
1907 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1908 | See \`config.log' for more details." >&2;} | |
1909 | { (exit 1); exit 1; }; } | |
1910 | fi | |
1911 | ||
1912 | rm -f conftest$ac_cv_exeext | |
1913 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1914 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
1915 | ||
1916 | rm -f conftest.$ac_ext | |
1917 | EXEEXT=$ac_cv_exeext | |
1918 | ac_exeext=$EXEEXT | |
1919 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1920 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1921 | if test "${ac_cv_objext+set}" = set; then | |
1922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1923 | else | |
1924 | cat >conftest.$ac_ext <<_ACEOF | |
1925 | /* confdefs.h. */ | |
1926 | _ACEOF | |
1927 | cat confdefs.h >>conftest.$ac_ext | |
1928 | cat >>conftest.$ac_ext <<_ACEOF | |
1929 | /* end confdefs.h. */ | |
1930 | ||
1931 | int | |
1932 | main () | |
1933 | { | |
1934 | ||
1935 | ; | |
1936 | return 0; | |
1937 | } | |
1938 | _ACEOF | |
1939 | rm -f conftest.o conftest.obj | |
1940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1941 | (eval $ac_compile) 2>&5 | |
1942 | ac_status=$? | |
1943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1944 | (exit $ac_status); }; then | |
1945 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1946 | case $ac_file in | |
1947 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
1948 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1949 | break;; | |
1950 | esac | |
1951 | done | |
1952 | else | |
1953 | echo "$as_me: failed program was:" >&5 | |
1954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1955 | ||
1956 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
1957 | See \`config.log' for more details." >&5 | |
1958 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1959 | See \`config.log' for more details." >&2;} | |
1960 | { (exit 1); exit 1; }; } | |
1961 | fi | |
1962 | ||
1963 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
1964 | fi | |
1965 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
1966 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1967 | OBJEXT=$ac_cv_objext | |
1968 | ac_objext=$OBJEXT | |
1969 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
1970 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1971 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1973 | else | |
1974 | cat >conftest.$ac_ext <<_ACEOF | |
1975 | /* confdefs.h. */ | |
1976 | _ACEOF | |
1977 | cat confdefs.h >>conftest.$ac_ext | |
1978 | cat >>conftest.$ac_ext <<_ACEOF | |
1979 | /* end confdefs.h. */ | |
1980 | ||
1981 | int | |
1982 | main () | |
1983 | { | |
1984 | #ifndef __GNUC__ | |
1985 | choke me | |
1986 | #endif | |
1987 | ||
1988 | ; | |
1989 | return 0; | |
1990 | } | |
1991 | _ACEOF | |
1992 | rm -f conftest.$ac_objext | |
1993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1994 | (eval $ac_compile) 2>conftest.er1 | |
1995 | ac_status=$? | |
1996 | grep -v '^ *+' conftest.er1 >conftest.err | |
1997 | rm -f conftest.er1 | |
1998 | cat conftest.err >&5 | |
1999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2000 | (exit $ac_status); } && | |
eac338cf | 2001 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
2002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2003 | (eval $ac_try) 2>&5 | |
2004 | ac_status=$? | |
2005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2006 | (exit $ac_status); }; } && | |
2007 | { ac_try='test -s conftest.$ac_objext' | |
2008 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2009 | (eval $ac_try) 2>&5 | |
2010 | ac_status=$? | |
2011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2012 | (exit $ac_status); }; }; then | |
2013 | ac_compiler_gnu=yes | |
2014 | else | |
2015 | echo "$as_me: failed program was:" >&5 | |
2016 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2017 | ||
2018 | ac_compiler_gnu=no | |
2019 | fi | |
2020 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2021 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2022 | ||
2023 | fi | |
2024 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2025 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2026 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2027 | ac_test_CFLAGS=${CFLAGS+set} | |
2028 | ac_save_CFLAGS=$CFLAGS | |
2029 | CFLAGS="-g" | |
2030 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2031 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2032 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2034 | else | |
2035 | cat >conftest.$ac_ext <<_ACEOF | |
2036 | /* confdefs.h. */ | |
2037 | _ACEOF | |
2038 | cat confdefs.h >>conftest.$ac_ext | |
2039 | cat >>conftest.$ac_ext <<_ACEOF | |
2040 | /* end confdefs.h. */ | |
2041 | ||
2042 | int | |
2043 | main () | |
2044 | { | |
2045 | ||
2046 | ; | |
2047 | return 0; | |
2048 | } | |
2049 | _ACEOF | |
2050 | rm -f conftest.$ac_objext | |
2051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2052 | (eval $ac_compile) 2>conftest.er1 | |
2053 | ac_status=$? | |
2054 | grep -v '^ *+' conftest.er1 >conftest.err | |
2055 | rm -f conftest.er1 | |
2056 | cat conftest.err >&5 | |
2057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2058 | (exit $ac_status); } && | |
eac338cf | 2059 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
2060 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2061 | (eval $ac_try) 2>&5 | |
2062 | ac_status=$? | |
2063 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2064 | (exit $ac_status); }; } && | |
2065 | { ac_try='test -s conftest.$ac_objext' | |
2066 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2067 | (eval $ac_try) 2>&5 | |
2068 | ac_status=$? | |
2069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2070 | (exit $ac_status); }; }; then | |
2071 | ac_cv_prog_cc_g=yes | |
2072 | else | |
2073 | echo "$as_me: failed program was:" >&5 | |
2074 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2075 | ||
2076 | ac_cv_prog_cc_g=no | |
2077 | fi | |
2078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2079 | fi | |
2080 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2081 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2082 | if test "$ac_test_CFLAGS" = set; then | |
2083 | CFLAGS=$ac_save_CFLAGS | |
2084 | elif test $ac_cv_prog_cc_g = yes; then | |
2085 | if test "$GCC" = yes; then | |
2086 | CFLAGS="-g -O2" | |
2087 | else | |
2088 | CFLAGS="-g" | |
2089 | fi | |
2090 | else | |
2091 | if test "$GCC" = yes; then | |
2092 | CFLAGS="-O2" | |
2093 | else | |
2094 | CFLAGS= | |
2095 | fi | |
2096 | fi | |
2097 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2098 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2099 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2101 | else | |
2102 | ac_cv_prog_cc_stdc=no | |
2103 | ac_save_CC=$CC | |
2104 | cat >conftest.$ac_ext <<_ACEOF | |
2105 | /* confdefs.h. */ | |
2106 | _ACEOF | |
2107 | cat confdefs.h >>conftest.$ac_ext | |
2108 | cat >>conftest.$ac_ext <<_ACEOF | |
2109 | /* end confdefs.h. */ | |
2110 | #include <stdarg.h> | |
2111 | #include <stdio.h> | |
2112 | #include <sys/types.h> | |
2113 | #include <sys/stat.h> | |
2114 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2115 | struct buf { int x; }; | |
2116 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2117 | static char *e (p, i) | |
2118 | char **p; | |
2119 | int i; | |
2120 | { | |
2121 | return p[i]; | |
2122 | } | |
2123 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2124 | { | |
2125 | char *s; | |
2126 | va_list v; | |
2127 | va_start (v,p); | |
2128 | s = g (p, va_arg (v,int)); | |
2129 | va_end (v); | |
2130 | return s; | |
2131 | } | |
2132 | ||
2133 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2134 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2135 | These don't provoke an error unfortunately, instead are silently treated | |
2136 | as 'x'. The following induces an error, until -std1 is added to get | |
2137 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2138 | array size at least. It's necessary to write '\x00'==0 to get something | |
2139 | that's true only with -std1. */ | |
2140 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2141 | ||
2142 | int test (int i, double x); | |
2143 | struct s1 {int (*f) (int a);}; | |
2144 | struct s2 {int (*f) (double a);}; | |
2145 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2146 | int argc; | |
2147 | char **argv; | |
2148 | int | |
2149 | main () | |
2150 | { | |
2151 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2152 | ; | |
2153 | return 0; | |
2154 | } | |
2155 | _ACEOF | |
2156 | # Don't try gcc -ansi; that turns off useful extensions and | |
2157 | # breaks some systems' header files. | |
2158 | # AIX -qlanglvl=ansi | |
2159 | # Ultrix and OSF/1 -std1 | |
2160 | # HP-UX 10.20 and later -Ae | |
2161 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2162 | # SVR4 -Xc -D__EXTENSIONS__ | |
2163 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2164 | do | |
2165 | CC="$ac_save_CC $ac_arg" | |
2166 | rm -f conftest.$ac_objext | |
2167 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2168 | (eval $ac_compile) 2>conftest.er1 | |
2169 | ac_status=$? | |
2170 | grep -v '^ *+' conftest.er1 >conftest.err | |
2171 | rm -f conftest.er1 | |
2172 | cat conftest.err >&5 | |
2173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2174 | (exit $ac_status); } && | |
eac338cf | 2175 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
2176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2177 | (eval $ac_try) 2>&5 | |
2178 | ac_status=$? | |
2179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2180 | (exit $ac_status); }; } && | |
2181 | { ac_try='test -s conftest.$ac_objext' | |
2182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2183 | (eval $ac_try) 2>&5 | |
2184 | ac_status=$? | |
2185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2186 | (exit $ac_status); }; }; then | |
2187 | ac_cv_prog_cc_stdc=$ac_arg | |
2188 | break | |
2189 | else | |
2190 | echo "$as_me: failed program was:" >&5 | |
2191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2192 | ||
2193 | fi | |
2194 | rm -f conftest.err conftest.$ac_objext | |
2195 | done | |
2196 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2197 | CC=$ac_save_CC | |
2198 | ||
2199 | fi | |
2200 | ||
2201 | case "x$ac_cv_prog_cc_stdc" in | |
2202 | x|xno) | |
2203 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2204 | echo "${ECHO_T}none needed" >&6 ;; | |
2205 | *) | |
2206 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2207 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2208 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2209 | esac | |
2210 | ||
2211 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2212 | # in C++ we need to declare it. In case someone uses the same compiler | |
2213 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2214 | # the declaration of exit, since it's the most demanding environment. | |
2215 | cat >conftest.$ac_ext <<_ACEOF | |
2216 | #ifndef __cplusplus | |
2217 | choke me | |
2218 | #endif | |
2219 | _ACEOF | |
2220 | rm -f conftest.$ac_objext | |
2221 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2222 | (eval $ac_compile) 2>conftest.er1 | |
2223 | ac_status=$? | |
2224 | grep -v '^ *+' conftest.er1 >conftest.err | |
2225 | rm -f conftest.er1 | |
2226 | cat conftest.err >&5 | |
2227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2228 | (exit $ac_status); } && | |
eac338cf | 2229 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
2230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2231 | (eval $ac_try) 2>&5 | |
2232 | ac_status=$? | |
2233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2234 | (exit $ac_status); }; } && | |
2235 | { ac_try='test -s conftest.$ac_objext' | |
2236 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2237 | (eval $ac_try) 2>&5 | |
2238 | ac_status=$? | |
2239 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2240 | (exit $ac_status); }; }; then | |
2241 | for ac_declaration in \ | |
2242 | '' \ | |
2243 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2244 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2245 | 'extern "C" void exit (int) throw ();' \ | |
2246 | 'extern "C" void exit (int);' \ | |
2247 | 'void exit (int);' | |
2248 | do | |
2249 | cat >conftest.$ac_ext <<_ACEOF | |
2250 | /* confdefs.h. */ | |
2251 | _ACEOF | |
2252 | cat confdefs.h >>conftest.$ac_ext | |
2253 | cat >>conftest.$ac_ext <<_ACEOF | |
2254 | /* end confdefs.h. */ | |
2255 | $ac_declaration | |
2256 | #include <stdlib.h> | |
2257 | int | |
2258 | main () | |
2259 | { | |
2260 | exit (42); | |
2261 | ; | |
2262 | return 0; | |
2263 | } | |
2264 | _ACEOF | |
2265 | rm -f conftest.$ac_objext | |
2266 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2267 | (eval $ac_compile) 2>conftest.er1 | |
2268 | ac_status=$? | |
2269 | grep -v '^ *+' conftest.er1 >conftest.err | |
2270 | rm -f conftest.er1 | |
2271 | cat conftest.err >&5 | |
2272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2273 | (exit $ac_status); } && | |
eac338cf | 2274 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
2275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2276 | (eval $ac_try) 2>&5 | |
2277 | ac_status=$? | |
2278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2279 | (exit $ac_status); }; } && | |
2280 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
2286 | : | |
2287 | else | |
2288 | echo "$as_me: failed program was:" >&5 | |
2289 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2290 | ||
2291 | continue | |
2292 | fi | |
2293 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2294 | cat >conftest.$ac_ext <<_ACEOF | |
2295 | /* confdefs.h. */ | |
2296 | _ACEOF | |
2297 | cat confdefs.h >>conftest.$ac_ext | |
2298 | cat >>conftest.$ac_ext <<_ACEOF | |
2299 | /* end confdefs.h. */ | |
2300 | $ac_declaration | |
2301 | int | |
2302 | main () | |
2303 | { | |
2304 | exit (42); | |
2305 | ; | |
2306 | return 0; | |
2307 | } | |
2308 | _ACEOF | |
2309 | rm -f conftest.$ac_objext | |
2310 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2311 | (eval $ac_compile) 2>conftest.er1 | |
2312 | ac_status=$? | |
2313 | grep -v '^ *+' conftest.er1 >conftest.err | |
2314 | rm -f conftest.er1 | |
2315 | cat conftest.err >&5 | |
2316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2317 | (exit $ac_status); } && | |
eac338cf | 2318 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
2319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2320 | (eval $ac_try) 2>&5 | |
2321 | ac_status=$? | |
2322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2323 | (exit $ac_status); }; } && | |
2324 | { ac_try='test -s conftest.$ac_objext' | |
2325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2326 | (eval $ac_try) 2>&5 | |
2327 | ac_status=$? | |
2328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2329 | (exit $ac_status); }; }; then | |
2330 | break | |
2331 | else | |
2332 | echo "$as_me: failed program was:" >&5 | |
2333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2334 | ||
2335 | fi | |
2336 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2337 | done | |
2338 | rm -f conftest* | |
2339 | if test -n "$ac_declaration"; then | |
2340 | echo '#ifdef __cplusplus' >>confdefs.h | |
2341 | echo $ac_declaration >>confdefs.h | |
2342 | echo '#endif' >>confdefs.h | |
2343 | fi | |
2344 | ||
2345 | else | |
2346 | echo "$as_me: failed program was:" >&5 | |
2347 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2348 | ||
2349 | fi | |
2350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2351 | ac_ext=c | |
2352 | ac_cpp='$CPP $CPPFLAGS' | |
2353 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2354 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2355 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2356 | ||
2357 | ||
f5385ebf AM |
2358 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2359 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
2360 | if test "${ac_cv_search_strerror+set}" = set; then | |
5464f5a1 NN |
2361 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2362 | else | |
f5385ebf AM |
2363 | ac_func_search_save_LIBS=$LIBS |
2364 | ac_cv_search_strerror=no | |
5464f5a1 NN |
2365 | cat >conftest.$ac_ext <<_ACEOF |
2366 | /* confdefs.h. */ | |
2367 | _ACEOF | |
2368 | cat confdefs.h >>conftest.$ac_ext | |
2369 | cat >>conftest.$ac_ext <<_ACEOF | |
2370 | /* end confdefs.h. */ | |
2371 | ||
2372 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2373 | #ifdef __cplusplus | |
2374 | extern "C" | |
2375 | #endif | |
2376 | /* We use char because int might match the return type of a gcc2 | |
2377 | builtin and then its argument prototype would still apply. */ | |
2378 | char strerror (); | |
2379 | int | |
2380 | main () | |
2381 | { | |
2382 | strerror (); | |
2383 | ; | |
2384 | return 0; | |
2385 | } | |
2386 | _ACEOF | |
2387 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2388 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2389 | (eval $ac_link) 2>conftest.er1 | |
2390 | ac_status=$? | |
2391 | grep -v '^ *+' conftest.er1 >conftest.err | |
2392 | rm -f conftest.er1 | |
2393 | cat conftest.err >&5 | |
2394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2395 | (exit $ac_status); } && | |
eac338cf | 2396 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
2397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2398 | (eval $ac_try) 2>&5 | |
2399 | ac_status=$? | |
2400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2401 | (exit $ac_status); }; } && | |
2402 | { ac_try='test -s conftest$ac_exeext' | |
2403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2404 | (eval $ac_try) 2>&5 | |
2405 | ac_status=$? | |
2406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2407 | (exit $ac_status); }; }; then | |
f5385ebf | 2408 | ac_cv_search_strerror="none required" |
5464f5a1 NN |
2409 | else |
2410 | echo "$as_me: failed program was:" >&5 | |
2411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2412 | ||
5464f5a1 NN |
2413 | fi |
2414 | rm -f conftest.err conftest.$ac_objext \ | |
2415 | conftest$ac_exeext conftest.$ac_ext | |
f5385ebf AM |
2416 | if test "$ac_cv_search_strerror" = no; then |
2417 | for ac_lib in cposix; do | |
2418 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2419 | cat >conftest.$ac_ext <<_ACEOF | |
2420 | /* confdefs.h. */ | |
2421 | _ACEOF | |
2422 | cat confdefs.h >>conftest.$ac_ext | |
2423 | cat >>conftest.$ac_ext <<_ACEOF | |
2424 | /* end confdefs.h. */ | |
2425 | ||
2426 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2427 | #ifdef __cplusplus | |
2428 | extern "C" | |
2429 | #endif | |
2430 | /* We use char because int might match the return type of a gcc2 | |
2431 | builtin and then its argument prototype would still apply. */ | |
2432 | char strerror (); | |
2433 | int | |
2434 | main () | |
2435 | { | |
2436 | strerror (); | |
2437 | ; | |
2438 | return 0; | |
2439 | } | |
2440 | _ACEOF | |
2441 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2442 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2443 | (eval $ac_link) 2>conftest.er1 | |
2444 | ac_status=$? | |
2445 | grep -v '^ *+' conftest.er1 >conftest.err | |
2446 | rm -f conftest.er1 | |
2447 | cat conftest.err >&5 | |
2448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2449 | (exit $ac_status); } && | |
eac338cf | 2450 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
f5385ebf AM |
2451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2452 | (eval $ac_try) 2>&5 | |
2453 | ac_status=$? | |
2454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2455 | (exit $ac_status); }; } && | |
2456 | { ac_try='test -s conftest$ac_exeext' | |
2457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2458 | (eval $ac_try) 2>&5 | |
2459 | ac_status=$? | |
2460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2461 | (exit $ac_status); }; }; then | |
2462 | ac_cv_search_strerror="-l$ac_lib" | |
2463 | break | |
2464 | else | |
2465 | echo "$as_me: failed program was:" >&5 | |
2466 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2467 | ||
5464f5a1 | 2468 | fi |
f5385ebf AM |
2469 | rm -f conftest.err conftest.$ac_objext \ |
2470 | conftest$ac_exeext conftest.$ac_ext | |
2471 | done | |
5464f5a1 | 2472 | fi |
f5385ebf AM |
2473 | LIBS=$ac_func_search_save_LIBS |
2474 | fi | |
2475 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
2476 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2477 | if test "$ac_cv_search_strerror" != no; then | |
2478 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
5464f5a1 | 2479 | |
f5385ebf | 2480 | fi |
5464f5a1 NN |
2481 | |
2482 | ||
f5385ebf | 2483 | am__api_version="1.9" |
5464f5a1 NN |
2484 | # Find a good install program. We prefer a C program (faster), |
2485 | # so one script is as good as another. But avoid the broken or | |
2486 | # incompatible versions: | |
2487 | # SysV /etc/install, /usr/sbin/install | |
2488 | # SunOS /usr/etc/install | |
2489 | # IRIX /sbin/install | |
2490 | # AIX /bin/install | |
2491 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
252b5132 RH |
2492 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2493 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2494 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5464f5a1 | 2495 | # OS/2's system install, which has a completely different semantic |
252b5132 | 2496 | # ./install, which can be erroneously created by make from ./install.sh. |
5464f5a1 NN |
2497 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2498 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
252b5132 | 2499 | if test -z "$INSTALL"; then |
5464f5a1 NN |
2500 | if test "${ac_cv_path_install+set}" = set; then |
2501 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 2502 | else |
5464f5a1 NN |
2503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2504 | for as_dir in $PATH | |
2505 | do | |
2506 | IFS=$as_save_IFS | |
2507 | test -z "$as_dir" && as_dir=. | |
2508 | # Account for people who put trailing slashes in PATH elements. | |
2509 | case $as_dir/ in | |
2510 | ./ | .// | /cC/* | \ | |
2511 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2512 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2513 | /usr/ucb/* ) ;; | |
2514 | *) | |
2515 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2516 | # Don't use installbsd from OSF since it installs stuff as root | |
2517 | # by default. | |
2518 | for ac_prog in ginstall scoinst install; do | |
2519 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2520 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
252b5132 | 2521 | if test $ac_prog = install && |
5464f5a1 | 2522 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
2523 | # AIX install. It has an incompatible calling convention. |
2524 | : | |
5464f5a1 NN |
2525 | elif test $ac_prog = install && |
2526 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2527 | # program-specific install script used by HP pwplus--don't use. | |
2528 | : | |
252b5132 | 2529 | else |
5464f5a1 NN |
2530 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2531 | break 3 | |
252b5132 RH |
2532 | fi |
2533 | fi | |
2534 | done | |
5464f5a1 NN |
2535 | done |
2536 | ;; | |
2537 | esac | |
2538 | done | |
2539 | ||
252b5132 RH |
2540 | |
2541 | fi | |
2542 | if test "${ac_cv_path_install+set}" = set; then | |
5464f5a1 | 2543 | INSTALL=$ac_cv_path_install |
252b5132 RH |
2544 | else |
2545 | # As a last resort, use the slow shell script. We don't cache a | |
2546 | # path for INSTALL within a source directory, because that will | |
2547 | # break other packages using the cache if that directory is | |
2548 | # removed, or if the path is relative. | |
5464f5a1 | 2549 | INSTALL=$ac_install_sh |
252b5132 RH |
2550 | fi |
2551 | fi | |
5464f5a1 NN |
2552 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2553 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
2554 | |
2555 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2556 | # It thinks the first close brace ends the variable substitution. | |
2557 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2558 | ||
5464f5a1 | 2559 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2560 | |
2561 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2562 | ||
5464f5a1 NN |
2563 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2564 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
252b5132 RH |
2565 | # Just in case |
2566 | sleep 1 | |
f5385ebf | 2567 | echo timestamp > conftest.file |
252b5132 RH |
2568 | # Do `set' in a subshell so we don't clobber the current shell's |
2569 | # arguments. Must try -L first in case configure is actually a | |
2570 | # symlink; some systems play weird games with the mod time of symlinks | |
2571 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2572 | # directory). | |
2573 | if ( | |
f5385ebf | 2574 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
252b5132 RH |
2575 | if test "$*" = "X"; then |
2576 | # -L didn't work. | |
f5385ebf | 2577 | set X `ls -t $srcdir/configure conftest.file` |
252b5132 | 2578 | fi |
f5385ebf AM |
2579 | rm -f conftest.file |
2580 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2581 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
2582 | |
2583 | # If neither matched, then we have a broken ls. This can happen | |
2584 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2585 | # broken ls alias from the environment. This has actually | |
2586 | # happened. Such a system could not be considered "sane". | |
5464f5a1 NN |
2587 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2588 | alias in your environment" >&5 | |
2589 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2590 | alias in your environment" >&2;} | |
2591 | { (exit 1); exit 1; }; } | |
252b5132 RH |
2592 | fi |
2593 | ||
f5385ebf | 2594 | test "$2" = conftest.file |
252b5132 RH |
2595 | ) |
2596 | then | |
2597 | # Ok. | |
2598 | : | |
2599 | else | |
5464f5a1 NN |
2600 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2601 | Check your system clock" >&5 | |
2602 | echo "$as_me: error: newly created file is older than distributed files! | |
2603 | Check your system clock" >&2;} | |
2604 | { (exit 1); exit 1; }; } | |
252b5132 | 2605 | fi |
5464f5a1 NN |
2606 | echo "$as_me:$LINENO: result: yes" >&5 |
2607 | echo "${ECHO_T}yes" >&6 | |
252b5132 | 2608 | test "$program_prefix" != NONE && |
5464f5a1 | 2609 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
252b5132 RH |
2610 | # Use a double $ so make ignores it. |
2611 | test "$program_suffix" != NONE && | |
5464f5a1 NN |
2612 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
2613 | # Double any \ or $. echo might interpret backslashes. | |
2614 | # By default was `s,x,x', remove it if useless. | |
2615 | cat <<\_ACEOF >conftest.sed | |
2616 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2617 | _ACEOF | |
2618 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
2619 | rm conftest.sed | |
2620 | ||
f5385ebf AM |
2621 | # expand $ac_aux_dir to an absolute path |
2622 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2623 | ||
2624 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2625 | # Use eval to expand $SHELL | |
2626 | if eval "$MISSING --run true"; then | |
2627 | am_missing_run="$MISSING --run " | |
2628 | else | |
2629 | am_missing_run= | |
2630 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2631 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2632 | fi | |
2633 | ||
2634 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
2635 | # We used to keeping the `.' as first argument, in order to | |
2636 | # allow $(mkdir_p) to be used without argument. As in | |
2637 | # $(mkdir_p) $(somedir) | |
2638 | # where $(somedir) is conditionally defined. However this is wrong | |
2639 | # for two reasons: | |
2640 | # 1. if the package is installed by a user who cannot write `.' | |
2641 | # make install will fail, | |
2642 | # 2. the above comment should most certainly read | |
2643 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
2644 | # so it does not work when $(somedir) is undefined and | |
2645 | # $(DESTDIR) is not. | |
2646 | # To support the latter case, we have to write | |
2647 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
2648 | # so the `.' trick is pointless. | |
2649 | mkdir_p='mkdir -p --' | |
2650 | else | |
2651 | # On NextStep and OpenStep, the `mkdir' command does not | |
2652 | # recognize any option. It will interpret all options as | |
2653 | # directories to create, and then abort because `.' already | |
2654 | # exists. | |
2655 | for d in ./-p ./--version; | |
2656 | do | |
2657 | test -d $d && rmdir $d | |
2658 | done | |
2659 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
2660 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
2661 | mkdir_p='$(mkinstalldirs)' | |
2662 | else | |
2663 | mkdir_p='$(install_sh) -d' | |
2664 | fi | |
2665 | fi | |
2666 | ||
2667 | for ac_prog in gawk mawk nawk awk | |
2668 | do | |
2669 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2670 | set dummy $ac_prog; ac_word=$2 | |
2671 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2672 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2673 | if test "${ac_cv_prog_AWK+set}" = set; then | |
2674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2675 | else | |
2676 | if test -n "$AWK"; then | |
2677 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2678 | else | |
2679 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2680 | for as_dir in $PATH | |
2681 | do | |
2682 | IFS=$as_save_IFS | |
2683 | test -z "$as_dir" && as_dir=. | |
2684 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2685 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2686 | ac_cv_prog_AWK="$ac_prog" | |
2687 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2688 | break 2 | |
2689 | fi | |
2690 | done | |
2691 | done | |
2692 | ||
2693 | fi | |
2694 | fi | |
2695 | AWK=$ac_cv_prog_AWK | |
2696 | if test -n "$AWK"; then | |
2697 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
2698 | echo "${ECHO_T}$AWK" >&6 | |
2699 | else | |
2700 | echo "$as_me:$LINENO: result: no" >&5 | |
2701 | echo "${ECHO_T}no" >&6 | |
2702 | fi | |
2703 | ||
2704 | test -n "$AWK" && break | |
2705 | done | |
2706 | ||
5464f5a1 NN |
2707 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2708 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
2709 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
2710 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2712 | else | |
2713 | cat >conftest.make <<\_ACEOF | |
252b5132 | 2714 | all: |
5464f5a1 NN |
2715 | @echo 'ac_maketemp="$(MAKE)"' |
2716 | _ACEOF | |
252b5132 | 2717 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
5464f5a1 | 2718 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
252b5132 RH |
2719 | if test -n "$ac_maketemp"; then |
2720 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2721 | else | |
2722 | eval ac_cv_prog_make_${ac_make}_set=no | |
2723 | fi | |
5464f5a1 | 2724 | rm -f conftest.make |
252b5132 RH |
2725 | fi |
2726 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
5464f5a1 NN |
2727 | echo "$as_me:$LINENO: result: yes" >&5 |
2728 | echo "${ECHO_T}yes" >&6 | |
252b5132 RH |
2729 | SET_MAKE= |
2730 | else | |
5464f5a1 NN |
2731 | echo "$as_me:$LINENO: result: no" >&5 |
2732 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2733 | SET_MAKE="MAKE=${MAKE-make}" |
2734 | fi | |
2735 | ||
f5385ebf AM |
2736 | rm -rf .tst 2>/dev/null |
2737 | mkdir .tst 2>/dev/null | |
2738 | if test -d .tst; then | |
2739 | am__leading_dot=. | |
2740 | else | |
2741 | am__leading_dot=_ | |
2742 | fi | |
2743 | rmdir .tst 2>/dev/null | |
2744 | ||
2745 | DEPDIR="${am__leading_dot}deps" | |
2746 | ||
2747 | ac_config_commands="$ac_config_commands depfiles" | |
2748 | ||
2749 | ||
2750 | am_make=${MAKE-make} | |
2751 | cat > confinc << 'END' | |
2752 | am__doit: | |
2753 | @echo done | |
2754 | .PHONY: am__doit | |
2755 | END | |
2756 | # If we don't find an include directive, just comment out the code. | |
2757 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2758 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2759 | am__include="#" | |
2760 | am__quote= | |
2761 | _am_result=none | |
2762 | # First try GNU make style include. | |
2763 | echo "include confinc" > confmf | |
2764 | # We grep out `Entering directory' and `Leaving directory' | |
2765 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2766 | # In particular we don't look at `^make:' because GNU make might | |
2767 | # be invoked under some other name (usually "gmake"), in which | |
2768 | # case it prints its new name instead of `make'. | |
2769 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2770 | am__include=include | |
2771 | am__quote= | |
2772 | _am_result=GNU | |
2773 | fi | |
2774 | # Now try BSD make style include. | |
2775 | if test "$am__include" = "#"; then | |
2776 | echo '.include "confinc"' > confmf | |
2777 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2778 | am__include=.include | |
2779 | am__quote="\"" | |
2780 | _am_result=BSD | |
2781 | fi | |
2782 | fi | |
2783 | ||
2784 | ||
2785 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2786 | echo "${ECHO_T}$_am_result" >&6 | |
2787 | rm -f confinc confmf | |
2788 | ||
2789 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2790 | if test "${enable_dependency_tracking+set}" = set; then | |
2791 | enableval="$enable_dependency_tracking" | |
2792 | ||
2793 | fi; | |
2794 | if test "x$enable_dependency_tracking" != xno; then | |
2795 | am_depcomp="$ac_aux_dir/depcomp" | |
2796 | AMDEPBACKSLASH='\' | |
2797 | fi | |
2798 | ||
2799 | ||
2800 | if test "x$enable_dependency_tracking" != xno; then | |
2801 | AMDEP_TRUE= | |
2802 | AMDEP_FALSE='#' | |
2803 | else | |
2804 | AMDEP_TRUE='#' | |
2805 | AMDEP_FALSE= | |
2806 | fi | |
6be7c12c | 2807 | |
252b5132 | 2808 | |
252b5132 | 2809 | |
f5385ebf AM |
2810 | # test to see if srcdir already configured |
2811 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
2812 | test -f $srcdir/config.status; then | |
5464f5a1 NN |
2813 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
2814 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2815 | { (exit 1); exit 1; }; } | |
252b5132 | 2816 | fi |
5464f5a1 | 2817 | |
f5385ebf AM |
2818 | # test whether we have cygpath |
2819 | if test -z "$CYGPATH_W"; then | |
2820 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2821 | CYGPATH_W='cygpath -w' | |
2822 | else | |
2823 | CYGPATH_W=echo | |
2824 | fi | |
2825 | fi | |
2826 | ||
2827 | ||
2828 | # Define the identity of the package. | |
2829 | PACKAGE=bfd | |
664fe1be | 2830 | VERSION=2.16.90 |
f5385ebf AM |
2831 | |
2832 | ||
5464f5a1 | 2833 | cat >>confdefs.h <<_ACEOF |
252b5132 | 2834 | #define PACKAGE "$PACKAGE" |
5464f5a1 | 2835 | _ACEOF |
252b5132 | 2836 | |
5464f5a1 NN |
2837 | |
2838 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 2839 | #define VERSION "$VERSION" |
5464f5a1 | 2840 | _ACEOF |
252b5132 | 2841 | |
f5385ebf AM |
2842 | # Some tools Automake needs. |
2843 | ||
2844 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2845 | ||
2846 | ||
2847 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2848 | ||
2849 | ||
2850 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2851 | ||
2852 | ||
2853 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2854 | ||
2855 | ||
2856 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
6be7c12c | 2857 | |
f5385ebf | 2858 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
6be7c12c | 2859 | |
f5385ebf AM |
2860 | # Installed binaries are usually stripped using `strip' when the user |
2861 | # run `make install-strip'. However `strip' might not be the right | |
2862 | # tool to use in cross-compilation environments, therefore Automake | |
2863 | # will honor the `STRIP' environment variable to overrule this program. | |
2864 | if test "$cross_compiling" != no; then | |
2865 | if test -n "$ac_tool_prefix"; then | |
2866 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2867 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2868 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2869 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2870 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2871 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2872 | else | |
2873 | if test -n "$STRIP"; then | |
2874 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
252b5132 | 2875 | else |
f5385ebf AM |
2876 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2877 | for as_dir in $PATH | |
2878 | do | |
2879 | IFS=$as_save_IFS | |
2880 | test -z "$as_dir" && as_dir=. | |
2881 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2882 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2883 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2884 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2885 | break 2 | |
2886 | fi | |
2887 | done | |
2888 | done | |
2889 | ||
2890 | fi | |
2891 | fi | |
2892 | STRIP=$ac_cv_prog_STRIP | |
2893 | if test -n "$STRIP"; then | |
2894 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2895 | echo "${ECHO_T}$STRIP" >&6 | |
2896 | else | |
2897 | echo "$as_me:$LINENO: result: no" >&5 | |
2898 | echo "${ECHO_T}no" >&6 | |
2899 | fi | |
2900 | ||
252b5132 | 2901 | fi |
f5385ebf AM |
2902 | if test -z "$ac_cv_prog_STRIP"; then |
2903 | ac_ct_STRIP=$STRIP | |
2904 | # Extract the first word of "strip", so it can be a program name with args. | |
2905 | set dummy strip; ac_word=$2 | |
2906 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2907 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2908 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2910 | else | |
2911 | if test -n "$ac_ct_STRIP"; then | |
2912 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2913 | else | |
2914 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2915 | for as_dir in $PATH | |
2916 | do | |
2917 | IFS=$as_save_IFS | |
2918 | test -z "$as_dir" && as_dir=. | |
2919 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2920 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2921 | ac_cv_prog_ac_ct_STRIP="strip" | |
2922 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2923 | break 2 | |
2924 | fi | |
2925 | done | |
2926 | done | |
252b5132 | 2927 | |
f5385ebf AM |
2928 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
2929 | fi | |
2930 | fi | |
2931 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2932 | if test -n "$ac_ct_STRIP"; then | |
2933 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2934 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
252b5132 | 2935 | else |
f5385ebf AM |
2936 | echo "$as_me:$LINENO: result: no" >&5 |
2937 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2938 | fi |
2939 | ||
f5385ebf | 2940 | STRIP=$ac_ct_STRIP |
252b5132 | 2941 | else |
f5385ebf AM |
2942 | STRIP="$ac_cv_prog_STRIP" |
2943 | fi | |
2944 | ||
252b5132 | 2945 | fi |
f5385ebf AM |
2946 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
2947 | ||
2948 | # We need awk for the "check" target. The system "awk" is bad on | |
2949 | # some platforms. | |
2950 | # Always define AMTAR for backward compatibility. | |
2951 | ||
2952 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2953 | ||
2954 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2955 | ||
252b5132 | 2956 | |
f5385ebf AM |
2957 | |
2958 | ||
2959 | depcc="$CC" am_compiler_list= | |
2960 | ||
2961 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
2962 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2963 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
2964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 2965 | else |
f5385ebf AM |
2966 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
2967 | # We make a subdir and do the tests there. Otherwise we can end up | |
2968 | # making bogus files that we don't know about and never remove. For | |
2969 | # instance it was reported that on HP-UX the gcc test will end up | |
2970 | # making a dummy file named `D' -- because `-MD' means `put the output | |
2971 | # in D'. | |
2972 | mkdir conftest.dir | |
2973 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
2974 | # using a relative directory. | |
2975 | cp "$am_depcomp" conftest.dir | |
2976 | cd conftest.dir | |
2977 | # We will build objects and dependencies in a subdirectory because | |
2978 | # it helps to detect inapplicable dependency modes. For instance | |
2979 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
2980 | # side effect of compilation, but ICC will put the dependencies in | |
2981 | # the current directory while Tru64 will put them in the object | |
2982 | # directory. | |
2983 | mkdir sub | |
2984 | ||
2985 | am_cv_CC_dependencies_compiler_type=none | |
2986 | if test "$am_compiler_list" = ""; then | |
2987 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
2988 | fi | |
2989 | for depmode in $am_compiler_list; do | |
2990 | # Setup a source with many dependencies, because some compilers | |
2991 | # like to wrap large dependency lists on column 80 (with \), and | |
2992 | # we should not choose a depcomp mode which is confused by this. | |
2993 | # | |
2994 | # We need to recreate these files for each test, as the compiler may | |
2995 | # overwrite some of them when testing with obscure command lines. | |
2996 | # This happens at least with the AIX C compiler. | |
2997 | : > sub/conftest.c | |
2998 | for i in 1 2 3 4 5 6; do | |
2999 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3000 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3001 | # Solaris 8's {/usr,}/bin/sh. | |
3002 | touch sub/conftst$i.h | |
3003 | done | |
3004 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3005 | ||
3006 | case $depmode in | |
3007 | nosideeffect) | |
3008 | # after this tag, mechanisms are not by side-effect, so they'll | |
3009 | # only be used when explicitly requested | |
3010 | if test "x$enable_dependency_tracking" = xyes; then | |
3011 | continue | |
3012 | else | |
3013 | break | |
3014 | fi | |
3015 | ;; | |
3016 | none) break ;; | |
3017 | esac | |
3018 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3019 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3020 | # handle `-M -o', and we need to detect this. | |
3021 | if depmode=$depmode \ | |
3022 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3023 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3024 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3025 | >/dev/null 2>conftest.err && | |
3026 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3027 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3028 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3029 | # icc doesn't choke on unknown options, it will just issue warnings | |
3030 | # or remarks (even with -Werror). So we grep stderr for any message | |
3031 | # that says an option was ignored or not supported. | |
3032 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3033 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3034 | # The diagnosis changed in icc 8.0: | |
3035 | # icc: Command line remark: option '-MP' not supported | |
3036 | if (grep 'ignoring option' conftest.err || | |
3037 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3038 | am_cv_CC_dependencies_compiler_type=$depmode | |
3039 | break | |
3040 | fi | |
3041 | fi | |
3042 | done | |
3043 | ||
3044 | cd .. | |
3045 | rm -rf conftest.dir | |
3046 | else | |
3047 | am_cv_CC_dependencies_compiler_type=none | |
3048 | fi | |
3049 | ||
252b5132 | 3050 | fi |
f5385ebf AM |
3051 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3052 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3053 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
252b5132 | 3054 | |
f5385ebf AM |
3055 | |
3056 | ||
3057 | if | |
3058 | test "x$enable_dependency_tracking" != xno \ | |
3059 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3060 | am__fastdepCC_TRUE= | |
3061 | am__fastdepCC_FALSE='#' | |
252b5132 | 3062 | else |
f5385ebf AM |
3063 | am__fastdepCC_TRUE='#' |
3064 | am__fastdepCC_FALSE= | |
252b5132 RH |
3065 | fi |
3066 | ||
6be7c12c | 3067 | |
e43d48cc | 3068 | |
f5385ebf | 3069 | |
5464f5a1 NN |
3070 | if test -n "$ac_tool_prefix"; then |
3071 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
252b5132 | 3072 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
5464f5a1 NN |
3073 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3074 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3075 | if test "${ac_cv_prog_AR+set}" = set; then | |
3076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3077 | else |
3078 | if test -n "$AR"; then | |
3079 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3080 | else | |
5464f5a1 NN |
3081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3082 | for as_dir in $PATH | |
3083 | do | |
3084 | IFS=$as_save_IFS | |
3085 | test -z "$as_dir" && as_dir=. | |
3086 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3087 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3088 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
3089 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3090 | break 2 | |
3091 | fi | |
3092 | done | |
3093 | done | |
3094 | ||
252b5132 RH |
3095 | fi |
3096 | fi | |
5464f5a1 | 3097 | AR=$ac_cv_prog_AR |
252b5132 | 3098 | if test -n "$AR"; then |
5464f5a1 NN |
3099 | echo "$as_me:$LINENO: result: $AR" >&5 |
3100 | echo "${ECHO_T}$AR" >&6 | |
252b5132 | 3101 | else |
5464f5a1 NN |
3102 | echo "$as_me:$LINENO: result: no" >&5 |
3103 | echo "${ECHO_T}no" >&6 | |
3104 | fi | |
3105 | ||
252b5132 | 3106 | fi |
5464f5a1 NN |
3107 | if test -z "$ac_cv_prog_AR"; then |
3108 | ac_ct_AR=$AR | |
3109 | # Extract the first word of "ar", so it can be a program name with args. | |
3110 | set dummy ar; ac_word=$2 | |
3111 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3112 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3113 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
3114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3115 | else | |
3116 | if test -n "$ac_ct_AR"; then | |
3117 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
3118 | else | |
3119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3120 | for as_dir in $PATH | |
3121 | do | |
3122 | IFS=$as_save_IFS | |
3123 | test -z "$as_dir" && as_dir=. | |
3124 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3125 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3126 | ac_cv_prog_ac_ct_AR="ar" | |
3127 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3128 | break 2 | |
3129 | fi | |
3130 | done | |
3131 | done | |
252b5132 | 3132 | |
5464f5a1 NN |
3133 | fi |
3134 | fi | |
3135 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
3136 | if test -n "$ac_ct_AR"; then | |
3137 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
3138 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
3139 | else | |
3140 | echo "$as_me:$LINENO: result: no" >&5 | |
3141 | echo "${ECHO_T}no" >&6 | |
3142 | fi | |
252b5132 | 3143 | |
5464f5a1 NN |
3144 | AR=$ac_ct_AR |
3145 | else | |
3146 | AR="$ac_cv_prog_AR" | |
3147 | fi | |
6be7c12c | 3148 | |
5464f5a1 NN |
3149 | if test -n "$ac_tool_prefix"; then |
3150 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
252b5132 | 3151 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5464f5a1 NN |
3152 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3153 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3154 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3155 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3156 | else |
3157 | if test -n "$RANLIB"; then | |
3158 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3159 | else | |
5464f5a1 NN |
3160 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3161 | for as_dir in $PATH | |
3162 | do | |
3163 | IFS=$as_save_IFS | |
3164 | test -z "$as_dir" && as_dir=. | |
3165 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3166 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3167 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3168 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3169 | break 2 | |
3170 | fi | |
3171 | done | |
3172 | done | |
3173 | ||
252b5132 RH |
3174 | fi |
3175 | fi | |
5464f5a1 | 3176 | RANLIB=$ac_cv_prog_RANLIB |
252b5132 | 3177 | if test -n "$RANLIB"; then |
5464f5a1 NN |
3178 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3179 | echo "${ECHO_T}$RANLIB" >&6 | |
252b5132 | 3180 | else |
5464f5a1 NN |
3181 | echo "$as_me:$LINENO: result: no" >&5 |
3182 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3183 | fi |
3184 | ||
5464f5a1 | 3185 | fi |
252b5132 | 3186 | if test -z "$ac_cv_prog_RANLIB"; then |
5464f5a1 | 3187 | ac_ct_RANLIB=$RANLIB |
252b5132 RH |
3188 | # Extract the first word of "ranlib", so it can be a program name with args. |
3189 | set dummy ranlib; ac_word=$2 | |
5464f5a1 NN |
3190 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3191 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3192 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3193 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 3194 | else |
5464f5a1 NN |
3195 | if test -n "$ac_ct_RANLIB"; then |
3196 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6be7c12c | 3197 | else |
5464f5a1 NN |
3198 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3199 | for as_dir in $PATH | |
3200 | do | |
3201 | IFS=$as_save_IFS | |
3202 | test -z "$as_dir" && as_dir=. | |
3203 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3204 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3205 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3206 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3207 | break 2 | |
3208 | fi | |
3209 | done | |
3210 | done | |
3211 | ||
3212 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
252b5132 RH |
3213 | fi |
3214 | fi | |
5464f5a1 NN |
3215 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3216 | if test -n "$ac_ct_RANLIB"; then | |
3217 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3218 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
252b5132 | 3219 | else |
5464f5a1 NN |
3220 | echo "$as_me:$LINENO: result: no" >&5 |
3221 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3222 | fi |
3223 | ||
5464f5a1 | 3224 | RANLIB=$ac_ct_RANLIB |
252b5132 | 3225 | else |
5464f5a1 | 3226 | RANLIB="$ac_cv_prog_RANLIB" |
6be7c12c AO |
3227 | fi |
3228 | ||
252b5132 RH |
3229 | |
3230 | # Check whether --enable-shared or --disable-shared was given. | |
3231 | if test "${enable_shared+set}" = set; then | |
3232 | enableval="$enable_shared" | |
3233 | p=${PACKAGE-default} | |
55c80943 | 3234 | case $enableval in |
252b5132 RH |
3235 | yes) enable_shared=yes ;; |
3236 | no) enable_shared=no ;; | |
3237 | *) | |
3238 | enable_shared=no | |
3239 | # Look at the argument we got. We use all the common list separators. | |
3240 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3241 | for pkg in $enableval; do | |
3242 | if test "X$pkg" = "X$p"; then | |
3243 | enable_shared=yes | |
3244 | fi | |
3245 | done | |
3246 | IFS="$ac_save_ifs" | |
3247 | ;; | |
3248 | esac | |
3249 | else | |
3250 | enable_shared=no | |
5464f5a1 | 3251 | fi; |
252b5132 RH |
3252 | |
3253 | # Check whether --enable-static or --disable-static was given. | |
3254 | if test "${enable_static+set}" = set; then | |
3255 | enableval="$enable_static" | |
3256 | p=${PACKAGE-default} | |
55c80943 | 3257 | case $enableval in |
252b5132 RH |
3258 | yes) enable_static=yes ;; |
3259 | no) enable_static=no ;; | |
3260 | *) | |
3261 | enable_static=no | |
3262 | # Look at the argument we got. We use all the common list separators. | |
3263 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3264 | for pkg in $enableval; do | |
3265 | if test "X$pkg" = "X$p"; then | |
3266 | enable_static=yes | |
3267 | fi | |
3268 | done | |
3269 | IFS="$ac_save_ifs" | |
3270 | ;; | |
3271 | esac | |
3272 | else | |
3273 | enable_static=yes | |
5464f5a1 | 3274 | fi; |
b2ef150d ILT |
3275 | # Check whether --enable-fast-install or --disable-fast-install was given. |
3276 | if test "${enable_fast_install+set}" = set; then | |
3277 | enableval="$enable_fast_install" | |
3278 | p=${PACKAGE-default} | |
55c80943 | 3279 | case $enableval in |
b2ef150d ILT |
3280 | yes) enable_fast_install=yes ;; |
3281 | no) enable_fast_install=no ;; | |
3282 | *) | |
3283 | enable_fast_install=no | |
3284 | # Look at the argument we got. We use all the common list separators. | |
3285 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | |
3286 | for pkg in $enableval; do | |
3287 | if test "X$pkg" = "X$p"; then | |
3288 | enable_fast_install=yes | |
3289 | fi | |
3290 | done | |
3291 | IFS="$ac_save_ifs" | |
3292 | ;; | |
3293 | esac | |
3294 | else | |
3295 | enable_fast_install=yes | |
5464f5a1 | 3296 | fi; |
c5d1701e | 3297 | |
252b5132 RH |
3298 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
3299 | if test "${with_gnu_ld+set}" = set; then | |
3300 | withval="$with_gnu_ld" | |
3301 | test "$withval" = no || with_gnu_ld=yes | |
3302 | else | |
3303 | with_gnu_ld=no | |
5464f5a1 | 3304 | fi; |
252b5132 | 3305 | ac_prog=ld |
55c80943 | 3306 | if test "$GCC" = yes; then |
252b5132 | 3307 | # Check if gcc -print-prog-name=ld gives a path. |
5464f5a1 NN |
3308 | echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
3309 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6 | |
ac48eca1 AO |
3310 | case $host in |
3311 | *-*-mingw*) | |
3312 | # gcc leaves a trailing carriage return which upsets mingw | |
3313 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
3314 | *) | |
3315 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
3316 | esac | |
55c80943 | 3317 | case $ac_prog in |
b2ef150d | 3318 | # Accept absolute paths. |
a74801ba | 3319 | [\\/]* | [A-Za-z]:[\\/]*) |
b2ef150d ILT |
3320 | re_direlt='/[^/][^/]*/\.\./' |
3321 | # Canonicalize the path of ld | |
3322 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | |
3323 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
3324 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | |
3325 | done | |
3326 | test -z "$LD" && LD="$ac_prog" | |
3327 | ;; | |
252b5132 RH |
3328 | "") |
3329 | # If it fails, then pretend we aren't using GCC. | |
3330 | ac_prog=ld | |
3331 | ;; | |
3332 | *) | |
3333 | # If it is relative, then search for the first ld in PATH. | |
3334 | with_gnu_ld=unknown | |
3335 | ;; | |
3336 | esac | |
3337 | elif test "$with_gnu_ld" = yes; then | |
5464f5a1 NN |
3338 | echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3339 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
252b5132 | 3340 | else |
5464f5a1 NN |
3341 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
3342 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
252b5132 | 3343 | fi |
5464f5a1 NN |
3344 | if test "${lt_cv_path_LD+set}" = set; then |
3345 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3346 | else |
3347 | if test -z "$LD"; then | |
a74801ba | 3348 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
252b5132 RH |
3349 | for ac_dir in $PATH; do |
3350 | test -z "$ac_dir" && ac_dir=. | |
a74801ba | 3351 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
55c80943 | 3352 | lt_cv_path_LD="$ac_dir/$ac_prog" |
252b5132 RH |
3353 | # Check to see if the program is GNU ld. I'd rather use --version, |
3354 | # but apparently some GNU ld's only accept -v. | |
3355 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
55c80943 | 3356 | if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then |
252b5132 RH |
3357 | test "$with_gnu_ld" != no && break |
3358 | else | |
b2ef150d | 3359 | test "$with_gnu_ld" != yes && break |
252b5132 RH |
3360 | fi |
3361 | fi | |
3362 | done | |
3363 | IFS="$ac_save_ifs" | |
3364 | else | |
55c80943 | 3365 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
252b5132 RH |
3366 | fi |
3367 | fi | |
3368 | ||
55c80943 | 3369 | LD="$lt_cv_path_LD" |
252b5132 | 3370 | if test -n "$LD"; then |
5464f5a1 NN |
3371 | echo "$as_me:$LINENO: result: $LD" >&5 |
3372 | echo "${ECHO_T}$LD" >&6 | |
252b5132 | 3373 | else |
5464f5a1 NN |
3374 | echo "$as_me:$LINENO: result: no" >&5 |
3375 | echo "${ECHO_T}no" >&6 | |
252b5132 | 3376 | fi |
5464f5a1 NN |
3377 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
3378 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
3379 | { (exit 1); exit 1; }; } | |
3380 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
3381 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
3382 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
3383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3384 | else |
3385 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | |
3386 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | |
55c80943 | 3387 | lt_cv_prog_gnu_ld=yes |
252b5132 | 3388 | else |
55c80943 | 3389 | lt_cv_prog_gnu_ld=no |
252b5132 RH |
3390 | fi |
3391 | fi | |
5464f5a1 NN |
3392 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
3393 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
55c80943 | 3394 | with_gnu_ld=$lt_cv_prog_gnu_ld |
252b5132 | 3395 | |
6be7c12c | 3396 | |
5464f5a1 NN |
3397 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
3398 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
3399 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
3400 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3401 | else |
3402 | lt_cv_ld_reload_flag='-r' | |
3403 | fi | |
5464f5a1 NN |
3404 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
3405 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
ac48eca1 AO |
3406 | reload_flag=$lt_cv_ld_reload_flag |
3407 | test -n "$reload_flag" && reload_flag=" $reload_flag" | |
3408 | ||
5464f5a1 NN |
3409 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
3410 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | |
3411 | if test "${lt_cv_path_NM+set}" = set; then | |
3412 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3413 | else |
3414 | if test -n "$NM"; then | |
3415 | # Let the user override the test. | |
55c80943 | 3416 | lt_cv_path_NM="$NM" |
252b5132 | 3417 | else |
a74801ba | 3418 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
b2ef150d | 3419 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
252b5132 | 3420 | test -z "$ac_dir" && ac_dir=. |
ac48eca1 AO |
3421 | tmp_nm=$ac_dir/${ac_tool_prefix}nm |
3422 | if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then | |
252b5132 RH |
3423 | # Check to see if the nm accepts a BSD-compat flag. |
3424 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
3425 | # nm: unknown option "B" ignored | |
90f2472a AO |
3426 | # Tru64's nm complains that /dev/null is an invalid object file |
3427 | if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then | |
55c80943 | 3428 | lt_cv_path_NM="$tmp_nm -B" |
b2ef150d | 3429 | break |
ac48eca1 | 3430 | elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then |
55c80943 | 3431 | lt_cv_path_NM="$tmp_nm -p" |
b2ef150d | 3432 | break |
252b5132 | 3433 | else |
55c80943 | 3434 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
b2ef150d | 3435 | continue # so that we can try to find one that supports BSD flags |
252b5132 | 3436 | fi |
252b5132 RH |
3437 | fi |
3438 | done | |
3439 | IFS="$ac_save_ifs" | |
55c80943 | 3440 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
252b5132 RH |
3441 | fi |
3442 | fi | |
3443 | ||
55c80943 | 3444 | NM="$lt_cv_path_NM" |
5464f5a1 NN |
3445 | echo "$as_me:$LINENO: result: $NM" >&5 |
3446 | echo "${ECHO_T}$NM" >&6 | |
252b5132 | 3447 | |
5464f5a1 NN |
3448 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3449 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
3450 | LN_S=$as_ln_s | |
3451 | if test "$LN_S" = "ln -s"; then | |
3452 | echo "$as_me:$LINENO: result: yes" >&5 | |
3453 | echo "${ECHO_T}yes" >&6 | |
6be7c12c | 3454 | else |
5464f5a1 NN |
3455 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3456 | echo "${ECHO_T}no, using $LN_S" >&6 | |
252b5132 RH |
3457 | fi |
3458 | ||
5464f5a1 NN |
3459 | echo "$as_me:$LINENO: checking how to recognise dependant libraries" >&5 |
3460 | echo $ECHO_N "checking how to recognise dependant libraries... $ECHO_C" >&6 | |
3461 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
3462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3463 | else |
d64552c5 | 3464 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
ac48eca1 AO |
3465 | lt_cv_file_magic_test_file= |
3466 | lt_cv_deplibs_check_method='unknown' | |
3467 | # Need to set the preceding variable on all platforms that support | |
3468 | # interlibrary dependencies. | |
3469 | # 'none' -- dependencies not supported. | |
3470 | # `unknown' -- same as none, but documents that we really don't know. | |
3471 | # 'pass_all' -- all dependencies passed with no checks. | |
3472 | # 'test_compile' -- check by making test program. | |
3473 | # 'file_magic [regex]' -- check by looking for files in library path | |
3474 | # which responds to the $file_magic_cmd with a given egrep regex. | |
3475 | # If you have `file' or equivalent on your system and you're not sure | |
3476 | # whether `pass_all' will *always* work, you probably want this one. | |
3477 | ||
55c80943 NC |
3478 | case $host_os in |
3479 | aix*) | |
ac48eca1 AO |
3480 | lt_cv_deplibs_check_method=pass_all |
3481 | ;; | |
3482 | ||
3483 | beos*) | |
3484 | lt_cv_deplibs_check_method=pass_all | |
3485 | ;; | |
3486 | ||
3487 | bsdi4*) | |
55c80943 NC |
3488 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
3489 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
ac48eca1 AO |
3490 | lt_cv_file_magic_test_file=/shlib/libc.so |
3491 | ;; | |
3492 | ||
d64552c5 | 3493 | cygwin* | mingw* |pw32*) |
ac48eca1 | 3494 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
d64552c5 | 3495 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
ac48eca1 AO |
3496 | ;; |
3497 | ||
55c80943 NC |
3498 | darwin* | rhapsody*) |
3499 | lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library' | |
b3baf5d0 NC |
3500 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
3501 | case "$host_os" in | |
3502 | rhapsody* | darwin1.012) | |
3503 | lt_cv_file_magic_test_file='/System/Library/Frameworks/System.framework/System' | |
3504 | ;; | |
3505 | *) # Darwin 1.3 on | |
3506 | lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib' | |
3507 | ;; | |
3508 | esac | |
55c80943 NC |
3509 | ;; |
3510 | ||
5464f5a1 | 3511 | freebsd* | kfreebsd*-gnu) |
ac48eca1 | 3512 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
55c80943 | 3513 | case $host_cpu in |
ac48eca1 | 3514 | i*86 ) |
90f2472a AO |
3515 | # Not sure whether the presence of OpenBSD here was a mistake. |
3516 | # Let's accept both of them until this is cleared up. | |
55c80943 NC |
3517 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' |
3518 | lt_cv_file_magic_cmd=/usr/bin/file | |
ac48eca1 AO |
3519 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
3520 | ;; | |
3521 | esac | |
3522 | else | |
3523 | lt_cv_deplibs_check_method=pass_all | |
3524 | fi | |
3525 | ;; | |
3526 | ||
3527 | gnu*) | |
3528 | lt_cv_deplibs_check_method=pass_all | |
3529 | ;; | |
3530 | ||
55c80943 | 3531 | hpux10.20*|hpux11*) |
4867be41 DJ |
3532 | case $host_cpu in |
3533 | hppa*) | |
3534 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
3535 | lt_cv_file_magic_cmd=/usr/bin/file | |
3536 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
3537 | ;; | |
3538 | ia64*) | |
3539 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
3540 | lt_cv_file_magic_cmd=/usr/bin/file | |
3541 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
3542 | ;; | |
3543 | esac | |
ac48eca1 AO |
3544 | ;; |
3545 | ||
3546 | irix5* | irix6*) | |
55c80943 | 3547 | case $host_os in |
ac48eca1 AO |
3548 | irix5*) |
3549 | # this will be overridden with pass_all, but let us keep it just in case | |
3550 | lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1" | |
3551 | ;; | |
3552 | *) | |
55c80943 | 3553 | case $LD in |
ac48eca1 AO |
3554 | *-32|*"-32 ") libmagic=32-bit;; |
3555 | *-n32|*"-n32 ") libmagic=N32;; | |
3556 | *-64|*"-64 ") libmagic=64-bit;; | |
3557 | *) libmagic=never-match;; | |
3558 | esac | |
3559 | # this will be overridden with pass_all, but let us keep it just in case | |
55c80943 NC |
3560 | lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1" |
3561 | ;; | |
ac48eca1 AO |
3562 | esac |
3563 | lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*` | |
3564 | lt_cv_deplibs_check_method=pass_all | |
3565 | ;; | |
3566 | ||
3567 | # This must be Linux ELF. | |
90f2472a | 3568 | linux-gnu*) |
55c80943 | 3569 | case $host_cpu in |
c5d1701e | 3570 | alpha* | mips* | hppa* | i*86 | powerpc* | sparc* | ia64* ) |
ac48eca1 AO |
3571 | lt_cv_deplibs_check_method=pass_all ;; |
3572 | *) | |
3573 | # glibc up to 2.1.1 does not perform some relocations on ARM | |
55c80943 NC |
3574 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; |
3575 | esac | |
ac48eca1 AO |
3576 | lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` |
3577 | ;; | |
3578 | ||
5464f5a1 | 3579 | netbsd* | knetbsd*-gnu) |
55c80943 | 3580 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
b3baf5d0 | 3581 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$' |
ac48eca1 | 3582 | else |
b3baf5d0 | 3583 | lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$' |
ac48eca1 | 3584 | fi |
55c80943 NC |
3585 | ;; |
3586 | ||
3587 | newsos6) | |
3588 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
3589 | lt_cv_file_magic_cmd=/usr/bin/file | |
3590 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
ac48eca1 AO |
3591 | ;; |
3592 | ||
3593 | osf3* | osf4* | osf5*) | |
3594 | # this will be overridden with pass_all, but let us keep it just in case | |
3595 | lt_cv_deplibs_check_method='file_magic COFF format alpha shared library' | |
3596 | lt_cv_file_magic_test_file=/shlib/libc.so | |
3597 | lt_cv_deplibs_check_method=pass_all | |
3598 | ;; | |
3599 | ||
3600 | sco3.2v5*) | |
3601 | lt_cv_deplibs_check_method=pass_all | |
3602 | ;; | |
3603 | ||
3604 | solaris*) | |
3605 | lt_cv_deplibs_check_method=pass_all | |
3606 | lt_cv_file_magic_test_file=/lib/libc.so | |
3607 | ;; | |
3608 | ||
6be7c12c AO |
3609 | sysv5uw[78]* | sysv4*uw2*) |
3610 | lt_cv_deplibs_check_method=pass_all | |
3611 | ;; | |
3612 | ||
ac48eca1 | 3613 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
55c80943 | 3614 | case $host_vendor in |
ac48eca1 AO |
3615 | ncr) |
3616 | lt_cv_deplibs_check_method=pass_all | |
3617 | ;; | |
3618 | motorola) | |
55c80943 NC |
3619 | 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]' |
3620 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
ac48eca1 AO |
3621 | ;; |
3622 | esac | |
3623 | ;; | |
3624 | esac | |
3625 | ||
3626 | fi | |
5464f5a1 NN |
3627 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
3628 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
ac48eca1 AO |
3629 | file_magic_cmd=$lt_cv_file_magic_cmd |
3630 | deplibs_check_method=$lt_cv_deplibs_check_method | |
3631 | ||
6be7c12c AO |
3632 | |
3633 | ||
6be7c12c AO |
3634 | |
3635 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
3636 | ||
3637 | # Only perform the check for file, if the check method requires it | |
3638 | case $deplibs_check_method in | |
3639 | file_magic*) | |
3640 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
5464f5a1 NN |
3641 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
3642 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
3643 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3644 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c AO |
3645 | else |
3646 | case $MAGIC_CMD in | |
3647 | /*) | |
3648 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
3649 | ;; | |
3650 | ?:/*) | |
3651 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. | |
3652 | ;; | |
3653 | *) | |
d64552c5 | 3654 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
3655 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3656 | ac_dummy="/usr/bin:$PATH" | |
3657 | for ac_dir in $ac_dummy; do | |
3658 | test -z "$ac_dir" && ac_dir=. | |
3659 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
d64552c5 | 3660 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
ac48eca1 | 3661 | if test -n "$file_magic_test_file"; then |
55c80943 | 3662 | case $deplibs_check_method in |
ac48eca1 AO |
3663 | "file_magic "*) |
3664 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 3665 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
3666 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3667 | egrep "$file_magic_regex" > /dev/null; then | |
3668 | : | |
3669 | else | |
3670 | cat <<EOF 1>&2 | |
3671 | ||
3672 | *** Warning: the command libtool uses to detect shared libraries, | |
3673 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3674 | *** The result is that libtool may fail to recognize shared libraries | |
3675 | *** as such. This will affect the creation of libtool libraries that | |
3676 | *** depend on shared libraries, but programs linked with such libtool | |
3677 | *** libraries will work regardless of this problem. Nevertheless, you | |
3678 | *** may want to report the problem to your system manager and/or to | |
3679 | *** [email protected] | |
3680 | ||
3681 | EOF | |
3682 | fi ;; | |
3683 | esac | |
3684 | fi | |
3685 | break | |
3686 | fi | |
3687 | done | |
3688 | IFS="$ac_save_ifs" | |
d64552c5 | 3689 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
3690 | ;; |
3691 | esac | |
3692 | fi | |
3693 | ||
d64552c5 AO |
3694 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3695 | if test -n "$MAGIC_CMD"; then | |
5464f5a1 NN |
3696 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
3697 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
ac48eca1 | 3698 | else |
5464f5a1 NN |
3699 | echo "$as_me:$LINENO: result: no" >&5 |
3700 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3701 | fi |
3702 | ||
d64552c5 | 3703 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
ac48eca1 | 3704 | if test -n "$ac_tool_prefix"; then |
5464f5a1 NN |
3705 | echo "$as_me:$LINENO: checking for file" >&5 |
3706 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
3707 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
3708 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 3709 | else |
55c80943 | 3710 | case $MAGIC_CMD in |
ac48eca1 | 3711 | /*) |
d64552c5 | 3712 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
ac48eca1 AO |
3713 | ;; |
3714 | ?:/*) | |
d64552c5 | 3715 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path. |
ac48eca1 AO |
3716 | ;; |
3717 | *) | |
d64552c5 | 3718 | ac_save_MAGIC_CMD="$MAGIC_CMD" |
ac48eca1 AO |
3719 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" |
3720 | ac_dummy="/usr/bin:$PATH" | |
3721 | for ac_dir in $ac_dummy; do | |
3722 | test -z "$ac_dir" && ac_dir=. | |
3723 | if test -f $ac_dir/file; then | |
d64552c5 | 3724 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
ac48eca1 | 3725 | if test -n "$file_magic_test_file"; then |
55c80943 | 3726 | case $deplibs_check_method in |
ac48eca1 AO |
3727 | "file_magic "*) |
3728 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | |
d64552c5 | 3729 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
ac48eca1 AO |
3730 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
3731 | egrep "$file_magic_regex" > /dev/null; then | |
3732 | : | |
3733 | else | |
3734 | cat <<EOF 1>&2 | |
3735 | ||
3736 | *** Warning: the command libtool uses to detect shared libraries, | |
3737 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
3738 | *** The result is that libtool may fail to recognize shared libraries | |
3739 | *** as such. This will affect the creation of libtool libraries that | |
3740 | *** depend on shared libraries, but programs linked with such libtool | |
3741 | *** libraries will work regardless of this problem. Nevertheless, you | |
3742 | *** may want to report the problem to your system manager and/or to | |
3743 | *** [email protected] | |
3744 | ||
3745 | EOF | |
3746 | fi ;; | |
3747 | esac | |
3748 | fi | |
3749 | break | |
3750 | fi | |
3751 | done | |
3752 | IFS="$ac_save_ifs" | |
d64552c5 | 3753 | MAGIC_CMD="$ac_save_MAGIC_CMD" |
ac48eca1 AO |
3754 | ;; |
3755 | esac | |
3756 | fi | |
3757 | ||
d64552c5 AO |
3758 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
3759 | if test -n "$MAGIC_CMD"; then | |
5464f5a1 NN |
3760 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
3761 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
ac48eca1 | 3762 | else |
5464f5a1 NN |
3763 | echo "$as_me:$LINENO: result: no" >&5 |
3764 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3765 | fi |
3766 | ||
3767 | else | |
d64552c5 | 3768 | MAGIC_CMD=: |
ac48eca1 AO |
3769 | fi |
3770 | fi | |
3771 | ||
3772 | fi | |
3773 | ;; | |
3774 | esac | |
3775 | ||
5464f5a1 NN |
3776 | if test -n "$ac_tool_prefix"; then |
3777 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
ac48eca1 | 3778 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5464f5a1 NN |
3779 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3780 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3781 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3783 | else |
3784 | if test -n "$RANLIB"; then | |
3785 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3786 | else | |
5464f5a1 NN |
3787 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3788 | for as_dir in $PATH | |
3789 | do | |
3790 | IFS=$as_save_IFS | |
3791 | test -z "$as_dir" && as_dir=. | |
3792 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3793 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3794 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3795 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3796 | break 2 | |
3797 | fi | |
3798 | done | |
3799 | done | |
3800 | ||
ac48eca1 AO |
3801 | fi |
3802 | fi | |
5464f5a1 | 3803 | RANLIB=$ac_cv_prog_RANLIB |
ac48eca1 | 3804 | if test -n "$RANLIB"; then |
5464f5a1 NN |
3805 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3806 | echo "${ECHO_T}$RANLIB" >&6 | |
ac48eca1 | 3807 | else |
5464f5a1 NN |
3808 | echo "$as_me:$LINENO: result: no" >&5 |
3809 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3810 | fi |
3811 | ||
5464f5a1 | 3812 | fi |
ac48eca1 | 3813 | if test -z "$ac_cv_prog_RANLIB"; then |
5464f5a1 | 3814 | ac_ct_RANLIB=$RANLIB |
ac48eca1 AO |
3815 | # Extract the first word of "ranlib", so it can be a program name with args. |
3816 | set dummy ranlib; ac_word=$2 | |
5464f5a1 NN |
3817 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3818 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3819 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3820 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 3821 | else |
5464f5a1 NN |
3822 | if test -n "$ac_ct_RANLIB"; then |
3823 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6be7c12c | 3824 | else |
5464f5a1 NN |
3825 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3826 | for as_dir in $PATH | |
3827 | do | |
3828 | IFS=$as_save_IFS | |
3829 | test -z "$as_dir" && as_dir=. | |
3830 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3831 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3832 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3833 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3834 | break 2 | |
3835 | fi | |
3836 | done | |
3837 | done | |
3838 | ||
3839 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
ac48eca1 AO |
3840 | fi |
3841 | fi | |
5464f5a1 NN |
3842 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3843 | if test -n "$ac_ct_RANLIB"; then | |
3844 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3845 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
ac48eca1 | 3846 | else |
5464f5a1 NN |
3847 | echo "$as_me:$LINENO: result: no" >&5 |
3848 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3849 | fi |
3850 | ||
5464f5a1 | 3851 | RANLIB=$ac_ct_RANLIB |
ac48eca1 | 3852 | else |
5464f5a1 | 3853 | RANLIB="$ac_cv_prog_RANLIB" |
ac48eca1 AO |
3854 | fi |
3855 | ||
5464f5a1 NN |
3856 | if test -n "$ac_tool_prefix"; then |
3857 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
ac48eca1 | 3858 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
5464f5a1 NN |
3859 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3860 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3861 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
3862 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 AO |
3863 | else |
3864 | if test -n "$STRIP"; then | |
3865 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3866 | else | |
5464f5a1 NN |
3867 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3868 | for as_dir in $PATH | |
3869 | do | |
3870 | IFS=$as_save_IFS | |
3871 | test -z "$as_dir" && as_dir=. | |
3872 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3873 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3874 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3875 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3876 | break 2 | |
3877 | fi | |
3878 | done | |
3879 | done | |
3880 | ||
ac48eca1 AO |
3881 | fi |
3882 | fi | |
5464f5a1 | 3883 | STRIP=$ac_cv_prog_STRIP |
ac48eca1 | 3884 | if test -n "$STRIP"; then |
5464f5a1 NN |
3885 | echo "$as_me:$LINENO: result: $STRIP" >&5 |
3886 | echo "${ECHO_T}$STRIP" >&6 | |
ac48eca1 | 3887 | else |
5464f5a1 NN |
3888 | echo "$as_me:$LINENO: result: no" >&5 |
3889 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3890 | fi |
3891 | ||
5464f5a1 | 3892 | fi |
ac48eca1 | 3893 | if test -z "$ac_cv_prog_STRIP"; then |
5464f5a1 | 3894 | ac_ct_STRIP=$STRIP |
ac48eca1 AO |
3895 | # Extract the first word of "strip", so it can be a program name with args. |
3896 | set dummy strip; ac_word=$2 | |
5464f5a1 NN |
3897 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3898 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3899 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
3900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 3901 | else |
5464f5a1 NN |
3902 | if test -n "$ac_ct_STRIP"; then |
3903 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6be7c12c | 3904 | else |
5464f5a1 NN |
3905 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3906 | for as_dir in $PATH | |
3907 | do | |
3908 | IFS=$as_save_IFS | |
3909 | test -z "$as_dir" && as_dir=. | |
3910 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3911 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3912 | ac_cv_prog_ac_ct_STRIP="strip" | |
3913 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3914 | break 2 | |
3915 | fi | |
3916 | done | |
3917 | done | |
3918 | ||
3919 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
ac48eca1 AO |
3920 | fi |
3921 | fi | |
5464f5a1 NN |
3922 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
3923 | if test -n "$ac_ct_STRIP"; then | |
3924 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
3925 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
ac48eca1 | 3926 | else |
5464f5a1 NN |
3927 | echo "$as_me:$LINENO: result: no" >&5 |
3928 | echo "${ECHO_T}no" >&6 | |
ac48eca1 AO |
3929 | fi |
3930 | ||
5464f5a1 | 3931 | STRIP=$ac_ct_STRIP |
ac48eca1 | 3932 | else |
5464f5a1 | 3933 | STRIP="$ac_cv_prog_STRIP" |
ac48eca1 | 3934 | fi |
252b5132 | 3935 | |
6be7c12c | 3936 | |
252b5132 | 3937 | # Check for any special flags to pass to ltconfig. |
b2ef150d | 3938 | libtool_flags="--cache-file=$cache_file" |
252b5132 RH |
3939 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" |
3940 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | |
b2ef150d | 3941 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" |
55c80943 NC |
3942 | test "$GCC" = yes && libtool_flags="$libtool_flags --with-gcc" |
3943 | test "$lt_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | |
252b5132 | 3944 | |
6be7c12c | 3945 | |
a74801ba ILT |
3946 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
3947 | if test "${enable_libtool_lock+set}" = set; then | |
3948 | enableval="$enable_libtool_lock" | |
a74801ba | 3949 | |
5464f5a1 | 3950 | fi; |
a74801ba ILT |
3951 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" |
3952 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | |
3953 | ||
5464f5a1 | 3954 | |
ac48eca1 AO |
3955 | # Check whether --with-pic or --without-pic was given. |
3956 | if test "${with_pic+set}" = set; then | |
3957 | withval="$with_pic" | |
3958 | pic_mode="$withval" | |
3959 | else | |
5464f5a1 NN |
3960 | pic_mode=default |
3961 | fi; | |
ac48eca1 AO |
3962 | test x"$pic_mode" = xyes && libtool_flags="$libtool_flags --prefer-pic" |
3963 | test x"$pic_mode" = xno && libtool_flags="$libtool_flags --prefer-non-pic" | |
3964 | ||
252b5132 RH |
3965 | # Some flags need to be propagated to the compiler or linker for good |
3966 | # libtool support. | |
55c80943 | 3967 | case $host in |
252b5132 RH |
3968 | *-*-irix6*) |
3969 | # Find out which ABI we are using. | |
eac338cf | 3970 | echo '#line 3970 "configure"' > conftest.$ac_ext |
5464f5a1 NN |
3971 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
3972 | (eval $ac_compile) 2>&5 | |
3973 | ac_status=$? | |
3974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3975 | (exit $ac_status); }; then | |
6a457e5c NC |
3976 | if test "$lt_cv_prog_gnu_ld" = yes; then |
3977 | case `/usr/bin/file conftest.$ac_objext` in | |
3978 | *32-bit*) | |
3979 | LD="${LD-ld} -melf32bsmip" | |
3980 | ;; | |
3981 | *N32*) | |
3982 | LD="${LD-ld} -melf32bmipn32" | |
3983 | ;; | |
3984 | *64-bit*) | |
3985 | LD="${LD-ld} -melf64bmip" | |
3986 | ;; | |
3987 | esac | |
3988 | else | |
55c80943 | 3989 | case `/usr/bin/file conftest.$ac_objext` in |
252b5132 RH |
3990 | *32-bit*) |
3991 | LD="${LD-ld} -32" | |
3992 | ;; | |
3993 | *N32*) | |
3994 | LD="${LD-ld} -n32" | |
3995 | ;; | |
3996 | *64-bit*) | |
3997 | LD="${LD-ld} -64" | |
3998 | ;; | |
3999 | esac | |
6a457e5c | 4000 | fi |
252b5132 RH |
4001 | fi |
4002 | rm -rf conftest* | |
4003 | ;; | |
4004 | ||
4867be41 DJ |
4005 | ia64-*-hpux*) |
4006 | # Find out which ABI we are using. | |
4007 | echo 'int i;' > conftest.$ac_ext | |
5464f5a1 NN |
4008 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4009 | (eval $ac_compile) 2>&5 | |
4010 | ac_status=$? | |
4011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4012 | (exit $ac_status); }; then | |
4867be41 DJ |
4013 | case "`/usr/bin/file conftest.o`" in |
4014 | *ELF-32*) | |
4015 | HPUX_IA64_MODE="32" | |
4016 | ;; | |
4017 | *ELF-64*) | |
4018 | HPUX_IA64_MODE="64" | |
4019 | ;; | |
4020 | esac | |
4021 | fi | |
4022 | rm -rf conftest* | |
4023 | ;; | |
4024 | ||
252b5132 RH |
4025 | *-*-sco3.2v5*) |
4026 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
b2ef150d | 4027 | SAVE_CFLAGS="$CFLAGS" |
252b5132 | 4028 | CFLAGS="$CFLAGS -belf" |
5464f5a1 NN |
4029 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
4030 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
4031 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
4032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b2ef150d | 4033 | else |
5464f5a1 NN |
4034 | |
4035 | ||
ac48eca1 | 4036 | ac_ext=c |
ac48eca1 | 4037 | ac_cpp='$CPP $CPPFLAGS' |
5464f5a1 NN |
4038 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4039 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4040 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 4041 | |
5464f5a1 NN |
4042 | cat >conftest.$ac_ext <<_ACEOF |
4043 | /* confdefs.h. */ | |
4044 | _ACEOF | |
4045 | cat confdefs.h >>conftest.$ac_ext | |
4046 | cat >>conftest.$ac_ext <<_ACEOF | |
4047 | /* end confdefs.h. */ | |
b2ef150d | 4048 | |
5464f5a1 NN |
4049 | int |
4050 | main () | |
4051 | { | |
b2ef150d | 4052 | |
5464f5a1 NN |
4053 | ; |
4054 | return 0; | |
4055 | } | |
4056 | _ACEOF | |
4057 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4058 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4059 | (eval $ac_link) 2>conftest.er1 | |
4060 | ac_status=$? | |
4061 | grep -v '^ *+' conftest.er1 >conftest.err | |
4062 | rm -f conftest.er1 | |
4063 | cat conftest.err >&5 | |
4064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4065 | (exit $ac_status); } && | |
eac338cf | 4066 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
4067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4068 | (eval $ac_try) 2>&5 | |
4069 | ac_status=$? | |
4070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4071 | (exit $ac_status); }; } && | |
4072 | { ac_try='test -s conftest$ac_exeext' | |
4073 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4074 | (eval $ac_try) 2>&5 | |
4075 | ac_status=$? | |
4076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4077 | (exit $ac_status); }; }; then | |
b2ef150d ILT |
4078 | lt_cv_cc_needs_belf=yes |
4079 | else | |
5464f5a1 NN |
4080 | echo "$as_me: failed program was:" >&5 |
4081 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4082 | ||
4083 | lt_cv_cc_needs_belf=no | |
b2ef150d | 4084 | fi |
5464f5a1 NN |
4085 | rm -f conftest.err conftest.$ac_objext \ |
4086 | conftest$ac_exeext conftest.$ac_ext | |
ac48eca1 | 4087 | ac_ext=c |
ac48eca1 | 4088 | ac_cpp='$CPP $CPPFLAGS' |
5464f5a1 NN |
4089 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4090 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4091 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
ac48eca1 | 4092 | |
b2ef150d | 4093 | fi |
5464f5a1 NN |
4094 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4095 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
b2ef150d ILT |
4096 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4097 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
4098 | CFLAGS="$SAVE_CFLAGS" | |
4099 | fi | |
252b5132 RH |
4100 | ;; |
4101 | ||
6be7c12c | 4102 | |
252b5132 RH |
4103 | esac |
4104 | ||
6be7c12c | 4105 | |
b2ef150d | 4106 | # Save cache, so that ltconfig can load it |
5464f5a1 | 4107 | cat >confcache <<\_ACEOF |
b2ef150d ILT |
4108 | # This file is a shell script that caches the results of configure |
4109 | # tests run on this system so they can be shared between configure | |
5464f5a1 NN |
4110 | # scripts and configure runs, see configure's option --config-cache. |
4111 | # It is not useful on other systems. If it contains results you don't | |
4112 | # want to keep, you may remove or edit it. | |
b2ef150d | 4113 | # |
5464f5a1 NN |
4114 | # config.status only pays attention to the cache file if you give it |
4115 | # the --recheck option to rerun configure. | |
b2ef150d | 4116 | # |
5464f5a1 NN |
4117 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
4118 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
4119 | # following values. | |
4120 | ||
4121 | _ACEOF | |
4122 | ||
b2ef150d ILT |
4123 | # The following way of writing the cache mishandles newlines in values, |
4124 | # but we know of no workaround that is simple, portable, and efficient. | |
4125 | # So, don't put newlines in cache variables' values. | |
4126 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
4127 | # and sets the high bit in the cache file unless we assign to the vars. | |
5464f5a1 NN |
4128 | { |
4129 | (set) 2>&1 | | |
4130 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
4131 | *ac_space=\ *) | |
4132 | # `set' does not quote correctly, so add quotes (double-quote | |
4133 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
4134 | sed -n \ | |
4135 | "s/'/'\\\\''/g; | |
4136 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
4137 | ;; | |
4138 | *) | |
4139 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
4140 | sed -n \ | |
4141 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
4142 | ;; | |
4143 | esac; | |
4144 | } | | |
4145 | sed ' | |
4146 | t clear | |
4147 | : clear | |
4148 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
4149 | t end | |
4150 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
4151 | : end' >>confcache | |
4152 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
b2ef150d | 4153 | if test -w $cache_file; then |
5464f5a1 NN |
4154 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
4155 | cat confcache >$cache_file | |
b2ef150d ILT |
4156 | else |
4157 | echo "not updating unwritable cache $cache_file" | |
4158 | fi | |
4159 | fi | |
4160 | rm -f confcache | |
4161 | ||
252b5132 | 4162 | # Actually configure libtool. ac_aux_dir is where install-sh is found. |
ac48eca1 | 4163 | AR="$AR" LTCC="$CC" CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ |
d64552c5 | 4164 | MAGIC_CMD="$MAGIC_CMD" LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ |
ac48eca1 AO |
4165 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" STRIP="$STRIP" \ |
4166 | AS="$AS" DLLTOOL="$DLLTOOL" OBJDUMP="$OBJDUMP" \ | |
4167 | objext="$OBJEXT" exeext="$EXEEXT" reload_flag="$reload_flag" \ | |
4168 | deplibs_check_method="$deplibs_check_method" file_magic_cmd="$file_magic_cmd" \ | |
252b5132 | 4169 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ |
ac48eca1 | 4170 | $libtool_flags --no-verify --build="$build" $ac_aux_dir/ltmain.sh $host \ |
5464f5a1 NN |
4171 | || { { echo "$as_me:$LINENO: error: libtool configure failed" >&5 |
4172 | echo "$as_me: error: libtool configure failed" >&2;} | |
4173 | { (exit 1); exit 1; }; } | |
252b5132 | 4174 | |
b2ef150d ILT |
4175 | # Reload cache, that may have been modified by ltconfig |
4176 | if test -r "$cache_file"; then | |
5464f5a1 NN |
4177 | # Some versions of bash will fail to source /dev/null (special |
4178 | # files actually), so we avoid doing that. | |
4179 | if test -f "$cache_file"; then | |
4180 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
4181 | echo "$as_me: loading cache $cache_file" >&6;} | |
4182 | case $cache_file in | |
4183 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
4184 | *) . ./$cache_file;; | |
4185 | esac | |
4186 | fi | |
b2ef150d | 4187 | else |
5464f5a1 NN |
4188 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
4189 | echo "$as_me: creating cache $cache_file" >&6;} | |
4190 | >$cache_file | |
b2ef150d ILT |
4191 | fi |
4192 | ||
6be7c12c | 4193 | |
b2ef150d | 4194 | # This can be used to rebuild libtool when needed |
ac48eca1 | 4195 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh $ac_aux_dir/ltcf-c.sh" |
b2ef150d ILT |
4196 | |
4197 | # Always use our own libtool. | |
4198 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
4199 | ||
252b5132 RH |
4200 | # Redirect the config.log output again, so that the ltconfig log is not |
4201 | # clobbered by the next message. | |
4202 | exec 5>>./config.log | |
4203 | ||
6be7c12c | 4204 | |
5464f5a1 NN |
4205 | |
4206 | ||
4207 | ||
4208 | ||
6be7c12c | 4209 | |
252b5132 RH |
4210 | # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. |
4211 | if test "${enable_64_bit_bfd+set}" = set; then | |
4212 | enableval="$enable_64_bit_bfd" | |
4213 | case "${enableval}" in | |
4214 | yes) want64=true ;; | |
4215 | no) want64=false ;; | |
5464f5a1 NN |
4216 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5 |
4217 | echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;} | |
4218 | { (exit 1); exit 1; }; } ;; | |
252b5132 RH |
4219 | esac |
4220 | else | |
4221 | want64=false | |
5464f5a1 | 4222 | fi; # Check whether --enable-targets or --disable-targets was given. |
252b5132 RH |
4223 | if test "${enable_targets+set}" = set; then |
4224 | enableval="$enable_targets" | |
4225 | case "${enableval}" in | |
5464f5a1 NN |
4226 | yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 |
4227 | echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} | |
4228 | { (exit 1); exit 1; }; } | |
252b5132 RH |
4229 | ;; |
4230 | no) enable_targets= ;; | |
4231 | *) enable_targets=$enableval ;; | |
4232 | esac | |
5464f5a1 | 4233 | fi; # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. |
252b5132 RH |
4234 | if test "${enable_commonbfdlib+set}" = set; then |
4235 | enableval="$enable_commonbfdlib" | |
4236 | case "${enableval}" in | |
4237 | yes) commonbfdlib=true ;; | |
4238 | no) commonbfdlib=false ;; | |
5464f5a1 NN |
4239 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5 |
4240 | echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;} | |
4241 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 4242 | esac |
5464f5a1 | 4243 | fi; |
252b5132 RH |
4244 | # Check whether --with-mmap or --without-mmap was given. |
4245 | if test "${with_mmap+set}" = set; then | |
4246 | withval="$with_mmap" | |
4247 | case "${withval}" in | |
4248 | yes) want_mmap=true ;; | |
4249 | no) want_mmap=false ;; | |
5464f5a1 NN |
4250 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5 |
4251 | echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;} | |
4252 | { (exit 1); exit 1; }; } ;; | |
252b5132 RH |
4253 | esac |
4254 | else | |
4255 | want_mmap=false | |
5464f5a1 | 4256 | fi; |
9e9b66a9 AM |
4257 | |
4258 | WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" | |
1ad12f97 | 4259 | |
569acd2c NC |
4260 | # Check whether --enable-werror or --disable-werror was given. |
4261 | if test "${enable_werror+set}" = set; then | |
4262 | enableval="$enable_werror" | |
1ad12f97 NC |
4263 | case "${enableval}" in |
4264 | yes | y) ERROR_ON_WARNING="yes" ;; | |
4265 | no | n) ERROR_ON_WARNING="no" ;; | |
569acd2c NC |
4266 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 |
4267 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
1ad12f97 NC |
4268 | { (exit 1); exit 1; }; } ;; |
4269 | esac | |
4270 | fi; | |
4271 | ||
9e9b66a9 AM |
4272 | # Enable -Werror by default when using gcc |
4273 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
4274 | ERROR_ON_WARNING=yes | |
4275 | fi | |
4276 | ||
4277 | NO_WERROR= | |
4278 | if test "${ERROR_ON_WARNING}" = yes ; then | |
4279 | WARN_CFLAGS="$WARN_CFLAGS -Werror" | |
4280 | NO_WERROR="-Wno-error" | |
1ad12f97 NC |
4281 | fi |
4282 | ||
a2d91340 AC |
4283 | # Check whether --enable-build-warnings or --disable-build-warnings was given. |
4284 | if test "${enable_build_warnings+set}" = set; then | |
4285 | enableval="$enable_build_warnings" | |
4286 | case "${enableval}" in | |
4287 | yes) ;; | |
9e9b66a9 | 4288 | no) WARN_CFLAGS="-w";; |
a2d91340 | 4289 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
9e9b66a9 | 4290 | WARN_CFLAGS="${WARN_CFLAGS} ${t}";; |
a2d91340 | 4291 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
9e9b66a9 AM |
4292 | WARN_CFLAGS="${t} ${WARN_CFLAGS}";; |
4293 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
a2d91340 | 4294 | esac |
9e9b66a9 AM |
4295 | fi; |
4296 | ||
4297 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then | |
4298 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
a2d91340 AC |
4299 | fi |
4300 | ||
4301 | ||
9e9b66a9 AM |
4302 | |
4303 | ||
4304 | ||
5464f5a1 | 4305 | ac_config_headers="$ac_config_headers config.h:config.in" |
6be7c12c | 4306 | |
252b5132 RH |
4307 | |
4308 | if test -z "$target" ; then | |
5464f5a1 NN |
4309 | { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5 |
4310 | echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;} | |
4311 | { (exit 1); exit 1; }; } | |
252b5132 | 4312 | fi |
252b5132 | 4313 | |
5464f5a1 NN |
4314 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
4315 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
252b5132 RH |
4316 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. |
4317 | if test "${enable_maintainer_mode+set}" = set; then | |
4318 | enableval="$enable_maintainer_mode" | |
4319 | USE_MAINTAINER_MODE=$enableval | |
4320 | else | |
4321 | USE_MAINTAINER_MODE=no | |
5464f5a1 NN |
4322 | fi; |
4323 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
4324 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
6be7c12c | 4325 | |
252b5132 RH |
4326 | |
4327 | if test $USE_MAINTAINER_MODE = yes; then | |
4328 | MAINTAINER_MODE_TRUE= | |
4329 | MAINTAINER_MODE_FALSE='#' | |
4330 | else | |
4331 | MAINTAINER_MODE_TRUE='#' | |
4332 | MAINTAINER_MODE_FALSE= | |
4333 | fi | |
f5385ebf | 4334 | |
252b5132 | 4335 | MAINT=$MAINTAINER_MODE_TRUE |
252b5132 | 4336 | |
5464f5a1 | 4337 | |
24443139 AS |
4338 | case ${build_alias} in |
4339 | "") build_noncanonical=${build} ;; | |
4340 | *) build_noncanonical=${build_alias} ;; | |
4341 | esac | |
4342 | ||
4343 | case ${host_alias} in | |
4344 | "") host_noncanonical=${build_noncanonical} ;; | |
4345 | *) host_noncanonical=${host_alias} ;; | |
4346 | esac | |
4347 | ||
4348 | case ${target_alias} in | |
4349 | "") target_noncanonical=${host_noncanonical} ;; | |
4350 | *) target_noncanonical=${target_alias} ;; | |
4351 | esac | |
4352 | ||
5464f5a1 NN |
4353 | echo "$as_me:$LINENO: checking whether to install libbfd" >&5 |
4354 | echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6 | |
a703a6ea AM |
4355 | # Check whether --enable-install-libbfd or --disable-install-libbfd was given. |
4356 | if test "${enable_install_libbfd+set}" = set; then | |
4357 | enableval="$enable_install_libbfd" | |
4358 | install_libbfd_p=$enableval | |
4359 | else | |
66e25bab | 4360 | if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then |
a703a6ea AM |
4361 | install_libbfd_p=yes |
4362 | else | |
4363 | install_libbfd_p=no | |
4364 | fi | |
5464f5a1 NN |
4365 | fi; |
4366 | echo "$as_me:$LINENO: result: $install_libbfd_p" >&5 | |
4367 | echo "${ECHO_T}$install_libbfd_p" >&6 | |
a703a6ea | 4368 | |
a703a6ea AM |
4369 | |
4370 | if test $install_libbfd_p = yes; then | |
4371 | INSTALL_LIBBFD_TRUE= | |
4372 | INSTALL_LIBBFD_FALSE='#' | |
4373 | else | |
4374 | INSTALL_LIBBFD_TRUE='#' | |
4375 | INSTALL_LIBBFD_FALSE= | |
4376 | fi | |
f5385ebf | 4377 | |
5464f5a1 | 4378 | # Need _noncanonical variables for this. |
24443139 AS |
4379 | |
4380 | ||
4381 | ||
4382 | ||
a703a6ea AM |
4383 | # libbfd.a is a host library containing target dependent code |
4384 | bfdlibdir='$(libdir)' | |
4385 | bfdincludedir='$(includedir)' | |
4386 | if test "${host}" != "${target}"; then | |
5464f5a1 NN |
4387 | bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib' |
4388 | bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include' | |
a703a6ea | 4389 | fi |
a703a6ea AM |
4390 | |
4391 | ||
252b5132 RH |
4392 | |
4393 | ||
5464f5a1 NN |
4394 | |
4395 | ||
4396 | host64=false | |
4397 | target64=false | |
4398 | bfd_default_target_size=32 | |
4399 | ||
4400 | # host stuff: | |
4401 | ||
4402 | ac_ext=c | |
4403 | ac_cpp='$CPP $CPPFLAGS' | |
4404 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4405 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4406 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4407 | if test -n "$ac_tool_prefix"; then | |
4408 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4409 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4410 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4411 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4412 | if test "${ac_cv_prog_CC+set}" = set; then | |
4413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 4414 | else |
5464f5a1 NN |
4415 | if test -n "$CC"; then |
4416 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 4417 | else |
5464f5a1 NN |
4418 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4419 | for as_dir in $PATH | |
4420 | do | |
4421 | IFS=$as_save_IFS | |
4422 | test -z "$as_dir" && as_dir=. | |
4423 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4424 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4425 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
4426 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4427 | break 2 | |
6be7c12c | 4428 | fi |
5464f5a1 NN |
4429 | done |
4430 | done | |
4431 | ||
252b5132 | 4432 | fi |
b3baf5d0 | 4433 | fi |
5464f5a1 NN |
4434 | CC=$ac_cv_prog_CC |
4435 | if test -n "$CC"; then | |
4436 | echo "$as_me:$LINENO: result: $CC" >&5 | |
4437 | echo "${ECHO_T}$CC" >&6 | |
4438 | else | |
4439 | echo "$as_me:$LINENO: result: no" >&5 | |
4440 | echo "${ECHO_T}no" >&6 | |
4441 | fi | |
252b5132 | 4442 | |
5464f5a1 NN |
4443 | fi |
4444 | if test -z "$ac_cv_prog_CC"; then | |
4445 | ac_ct_CC=$CC | |
4446 | # Extract the first word of "gcc", so it can be a program name with args. | |
4447 | set dummy gcc; ac_word=$2 | |
4448 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4449 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4450 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4452 | else | |
4453 | if test -n "$ac_ct_CC"; then | |
4454 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4455 | else | |
4456 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4457 | for as_dir in $PATH | |
4458 | do | |
4459 | IFS=$as_save_IFS | |
4460 | test -z "$as_dir" && as_dir=. | |
4461 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4462 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4463 | ac_cv_prog_ac_ct_CC="gcc" | |
4464 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4465 | break 2 | |
4466 | fi | |
4467 | done | |
4468 | done | |
252b5132 | 4469 | |
5464f5a1 NN |
4470 | fi |
4471 | fi | |
4472 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4473 | if test -n "$ac_ct_CC"; then | |
4474 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4475 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4476 | else | |
4477 | echo "$as_me:$LINENO: result: no" >&5 | |
4478 | echo "${ECHO_T}no" >&6 | |
4479 | fi | |
252b5132 | 4480 | |
5464f5a1 NN |
4481 | CC=$ac_ct_CC |
4482 | else | |
4483 | CC="$ac_cv_prog_CC" | |
4484 | fi | |
252b5132 | 4485 | |
5464f5a1 NN |
4486 | if test -z "$CC"; then |
4487 | if test -n "$ac_tool_prefix"; then | |
4488 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4489 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4490 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4491 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4492 | if test "${ac_cv_prog_CC+set}" = set; then | |
4493 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4494 | else | |
4495 | if test -n "$CC"; then | |
4496 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4497 | else | |
4498 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4499 | for as_dir in $PATH | |
4500 | do | |
4501 | IFS=$as_save_IFS | |
4502 | test -z "$as_dir" && as_dir=. | |
4503 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4504 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4505 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4506 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4507 | break 2 | |
4508 | fi | |
4509 | done | |
4510 | done | |
6be7c12c | 4511 | |
5464f5a1 NN |
4512 | fi |
4513 | fi | |
4514 | CC=$ac_cv_prog_CC | |
4515 | if test -n "$CC"; then | |
4516 | echo "$as_me:$LINENO: result: $CC" >&5 | |
4517 | echo "${ECHO_T}$CC" >&6 | |
4518 | else | |
4519 | echo "$as_me:$LINENO: result: no" >&5 | |
4520 | echo "${ECHO_T}no" >&6 | |
4521 | fi | |
4522 | ||
4523 | fi | |
4524 | if test -z "$ac_cv_prog_CC"; then | |
4525 | ac_ct_CC=$CC | |
4526 | # Extract the first word of "cc", so it can be a program name with args. | |
4527 | set dummy cc; ac_word=$2 | |
4528 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4529 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4530 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4531 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4532 | else | |
4533 | if test -n "$ac_ct_CC"; then | |
4534 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4535 | else | |
4536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4537 | for as_dir in $PATH | |
4538 | do | |
4539 | IFS=$as_save_IFS | |
4540 | test -z "$as_dir" && as_dir=. | |
4541 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4542 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4543 | ac_cv_prog_ac_ct_CC="cc" | |
4544 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4545 | break 2 | |
4546 | fi | |
4547 | done | |
4548 | done | |
4549 | ||
4550 | fi | |
4551 | fi | |
4552 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4553 | if test -n "$ac_ct_CC"; then | |
4554 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4555 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4556 | else | |
4557 | echo "$as_me:$LINENO: result: no" >&5 | |
4558 | echo "${ECHO_T}no" >&6 | |
4559 | fi | |
4560 | ||
4561 | CC=$ac_ct_CC | |
4562 | else | |
4563 | CC="$ac_cv_prog_CC" | |
4564 | fi | |
4565 | ||
4566 | fi | |
4567 | if test -z "$CC"; then | |
4568 | # Extract the first word of "cc", so it can be a program name with args. | |
4569 | set dummy cc; ac_word=$2 | |
4570 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4571 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4572 | if test "${ac_cv_prog_CC+set}" = set; then | |
4573 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
4574 | else |
4575 | if test -n "$CC"; then | |
4576 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4577 | else | |
5464f5a1 NN |
4578 | ac_prog_rejected=no |
4579 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4580 | for as_dir in $PATH | |
4581 | do | |
4582 | IFS=$as_save_IFS | |
4583 | test -z "$as_dir" && as_dir=. | |
4584 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4585 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4586 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4587 | ac_prog_rejected=yes | |
4588 | continue | |
4589 | fi | |
4590 | ac_cv_prog_CC="cc" | |
4591 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4592 | break 2 | |
4593 | fi | |
4594 | done | |
4595 | done | |
4596 | ||
4597 | if test $ac_prog_rejected = yes; then | |
4598 | # We found a bogon in the path, so make sure we never use it. | |
4599 | set dummy $ac_cv_prog_CC | |
4600 | shift | |
4601 | if test $# != 0; then | |
4602 | # We chose a different compiler from the bogus one. | |
4603 | # However, it has the same basename, so the bogon will be chosen | |
4604 | # first if we set CC to just the basename; use the full file name. | |
4605 | shift | |
4606 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4607 | fi | |
4608 | fi | |
4609 | fi | |
4610 | fi | |
4611 | CC=$ac_cv_prog_CC | |
4612 | if test -n "$CC"; then | |
4613 | echo "$as_me:$LINENO: result: $CC" >&5 | |
4614 | echo "${ECHO_T}$CC" >&6 | |
4615 | else | |
4616 | echo "$as_me:$LINENO: result: no" >&5 | |
4617 | echo "${ECHO_T}no" >&6 | |
4618 | fi | |
4619 | ||
4620 | fi | |
4621 | if test -z "$CC"; then | |
4622 | if test -n "$ac_tool_prefix"; then | |
4623 | for ac_prog in cl | |
4624 | do | |
4625 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4626 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4627 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4628 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4629 | if test "${ac_cv_prog_CC+set}" = set; then | |
4630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4631 | else | |
4632 | if test -n "$CC"; then | |
4633 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4634 | else | |
4635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4636 | for as_dir in $PATH | |
4637 | do | |
4638 | IFS=$as_save_IFS | |
4639 | test -z "$as_dir" && as_dir=. | |
4640 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4641 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4642 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
4643 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4644 | break 2 | |
4645 | fi | |
4646 | done | |
4647 | done | |
4648 | ||
4649 | fi | |
4650 | fi | |
4651 | CC=$ac_cv_prog_CC | |
4652 | if test -n "$CC"; then | |
4653 | echo "$as_me:$LINENO: result: $CC" >&5 | |
4654 | echo "${ECHO_T}$CC" >&6 | |
4655 | else | |
4656 | echo "$as_me:$LINENO: result: no" >&5 | |
4657 | echo "${ECHO_T}no" >&6 | |
4658 | fi | |
4659 | ||
4660 | test -n "$CC" && break | |
6be7c12c | 4661 | done |
252b5132 | 4662 | fi |
5464f5a1 NN |
4663 | if test -z "$CC"; then |
4664 | ac_ct_CC=$CC | |
4665 | for ac_prog in cl | |
4666 | do | |
4667 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4668 | set dummy $ac_prog; ac_word=$2 | |
4669 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4670 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4671 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
4672 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4673 | else | |
4674 | if test -n "$ac_ct_CC"; then | |
4675 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4676 | else | |
4677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4678 | for as_dir in $PATH | |
4679 | do | |
4680 | IFS=$as_save_IFS | |
4681 | test -z "$as_dir" && as_dir=. | |
4682 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4683 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4684 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4685 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4686 | break 2 | |
4687 | fi | |
4688 | done | |
4689 | done | |
4690 | ||
4691 | fi | |
4692 | fi | |
4693 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4694 | if test -n "$ac_ct_CC"; then | |
4695 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
4696 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
4697 | else | |
4698 | echo "$as_me:$LINENO: result: no" >&5 | |
4699 | echo "${ECHO_T}no" >&6 | |
4700 | fi | |
4701 | ||
4702 | test -n "$ac_ct_CC" && break | |
4703 | done | |
4704 | ||
4705 | CC=$ac_ct_CC | |
4706 | fi | |
4707 | ||
4708 | fi | |
4709 | ||
4710 | ||
4711 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
4712 | See \`config.log' for more details." >&5 | |
4713 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
4714 | See \`config.log' for more details." >&2;} | |
4715 | { (exit 1); exit 1; }; } | |
4716 | ||
4717 | # Provide some information about the compiler. | |
4718 | echo "$as_me:$LINENO:" \ | |
4719 | "checking for C compiler version" >&5 | |
4720 | ac_compiler=`set X $ac_compile; echo $2` | |
4721 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
4722 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
4723 | ac_status=$? | |
4724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4725 | (exit $ac_status); } | |
4726 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
4727 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
4728 | ac_status=$? | |
4729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4730 | (exit $ac_status); } | |
4731 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
4732 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
4733 | ac_status=$? | |
4734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4735 | (exit $ac_status); } | |
4736 | ||
4737 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
4738 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
4739 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
4740 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4741 | else | |
4742 | cat >conftest.$ac_ext <<_ACEOF | |
4743 | /* confdefs.h. */ | |
4744 | _ACEOF | |
4745 | cat confdefs.h >>conftest.$ac_ext | |
4746 | cat >>conftest.$ac_ext <<_ACEOF | |
4747 | /* end confdefs.h. */ | |
4748 | ||
4749 | int | |
4750 | main () | |
4751 | { | |
4752 | #ifndef __GNUC__ | |
4753 | choke me | |
4754 | #endif | |
4755 | ||
4756 | ; | |
4757 | return 0; | |
4758 | } | |
4759 | _ACEOF | |
4760 | rm -f conftest.$ac_objext | |
4761 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4762 | (eval $ac_compile) 2>conftest.er1 | |
4763 | ac_status=$? | |
4764 | grep -v '^ *+' conftest.er1 >conftest.err | |
4765 | rm -f conftest.er1 | |
4766 | cat conftest.err >&5 | |
4767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4768 | (exit $ac_status); } && | |
eac338cf | 4769 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
4770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4771 | (eval $ac_try) 2>&5 | |
4772 | ac_status=$? | |
4773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4774 | (exit $ac_status); }; } && | |
4775 | { ac_try='test -s conftest.$ac_objext' | |
4776 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4777 | (eval $ac_try) 2>&5 | |
4778 | ac_status=$? | |
4779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4780 | (exit $ac_status); }; }; then | |
4781 | ac_compiler_gnu=yes | |
4782 | else | |
4783 | echo "$as_me: failed program was:" >&5 | |
4784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4785 | ||
4786 | ac_compiler_gnu=no | |
4787 | fi | |
4788 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4789 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4790 | ||
4791 | fi | |
4792 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
4793 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
4794 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
4795 | ac_test_CFLAGS=${CFLAGS+set} | |
4796 | ac_save_CFLAGS=$CFLAGS | |
4797 | CFLAGS="-g" | |
4798 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
4799 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
4800 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
4801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4802 | else | |
4803 | cat >conftest.$ac_ext <<_ACEOF | |
4804 | /* confdefs.h. */ | |
4805 | _ACEOF | |
4806 | cat confdefs.h >>conftest.$ac_ext | |
4807 | cat >>conftest.$ac_ext <<_ACEOF | |
4808 | /* end confdefs.h. */ | |
4809 | ||
4810 | int | |
4811 | main () | |
4812 | { | |
4813 | ||
4814 | ; | |
4815 | return 0; | |
4816 | } | |
4817 | _ACEOF | |
4818 | rm -f conftest.$ac_objext | |
4819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4820 | (eval $ac_compile) 2>conftest.er1 | |
4821 | ac_status=$? | |
4822 | grep -v '^ *+' conftest.er1 >conftest.err | |
4823 | rm -f conftest.er1 | |
4824 | cat conftest.err >&5 | |
4825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4826 | (exit $ac_status); } && | |
eac338cf | 4827 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
4828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4829 | (eval $ac_try) 2>&5 | |
4830 | ac_status=$? | |
4831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4832 | (exit $ac_status); }; } && | |
4833 | { ac_try='test -s conftest.$ac_objext' | |
4834 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4835 | (eval $ac_try) 2>&5 | |
4836 | ac_status=$? | |
4837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4838 | (exit $ac_status); }; }; then | |
4839 | ac_cv_prog_cc_g=yes | |
4840 | else | |
4841 | echo "$as_me: failed program was:" >&5 | |
4842 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4843 | ||
4844 | ac_cv_prog_cc_g=no | |
4845 | fi | |
4846 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4847 | fi | |
4848 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
4849 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
4850 | if test "$ac_test_CFLAGS" = set; then | |
4851 | CFLAGS=$ac_save_CFLAGS | |
4852 | elif test $ac_cv_prog_cc_g = yes; then | |
4853 | if test "$GCC" = yes; then | |
4854 | CFLAGS="-g -O2" | |
4855 | else | |
4856 | CFLAGS="-g" | |
4857 | fi | |
4858 | else | |
4859 | if test "$GCC" = yes; then | |
4860 | CFLAGS="-O2" | |
4861 | else | |
4862 | CFLAGS= | |
4863 | fi | |
4864 | fi | |
4865 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
4866 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
4867 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
4868 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4869 | else | |
4870 | ac_cv_prog_cc_stdc=no | |
4871 | ac_save_CC=$CC | |
4872 | cat >conftest.$ac_ext <<_ACEOF | |
4873 | /* confdefs.h. */ | |
4874 | _ACEOF | |
4875 | cat confdefs.h >>conftest.$ac_ext | |
4876 | cat >>conftest.$ac_ext <<_ACEOF | |
4877 | /* end confdefs.h. */ | |
4878 | #include <stdarg.h> | |
4879 | #include <stdio.h> | |
4880 | #include <sys/types.h> | |
4881 | #include <sys/stat.h> | |
4882 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4883 | struct buf { int x; }; | |
4884 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4885 | static char *e (p, i) | |
4886 | char **p; | |
4887 | int i; | |
4888 | { | |
4889 | return p[i]; | |
4890 | } | |
4891 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4892 | { | |
4893 | char *s; | |
4894 | va_list v; | |
4895 | va_start (v,p); | |
4896 | s = g (p, va_arg (v,int)); | |
4897 | va_end (v); | |
4898 | return s; | |
4899 | } | |
4900 | ||
4901 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4902 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4903 | These don't provoke an error unfortunately, instead are silently treated | |
4904 | as 'x'. The following induces an error, until -std1 is added to get | |
4905 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4906 | array size at least. It's necessary to write '\x00'==0 to get something | |
4907 | that's true only with -std1. */ | |
4908 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4909 | ||
4910 | int test (int i, double x); | |
4911 | struct s1 {int (*f) (int a);}; | |
4912 | struct s2 {int (*f) (double a);}; | |
4913 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4914 | int argc; | |
4915 | char **argv; | |
4916 | int | |
4917 | main () | |
4918 | { | |
4919 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4920 | ; | |
4921 | return 0; | |
4922 | } | |
4923 | _ACEOF | |
4924 | # Don't try gcc -ansi; that turns off useful extensions and | |
4925 | # breaks some systems' header files. | |
4926 | # AIX -qlanglvl=ansi | |
4927 | # Ultrix and OSF/1 -std1 | |
4928 | # HP-UX 10.20 and later -Ae | |
4929 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
4930 | # SVR4 -Xc -D__EXTENSIONS__ | |
4931 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4932 | do | |
4933 | CC="$ac_save_CC $ac_arg" | |
4934 | rm -f conftest.$ac_objext | |
4935 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4936 | (eval $ac_compile) 2>conftest.er1 | |
4937 | ac_status=$? | |
4938 | grep -v '^ *+' conftest.er1 >conftest.err | |
4939 | rm -f conftest.er1 | |
4940 | cat conftest.err >&5 | |
4941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4942 | (exit $ac_status); } && | |
eac338cf | 4943 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
4944 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4945 | (eval $ac_try) 2>&5 | |
4946 | ac_status=$? | |
4947 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4948 | (exit $ac_status); }; } && | |
4949 | { ac_try='test -s conftest.$ac_objext' | |
4950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4951 | (eval $ac_try) 2>&5 | |
4952 | ac_status=$? | |
4953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4954 | (exit $ac_status); }; }; then | |
4955 | ac_cv_prog_cc_stdc=$ac_arg | |
4956 | break | |
4957 | else | |
4958 | echo "$as_me: failed program was:" >&5 | |
4959 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4960 | ||
4961 | fi | |
4962 | rm -f conftest.err conftest.$ac_objext | |
4963 | done | |
4964 | rm -f conftest.$ac_ext conftest.$ac_objext | |
4965 | CC=$ac_save_CC | |
4966 | ||
4967 | fi | |
4968 | ||
4969 | case "x$ac_cv_prog_cc_stdc" in | |
4970 | x|xno) | |
4971 | echo "$as_me:$LINENO: result: none needed" >&5 | |
4972 | echo "${ECHO_T}none needed" >&6 ;; | |
4973 | *) | |
4974 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
4975 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
4976 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
4977 | esac | |
4978 | ||
4979 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
4980 | # in C++ we need to declare it. In case someone uses the same compiler | |
4981 | # for both compiling C and C++ we need to have the C++ compiler decide | |
4982 | # the declaration of exit, since it's the most demanding environment. | |
4983 | cat >conftest.$ac_ext <<_ACEOF | |
4984 | #ifndef __cplusplus | |
4985 | choke me | |
4986 | #endif | |
4987 | _ACEOF | |
4988 | rm -f conftest.$ac_objext | |
4989 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4990 | (eval $ac_compile) 2>conftest.er1 | |
4991 | ac_status=$? | |
4992 | grep -v '^ *+' conftest.er1 >conftest.err | |
4993 | rm -f conftest.er1 | |
4994 | cat conftest.err >&5 | |
4995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4996 | (exit $ac_status); } && | |
eac338cf | 4997 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
4998 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4999 | (eval $ac_try) 2>&5 | |
5000 | ac_status=$? | |
5001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5002 | (exit $ac_status); }; } && | |
5003 | { ac_try='test -s conftest.$ac_objext' | |
5004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5005 | (eval $ac_try) 2>&5 | |
5006 | ac_status=$? | |
5007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5008 | (exit $ac_status); }; }; then | |
5009 | for ac_declaration in \ | |
5010 | '' \ | |
5011 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
5012 | 'extern "C" void std::exit (int); using std::exit;' \ | |
5013 | 'extern "C" void exit (int) throw ();' \ | |
5014 | 'extern "C" void exit (int);' \ | |
5015 | 'void exit (int);' | |
5016 | do | |
5017 | cat >conftest.$ac_ext <<_ACEOF | |
5018 | /* confdefs.h. */ | |
5019 | _ACEOF | |
5020 | cat confdefs.h >>conftest.$ac_ext | |
5021 | cat >>conftest.$ac_ext <<_ACEOF | |
5022 | /* end confdefs.h. */ | |
5023 | $ac_declaration | |
5024 | #include <stdlib.h> | |
5025 | int | |
5026 | main () | |
5027 | { | |
5028 | exit (42); | |
5029 | ; | |
5030 | return 0; | |
5031 | } | |
5032 | _ACEOF | |
5033 | rm -f conftest.$ac_objext | |
5034 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5035 | (eval $ac_compile) 2>conftest.er1 | |
5036 | ac_status=$? | |
5037 | grep -v '^ *+' conftest.er1 >conftest.err | |
5038 | rm -f conftest.er1 | |
5039 | cat conftest.err >&5 | |
5040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5041 | (exit $ac_status); } && | |
eac338cf | 5042 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
5043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5044 | (eval $ac_try) 2>&5 | |
5045 | ac_status=$? | |
5046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5047 | (exit $ac_status); }; } && | |
5048 | { ac_try='test -s conftest.$ac_objext' | |
5049 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5050 | (eval $ac_try) 2>&5 | |
5051 | ac_status=$? | |
5052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5053 | (exit $ac_status); }; }; then | |
5054 | : | |
5055 | else | |
5056 | echo "$as_me: failed program was:" >&5 | |
5057 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5058 | ||
5059 | continue | |
5060 | fi | |
5061 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5062 | cat >conftest.$ac_ext <<_ACEOF | |
5063 | /* confdefs.h. */ | |
5064 | _ACEOF | |
5065 | cat confdefs.h >>conftest.$ac_ext | |
5066 | cat >>conftest.$ac_ext <<_ACEOF | |
5067 | /* end confdefs.h. */ | |
5068 | $ac_declaration | |
5069 | int | |
5070 | main () | |
5071 | { | |
5072 | exit (42); | |
5073 | ; | |
5074 | return 0; | |
5075 | } | |
5076 | _ACEOF | |
5077 | rm -f conftest.$ac_objext | |
5078 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5079 | (eval $ac_compile) 2>conftest.er1 | |
5080 | ac_status=$? | |
5081 | grep -v '^ *+' conftest.er1 >conftest.err | |
5082 | rm -f conftest.er1 | |
5083 | cat conftest.err >&5 | |
5084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5085 | (exit $ac_status); } && | |
eac338cf | 5086 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
5087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5088 | (eval $ac_try) 2>&5 | |
5089 | ac_status=$? | |
5090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5091 | (exit $ac_status); }; } && | |
5092 | { ac_try='test -s conftest.$ac_objext' | |
5093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5094 | (eval $ac_try) 2>&5 | |
5095 | ac_status=$? | |
5096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5097 | (exit $ac_status); }; }; then | |
5098 | break | |
5099 | else | |
5100 | echo "$as_me: failed program was:" >&5 | |
5101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5102 | ||
5103 | fi | |
5104 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5105 | done | |
5106 | rm -f conftest* | |
5107 | if test -n "$ac_declaration"; then | |
5108 | echo '#ifdef __cplusplus' >>confdefs.h | |
5109 | echo $ac_declaration >>confdefs.h | |
5110 | echo '#endif' >>confdefs.h | |
252b5132 | 5111 | fi |
5464f5a1 | 5112 | |
b3baf5d0 | 5113 | else |
5464f5a1 NN |
5114 | echo "$as_me: failed program was:" >&5 |
5115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5116 | ||
b3baf5d0 | 5117 | fi |
5464f5a1 NN |
5118 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5119 | ac_ext=c | |
5120 | ac_cpp='$CPP $CPPFLAGS' | |
5121 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5122 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5123 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b3baf5d0 | 5124 | |
5464f5a1 | 5125 | |
4a2a2686 HPN |
5126 | cat >>confdefs.h <<\_ACEOF |
5127 | #define _GNU_SOURCE 1 | |
5128 | _ACEOF | |
5129 | ||
5130 | ||
5131 | ||
429cc0ae | 5132 | ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw" |
5464f5a1 NN |
5133 | if test -n "$ac_tool_prefix"; then |
5134 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5135 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5136 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5137 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5138 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5139 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5140 | else |
5464f5a1 NN |
5141 | if test -n "$RANLIB"; then |
5142 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
252b5132 | 5143 | else |
5464f5a1 NN |
5144 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5145 | for as_dir in $PATH | |
5146 | do | |
5147 | IFS=$as_save_IFS | |
5148 | test -z "$as_dir" && as_dir=. | |
5149 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5150 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5151 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5152 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5153 | break 2 | |
252b5132 | 5154 | fi |
5464f5a1 NN |
5155 | done |
5156 | done | |
5157 | ||
252b5132 RH |
5158 | fi |
5159 | fi | |
5464f5a1 NN |
5160 | RANLIB=$ac_cv_prog_RANLIB |
5161 | if test -n "$RANLIB"; then | |
5162 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5163 | echo "${ECHO_T}$RANLIB" >&6 | |
252b5132 | 5164 | else |
5464f5a1 NN |
5165 | echo "$as_me:$LINENO: result: no" >&5 |
5166 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
5167 | fi |
5168 | ||
5464f5a1 NN |
5169 | fi |
5170 | if test -z "$ac_cv_prog_RANLIB"; then | |
5171 | ac_ct_RANLIB=$RANLIB | |
5172 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5173 | set dummy ranlib; ac_word=$2 | |
5174 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5175 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5176 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5178 | else |
5464f5a1 NN |
5179 | if test -n "$ac_ct_RANLIB"; then |
5180 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
252b5132 | 5181 | else |
5464f5a1 NN |
5182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5183 | for as_dir in $PATH | |
5184 | do | |
5185 | IFS=$as_save_IFS | |
5186 | test -z "$as_dir" && as_dir=. | |
5187 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5188 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5189 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5190 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5191 | break 2 | |
5192 | fi | |
5193 | done | |
5194 | done | |
5195 | ||
5196 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
252b5132 RH |
5197 | fi |
5198 | fi | |
5464f5a1 NN |
5199 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
5200 | if test -n "$ac_ct_RANLIB"; then | |
5201 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5202 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
252b5132 | 5203 | else |
5464f5a1 NN |
5204 | echo "$as_me:$LINENO: result: no" >&5 |
5205 | echo "${ECHO_T}no" >&6 | |
b3baf5d0 | 5206 | fi |
252b5132 | 5207 | |
5464f5a1 | 5208 | RANLIB=$ac_ct_RANLIB |
6be7c12c | 5209 | else |
5464f5a1 | 5210 | RANLIB="$ac_cv_prog_RANLIB" |
252b5132 | 5211 | fi |
5464f5a1 | 5212 | |
6be7c12c | 5213 | ac_ext=c |
6be7c12c | 5214 | ac_cpp='$CPP $CPPFLAGS' |
5464f5a1 NN |
5215 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5216 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5217 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5218 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
5219 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
5220 | # On Suns, sometimes $CPP names a directory. | |
5221 | if test -n "$CPP" && test -d "$CPP"; then | |
5222 | CPP= | |
6be7c12c | 5223 | fi |
5464f5a1 NN |
5224 | if test -z "$CPP"; then |
5225 | if test "${ac_cv_prog_CPP+set}" = set; then | |
5226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5227 | else |
5464f5a1 NN |
5228 | # Double quotes because CPP needs to be expanded |
5229 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5230 | do | |
5231 | ac_preproc_ok=false | |
5232 | for ac_c_preproc_warn_flag in '' yes | |
5233 | do | |
5234 | # Use a header file that comes with gcc, so configuring glibc | |
5235 | # with a fresh cross-compiler works. | |
5236 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5237 | # <limits.h> exists even on freestanding compilers. | |
5238 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5239 | # not just through cpp. "Syntax error" is here to catch this case. | |
5240 | cat >conftest.$ac_ext <<_ACEOF | |
5241 | /* confdefs.h. */ | |
5242 | _ACEOF | |
5243 | cat confdefs.h >>conftest.$ac_ext | |
5244 | cat >>conftest.$ac_ext <<_ACEOF | |
5245 | /* end confdefs.h. */ | |
5246 | #ifdef __STDC__ | |
5247 | # include <limits.h> | |
5248 | #else | |
5249 | # include <assert.h> | |
252b5132 | 5250 | #endif |
5464f5a1 NN |
5251 | Syntax error |
5252 | _ACEOF | |
5253 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5254 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5255 | ac_status=$? | |
5256 | grep -v '^ *+' conftest.er1 >conftest.err | |
5257 | rm -f conftest.er1 | |
5258 | cat conftest.err >&5 | |
5259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5260 | (exit $ac_status); } >/dev/null; then | |
5261 | if test -s conftest.err; then | |
5262 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5263 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5264 | else | |
5265 | ac_cpp_err= | |
5266 | fi | |
6be7c12c | 5267 | else |
5464f5a1 | 5268 | ac_cpp_err=yes |
6be7c12c | 5269 | fi |
5464f5a1 NN |
5270 | if test -z "$ac_cpp_err"; then |
5271 | : | |
6be7c12c | 5272 | else |
5464f5a1 NN |
5273 | echo "$as_me: failed program was:" >&5 |
5274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5275 | ||
5276 | # Broken: fails on valid input. | |
5277 | continue | |
5278 | fi | |
5279 | rm -f conftest.err conftest.$ac_ext | |
5280 | ||
5281 | # OK, works on sane cases. Now check whether non-existent headers | |
5282 | # can be detected and how. | |
5283 | cat >conftest.$ac_ext <<_ACEOF | |
5284 | /* confdefs.h. */ | |
5285 | _ACEOF | |
5286 | cat confdefs.h >>conftest.$ac_ext | |
5287 | cat >>conftest.$ac_ext <<_ACEOF | |
5288 | /* end confdefs.h. */ | |
5289 | #include <ac_nonexistent.h> | |
5290 | _ACEOF | |
5291 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5292 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5293 | ac_status=$? | |
5294 | grep -v '^ *+' conftest.er1 >conftest.err | |
5295 | rm -f conftest.er1 | |
5296 | cat conftest.err >&5 | |
5297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5298 | (exit $ac_status); } >/dev/null; then | |
5299 | if test -s conftest.err; then | |
5300 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5301 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5302 | else | |
5303 | ac_cpp_err= | |
5304 | fi | |
252b5132 | 5305 | else |
5464f5a1 | 5306 | ac_cpp_err=yes |
252b5132 | 5307 | fi |
5464f5a1 NN |
5308 | if test -z "$ac_cpp_err"; then |
5309 | # Broken: success on invalid input. | |
5310 | continue | |
5311 | else | |
5312 | echo "$as_me: failed program was:" >&5 | |
5313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6be7c12c | 5314 | |
5464f5a1 NN |
5315 | # Passes both tests. |
5316 | ac_preproc_ok=: | |
5317 | break | |
252b5132 | 5318 | fi |
5464f5a1 | 5319 | rm -f conftest.err conftest.$ac_ext |
6be7c12c | 5320 | |
5464f5a1 NN |
5321 | done |
5322 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5323 | rm -f conftest.err conftest.$ac_ext | |
5324 | if $ac_preproc_ok; then | |
5325 | break | |
252b5132 RH |
5326 | fi |
5327 | ||
5464f5a1 NN |
5328 | done |
5329 | ac_cv_prog_CPP=$CPP | |
252b5132 | 5330 | |
252b5132 | 5331 | fi |
5464f5a1 | 5332 | CPP=$ac_cv_prog_CPP |
6be7c12c | 5333 | else |
5464f5a1 NN |
5334 | ac_cv_prog_CPP=$CPP |
5335 | fi | |
5336 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
5337 | echo "${ECHO_T}$CPP" >&6 | |
5338 | ac_preproc_ok=false | |
5339 | for ac_c_preproc_warn_flag in '' yes | |
5340 | do | |
5341 | # Use a header file that comes with gcc, so configuring glibc | |
5342 | # with a fresh cross-compiler works. | |
5343 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5344 | # <limits.h> exists even on freestanding compilers. | |
6be7c12c | 5345 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5464f5a1 NN |
5346 | # not just through cpp. "Syntax error" is here to catch this case. |
5347 | cat >conftest.$ac_ext <<_ACEOF | |
5348 | /* confdefs.h. */ | |
5349 | _ACEOF | |
5350 | cat confdefs.h >>conftest.$ac_ext | |
5351 | cat >>conftest.$ac_ext <<_ACEOF | |
5352 | /* end confdefs.h. */ | |
5353 | #ifdef __STDC__ | |
5354 | # include <limits.h> | |
5355 | #else | |
5356 | # include <assert.h> | |
5357 | #endif | |
5358 | Syntax error | |
5359 | _ACEOF | |
5360 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5361 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5362 | ac_status=$? | |
5363 | grep -v '^ *+' conftest.er1 >conftest.err | |
5364 | rm -f conftest.er1 | |
5365 | cat conftest.err >&5 | |
5366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5367 | (exit $ac_status); } >/dev/null; then | |
5368 | if test -s conftest.err; then | |
5369 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5370 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5371 | else | |
5372 | ac_cpp_err= | |
5373 | fi | |
252b5132 | 5374 | else |
5464f5a1 NN |
5375 | ac_cpp_err=yes |
5376 | fi | |
5377 | if test -z "$ac_cpp_err"; then | |
6be7c12c | 5378 | : |
252b5132 | 5379 | else |
5464f5a1 NN |
5380 | echo "$as_me: failed program was:" >&5 |
5381 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5382 | ||
5383 | # Broken: fails on valid input. | |
5384 | continue | |
5385 | fi | |
5386 | rm -f conftest.err conftest.$ac_ext | |
5387 | ||
5388 | # OK, works on sane cases. Now check whether non-existent headers | |
5389 | # can be detected and how. | |
5390 | cat >conftest.$ac_ext <<_ACEOF | |
5391 | /* confdefs.h. */ | |
5392 | _ACEOF | |
5393 | cat confdefs.h >>conftest.$ac_ext | |
5394 | cat >>conftest.$ac_ext <<_ACEOF | |
5395 | /* end confdefs.h. */ | |
5396 | #include <ac_nonexistent.h> | |
5397 | _ACEOF | |
5398 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5399 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5400 | ac_status=$? | |
5401 | grep -v '^ *+' conftest.er1 >conftest.err | |
5402 | rm -f conftest.er1 | |
5403 | cat conftest.err >&5 | |
5404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5405 | (exit $ac_status); } >/dev/null; then | |
5406 | if test -s conftest.err; then | |
5407 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5408 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5409 | else | |
5410 | ac_cpp_err= | |
5411 | fi | |
b3baf5d0 | 5412 | else |
5464f5a1 | 5413 | ac_cpp_err=yes |
6be7c12c | 5414 | fi |
5464f5a1 NN |
5415 | if test -z "$ac_cpp_err"; then |
5416 | # Broken: success on invalid input. | |
5417 | continue | |
ac48eca1 | 5418 | else |
5464f5a1 NN |
5419 | echo "$as_me: failed program was:" >&5 |
5420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5421 | ||
5422 | # Passes both tests. | |
5423 | ac_preproc_ok=: | |
5424 | break | |
b3baf5d0 | 5425 | fi |
5464f5a1 | 5426 | rm -f conftest.err conftest.$ac_ext |
6be7c12c | 5427 | |
5464f5a1 NN |
5428 | done |
5429 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5430 | rm -f conftest.err conftest.$ac_ext | |
5431 | if $ac_preproc_ok; then | |
5432 | : | |
6be7c12c | 5433 | else |
5464f5a1 NN |
5434 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
5435 | See \`config.log' for more details." >&5 | |
5436 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
5437 | See \`config.log' for more details." >&2;} | |
5438 | { (exit 1); exit 1; }; } | |
ac48eca1 | 5439 | fi |
5464f5a1 NN |
5440 | |
5441 | ac_ext=c | |
5442 | ac_cpp='$CPP $CPPFLAGS' | |
5443 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5444 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5445 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5446 | ||
5447 | ||
5448 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
5449 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
5450 | if test "${ac_cv_prog_egrep+set}" = set; then | |
5451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ac48eca1 | 5452 | else |
5464f5a1 NN |
5453 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 |
5454 | then ac_cv_prog_egrep='grep -E' | |
5455 | else ac_cv_prog_egrep='egrep' | |
5456 | fi | |
b3baf5d0 | 5457 | fi |
5464f5a1 NN |
5458 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
5459 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
5460 | EGREP=$ac_cv_prog_egrep | |
5461 | ||
ac48eca1 | 5462 | |
5464f5a1 NN |
5463 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
5464 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
5465 | if test "${ac_cv_header_stdc+set}" = set; then | |
5466 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5467 | else |
5464f5a1 NN |
5468 | cat >conftest.$ac_ext <<_ACEOF |
5469 | /* confdefs.h. */ | |
5470 | _ACEOF | |
5471 | cat confdefs.h >>conftest.$ac_ext | |
5472 | cat >>conftest.$ac_ext <<_ACEOF | |
5473 | /* end confdefs.h. */ | |
252b5132 RH |
5474 | #include <stdlib.h> |
5475 | #include <stdarg.h> | |
5476 | #include <string.h> | |
5477 | #include <float.h> | |
5464f5a1 NN |
5478 | |
5479 | int | |
5480 | main () | |
5481 | { | |
5482 | ||
5483 | ; | |
5484 | return 0; | |
5485 | } | |
5486 | _ACEOF | |
5487 | rm -f conftest.$ac_objext | |
5488 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5489 | (eval $ac_compile) 2>conftest.er1 | |
5490 | ac_status=$? | |
5491 | grep -v '^ *+' conftest.er1 >conftest.err | |
5492 | rm -f conftest.er1 | |
5493 | cat conftest.err >&5 | |
5494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5495 | (exit $ac_status); } && | |
eac338cf | 5496 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
5497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5498 | (eval $ac_try) 2>&5 | |
5499 | ac_status=$? | |
5500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5501 | (exit $ac_status); }; } && | |
5502 | { ac_try='test -s conftest.$ac_objext' | |
5503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5504 | (eval $ac_try) 2>&5 | |
5505 | ac_status=$? | |
5506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5507 | (exit $ac_status); }; }; then | |
252b5132 RH |
5508 | ac_cv_header_stdc=yes |
5509 | else | |
5464f5a1 NN |
5510 | echo "$as_me: failed program was:" >&5 |
5511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5512 | ||
5513 | ac_cv_header_stdc=no | |
252b5132 | 5514 | fi |
5464f5a1 | 5515 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
5516 | |
5517 | if test $ac_cv_header_stdc = yes; then | |
5518 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5464f5a1 NN |
5519 | cat >conftest.$ac_ext <<_ACEOF |
5520 | /* confdefs.h. */ | |
5521 | _ACEOF | |
5522 | cat confdefs.h >>conftest.$ac_ext | |
5523 | cat >>conftest.$ac_ext <<_ACEOF | |
5524 | /* end confdefs.h. */ | |
252b5132 | 5525 | #include <string.h> |
5464f5a1 NN |
5526 | |
5527 | _ACEOF | |
252b5132 | 5528 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5464f5a1 | 5529 | $EGREP "memchr" >/dev/null 2>&1; then |
252b5132 RH |
5530 | : |
5531 | else | |
252b5132 RH |
5532 | ac_cv_header_stdc=no |
5533 | fi | |
5534 | rm -f conftest* | |
5535 | ||
5536 | fi | |
5537 | ||
5538 | if test $ac_cv_header_stdc = yes; then | |
5539 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5464f5a1 NN |
5540 | cat >conftest.$ac_ext <<_ACEOF |
5541 | /* confdefs.h. */ | |
5542 | _ACEOF | |
5543 | cat confdefs.h >>conftest.$ac_ext | |
5544 | cat >>conftest.$ac_ext <<_ACEOF | |
5545 | /* end confdefs.h. */ | |
252b5132 | 5546 | #include <stdlib.h> |
5464f5a1 NN |
5547 | |
5548 | _ACEOF | |
252b5132 | 5549 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5464f5a1 | 5550 | $EGREP "free" >/dev/null 2>&1; then |
252b5132 RH |
5551 | : |
5552 | else | |
252b5132 RH |
5553 | ac_cv_header_stdc=no |
5554 | fi | |
5555 | rm -f conftest* | |
5556 | ||
5557 | fi | |
5558 | ||
5559 | if test $ac_cv_header_stdc = yes; then | |
5560 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5464f5a1 | 5561 | if test "$cross_compiling" = yes; then |
252b5132 RH |
5562 | : |
5563 | else | |
5464f5a1 NN |
5564 | cat >conftest.$ac_ext <<_ACEOF |
5565 | /* confdefs.h. */ | |
5566 | _ACEOF | |
5567 | cat confdefs.h >>conftest.$ac_ext | |
5568 | cat >>conftest.$ac_ext <<_ACEOF | |
5569 | /* end confdefs.h. */ | |
252b5132 | 5570 | #include <ctype.h> |
5464f5a1 NN |
5571 | #if ((' ' & 0x0FF) == 0x020) |
5572 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5573 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5574 | #else | |
5575 | # define ISLOWER(c) \ | |
5576 | (('a' <= (c) && (c) <= 'i') \ | |
5577 | || ('j' <= (c) && (c) <= 'r') \ | |
5578 | || ('s' <= (c) && (c) <= 'z')) | |
5579 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5580 | #endif | |
6be7c12c | 5581 | |
5464f5a1 NN |
5582 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
5583 | int | |
5584 | main () | |
5585 | { | |
5586 | int i; | |
5587 | for (i = 0; i < 256; i++) | |
5588 | if (XOR (islower (i), ISLOWER (i)) | |
5589 | || toupper (i) != TOUPPER (i)) | |
5590 | exit(2); | |
5591 | exit (0); | |
5592 | } | |
5593 | _ACEOF | |
5594 | rm -f conftest$ac_exeext | |
5595 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5596 | (eval $ac_link) 2>&5 | |
5597 | ac_status=$? | |
5598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5599 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
5600 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5601 | (eval $ac_try) 2>&5 | |
5602 | ac_status=$? | |
5603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5604 | (exit $ac_status); }; }; then | |
252b5132 RH |
5605 | : |
5606 | else | |
5464f5a1 NN |
5607 | echo "$as_me: program exited with status $ac_status" >&5 |
5608 | echo "$as_me: failed program was:" >&5 | |
5609 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5610 | ||
5611 | ( exit $ac_status ) | |
5612 | ac_cv_header_stdc=no | |
252b5132 | 5613 | fi |
5464f5a1 | 5614 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 5615 | fi |
252b5132 RH |
5616 | fi |
5617 | fi | |
5464f5a1 NN |
5618 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5619 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
6be7c12c | 5620 | if test $ac_cv_header_stdc = yes; then |
5464f5a1 NN |
5621 | |
5622 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 5623 | #define STDC_HEADERS 1 |
5464f5a1 | 5624 | _ACEOF |
252b5132 RH |
5625 | |
5626 | fi | |
5627 | ||
5464f5a1 NN |
5628 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
5629 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
5630 | if test "${ac_cv_c_const+set}" = set; then | |
5631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5632 | else |
5464f5a1 NN |
5633 | cat >conftest.$ac_ext <<_ACEOF |
5634 | /* confdefs.h. */ | |
5635 | _ACEOF | |
5636 | cat confdefs.h >>conftest.$ac_ext | |
5637 | cat >>conftest.$ac_ext <<_ACEOF | |
5638 | /* end confdefs.h. */ | |
6be7c12c | 5639 | |
5464f5a1 NN |
5640 | int |
5641 | main () | |
5642 | { | |
5643 | /* FIXME: Include the comments suggested by Paul. */ | |
5644 | #ifndef __cplusplus | |
5645 | /* Ultrix mips cc rejects this. */ | |
5646 | typedef int charset[2]; | |
5647 | const charset x; | |
5648 | /* SunOS 4.1.1 cc rejects this. */ | |
5649 | char const *const *ccp; | |
5650 | char **p; | |
5651 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
5652 | struct point {int x, y;}; | |
5653 | static struct point const zero = {0,0}; | |
5654 | /* AIX XL C 1.02.0.0 rejects this. | |
5655 | It does not let you subtract one const X* pointer from another in | |
5656 | an arm of an if-expression whose if-part is not a constant | |
5657 | expression */ | |
5658 | const char *g = "string"; | |
5659 | ccp = &g + (g ? g-g : 0); | |
5660 | /* HPUX 7.0 cc rejects these. */ | |
5661 | ++ccp; | |
5662 | p = (char**) ccp; | |
5663 | ccp = (char const *const *) p; | |
5664 | { /* SCO 3.2v4 cc rejects this. */ | |
5665 | char *t; | |
5666 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
5667 | ||
5668 | *t++ = 0; | |
5669 | } | |
5670 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
5671 | int x[] = {25, 17}; | |
5672 | const int *foo = &x[0]; | |
5673 | ++foo; | |
5674 | } | |
5675 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
5676 | typedef const int *iptr; | |
5677 | iptr p = 0; | |
5678 | ++p; | |
5679 | } | |
5680 | { /* AIX XL C 1.02.0.0 rejects this saying | |
5681 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
5682 | struct s { int j; const int *ap[3]; }; | |
5683 | struct s *b; b->j = 5; | |
5684 | } | |
5685 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
5686 | const int foo = 10; | |
5687 | } | |
5688 | #endif | |
6be7c12c | 5689 | |
5464f5a1 NN |
5690 | ; |
5691 | return 0; | |
5692 | } | |
5693 | _ACEOF | |
5694 | rm -f conftest.$ac_objext | |
5695 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5696 | (eval $ac_compile) 2>conftest.er1 | |
5697 | ac_status=$? | |
5698 | grep -v '^ *+' conftest.er1 >conftest.err | |
5699 | rm -f conftest.er1 | |
5700 | cat conftest.err >&5 | |
5701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5702 | (exit $ac_status); } && | |
eac338cf | 5703 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
5704 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5705 | (eval $ac_try) 2>&5 | |
5706 | ac_status=$? | |
5707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5708 | (exit $ac_status); }; } && | |
5709 | { ac_try='test -s conftest.$ac_objext' | |
5710 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5711 | (eval $ac_try) 2>&5 | |
5712 | ac_status=$? | |
5713 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5714 | (exit $ac_status); }; }; then | |
252b5132 RH |
5715 | ac_cv_c_const=yes |
5716 | else | |
5464f5a1 NN |
5717 | echo "$as_me: failed program was:" >&5 |
5718 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5719 | ||
5720 | ac_cv_c_const=no | |
252b5132 | 5721 | fi |
5464f5a1 | 5722 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 5723 | fi |
5464f5a1 NN |
5724 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
5725 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
6be7c12c | 5726 | if test $ac_cv_c_const = no; then |
5464f5a1 NN |
5727 | |
5728 | cat >>confdefs.h <<\_ACEOF | |
5729 | #define const | |
5730 | _ACEOF | |
252b5132 RH |
5731 | |
5732 | fi | |
5733 | ||
5464f5a1 NN |
5734 | echo "$as_me:$LINENO: checking for inline" >&5 |
5735 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
5736 | if test "${ac_cv_c_inline+set}" = set; then | |
5737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
5738 | else |
5739 | ac_cv_c_inline=no | |
5740 | for ac_kw in inline __inline__ __inline; do | |
5464f5a1 NN |
5741 | cat >conftest.$ac_ext <<_ACEOF |
5742 | /* confdefs.h. */ | |
5743 | _ACEOF | |
5744 | cat confdefs.h >>conftest.$ac_ext | |
5745 | cat >>conftest.$ac_ext <<_ACEOF | |
5746 | /* end confdefs.h. */ | |
5747 | #ifndef __cplusplus | |
5748 | typedef int foo_t; | |
5749 | static $ac_kw foo_t static_foo () {return 0; } | |
5750 | $ac_kw foo_t foo () {return 0; } | |
5751 | #endif | |
252b5132 | 5752 | |
5464f5a1 NN |
5753 | _ACEOF |
5754 | rm -f conftest.$ac_objext | |
5755 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5756 | (eval $ac_compile) 2>conftest.er1 | |
5757 | ac_status=$? | |
5758 | grep -v '^ *+' conftest.er1 >conftest.err | |
5759 | rm -f conftest.er1 | |
5760 | cat conftest.err >&5 | |
5761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5762 | (exit $ac_status); } && | |
eac338cf | 5763 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
5764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5765 | (eval $ac_try) 2>&5 | |
5766 | ac_status=$? | |
5767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5768 | (exit $ac_status); }; } && | |
5769 | { ac_try='test -s conftest.$ac_objext' | |
5770 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5771 | (eval $ac_try) 2>&5 | |
5772 | ac_status=$? | |
5773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5774 | (exit $ac_status); }; }; then | |
252b5132 RH |
5775 | ac_cv_c_inline=$ac_kw; break |
5776 | else | |
5464f5a1 NN |
5777 | echo "$as_me: failed program was:" >&5 |
5778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5779 | ||
252b5132 | 5780 | fi |
5464f5a1 | 5781 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
5782 | done |
5783 | ||
5464f5a1 NN |
5784 | fi |
5785 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | |
5786 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
5787 | ||
5788 | ||
5789 | case $ac_cv_c_inline in | |
5790 | inline | yes) ;; | |
5791 | *) | |
5792 | case $ac_cv_c_inline in | |
5793 | no) ac_val=;; | |
5794 | *) ac_val=$ac_cv_c_inline;; | |
5795 | esac | |
5796 | cat >>confdefs.h <<_ACEOF | |
5797 | #ifndef __cplusplus | |
5798 | #define inline $ac_val | |
5799 | #endif | |
5800 | _ACEOF | |
5801 | ;; | |
5802 | esac | |
5803 | ||
5804 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5805 | ||
5806 | ||
5807 | ||
5808 | ||
5809 | ||
5810 | ||
5811 | ||
5812 | ||
5813 | ||
5814 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5815 | inttypes.h stdint.h unistd.h | |
5816 | do | |
5817 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5818 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5819 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5820 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5821 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5822 | else | |
5823 | cat >conftest.$ac_ext <<_ACEOF | |
5824 | /* confdefs.h. */ | |
5825 | _ACEOF | |
5826 | cat confdefs.h >>conftest.$ac_ext | |
5827 | cat >>conftest.$ac_ext <<_ACEOF | |
5828 | /* end confdefs.h. */ | |
5829 | $ac_includes_default | |
5830 | ||
5831 | #include <$ac_header> | |
5832 | _ACEOF | |
5833 | rm -f conftest.$ac_objext | |
5834 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5835 | (eval $ac_compile) 2>conftest.er1 | |
5836 | ac_status=$? | |
5837 | grep -v '^ *+' conftest.er1 >conftest.err | |
5838 | rm -f conftest.er1 | |
5839 | cat conftest.err >&5 | |
5840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5841 | (exit $ac_status); } && | |
eac338cf | 5842 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
5843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5844 | (eval $ac_try) 2>&5 | |
5845 | ac_status=$? | |
5846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5847 | (exit $ac_status); }; } && | |
5848 | { ac_try='test -s conftest.$ac_objext' | |
5849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5850 | (eval $ac_try) 2>&5 | |
5851 | ac_status=$? | |
5852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5853 | (exit $ac_status); }; }; then | |
5854 | eval "$as_ac_Header=yes" | |
5855 | else | |
5856 | echo "$as_me: failed program was:" >&5 | |
5857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5858 | ||
5859 | eval "$as_ac_Header=no" | |
5860 | fi | |
5861 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5862 | fi | |
5863 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5864 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5865 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5866 | cat >>confdefs.h <<_ACEOF | |
5867 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5868 | _ACEOF | |
5869 | ||
252b5132 | 5870 | fi |
6be7c12c | 5871 | |
5464f5a1 | 5872 | done |
252b5132 | 5873 | |
5464f5a1 NN |
5874 | |
5875 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
5876 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
5877 | if test "${ac_cv_type_off_t+set}" = set; then | |
5878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3baf5d0 | 5879 | else |
5464f5a1 NN |
5880 | cat >conftest.$ac_ext <<_ACEOF |
5881 | /* confdefs.h. */ | |
5882 | _ACEOF | |
5883 | cat confdefs.h >>conftest.$ac_ext | |
5884 | cat >>conftest.$ac_ext <<_ACEOF | |
5885 | /* end confdefs.h. */ | |
5886 | $ac_includes_default | |
5887 | int | |
5888 | main () | |
5889 | { | |
5890 | if ((off_t *) 0) | |
5891 | return 0; | |
5892 | if (sizeof (off_t)) | |
5893 | return 0; | |
5894 | ; | |
5895 | return 0; | |
5896 | } | |
5897 | _ACEOF | |
5898 | rm -f conftest.$ac_objext | |
5899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5900 | (eval $ac_compile) 2>conftest.er1 | |
5901 | ac_status=$? | |
5902 | grep -v '^ *+' conftest.er1 >conftest.err | |
5903 | rm -f conftest.er1 | |
5904 | cat conftest.err >&5 | |
5905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5906 | (exit $ac_status); } && | |
eac338cf | 5907 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
5908 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5909 | (eval $ac_try) 2>&5 | |
5910 | ac_status=$? | |
5911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5912 | (exit $ac_status); }; } && | |
5913 | { ac_try='test -s conftest.$ac_objext' | |
5914 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5915 | (eval $ac_try) 2>&5 | |
5916 | ac_status=$? | |
5917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5918 | (exit $ac_status); }; }; then | |
653f71ca | 5919 | ac_cv_type_off_t=yes |
252b5132 | 5920 | else |
5464f5a1 NN |
5921 | echo "$as_me: failed program was:" >&5 |
5922 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3baf5d0 | 5923 | |
5464f5a1 | 5924 | ac_cv_type_off_t=no |
6be7c12c | 5925 | fi |
5464f5a1 NN |
5926 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5927 | fi | |
5928 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
5929 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
5930 | if test $ac_cv_type_off_t = yes; then | |
5931 | : | |
5932 | else | |
5933 | ||
5934 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 5935 | #define off_t long |
5464f5a1 | 5936 | _ACEOF |
252b5132 RH |
5937 | |
5938 | fi | |
5939 | ||
5464f5a1 NN |
5940 | echo "$as_me:$LINENO: checking for size_t" >&5 |
5941 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
5942 | if test "${ac_cv_type_size_t+set}" = set; then | |
5943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5944 | else |
5464f5a1 NN |
5945 | cat >conftest.$ac_ext <<_ACEOF |
5946 | /* confdefs.h. */ | |
5947 | _ACEOF | |
5948 | cat confdefs.h >>conftest.$ac_ext | |
5949 | cat >>conftest.$ac_ext <<_ACEOF | |
5950 | /* end confdefs.h. */ | |
5951 | $ac_includes_default | |
5952 | int | |
5953 | main () | |
5954 | { | |
5955 | if ((size_t *) 0) | |
5956 | return 0; | |
5957 | if (sizeof (size_t)) | |
5958 | return 0; | |
5959 | ; | |
5960 | return 0; | |
5961 | } | |
5962 | _ACEOF | |
5963 | rm -f conftest.$ac_objext | |
5964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5965 | (eval $ac_compile) 2>conftest.er1 | |
5966 | ac_status=$? | |
5967 | grep -v '^ *+' conftest.er1 >conftest.err | |
5968 | rm -f conftest.er1 | |
5969 | cat conftest.err >&5 | |
5970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5971 | (exit $ac_status); } && | |
eac338cf | 5972 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
5973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
5974 | (eval $ac_try) 2>&5 | |
5975 | ac_status=$? | |
5976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5977 | (exit $ac_status); }; } && | |
5978 | { ac_try='test -s conftest.$ac_objext' | |
5979 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5980 | (eval $ac_try) 2>&5 | |
5981 | ac_status=$? | |
5982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5983 | (exit $ac_status); }; }; then | |
653f71ca | 5984 | ac_cv_type_size_t=yes |
252b5132 | 5985 | else |
5464f5a1 NN |
5986 | echo "$as_me: failed program was:" >&5 |
5987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3baf5d0 | 5988 | |
5464f5a1 | 5989 | ac_cv_type_size_t=no |
6be7c12c | 5990 | fi |
5464f5a1 NN |
5991 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
5992 | fi | |
5993 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
5994 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
5995 | if test $ac_cv_type_size_t = yes; then | |
5996 | : | |
5997 | else | |
5998 | ||
5999 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 6000 | #define size_t unsigned |
5464f5a1 | 6001 | _ACEOF |
252b5132 RH |
6002 | |
6003 | fi | |
6004 | ||
6005 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
6006 | # for constant arguments. Useless! | |
5464f5a1 NN |
6007 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
6008 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
6009 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
6010 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6011 | else | |
6012 | cat >conftest.$ac_ext <<_ACEOF | |
6013 | /* confdefs.h. */ | |
6014 | _ACEOF | |
6015 | cat confdefs.h >>conftest.$ac_ext | |
6016 | cat >>conftest.$ac_ext <<_ACEOF | |
6017 | /* end confdefs.h. */ | |
252b5132 | 6018 | #include <alloca.h> |
5464f5a1 NN |
6019 | int |
6020 | main () | |
6021 | { | |
6022 | char *p = (char *) alloca (2 * sizeof (int)); | |
6023 | ; | |
6024 | return 0; | |
6025 | } | |
6026 | _ACEOF | |
6027 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6028 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6029 | (eval $ac_link) 2>conftest.er1 | |
6030 | ac_status=$? | |
6031 | grep -v '^ *+' conftest.er1 >conftest.err | |
6032 | rm -f conftest.er1 | |
6033 | cat conftest.err >&5 | |
6034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6035 | (exit $ac_status); } && | |
eac338cf | 6036 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
6037 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6038 | (eval $ac_try) 2>&5 | |
6039 | ac_status=$? | |
6040 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6041 | (exit $ac_status); }; } && | |
6042 | { ac_try='test -s conftest$ac_exeext' | |
6043 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6044 | (eval $ac_try) 2>&5 | |
6045 | ac_status=$? | |
6046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6047 | (exit $ac_status); }; }; then | |
6048 | ac_cv_working_alloca_h=yes | |
6049 | else | |
6050 | echo "$as_me: failed program was:" >&5 | |
6051 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6052 | ||
6053 | ac_cv_working_alloca_h=no | |
6054 | fi | |
6055 | rm -f conftest.err conftest.$ac_objext \ | |
6056 | conftest$ac_exeext conftest.$ac_ext | |
6057 | fi | |
6058 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
6059 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
6060 | if test $ac_cv_working_alloca_h = yes; then | |
6061 | ||
6062 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 6063 | #define HAVE_ALLOCA_H 1 |
5464f5a1 | 6064 | _ACEOF |
252b5132 RH |
6065 | |
6066 | fi | |
6067 | ||
5464f5a1 NN |
6068 | echo "$as_me:$LINENO: checking for alloca" >&5 |
6069 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
6070 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
6071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6072 | else |
5464f5a1 NN |
6073 | cat >conftest.$ac_ext <<_ACEOF |
6074 | /* confdefs.h. */ | |
6075 | _ACEOF | |
6076 | cat confdefs.h >>conftest.$ac_ext | |
6077 | cat >>conftest.$ac_ext <<_ACEOF | |
6078 | /* end confdefs.h. */ | |
252b5132 RH |
6079 | #ifdef __GNUC__ |
6080 | # define alloca __builtin_alloca | |
6081 | #else | |
6082 | # ifdef _MSC_VER | |
6083 | # include <malloc.h> | |
6084 | # define alloca _alloca | |
6085 | # else | |
6086 | # if HAVE_ALLOCA_H | |
6087 | # include <alloca.h> | |
6088 | # else | |
6089 | # ifdef _AIX | |
6090 | #pragma alloca | |
6091 | # else | |
6092 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
6093 | char *alloca (); | |
6094 | # endif | |
6095 | # endif | |
6096 | # endif | |
6097 | # endif | |
6098 | #endif | |
6099 | ||
5464f5a1 NN |
6100 | int |
6101 | main () | |
6102 | { | |
6103 | char *p = (char *) alloca (1); | |
6104 | ; | |
6105 | return 0; | |
6106 | } | |
6107 | _ACEOF | |
6108 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6109 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6110 | (eval $ac_link) 2>conftest.er1 | |
6111 | ac_status=$? | |
6112 | grep -v '^ *+' conftest.er1 >conftest.err | |
6113 | rm -f conftest.er1 | |
6114 | cat conftest.err >&5 | |
6115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6116 | (exit $ac_status); } && | |
eac338cf | 6117 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
6118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6119 | (eval $ac_try) 2>&5 | |
6120 | ac_status=$? | |
6121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6122 | (exit $ac_status); }; } && | |
6123 | { ac_try='test -s conftest$ac_exeext' | |
6124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6125 | (eval $ac_try) 2>&5 | |
6126 | ac_status=$? | |
6127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6128 | (exit $ac_status); }; }; then | |
252b5132 RH |
6129 | ac_cv_func_alloca_works=yes |
6130 | else | |
5464f5a1 NN |
6131 | echo "$as_me: failed program was:" >&5 |
6132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6133 | ||
6134 | ac_cv_func_alloca_works=no | |
252b5132 | 6135 | fi |
5464f5a1 NN |
6136 | rm -f conftest.err conftest.$ac_objext \ |
6137 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 6138 | fi |
5464f5a1 NN |
6139 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
6140 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
252b5132 | 6141 | |
252b5132 | 6142 | if test $ac_cv_func_alloca_works = yes; then |
252b5132 | 6143 | |
5464f5a1 NN |
6144 | cat >>confdefs.h <<\_ACEOF |
6145 | #define HAVE_ALLOCA 1 | |
6146 | _ACEOF | |
b3baf5d0 | 6147 | |
5464f5a1 | 6148 | else |
6be7c12c | 6149 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
5464f5a1 NN |
6150 | # that cause trouble. Some versions do not even contain alloca or |
6151 | # contain a buggy version. If you still want to use their alloca, | |
6152 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
6153 | ||
6154 | ALLOCA=alloca.$ac_objext | |
6155 | ||
6156 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 6157 | #define C_ALLOCA 1 |
5464f5a1 | 6158 | _ACEOF |
252b5132 | 6159 | |
6be7c12c | 6160 | |
5464f5a1 NN |
6161 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
6162 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
6163 | if test "${ac_cv_os_cray+set}" = set; then | |
6164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 6165 | else |
5464f5a1 NN |
6166 | cat >conftest.$ac_ext <<_ACEOF |
6167 | /* confdefs.h. */ | |
6168 | _ACEOF | |
6169 | cat confdefs.h >>conftest.$ac_ext | |
6170 | cat >>conftest.$ac_ext <<_ACEOF | |
6171 | /* end confdefs.h. */ | |
252b5132 RH |
6172 | #if defined(CRAY) && ! defined(CRAY2) |
6173 | webecray | |
6174 | #else | |
6175 | wenotbecray | |
6176 | #endif | |
6177 | ||
5464f5a1 | 6178 | _ACEOF |
252b5132 | 6179 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5464f5a1 | 6180 | $EGREP "webecray" >/dev/null 2>&1; then |
252b5132 RH |
6181 | ac_cv_os_cray=yes |
6182 | else | |
252b5132 RH |
6183 | ac_cv_os_cray=no |
6184 | fi | |
6185 | rm -f conftest* | |
6186 | ||
6187 | fi | |
5464f5a1 NN |
6188 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
6189 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
252b5132 | 6190 | if test $ac_cv_os_cray = yes; then |
5464f5a1 NN |
6191 | for ac_func in _getb67 GETB67 getb67; do |
6192 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6193 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6194 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6195 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6196 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6197 | else | |
6198 | cat >conftest.$ac_ext <<_ACEOF | |
6199 | /* confdefs.h. */ | |
6200 | _ACEOF | |
6201 | cat confdefs.h >>conftest.$ac_ext | |
6202 | cat >>conftest.$ac_ext <<_ACEOF | |
6203 | /* end confdefs.h. */ | |
6204 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6205 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6206 | #define $ac_func innocuous_$ac_func | |
6207 | ||
252b5132 | 6208 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
6209 | which can conflict with char $ac_func (); below. |
6210 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6211 | <limits.h> exists even on freestanding compilers. */ | |
6212 | ||
6213 | #ifdef __STDC__ | |
6214 | # include <limits.h> | |
6215 | #else | |
6216 | # include <assert.h> | |
6217 | #endif | |
6be7c12c | 6218 | |
5464f5a1 | 6219 | #undef $ac_func |
252b5132 | 6220 | |
5464f5a1 NN |
6221 | /* Override any gcc2 internal prototype to avoid an error. */ |
6222 | #ifdef __cplusplus | |
6223 | extern "C" | |
6224 | { | |
6225 | #endif | |
6226 | /* We use char because int might match the return type of a gcc2 | |
6227 | builtin and then its argument prototype would still apply. */ | |
6228 | char $ac_func (); | |
252b5132 RH |
6229 | /* The GNU C library defines this for functions which it implements |
6230 | to always fail with ENOSYS. Some functions are actually named | |
6231 | something starting with __ and the normal name is an alias. */ | |
6232 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6233 | choke me | |
6234 | #else | |
5464f5a1 NN |
6235 | char (*f) () = $ac_func; |
6236 | #endif | |
6237 | #ifdef __cplusplus | |
6238 | } | |
252b5132 RH |
6239 | #endif |
6240 | ||
5464f5a1 NN |
6241 | int |
6242 | main () | |
6243 | { | |
6244 | return f != $ac_func; | |
6245 | ; | |
6246 | return 0; | |
6247 | } | |
6248 | _ACEOF | |
6249 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6250 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6251 | (eval $ac_link) 2>conftest.er1 | |
6252 | ac_status=$? | |
6253 | grep -v '^ *+' conftest.er1 >conftest.err | |
6254 | rm -f conftest.er1 | |
6255 | cat conftest.err >&5 | |
6256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6257 | (exit $ac_status); } && | |
eac338cf | 6258 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
6259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6260 | (eval $ac_try) 2>&5 | |
6261 | ac_status=$? | |
6262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6263 | (exit $ac_status); }; } && | |
6264 | { ac_try='test -s conftest$ac_exeext' | |
6265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6266 | (eval $ac_try) 2>&5 | |
6267 | ac_status=$? | |
6268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6269 | (exit $ac_status); }; }; then | |
6270 | eval "$as_ac_var=yes" | |
6271 | else | |
6272 | echo "$as_me: failed program was:" >&5 | |
6273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6274 | ||
6275 | eval "$as_ac_var=no" | |
6276 | fi | |
6277 | rm -f conftest.err conftest.$ac_objext \ | |
6278 | conftest$ac_exeext conftest.$ac_ext | |
6279 | fi | |
6280 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6281 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6282 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6283 | ||
6284 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 6285 | #define CRAY_STACKSEG_END $ac_func |
5464f5a1 | 6286 | _ACEOF |
252b5132 | 6287 | |
5464f5a1 | 6288 | break |
252b5132 RH |
6289 | fi |
6290 | ||
5464f5a1 | 6291 | done |
252b5132 RH |
6292 | fi |
6293 | ||
5464f5a1 NN |
6294 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
6295 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
6296 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
6297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
6298 | else |
6299 | if test "$cross_compiling" = yes; then | |
6300 | ac_cv_c_stack_direction=0 | |
6301 | else | |
5464f5a1 NN |
6302 | cat >conftest.$ac_ext <<_ACEOF |
6303 | /* confdefs.h. */ | |
6304 | _ACEOF | |
6305 | cat confdefs.h >>conftest.$ac_ext | |
6306 | cat >>conftest.$ac_ext <<_ACEOF | |
6307 | /* end confdefs.h. */ | |
6308 | int | |
252b5132 RH |
6309 | find_stack_direction () |
6310 | { | |
6311 | static char *addr = 0; | |
6312 | auto char dummy; | |
6313 | if (addr == 0) | |
6314 | { | |
6315 | addr = &dummy; | |
6316 | return find_stack_direction (); | |
6317 | } | |
6318 | else | |
6319 | return (&dummy > addr) ? 1 : -1; | |
6320 | } | |
5464f5a1 NN |
6321 | |
6322 | int | |
252b5132 RH |
6323 | main () |
6324 | { | |
5464f5a1 | 6325 | exit (find_stack_direction () < 0); |
252b5132 | 6326 | } |
5464f5a1 NN |
6327 | _ACEOF |
6328 | rm -f conftest$ac_exeext | |
6329 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6330 | (eval $ac_link) 2>&5 | |
6331 | ac_status=$? | |
6332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6333 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6335 | (eval $ac_try) 2>&5 | |
6336 | ac_status=$? | |
6337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6338 | (exit $ac_status); }; }; then | |
252b5132 RH |
6339 | ac_cv_c_stack_direction=1 |
6340 | else | |
5464f5a1 NN |
6341 | echo "$as_me: program exited with status $ac_status" >&5 |
6342 | echo "$as_me: failed program was:" >&5 | |
6343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6344 | ||
6345 | ( exit $ac_status ) | |
6346 | ac_cv_c_stack_direction=-1 | |
252b5132 | 6347 | fi |
5464f5a1 | 6348 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 6349 | fi |
252b5132 | 6350 | fi |
5464f5a1 NN |
6351 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
6352 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
252b5132 | 6353 | |
5464f5a1 | 6354 | cat >>confdefs.h <<_ACEOF |
252b5132 | 6355 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
5464f5a1 NN |
6356 | _ACEOF |
6357 | ||
252b5132 RH |
6358 | |
6359 | fi | |
6360 | ||
5464f5a1 NN |
6361 | |
6362 | ||
6363 | for ac_header in stdlib.h unistd.h | |
252b5132 | 6364 | do |
5464f5a1 NN |
6365 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6366 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6367 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6368 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6369 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6370 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6371 | fi | |
6372 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6373 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6374 | else | |
6375 | # Is the header compilable? | |
6376 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6377 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6378 | cat >conftest.$ac_ext <<_ACEOF | |
6379 | /* confdefs.h. */ | |
6380 | _ACEOF | |
6381 | cat confdefs.h >>conftest.$ac_ext | |
6382 | cat >>conftest.$ac_ext <<_ACEOF | |
6383 | /* end confdefs.h. */ | |
6384 | $ac_includes_default | |
6385 | #include <$ac_header> | |
6386 | _ACEOF | |
6387 | rm -f conftest.$ac_objext | |
6388 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6389 | (eval $ac_compile) 2>conftest.er1 | |
6390 | ac_status=$? | |
6391 | grep -v '^ *+' conftest.er1 >conftest.err | |
6392 | rm -f conftest.er1 | |
6393 | cat conftest.err >&5 | |
6394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6395 | (exit $ac_status); } && | |
eac338cf | 6396 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
6397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6398 | (eval $ac_try) 2>&5 | |
6399 | ac_status=$? | |
6400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6401 | (exit $ac_status); }; } && | |
6402 | { ac_try='test -s conftest.$ac_objext' | |
6403 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6404 | (eval $ac_try) 2>&5 | |
6405 | ac_status=$? | |
6406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6407 | (exit $ac_status); }; }; then | |
6408 | ac_header_compiler=yes | |
6409 | else | |
6410 | echo "$as_me: failed program was:" >&5 | |
6411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6412 | ||
6413 | ac_header_compiler=no | |
6414 | fi | |
6415 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6416 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6417 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6418 | ||
6419 | # Is the header present? | |
6420 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6421 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6422 | cat >conftest.$ac_ext <<_ACEOF | |
6423 | /* confdefs.h. */ | |
6424 | _ACEOF | |
6425 | cat confdefs.h >>conftest.$ac_ext | |
6426 | cat >>conftest.$ac_ext <<_ACEOF | |
6427 | /* end confdefs.h. */ | |
6428 | #include <$ac_header> | |
6429 | _ACEOF | |
6430 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6431 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6432 | ac_status=$? | |
6433 | grep -v '^ *+' conftest.er1 >conftest.err | |
6434 | rm -f conftest.er1 | |
6435 | cat conftest.err >&5 | |
6436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6437 | (exit $ac_status); } >/dev/null; then | |
6438 | if test -s conftest.err; then | |
6439 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6440 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6441 | else | |
6442 | ac_cpp_err= | |
6443 | fi | |
252b5132 | 6444 | else |
5464f5a1 | 6445 | ac_cpp_err=yes |
252b5132 | 6446 | fi |
5464f5a1 NN |
6447 | if test -z "$ac_cpp_err"; then |
6448 | ac_header_preproc=yes | |
6449 | else | |
6450 | echo "$as_me: failed program was:" >&5 | |
6451 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6452 | ||
6453 | ac_header_preproc=no | |
252b5132 | 6454 | fi |
5464f5a1 NN |
6455 | rm -f conftest.err conftest.$ac_ext |
6456 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6457 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6458 | ||
6459 | # So? What about this header? | |
6460 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6461 | yes:no: ) | |
6462 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6463 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6464 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6465 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6466 | ac_header_preproc=yes | |
6467 | ;; | |
6468 | no:yes:* ) | |
6469 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6470 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6471 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6472 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6473 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6474 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6475 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6476 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6477 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6478 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6479 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6480 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6481 | ( | |
6482 | cat <<\_ASBOX | |
6483 | ## ------------------------------------------ ## | |
6484 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6485 | ## ------------------------------------------ ## | |
6486 | _ASBOX | |
6487 | ) | | |
6488 | sed "s/^/$as_me: WARNING: /" >&2 | |
6489 | ;; | |
6490 | esac | |
6491 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6492 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6493 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 6495 | else |
5464f5a1 NN |
6496 | eval "$as_ac_Header=\$ac_header_preproc" |
6497 | fi | |
6498 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6499 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6500 | ||
252b5132 | 6501 | fi |
5464f5a1 NN |
6502 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6503 | cat >>confdefs.h <<_ACEOF | |
6504 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6505 | _ACEOF | |
6506 | ||
6507 | fi | |
6508 | ||
252b5132 RH |
6509 | done |
6510 | ||
5464f5a1 | 6511 | |
252b5132 RH |
6512 | for ac_func in getpagesize |
6513 | do | |
5464f5a1 NN |
6514 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6515 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6516 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6517 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6519 | else | |
6520 | cat >conftest.$ac_ext <<_ACEOF | |
6521 | /* confdefs.h. */ | |
6522 | _ACEOF | |
6523 | cat confdefs.h >>conftest.$ac_ext | |
6524 | cat >>conftest.$ac_ext <<_ACEOF | |
6525 | /* end confdefs.h. */ | |
6526 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6527 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6528 | #define $ac_func innocuous_$ac_func | |
6529 | ||
252b5132 | 6530 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
6531 | which can conflict with char $ac_func (); below. |
6532 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6533 | <limits.h> exists even on freestanding compilers. */ | |
6534 | ||
6535 | #ifdef __STDC__ | |
6536 | # include <limits.h> | |
6537 | #else | |
6538 | # include <assert.h> | |
6539 | #endif | |
6be7c12c | 6540 | |
5464f5a1 | 6541 | #undef $ac_func |
252b5132 | 6542 | |
5464f5a1 NN |
6543 | /* Override any gcc2 internal prototype to avoid an error. */ |
6544 | #ifdef __cplusplus | |
6545 | extern "C" | |
6546 | { | |
6547 | #endif | |
6548 | /* We use char because int might match the return type of a gcc2 | |
6549 | builtin and then its argument prototype would still apply. */ | |
6550 | char $ac_func (); | |
252b5132 RH |
6551 | /* The GNU C library defines this for functions which it implements |
6552 | to always fail with ENOSYS. Some functions are actually named | |
6553 | something starting with __ and the normal name is an alias. */ | |
6554 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6555 | choke me | |
6556 | #else | |
5464f5a1 NN |
6557 | char (*f) () = $ac_func; |
6558 | #endif | |
6559 | #ifdef __cplusplus | |
6560 | } | |
252b5132 RH |
6561 | #endif |
6562 | ||
5464f5a1 NN |
6563 | int |
6564 | main () | |
6565 | { | |
6566 | return f != $ac_func; | |
6567 | ; | |
6568 | return 0; | |
6569 | } | |
6570 | _ACEOF | |
6571 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6572 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6573 | (eval $ac_link) 2>conftest.er1 | |
6574 | ac_status=$? | |
6575 | grep -v '^ *+' conftest.er1 >conftest.err | |
6576 | rm -f conftest.er1 | |
6577 | cat conftest.err >&5 | |
6578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6579 | (exit $ac_status); } && | |
eac338cf | 6580 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
6581 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6582 | (eval $ac_try) 2>&5 | |
6583 | ac_status=$? | |
6584 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6585 | (exit $ac_status); }; } && | |
6586 | { ac_try='test -s conftest$ac_exeext' | |
6587 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6588 | (eval $ac_try) 2>&5 | |
6589 | ac_status=$? | |
6590 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6591 | (exit $ac_status); }; }; then | |
6592 | eval "$as_ac_var=yes" | |
6593 | else | |
6594 | echo "$as_me: failed program was:" >&5 | |
6595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6596 | ||
6597 | eval "$as_ac_var=no" | |
6598 | fi | |
6599 | rm -f conftest.err conftest.$ac_objext \ | |
6600 | conftest$ac_exeext conftest.$ac_ext | |
6601 | fi | |
6602 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6603 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6604 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6605 | cat >>confdefs.h <<_ACEOF | |
6606 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6607 | _ACEOF | |
252b5132 | 6608 | |
252b5132 RH |
6609 | fi |
6610 | done | |
6611 | ||
5464f5a1 NN |
6612 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
6613 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
6614 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
6615 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
6616 | else |
6617 | if test "$cross_compiling" = yes; then | |
6618 | ac_cv_func_mmap_fixed_mapped=no | |
6619 | else | |
5464f5a1 NN |
6620 | cat >conftest.$ac_ext <<_ACEOF |
6621 | /* confdefs.h. */ | |
6622 | _ACEOF | |
6623 | cat confdefs.h >>conftest.$ac_ext | |
6624 | cat >>conftest.$ac_ext <<_ACEOF | |
6625 | /* end confdefs.h. */ | |
6626 | $ac_includes_default | |
6627 | /* malloc might have been renamed as rpl_malloc. */ | |
6628 | #undef malloc | |
6be7c12c | 6629 | |
252b5132 RH |
6630 | /* Thanks to Mike Haertel and Jim Avera for this test. |
6631 | Here is a matrix of mmap possibilities: | |
6632 | mmap private not fixed | |
6633 | mmap private fixed at somewhere currently unmapped | |
6634 | mmap private fixed at somewhere already mapped | |
6635 | mmap shared not fixed | |
6636 | mmap shared fixed at somewhere currently unmapped | |
6637 | mmap shared fixed at somewhere already mapped | |
6638 | For private mappings, we should verify that changes cannot be read() | |
6639 | back from the file, nor mmap's back from the file at a different | |
6640 | address. (There have been systems where private was not correctly | |
6641 | implemented like the infamous i386 svr4.0, and systems where the | |
5464f5a1 | 6642 | VM page cache was not coherent with the file system buffer cache |
252b5132 RH |
6643 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
6644 | For shared mappings, we should conversely verify that changes get | |
5464f5a1 | 6645 | propagated back to all the places they're supposed to be. |
252b5132 RH |
6646 | |
6647 | Grep wants private fixed already mapped. | |
6648 | The main things grep needs to know about mmap are: | |
6649 | * does it exist and is it safe to write into the mmap'd area | |
6650 | * how to use it (BSD variants) */ | |
5464f5a1 | 6651 | |
252b5132 RH |
6652 | #include <fcntl.h> |
6653 | #include <sys/mman.h> | |
6654 | ||
5464f5a1 NN |
6655 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
6656 | char *malloc (); | |
6657 | #endif | |
6be7c12c | 6658 | |
5464f5a1 NN |
6659 | /* This mess was copied from the GNU getpagesize.h. */ |
6660 | #if !HAVE_GETPAGESIZE | |
252b5132 | 6661 | /* Assume that all systems that can run configure have sys/param.h. */ |
5464f5a1 | 6662 | # if !HAVE_SYS_PARAM_H |
252b5132 RH |
6663 | # define HAVE_SYS_PARAM_H 1 |
6664 | # endif | |
6665 | ||
6666 | # ifdef _SC_PAGESIZE | |
6667 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
6668 | # else /* no _SC_PAGESIZE */ | |
5464f5a1 | 6669 | # if HAVE_SYS_PARAM_H |
252b5132 RH |
6670 | # include <sys/param.h> |
6671 | # ifdef EXEC_PAGESIZE | |
6672 | # define getpagesize() EXEC_PAGESIZE | |
6673 | # else /* no EXEC_PAGESIZE */ | |
6674 | # ifdef NBPG | |
6675 | # define getpagesize() NBPG * CLSIZE | |
6676 | # ifndef CLSIZE | |
6677 | # define CLSIZE 1 | |
6678 | # endif /* no CLSIZE */ | |
6679 | # else /* no NBPG */ | |
6680 | # ifdef NBPC | |
6681 | # define getpagesize() NBPC | |
6682 | # else /* no NBPC */ | |
6683 | # ifdef PAGESIZE | |
6684 | # define getpagesize() PAGESIZE | |
6685 | # endif /* PAGESIZE */ | |
6686 | # endif /* no NBPC */ | |
6687 | # endif /* no NBPG */ | |
6688 | # endif /* no EXEC_PAGESIZE */ | |
6689 | # else /* no HAVE_SYS_PARAM_H */ | |
6690 | # define getpagesize() 8192 /* punt totally */ | |
6691 | # endif /* no HAVE_SYS_PARAM_H */ | |
6692 | # endif /* no _SC_PAGESIZE */ | |
6693 | ||
6694 | #endif /* no HAVE_GETPAGESIZE */ | |
6695 | ||
252b5132 | 6696 | int |
5464f5a1 | 6697 | main () |
252b5132 | 6698 | { |
5464f5a1 NN |
6699 | char *data, *data2, *data3; |
6700 | int i, pagesize; | |
6701 | int fd; | |
6702 | ||
6703 | pagesize = getpagesize (); | |
6704 | ||
6705 | /* First, make a file with some known garbage in it. */ | |
6706 | data = (char *) malloc (pagesize); | |
6707 | if (!data) | |
6708 | exit (1); | |
6709 | for (i = 0; i < pagesize; ++i) | |
6710 | *(data + i) = rand (); | |
6711 | umask (0); | |
6712 | fd = creat ("conftest.mmap", 0600); | |
6713 | if (fd < 0) | |
6714 | exit (1); | |
6715 | if (write (fd, data, pagesize) != pagesize) | |
6716 | exit (1); | |
6717 | close (fd); | |
6718 | ||
6719 | /* Next, try to mmap the file at a fixed address which already has | |
6720 | something else allocated at it. If we can, also make sure that | |
6721 | we see the same garbage. */ | |
6722 | fd = open ("conftest.mmap", O_RDWR); | |
6723 | if (fd < 0) | |
6724 | exit (1); | |
6725 | data2 = (char *) malloc (2 * pagesize); | |
6726 | if (!data2) | |
6727 | exit (1); | |
6728 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
6729 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
6730 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
6731 | exit (1); | |
6732 | for (i = 0; i < pagesize; ++i) | |
6733 | if (*(data + i) != *(data2 + i)) | |
6734 | exit (1); | |
6735 | ||
6736 | /* Finally, make sure that changes to the mapped area do not | |
6737 | percolate back to the file as seen by read(). (This is a bug on | |
6738 | some variants of i386 svr4.0.) */ | |
6739 | for (i = 0; i < pagesize; ++i) | |
6740 | *(data2 + i) = *(data2 + i) + 1; | |
6741 | data3 = (char *) malloc (pagesize); | |
6742 | if (!data3) | |
6743 | exit (1); | |
6744 | if (read (fd, data3, pagesize) != pagesize) | |
6745 | exit (1); | |
6746 | for (i = 0; i < pagesize; ++i) | |
6747 | if (*(data + i) != *(data3 + i)) | |
6748 | exit (1); | |
6749 | close (fd); | |
6750 | exit (0); | |
252b5132 | 6751 | } |
5464f5a1 NN |
6752 | _ACEOF |
6753 | rm -f conftest$ac_exeext | |
6754 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6755 | (eval $ac_link) 2>&5 | |
6756 | ac_status=$? | |
6757 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6758 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6759 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6760 | (eval $ac_try) 2>&5 | |
6761 | ac_status=$? | |
6762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6763 | (exit $ac_status); }; }; then | |
252b5132 RH |
6764 | ac_cv_func_mmap_fixed_mapped=yes |
6765 | else | |
5464f5a1 NN |
6766 | echo "$as_me: program exited with status $ac_status" >&5 |
6767 | echo "$as_me: failed program was:" >&5 | |
6768 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6769 | ||
6770 | ( exit $ac_status ) | |
6771 | ac_cv_func_mmap_fixed_mapped=no | |
252b5132 | 6772 | fi |
5464f5a1 | 6773 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
252b5132 | 6774 | fi |
252b5132 | 6775 | fi |
5464f5a1 NN |
6776 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
6777 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
6be7c12c | 6778 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
5464f5a1 NN |
6779 | |
6780 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 6781 | #define HAVE_MMAP 1 |
5464f5a1 | 6782 | _ACEOF |
252b5132 RH |
6783 | |
6784 | fi | |
5464f5a1 NN |
6785 | rm -f conftest.mmap |
6786 | ||
6787 | ||
252b5132 | 6788 | |
5464f5a1 NN |
6789 | |
6790 | ||
6791 | ||
6792 | ||
6793 | ||
6794 | ||
6795 | ||
6796 | ||
6797 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
252b5132 RH |
6798 | unistd.h values.h sys/param.h |
6799 | do | |
5464f5a1 NN |
6800 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6801 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6802 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6803 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6804 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6805 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6806 | fi | |
6807 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6808 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6809 | else | |
6810 | # Is the header compilable? | |
6811 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6812 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6813 | cat >conftest.$ac_ext <<_ACEOF | |
6814 | /* confdefs.h. */ | |
6815 | _ACEOF | |
6816 | cat confdefs.h >>conftest.$ac_ext | |
6817 | cat >>conftest.$ac_ext <<_ACEOF | |
6818 | /* end confdefs.h. */ | |
6819 | $ac_includes_default | |
6820 | #include <$ac_header> | |
6821 | _ACEOF | |
6822 | rm -f conftest.$ac_objext | |
6823 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6824 | (eval $ac_compile) 2>conftest.er1 | |
6825 | ac_status=$? | |
6826 | grep -v '^ *+' conftest.er1 >conftest.err | |
6827 | rm -f conftest.er1 | |
6828 | cat conftest.err >&5 | |
6829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6830 | (exit $ac_status); } && | |
eac338cf | 6831 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
6832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
6833 | (eval $ac_try) 2>&5 | |
6834 | ac_status=$? | |
6835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6836 | (exit $ac_status); }; } && | |
6837 | { ac_try='test -s conftest.$ac_objext' | |
6838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6839 | (eval $ac_try) 2>&5 | |
6840 | ac_status=$? | |
6841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6842 | (exit $ac_status); }; }; then | |
6843 | ac_header_compiler=yes | |
6844 | else | |
6845 | echo "$as_me: failed program was:" >&5 | |
6846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6847 | ||
6848 | ac_header_compiler=no | |
6849 | fi | |
6850 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6851 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6852 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6853 | ||
6854 | # Is the header present? | |
6855 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6856 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6857 | cat >conftest.$ac_ext <<_ACEOF | |
6858 | /* confdefs.h. */ | |
6859 | _ACEOF | |
6860 | cat confdefs.h >>conftest.$ac_ext | |
6861 | cat >>conftest.$ac_ext <<_ACEOF | |
6862 | /* end confdefs.h. */ | |
6863 | #include <$ac_header> | |
6864 | _ACEOF | |
6865 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6866 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6867 | ac_status=$? | |
6868 | grep -v '^ *+' conftest.er1 >conftest.err | |
6869 | rm -f conftest.er1 | |
6870 | cat conftest.err >&5 | |
6871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6872 | (exit $ac_status); } >/dev/null; then | |
6873 | if test -s conftest.err; then | |
6874 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6875 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6876 | else | |
6877 | ac_cpp_err= | |
6878 | fi | |
252b5132 | 6879 | else |
5464f5a1 | 6880 | ac_cpp_err=yes |
252b5132 | 6881 | fi |
5464f5a1 NN |
6882 | if test -z "$ac_cpp_err"; then |
6883 | ac_header_preproc=yes | |
6884 | else | |
6885 | echo "$as_me: failed program was:" >&5 | |
6886 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6887 | ||
6888 | ac_header_preproc=no | |
252b5132 | 6889 | fi |
5464f5a1 NN |
6890 | rm -f conftest.err conftest.$ac_ext |
6891 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6892 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6893 | ||
6894 | # So? What about this header? | |
6895 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6896 | yes:no: ) | |
6897 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6898 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6899 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6900 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6901 | ac_header_preproc=yes | |
6902 | ;; | |
6903 | no:yes:* ) | |
6904 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6905 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6906 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6907 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6908 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6909 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6910 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6911 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6912 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6913 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6914 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6915 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6916 | ( | |
6917 | cat <<\_ASBOX | |
6918 | ## ------------------------------------------ ## | |
6919 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6920 | ## ------------------------------------------ ## | |
6921 | _ASBOX | |
6922 | ) | | |
6923 | sed "s/^/$as_me: WARNING: /" >&2 | |
6924 | ;; | |
6925 | esac | |
6926 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6927 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6928 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 6930 | else |
5464f5a1 NN |
6931 | eval "$as_ac_Header=\$ac_header_preproc" |
6932 | fi | |
6933 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6934 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6935 | ||
6936 | fi | |
6937 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6938 | cat >>confdefs.h <<_ACEOF | |
6939 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6940 | _ACEOF | |
6941 | ||
252b5132 | 6942 | fi |
5464f5a1 | 6943 | |
252b5132 RH |
6944 | done |
6945 | ||
5464f5a1 NN |
6946 | |
6947 | ||
6948 | ||
6949 | ||
6950 | ||
6951 | ||
6952 | ||
6953 | ||
6954 | ||
6955 | ||
6956 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
252b5132 RH |
6957 | __argz_count __argz_stringify __argz_next |
6958 | do | |
5464f5a1 NN |
6959 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6960 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6961 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6962 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6963 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6964 | else | |
6965 | cat >conftest.$ac_ext <<_ACEOF | |
6966 | /* confdefs.h. */ | |
6967 | _ACEOF | |
6968 | cat confdefs.h >>conftest.$ac_ext | |
6969 | cat >>conftest.$ac_ext <<_ACEOF | |
6970 | /* end confdefs.h. */ | |
6971 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6972 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6973 | #define $ac_func innocuous_$ac_func | |
6974 | ||
252b5132 | 6975 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
6976 | which can conflict with char $ac_func (); below. |
6977 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6978 | <limits.h> exists even on freestanding compilers. */ | |
6979 | ||
6980 | #ifdef __STDC__ | |
6981 | # include <limits.h> | |
6982 | #else | |
6983 | # include <assert.h> | |
6984 | #endif | |
6985 | ||
6986 | #undef $ac_func | |
6987 | ||
252b5132 | 6988 | /* Override any gcc2 internal prototype to avoid an error. */ |
5464f5a1 NN |
6989 | #ifdef __cplusplus |
6990 | extern "C" | |
6991 | { | |
6992 | #endif | |
252b5132 | 6993 | /* We use char because int might match the return type of a gcc2 |
5464f5a1 NN |
6994 | builtin and then its argument prototype would still apply. */ |
6995 | char $ac_func (); | |
252b5132 RH |
6996 | /* The GNU C library defines this for functions which it implements |
6997 | to always fail with ENOSYS. Some functions are actually named | |
6998 | something starting with __ and the normal name is an alias. */ | |
6999 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7000 | choke me | |
7001 | #else | |
5464f5a1 NN |
7002 | char (*f) () = $ac_func; |
7003 | #endif | |
7004 | #ifdef __cplusplus | |
7005 | } | |
252b5132 RH |
7006 | #endif |
7007 | ||
5464f5a1 NN |
7008 | int |
7009 | main () | |
7010 | { | |
7011 | return f != $ac_func; | |
7012 | ; | |
7013 | return 0; | |
7014 | } | |
7015 | _ACEOF | |
7016 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7017 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7018 | (eval $ac_link) 2>conftest.er1 | |
7019 | ac_status=$? | |
7020 | grep -v '^ *+' conftest.er1 >conftest.err | |
7021 | rm -f conftest.er1 | |
7022 | cat conftest.err >&5 | |
7023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7024 | (exit $ac_status); } && | |
eac338cf | 7025 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
7026 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7027 | (eval $ac_try) 2>&5 | |
7028 | ac_status=$? | |
7029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7030 | (exit $ac_status); }; } && | |
7031 | { ac_try='test -s conftest$ac_exeext' | |
7032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7033 | (eval $ac_try) 2>&5 | |
7034 | ac_status=$? | |
7035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7036 | (exit $ac_status); }; }; then | |
7037 | eval "$as_ac_var=yes" | |
7038 | else | |
7039 | echo "$as_me: failed program was:" >&5 | |
7040 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7041 | ||
7042 | eval "$as_ac_var=no" | |
7043 | fi | |
7044 | rm -f conftest.err conftest.$ac_objext \ | |
7045 | conftest$ac_exeext conftest.$ac_ext | |
7046 | fi | |
7047 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7048 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7049 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7050 | cat >>confdefs.h <<_ACEOF | |
7051 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7052 | _ACEOF | |
252b5132 | 7053 | |
252b5132 RH |
7054 | fi |
7055 | done | |
7056 | ||
b3baf5d0 | 7057 | |
6be7c12c | 7058 | if test "${ac_cv_func_stpcpy+set}" != "set"; then |
5464f5a1 NN |
7059 | |
7060 | for ac_func in stpcpy | |
252b5132 | 7061 | do |
5464f5a1 NN |
7062 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7063 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7064 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7065 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7067 | else | |
7068 | cat >conftest.$ac_ext <<_ACEOF | |
7069 | /* confdefs.h. */ | |
7070 | _ACEOF | |
7071 | cat confdefs.h >>conftest.$ac_ext | |
7072 | cat >>conftest.$ac_ext <<_ACEOF | |
7073 | /* end confdefs.h. */ | |
7074 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7075 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7076 | #define $ac_func innocuous_$ac_func | |
7077 | ||
252b5132 | 7078 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
7079 | which can conflict with char $ac_func (); below. |
7080 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7081 | <limits.h> exists even on freestanding compilers. */ | |
7082 | ||
7083 | #ifdef __STDC__ | |
7084 | # include <limits.h> | |
7085 | #else | |
7086 | # include <assert.h> | |
7087 | #endif | |
6be7c12c | 7088 | |
5464f5a1 | 7089 | #undef $ac_func |
252b5132 | 7090 | |
5464f5a1 NN |
7091 | /* Override any gcc2 internal prototype to avoid an error. */ |
7092 | #ifdef __cplusplus | |
7093 | extern "C" | |
7094 | { | |
7095 | #endif | |
7096 | /* We use char because int might match the return type of a gcc2 | |
7097 | builtin and then its argument prototype would still apply. */ | |
7098 | char $ac_func (); | |
252b5132 RH |
7099 | /* The GNU C library defines this for functions which it implements |
7100 | to always fail with ENOSYS. Some functions are actually named | |
7101 | something starting with __ and the normal name is an alias. */ | |
7102 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7103 | choke me | |
7104 | #else | |
5464f5a1 NN |
7105 | char (*f) () = $ac_func; |
7106 | #endif | |
7107 | #ifdef __cplusplus | |
7108 | } | |
252b5132 RH |
7109 | #endif |
7110 | ||
5464f5a1 NN |
7111 | int |
7112 | main () | |
7113 | { | |
7114 | return f != $ac_func; | |
7115 | ; | |
7116 | return 0; | |
7117 | } | |
7118 | _ACEOF | |
7119 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7120 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7121 | (eval $ac_link) 2>conftest.er1 | |
7122 | ac_status=$? | |
7123 | grep -v '^ *+' conftest.er1 >conftest.err | |
7124 | rm -f conftest.er1 | |
7125 | cat conftest.err >&5 | |
7126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7127 | (exit $ac_status); } && | |
eac338cf | 7128 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
7129 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7130 | (eval $ac_try) 2>&5 | |
7131 | ac_status=$? | |
7132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7133 | (exit $ac_status); }; } && | |
7134 | { ac_try='test -s conftest$ac_exeext' | |
7135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7136 | (eval $ac_try) 2>&5 | |
7137 | ac_status=$? | |
7138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7139 | (exit $ac_status); }; }; then | |
7140 | eval "$as_ac_var=yes" | |
7141 | else | |
7142 | echo "$as_me: failed program was:" >&5 | |
7143 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7144 | ||
7145 | eval "$as_ac_var=no" | |
7146 | fi | |
7147 | rm -f conftest.err conftest.$ac_objext \ | |
7148 | conftest$ac_exeext conftest.$ac_ext | |
7149 | fi | |
7150 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7151 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7152 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7153 | cat >>confdefs.h <<_ACEOF | |
7154 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7155 | _ACEOF | |
252b5132 | 7156 | |
252b5132 RH |
7157 | fi |
7158 | done | |
7159 | ||
7160 | fi | |
7161 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
5464f5a1 NN |
7162 | |
7163 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7164 | #define HAVE_STPCPY 1 |
5464f5a1 | 7165 | _ACEOF |
252b5132 RH |
7166 | |
7167 | fi | |
7168 | ||
7169 | if test $ac_cv_header_locale_h = yes; then | |
5464f5a1 NN |
7170 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
7171 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 | |
7172 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
7173 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7174 | else | |
7175 | cat >conftest.$ac_ext <<_ACEOF | |
7176 | /* confdefs.h. */ | |
7177 | _ACEOF | |
7178 | cat confdefs.h >>conftest.$ac_ext | |
7179 | cat >>conftest.$ac_ext <<_ACEOF | |
7180 | /* end confdefs.h. */ | |
252b5132 | 7181 | #include <locale.h> |
5464f5a1 NN |
7182 | int |
7183 | main () | |
7184 | { | |
252b5132 | 7185 | return LC_MESSAGES |
5464f5a1 NN |
7186 | ; |
7187 | return 0; | |
7188 | } | |
7189 | _ACEOF | |
7190 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7192 | (eval $ac_link) 2>conftest.er1 | |
7193 | ac_status=$? | |
7194 | grep -v '^ *+' conftest.er1 >conftest.err | |
7195 | rm -f conftest.er1 | |
7196 | cat conftest.err >&5 | |
7197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7198 | (exit $ac_status); } && | |
eac338cf | 7199 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
7200 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7201 | (eval $ac_try) 2>&5 | |
7202 | ac_status=$? | |
7203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7204 | (exit $ac_status); }; } && | |
7205 | { ac_try='test -s conftest$ac_exeext' | |
7206 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7207 | (eval $ac_try) 2>&5 | |
7208 | ac_status=$? | |
7209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7210 | (exit $ac_status); }; }; then | |
252b5132 RH |
7211 | am_cv_val_LC_MESSAGES=yes |
7212 | else | |
5464f5a1 NN |
7213 | echo "$as_me: failed program was:" >&5 |
7214 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7215 | ||
7216 | am_cv_val_LC_MESSAGES=no | |
252b5132 | 7217 | fi |
5464f5a1 NN |
7218 | rm -f conftest.err conftest.$ac_objext \ |
7219 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 7220 | fi |
5464f5a1 NN |
7221 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
7222 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 | |
6be7c12c | 7223 | if test $am_cv_val_LC_MESSAGES = yes; then |
5464f5a1 NN |
7224 | |
7225 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7226 | #define HAVE_LC_MESSAGES 1 |
5464f5a1 | 7227 | _ACEOF |
252b5132 RH |
7228 | |
7229 | fi | |
7230 | fi | |
5464f5a1 NN |
7231 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
7232 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
252b5132 RH |
7233 | # Check whether --enable-nls or --disable-nls was given. |
7234 | if test "${enable_nls+set}" = set; then | |
7235 | enableval="$enable_nls" | |
7236 | USE_NLS=$enableval | |
7237 | else | |
7238 | USE_NLS=yes | |
5464f5a1 NN |
7239 | fi; |
7240 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
7241 | echo "${ECHO_T}$USE_NLS" >&6 | |
6be7c12c | 7242 | |
252b5132 RH |
7243 | |
7244 | USE_INCLUDED_LIBINTL=no | |
7245 | ||
7246 | if test "$USE_NLS" = "yes"; then | |
5464f5a1 NN |
7247 | echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 |
7248 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 | |
7249 | ||
7250 | # Check whether --with-included-gettext or --without-included-gettext was given. | |
252b5132 RH |
7251 | if test "${with_included_gettext+set}" = set; then |
7252 | withval="$with_included_gettext" | |
7253 | nls_cv_force_use_gnu_gettext=$withval | |
7254 | else | |
7255 | nls_cv_force_use_gnu_gettext=no | |
5464f5a1 NN |
7256 | fi; |
7257 | echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 | |
7258 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 | |
252b5132 RH |
7259 | |
7260 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
7261 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
7262 | nls_cv_header_intl= | |
7263 | nls_cv_header_libgt= | |
a53bf506 | 7264 | CATOBJEXT= |
252b5132 | 7265 | |
5464f5a1 NN |
7266 | if test "${ac_cv_header_libintl_h+set}" = set; then |
7267 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
7268 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
7269 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
7270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7271 | fi | |
7272 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
7273 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
7274 | else | |
7275 | # Is the header compilable? | |
7276 | echo "$as_me:$LINENO: checking libintl.h usability" >&5 | |
7277 | echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 | |
7278 | cat >conftest.$ac_ext <<_ACEOF | |
7279 | /* confdefs.h. */ | |
7280 | _ACEOF | |
7281 | cat confdefs.h >>conftest.$ac_ext | |
7282 | cat >>conftest.$ac_ext <<_ACEOF | |
7283 | /* end confdefs.h. */ | |
7284 | $ac_includes_default | |
252b5132 | 7285 | #include <libintl.h> |
5464f5a1 NN |
7286 | _ACEOF |
7287 | rm -f conftest.$ac_objext | |
7288 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7289 | (eval $ac_compile) 2>conftest.er1 | |
7290 | ac_status=$? | |
7291 | grep -v '^ *+' conftest.er1 >conftest.err | |
7292 | rm -f conftest.er1 | |
7293 | cat conftest.err >&5 | |
7294 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7295 | (exit $ac_status); } && | |
eac338cf | 7296 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
7297 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7298 | (eval $ac_try) 2>&5 | |
7299 | ac_status=$? | |
7300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7301 | (exit $ac_status); }; } && | |
7302 | { ac_try='test -s conftest.$ac_objext' | |
7303 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7304 | (eval $ac_try) 2>&5 | |
7305 | ac_status=$? | |
7306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7307 | (exit $ac_status); }; }; then | |
7308 | ac_header_compiler=yes | |
7309 | else | |
7310 | echo "$as_me: failed program was:" >&5 | |
7311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7312 | ||
7313 | ac_header_compiler=no | |
7314 | fi | |
7315 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7316 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7317 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
7318 | ||
7319 | # Is the header present? | |
7320 | echo "$as_me:$LINENO: checking libintl.h presence" >&5 | |
7321 | echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 | |
7322 | cat >conftest.$ac_ext <<_ACEOF | |
7323 | /* confdefs.h. */ | |
7324 | _ACEOF | |
7325 | cat confdefs.h >>conftest.$ac_ext | |
7326 | cat >>conftest.$ac_ext <<_ACEOF | |
7327 | /* end confdefs.h. */ | |
7328 | #include <libintl.h> | |
7329 | _ACEOF | |
7330 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
7331 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
7332 | ac_status=$? | |
7333 | grep -v '^ *+' conftest.er1 >conftest.err | |
7334 | rm -f conftest.er1 | |
7335 | cat conftest.err >&5 | |
7336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7337 | (exit $ac_status); } >/dev/null; then | |
7338 | if test -s conftest.err; then | |
7339 | ac_cpp_err=$ac_c_preproc_warn_flag | |
7340 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
7341 | else | |
7342 | ac_cpp_err= | |
7343 | fi | |
252b5132 | 7344 | else |
5464f5a1 | 7345 | ac_cpp_err=yes |
252b5132 | 7346 | fi |
5464f5a1 NN |
7347 | if test -z "$ac_cpp_err"; then |
7348 | ac_header_preproc=yes | |
7349 | else | |
7350 | echo "$as_me: failed program was:" >&5 | |
7351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7352 | ||
7353 | ac_header_preproc=no | |
252b5132 | 7354 | fi |
5464f5a1 NN |
7355 | rm -f conftest.err conftest.$ac_ext |
7356 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7357 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7358 | ||
7359 | # So? What about this header? | |
7360 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7361 | yes:no: ) | |
7362 | { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7363 | echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7364 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 | |
7365 | echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} | |
7366 | ac_header_preproc=yes | |
7367 | ;; | |
7368 | no:yes:* ) | |
7369 | { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 | |
7370 | echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} | |
7371 | { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 | |
7372 | echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} | |
7373 | { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 | |
7374 | echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} | |
7375 | { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
7376 | echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
7377 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 | |
7378 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} | |
7379 | { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 | |
7380 | echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} | |
7381 | ( | |
7382 | cat <<\_ASBOX | |
7383 | ## ------------------------------------------ ## | |
7384 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7385 | ## ------------------------------------------ ## | |
7386 | _ASBOX | |
7387 | ) | | |
7388 | sed "s/^/$as_me: WARNING: /" >&2 | |
7389 | ;; | |
7390 | esac | |
7391 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
7392 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
7393 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
7394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7395 | else |
5464f5a1 NN |
7396 | ac_cv_header_libintl_h=$ac_header_preproc |
7397 | fi | |
7398 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
7399 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
7400 | ||
7401 | fi | |
7402 | if test $ac_cv_header_libintl_h = yes; then | |
7403 | echo "$as_me:$LINENO: checking for gettext in libc" >&5 | |
7404 | echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6 | |
7405 | if test "${gt_cv_func_gettext_libc+set}" = set; then | |
7406 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7407 | else | |
7408 | cat >conftest.$ac_ext <<_ACEOF | |
7409 | /* confdefs.h. */ | |
7410 | _ACEOF | |
7411 | cat confdefs.h >>conftest.$ac_ext | |
7412 | cat >>conftest.$ac_ext <<_ACEOF | |
7413 | /* end confdefs.h. */ | |
252b5132 | 7414 | #include <libintl.h> |
5464f5a1 NN |
7415 | int |
7416 | main () | |
7417 | { | |
252b5132 | 7418 | return (int) gettext ("") |
5464f5a1 NN |
7419 | ; |
7420 | return 0; | |
7421 | } | |
7422 | _ACEOF | |
7423 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7425 | (eval $ac_link) 2>conftest.er1 | |
7426 | ac_status=$? | |
7427 | grep -v '^ *+' conftest.er1 >conftest.err | |
7428 | rm -f conftest.er1 | |
7429 | cat conftest.err >&5 | |
7430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7431 | (exit $ac_status); } && | |
eac338cf | 7432 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
7433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7434 | (eval $ac_try) 2>&5 | |
7435 | ac_status=$? | |
7436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7437 | (exit $ac_status); }; } && | |
7438 | { ac_try='test -s conftest$ac_exeext' | |
7439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7440 | (eval $ac_try) 2>&5 | |
7441 | ac_status=$? | |
7442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7443 | (exit $ac_status); }; }; then | |
252b5132 RH |
7444 | gt_cv_func_gettext_libc=yes |
7445 | else | |
5464f5a1 NN |
7446 | echo "$as_me: failed program was:" >&5 |
7447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7448 | ||
7449 | gt_cv_func_gettext_libc=no | |
252b5132 | 7450 | fi |
5464f5a1 NN |
7451 | rm -f conftest.err conftest.$ac_objext \ |
7452 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 7453 | fi |
5464f5a1 NN |
7454 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5 |
7455 | echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6 | |
252b5132 RH |
7456 | |
7457 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
5464f5a1 NN |
7458 | echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 |
7459 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 | |
7460 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then | |
7461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7462 | else |
5464f5a1 | 7463 | ac_check_lib_save_LIBS=$LIBS |
252b5132 | 7464 | LIBS="-lintl $LIBS" |
5464f5a1 NN |
7465 | cat >conftest.$ac_ext <<_ACEOF |
7466 | /* confdefs.h. */ | |
7467 | _ACEOF | |
7468 | cat confdefs.h >>conftest.$ac_ext | |
7469 | cat >>conftest.$ac_ext <<_ACEOF | |
7470 | /* end confdefs.h. */ | |
7471 | ||
252b5132 | 7472 | /* Override any gcc2 internal prototype to avoid an error. */ |
5464f5a1 NN |
7473 | #ifdef __cplusplus |
7474 | extern "C" | |
7475 | #endif | |
252b5132 | 7476 | /* We use char because int might match the return type of a gcc2 |
5464f5a1 NN |
7477 | builtin and then its argument prototype would still apply. */ |
7478 | char bindtextdomain (); | |
7479 | int | |
7480 | main () | |
7481 | { | |
7482 | bindtextdomain (); | |
7483 | ; | |
7484 | return 0; | |
7485 | } | |
7486 | _ACEOF | |
7487 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7488 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7489 | (eval $ac_link) 2>conftest.er1 | |
7490 | ac_status=$? | |
7491 | grep -v '^ *+' conftest.er1 >conftest.err | |
7492 | rm -f conftest.er1 | |
7493 | cat conftest.err >&5 | |
7494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7495 | (exit $ac_status); } && | |
eac338cf | 7496 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
7497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7498 | (eval $ac_try) 2>&5 | |
7499 | ac_status=$? | |
7500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7501 | (exit $ac_status); }; } && | |
7502 | { ac_try='test -s conftest$ac_exeext' | |
7503 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7504 | (eval $ac_try) 2>&5 | |
7505 | ac_status=$? | |
7506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7507 | (exit $ac_status); }; }; then | |
7508 | ac_cv_lib_intl_bindtextdomain=yes | |
7509 | else | |
7510 | echo "$as_me: failed program was:" >&5 | |
7511 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7512 | ||
7513 | ac_cv_lib_intl_bindtextdomain=no | |
7514 | fi | |
7515 | rm -f conftest.err conftest.$ac_objext \ | |
7516 | conftest$ac_exeext conftest.$ac_ext | |
7517 | LIBS=$ac_check_lib_save_LIBS | |
7518 | fi | |
7519 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 | |
7520 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 | |
7521 | if test $ac_cv_lib_intl_bindtextdomain = yes; then | |
7522 | echo "$as_me:$LINENO: checking for gettext in libintl" >&5 | |
7523 | echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6 | |
7524 | if test "${gt_cv_func_gettext_libintl+set}" = set; then | |
7525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7526 | else | |
7527 | cat >conftest.$ac_ext <<_ACEOF | |
7528 | /* confdefs.h. */ | |
7529 | _ACEOF | |
7530 | cat confdefs.h >>conftest.$ac_ext | |
7531 | cat >>conftest.$ac_ext <<_ACEOF | |
7532 | /* end confdefs.h. */ | |
252b5132 | 7533 | |
5464f5a1 NN |
7534 | int |
7535 | main () | |
7536 | { | |
252b5132 | 7537 | return (int) gettext ("") |
5464f5a1 NN |
7538 | ; |
7539 | return 0; | |
7540 | } | |
7541 | _ACEOF | |
7542 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7543 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7544 | (eval $ac_link) 2>conftest.er1 | |
7545 | ac_status=$? | |
7546 | grep -v '^ *+' conftest.er1 >conftest.err | |
7547 | rm -f conftest.er1 | |
7548 | cat conftest.err >&5 | |
7549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7550 | (exit $ac_status); } && | |
eac338cf | 7551 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
7552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7553 | (eval $ac_try) 2>&5 | |
7554 | ac_status=$? | |
7555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7556 | (exit $ac_status); }; } && | |
7557 | { ac_try='test -s conftest$ac_exeext' | |
7558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7559 | (eval $ac_try) 2>&5 | |
7560 | ac_status=$? | |
7561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7562 | (exit $ac_status); }; }; then | |
252b5132 RH |
7563 | gt_cv_func_gettext_libintl=yes |
7564 | else | |
5464f5a1 NN |
7565 | echo "$as_me: failed program was:" >&5 |
7566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7567 | ||
7568 | gt_cv_func_gettext_libintl=no | |
252b5132 | 7569 | fi |
5464f5a1 NN |
7570 | rm -f conftest.err conftest.$ac_objext \ |
7571 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 | 7572 | fi |
5464f5a1 NN |
7573 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5 |
7574 | echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6 | |
252b5132 RH |
7575 | fi |
7576 | ||
7577 | fi | |
7578 | ||
7579 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
7580 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
5464f5a1 NN |
7581 | |
7582 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 7583 | #define HAVE_GETTEXT 1 |
5464f5a1 | 7584 | _ACEOF |
252b5132 RH |
7585 | |
7586 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7587 | set dummy msgfmt; ac_word=$2 | |
5464f5a1 NN |
7588 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7589 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7590 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
7591 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7592 | else |
7593 | case "$MSGFMT" in | |
7594 | /*) | |
7595 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7596 | ;; | |
7597 | *) | |
7598 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7599 | for ac_dir in $PATH; do | |
7600 | test -z "$ac_dir" && ac_dir=. | |
7601 | if test -f $ac_dir/$ac_word; then | |
7602 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7603 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7604 | break | |
7605 | fi | |
7606 | fi | |
7607 | done | |
7608 | IFS="$ac_save_ifs" | |
7609 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
7610 | ;; | |
7611 | esac | |
7612 | fi | |
7613 | MSGFMT="$ac_cv_path_MSGFMT" | |
7614 | if test -n "$MSGFMT"; then | |
5464f5a1 NN |
7615 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
7616 | echo "${ECHO_T}$MSGFMT" >&6 | |
252b5132 | 7617 | else |
5464f5a1 NN |
7618 | echo "$as_me:$LINENO: result: no" >&5 |
7619 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7620 | fi |
7621 | if test "$MSGFMT" != "no"; then | |
5464f5a1 NN |
7622 | |
7623 | for ac_func in dcgettext | |
252b5132 | 7624 | do |
5464f5a1 NN |
7625 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7626 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7627 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7628 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7630 | else | |
7631 | cat >conftest.$ac_ext <<_ACEOF | |
7632 | /* confdefs.h. */ | |
7633 | _ACEOF | |
7634 | cat confdefs.h >>conftest.$ac_ext | |
7635 | cat >>conftest.$ac_ext <<_ACEOF | |
7636 | /* end confdefs.h. */ | |
7637 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7638 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7639 | #define $ac_func innocuous_$ac_func | |
7640 | ||
252b5132 | 7641 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
7642 | which can conflict with char $ac_func (); below. |
7643 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7644 | <limits.h> exists even on freestanding compilers. */ | |
7645 | ||
7646 | #ifdef __STDC__ | |
7647 | # include <limits.h> | |
7648 | #else | |
7649 | # include <assert.h> | |
7650 | #endif | |
6be7c12c | 7651 | |
5464f5a1 | 7652 | #undef $ac_func |
252b5132 | 7653 | |
5464f5a1 NN |
7654 | /* Override any gcc2 internal prototype to avoid an error. */ |
7655 | #ifdef __cplusplus | |
7656 | extern "C" | |
7657 | { | |
7658 | #endif | |
7659 | /* We use char because int might match the return type of a gcc2 | |
7660 | builtin and then its argument prototype would still apply. */ | |
7661 | char $ac_func (); | |
252b5132 RH |
7662 | /* The GNU C library defines this for functions which it implements |
7663 | to always fail with ENOSYS. Some functions are actually named | |
7664 | something starting with __ and the normal name is an alias. */ | |
7665 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7666 | choke me | |
7667 | #else | |
5464f5a1 NN |
7668 | char (*f) () = $ac_func; |
7669 | #endif | |
7670 | #ifdef __cplusplus | |
7671 | } | |
252b5132 RH |
7672 | #endif |
7673 | ||
5464f5a1 NN |
7674 | int |
7675 | main () | |
7676 | { | |
7677 | return f != $ac_func; | |
7678 | ; | |
7679 | return 0; | |
7680 | } | |
7681 | _ACEOF | |
7682 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7683 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7684 | (eval $ac_link) 2>conftest.er1 | |
7685 | ac_status=$? | |
7686 | grep -v '^ *+' conftest.er1 >conftest.err | |
7687 | rm -f conftest.er1 | |
7688 | cat conftest.err >&5 | |
7689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7690 | (exit $ac_status); } && | |
eac338cf | 7691 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
7692 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7693 | (eval $ac_try) 2>&5 | |
7694 | ac_status=$? | |
7695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7696 | (exit $ac_status); }; } && | |
7697 | { ac_try='test -s conftest$ac_exeext' | |
7698 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7699 | (eval $ac_try) 2>&5 | |
7700 | ac_status=$? | |
7701 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7702 | (exit $ac_status); }; }; then | |
7703 | eval "$as_ac_var=yes" | |
7704 | else | |
7705 | echo "$as_me: failed program was:" >&5 | |
7706 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7707 | ||
7708 | eval "$as_ac_var=no" | |
7709 | fi | |
7710 | rm -f conftest.err conftest.$ac_objext \ | |
7711 | conftest$ac_exeext conftest.$ac_ext | |
7712 | fi | |
7713 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7714 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7715 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7716 | cat >>confdefs.h <<_ACEOF | |
7717 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7718 | _ACEOF | |
252b5132 | 7719 | |
252b5132 RH |
7720 | fi |
7721 | done | |
7722 | ||
7723 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7724 | set dummy gmsgfmt; ac_word=$2 | |
5464f5a1 NN |
7725 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7726 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7727 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
7728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7729 | else |
5464f5a1 NN |
7730 | case $GMSGFMT in |
7731 | [\\/]* | ?:[\\/]*) | |
252b5132 RH |
7732 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
7733 | ;; | |
252b5132 | 7734 | *) |
5464f5a1 NN |
7735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7736 | for as_dir in $PATH | |
7737 | do | |
7738 | IFS=$as_save_IFS | |
7739 | test -z "$as_dir" && as_dir=. | |
7740 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7741 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7742 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
7743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7744 | break 2 | |
7745 | fi | |
7746 | done | |
7747 | done | |
7748 | ||
252b5132 RH |
7749 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
7750 | ;; | |
7751 | esac | |
7752 | fi | |
5464f5a1 NN |
7753 | GMSGFMT=$ac_cv_path_GMSGFMT |
7754 | ||
252b5132 | 7755 | if test -n "$GMSGFMT"; then |
5464f5a1 NN |
7756 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
7757 | echo "${ECHO_T}$GMSGFMT" >&6 | |
252b5132 | 7758 | else |
5464f5a1 NN |
7759 | echo "$as_me:$LINENO: result: no" >&5 |
7760 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7761 | fi |
7762 | ||
7763 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7764 | set dummy xgettext; ac_word=$2 | |
5464f5a1 NN |
7765 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7766 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7767 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
7768 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7769 | else |
7770 | case "$XGETTEXT" in | |
7771 | /*) | |
7772 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7773 | ;; | |
7774 | *) | |
7775 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7776 | for ac_dir in $PATH; do | |
7777 | test -z "$ac_dir" && ac_dir=. | |
7778 | if test -f $ac_dir/$ac_word; then | |
7779 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7780 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7781 | break | |
7782 | fi | |
7783 | fi | |
7784 | done | |
7785 | IFS="$ac_save_ifs" | |
7786 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7787 | ;; | |
7788 | esac | |
7789 | fi | |
7790 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7791 | if test -n "$XGETTEXT"; then | |
5464f5a1 NN |
7792 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
7793 | echo "${ECHO_T}$XGETTEXT" >&6 | |
252b5132 | 7794 | else |
5464f5a1 NN |
7795 | echo "$as_me:$LINENO: result: no" >&5 |
7796 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7797 | fi |
7798 | ||
5464f5a1 NN |
7799 | cat >conftest.$ac_ext <<_ACEOF |
7800 | /* confdefs.h. */ | |
7801 | _ACEOF | |
7802 | cat confdefs.h >>conftest.$ac_ext | |
7803 | cat >>conftest.$ac_ext <<_ACEOF | |
7804 | /* end confdefs.h. */ | |
252b5132 | 7805 | |
5464f5a1 NN |
7806 | int |
7807 | main () | |
7808 | { | |
252b5132 RH |
7809 | extern int _nl_msg_cat_cntr; |
7810 | return _nl_msg_cat_cntr | |
5464f5a1 NN |
7811 | ; |
7812 | return 0; | |
7813 | } | |
7814 | _ACEOF | |
7815 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7816 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7817 | (eval $ac_link) 2>conftest.er1 | |
7818 | ac_status=$? | |
7819 | grep -v '^ *+' conftest.er1 >conftest.err | |
7820 | rm -f conftest.er1 | |
7821 | cat conftest.err >&5 | |
7822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7823 | (exit $ac_status); } && | |
eac338cf | 7824 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
7825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7826 | (eval $ac_try) 2>&5 | |
7827 | ac_status=$? | |
7828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7829 | (exit $ac_status); }; } && | |
7830 | { ac_try='test -s conftest$ac_exeext' | |
7831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7832 | (eval $ac_try) 2>&5 | |
7833 | ac_status=$? | |
7834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7835 | (exit $ac_status); }; }; then | |
252b5132 RH |
7836 | CATOBJEXT=.gmo |
7837 | DATADIRNAME=share | |
7838 | else | |
5464f5a1 NN |
7839 | echo "$as_me: failed program was:" >&5 |
7840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7841 | ||
7842 | CATOBJEXT=.mo | |
252b5132 RH |
7843 | DATADIRNAME=lib |
7844 | fi | |
5464f5a1 NN |
7845 | rm -f conftest.err conftest.$ac_objext \ |
7846 | conftest$ac_exeext conftest.$ac_ext | |
252b5132 RH |
7847 | INSTOBJEXT=.mo |
7848 | fi | |
7849 | fi | |
5464f5a1 | 7850 | |
b3baf5d0 | 7851 | fi |
252b5132 | 7852 | |
6be7c12c | 7853 | |
5464f5a1 NN |
7854 | |
7855 | ||
a53bf506 | 7856 | if test x"$CATOBJEXT" = x && test -d $srcdir/../intl; then |
45181ed1 AC |
7857 | # Neither gettext nor catgets in included in the C library. |
7858 | # Fall back on GNU gettext library (assuming it is present). | |
7859 | nls_cv_use_gnu_gettext=yes | |
252b5132 RH |
7860 | fi |
7861 | fi | |
7862 | ||
7863 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
7864 | INTLOBJS="\$(GETTOBJS)" | |
7865 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
7866 | set dummy msgfmt; ac_word=$2 | |
5464f5a1 NN |
7867 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7868 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7869 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
7870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7871 | else |
7872 | case "$MSGFMT" in | |
7873 | /*) | |
7874 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
7875 | ;; | |
7876 | *) | |
7877 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7878 | for ac_dir in $PATH; do | |
7879 | test -z "$ac_dir" && ac_dir=. | |
7880 | if test -f $ac_dir/$ac_word; then | |
7881 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
7882 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
7883 | break | |
7884 | fi | |
7885 | fi | |
7886 | done | |
7887 | IFS="$ac_save_ifs" | |
7888 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
7889 | ;; | |
7890 | esac | |
7891 | fi | |
7892 | MSGFMT="$ac_cv_path_MSGFMT" | |
7893 | if test -n "$MSGFMT"; then | |
5464f5a1 NN |
7894 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
7895 | echo "${ECHO_T}$MSGFMT" >&6 | |
252b5132 | 7896 | else |
5464f5a1 NN |
7897 | echo "$as_me:$LINENO: result: no" >&5 |
7898 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7899 | fi |
7900 | ||
7901 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
7902 | set dummy gmsgfmt; ac_word=$2 | |
5464f5a1 NN |
7903 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7904 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7905 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
7906 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 7907 | else |
5464f5a1 NN |
7908 | case $GMSGFMT in |
7909 | [\\/]* | ?:[\\/]*) | |
252b5132 RH |
7910 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
7911 | ;; | |
252b5132 | 7912 | *) |
5464f5a1 NN |
7913 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7914 | for as_dir in $PATH | |
7915 | do | |
7916 | IFS=$as_save_IFS | |
7917 | test -z "$as_dir" && as_dir=. | |
7918 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7919 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7920 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
7921 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7922 | break 2 | |
7923 | fi | |
7924 | done | |
7925 | done | |
7926 | ||
252b5132 RH |
7927 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
7928 | ;; | |
7929 | esac | |
7930 | fi | |
5464f5a1 NN |
7931 | GMSGFMT=$ac_cv_path_GMSGFMT |
7932 | ||
252b5132 | 7933 | if test -n "$GMSGFMT"; then |
5464f5a1 NN |
7934 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
7935 | echo "${ECHO_T}$GMSGFMT" >&6 | |
252b5132 | 7936 | else |
5464f5a1 NN |
7937 | echo "$as_me:$LINENO: result: no" >&5 |
7938 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7939 | fi |
7940 | ||
7941 | # Extract the first word of "xgettext", so it can be a program name with args. | |
7942 | set dummy xgettext; ac_word=$2 | |
5464f5a1 NN |
7943 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7944 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7945 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
7946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
7947 | else |
7948 | case "$XGETTEXT" in | |
7949 | /*) | |
7950 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
7951 | ;; | |
7952 | *) | |
7953 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
7954 | for ac_dir in $PATH; do | |
7955 | test -z "$ac_dir" && ac_dir=. | |
7956 | if test -f $ac_dir/$ac_word; then | |
7957 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
7958 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
7959 | break | |
7960 | fi | |
7961 | fi | |
7962 | done | |
7963 | IFS="$ac_save_ifs" | |
7964 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
7965 | ;; | |
7966 | esac | |
7967 | fi | |
7968 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
7969 | if test -n "$XGETTEXT"; then | |
5464f5a1 NN |
7970 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
7971 | echo "${ECHO_T}$XGETTEXT" >&6 | |
252b5132 | 7972 | else |
5464f5a1 NN |
7973 | echo "$as_me:$LINENO: result: no" >&5 |
7974 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
7975 | fi |
7976 | ||
5464f5a1 | 7977 | |
252b5132 RH |
7978 | USE_INCLUDED_LIBINTL=yes |
7979 | CATOBJEXT=.gmo | |
7980 | INSTOBJEXT=.mo | |
7981 | DATADIRNAME=share | |
7982 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
7983 | INTLLIBS=$INTLDEPS | |
7984 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
7985 | nls_cv_header_intl=libintl.h | |
7986 | nls_cv_header_libgt=libgettext.h | |
7987 | fi | |
7988 | ||
7989 | if test "$XGETTEXT" != ":"; then | |
7990 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
7991 | : ; | |
7992 | else | |
5464f5a1 NN |
7993 | echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5 |
7994 | echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6 | |
252b5132 RH |
7995 | XGETTEXT=":" |
7996 | fi | |
7997 | fi | |
7998 | ||
7999 | # We need to process the po/ directory. | |
8000 | POSUB=po | |
8001 | else | |
8002 | DATADIRNAME=share | |
8003 | nls_cv_header_intl=libintl.h | |
8004 | nls_cv_header_libgt=libgettext.h | |
8005 | fi | |
8006 | ||
8007 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
8008 | # because some of the sources are only built for this goal. | |
8009 | if test "$PACKAGE" = gettext; then | |
8010 | USE_NLS=yes | |
8011 | USE_INCLUDED_LIBINTL=yes | |
8012 | fi | |
8013 | ||
8014 | for lang in $ALL_LINGUAS; do | |
8015 | GMOFILES="$GMOFILES $lang.gmo" | |
8016 | POFILES="$POFILES $lang.po" | |
8017 | done | |
8018 | ||
5464f5a1 NN |
8019 | |
8020 | ||
8021 | ||
8022 | ||
8023 | ||
8024 | ||
8025 | ||
8026 | ||
8027 | ||
8028 | ||
8029 | ||
c46f8c51 AC |
8030 | if test "x$CATOBJEXT" != "x"; then |
8031 | ||
8032 | cat >>confdefs.h <<\_ACEOF | |
8033 | #define ENABLE_NLS 1 | |
8034 | _ACEOF | |
8035 | ||
8036 | fi | |
5464f5a1 | 8037 | |
6be7c12c | 8038 | |
252b5132 RH |
8039 | if test "x$CATOBJEXT" != "x"; then |
8040 | if test "x$ALL_LINGUAS" = "x"; then | |
8041 | LINGUAS= | |
8042 | else | |
5464f5a1 NN |
8043 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
8044 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
252b5132 RH |
8045 | NEW_LINGUAS= |
8046 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
8047 | case "$ALL_LINGUAS" in | |
8048 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
8049 | esac | |
8050 | done | |
8051 | LINGUAS=$NEW_LINGUAS | |
5464f5a1 NN |
8052 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 |
8053 | echo "${ECHO_T}$LINGUAS" >&6 | |
252b5132 RH |
8054 | fi |
8055 | ||
8056 | if test -n "$LINGUAS"; then | |
8057 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
8058 | fi | |
8059 | fi | |
8060 | ||
8061 | if test $ac_cv_header_locale_h = yes; then | |
8062 | INCLUDE_LOCALE_H="#include <locale.h>" | |
8063 | else | |
8064 | INCLUDE_LOCALE_H="\ | |
8065 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
8066 | fi | |
5464f5a1 | 8067 | |
252b5132 RH |
8068 | |
8069 | if test -f $srcdir/po2tbl.sed.in; then | |
8070 | if test "$CATOBJEXT" = ".cat"; then | |
5464f5a1 NN |
8071 | if test "${ac_cv_header_linux_version_h+set}" = set; then |
8072 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
8073 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
8074 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
8075 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8076 | fi | |
8077 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
8078 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
8079 | else | |
8080 | # Is the header compilable? | |
8081 | echo "$as_me:$LINENO: checking linux/version.h usability" >&5 | |
8082 | echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6 | |
8083 | cat >conftest.$ac_ext <<_ACEOF | |
8084 | /* confdefs.h. */ | |
8085 | _ACEOF | |
8086 | cat confdefs.h >>conftest.$ac_ext | |
8087 | cat >>conftest.$ac_ext <<_ACEOF | |
8088 | /* end confdefs.h. */ | |
8089 | $ac_includes_default | |
252b5132 | 8090 | #include <linux/version.h> |
5464f5a1 NN |
8091 | _ACEOF |
8092 | rm -f conftest.$ac_objext | |
8093 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8094 | (eval $ac_compile) 2>conftest.er1 | |
8095 | ac_status=$? | |
8096 | grep -v '^ *+' conftest.er1 >conftest.err | |
8097 | rm -f conftest.er1 | |
8098 | cat conftest.err >&5 | |
8099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8100 | (exit $ac_status); } && | |
eac338cf | 8101 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
8102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8103 | (eval $ac_try) 2>&5 | |
8104 | ac_status=$? | |
8105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8106 | (exit $ac_status); }; } && | |
8107 | { ac_try='test -s conftest.$ac_objext' | |
8108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8109 | (eval $ac_try) 2>&5 | |
8110 | ac_status=$? | |
8111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8112 | (exit $ac_status); }; }; then | |
8113 | ac_header_compiler=yes | |
8114 | else | |
8115 | echo "$as_me: failed program was:" >&5 | |
8116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8117 | ||
8118 | ac_header_compiler=no | |
8119 | fi | |
8120 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8121 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8122 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8123 | ||
8124 | # Is the header present? | |
8125 | echo "$as_me:$LINENO: checking linux/version.h presence" >&5 | |
8126 | echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6 | |
8127 | cat >conftest.$ac_ext <<_ACEOF | |
8128 | /* confdefs.h. */ | |
8129 | _ACEOF | |
8130 | cat confdefs.h >>conftest.$ac_ext | |
8131 | cat >>conftest.$ac_ext <<_ACEOF | |
8132 | /* end confdefs.h. */ | |
8133 | #include <linux/version.h> | |
8134 | _ACEOF | |
8135 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8136 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8137 | ac_status=$? | |
8138 | grep -v '^ *+' conftest.er1 >conftest.err | |
8139 | rm -f conftest.er1 | |
8140 | cat conftest.err >&5 | |
8141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8142 | (exit $ac_status); } >/dev/null; then | |
8143 | if test -s conftest.err; then | |
8144 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8145 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8146 | else | |
8147 | ac_cpp_err= | |
8148 | fi | |
252b5132 | 8149 | else |
5464f5a1 | 8150 | ac_cpp_err=yes |
252b5132 | 8151 | fi |
5464f5a1 NN |
8152 | if test -z "$ac_cpp_err"; then |
8153 | ac_header_preproc=yes | |
8154 | else | |
8155 | echo "$as_me: failed program was:" >&5 | |
8156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8157 | ||
8158 | ac_header_preproc=no | |
8159 | fi | |
8160 | rm -f conftest.err conftest.$ac_ext | |
8161 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8162 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8163 | ||
8164 | # So? What about this header? | |
8165 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8166 | yes:no: ) | |
8167 | { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8168 | echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8169 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5 | |
8170 | echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;} | |
8171 | ac_header_preproc=yes | |
8172 | ;; | |
8173 | no:yes:* ) | |
8174 | { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5 | |
8175 | echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;} | |
8176 | { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5 | |
8177 | echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;} | |
8178 | { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5 | |
8179 | echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;} | |
8180 | { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5 | |
8181 | echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
8182 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 | |
8183 | echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;} | |
8184 | { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5 | |
8185 | echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;} | |
8186 | ( | |
8187 | cat <<\_ASBOX | |
8188 | ## ------------------------------------------ ## | |
8189 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8190 | ## ------------------------------------------ ## | |
8191 | _ASBOX | |
8192 | ) | | |
8193 | sed "s/^/$as_me: WARNING: /" >&2 | |
8194 | ;; | |
8195 | esac | |
8196 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
8197 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
8198 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
8199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8200 | else | |
8201 | ac_cv_header_linux_version_h=$ac_header_preproc | |
8202 | fi | |
8203 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
8204 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
8205 | ||
252b5132 | 8206 | fi |
5464f5a1 | 8207 | if test $ac_cv_header_linux_version_h = yes; then |
252b5132 RH |
8208 | msgformat=linux |
8209 | else | |
5464f5a1 | 8210 | msgformat=xopen |
252b5132 RH |
8211 | fi |
8212 | ||
6be7c12c | 8213 | |
5464f5a1 | 8214 | |
252b5132 RH |
8215 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed |
8216 | fi | |
8217 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
8218 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
8219 | fi | |
8220 | ||
8221 | if test "$PACKAGE" = "gettext"; then | |
8222 | GT_NO="#NO#" | |
8223 | GT_YES= | |
8224 | else | |
8225 | GT_NO= | |
8226 | GT_YES="#YES#" | |
8227 | fi | |
5464f5a1 NN |
8228 | |
8229 | ||
252b5132 RH |
8230 | |
8231 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
5464f5a1 | 8232 | |
252b5132 RH |
8233 | |
8234 | l= | |
5464f5a1 | 8235 | |
252b5132 | 8236 | |
3c3bdf30 | 8237 | if test -f $srcdir/po/POTFILES.in; then |
252b5132 RH |
8238 | test -d po || mkdir po |
8239 | if test "x$srcdir" != "x."; then | |
8240 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
8241 | posrcprefix="$srcdir/" | |
8242 | else | |
8243 | posrcprefix="../$srcdir/" | |
8244 | fi | |
8245 | else | |
8246 | posrcprefix="../" | |
8247 | fi | |
8248 | rm -f po/POTFILES | |
8249 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
8250 | < $srcdir/po/POTFILES.in > po/POTFILES | |
8251 | fi | |
5464f5a1 | 8252 | |
252b5132 RH |
8253 | |
8254 | # Permit host specific settings. | |
8255 | . ${srcdir}/configure.host | |
8256 | ||
6be7c12c | 8257 | |
252b5132 RH |
8258 | # Find a good install program. We prefer a C program (faster), |
8259 | # so one script is as good as another. But avoid the broken or | |
8260 | # incompatible versions: | |
8261 | # SysV /etc/install, /usr/sbin/install | |
8262 | # SunOS /usr/etc/install | |
8263 | # IRIX /sbin/install | |
8264 | # AIX /bin/install | |
5464f5a1 | 8265 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
252b5132 RH |
8266 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
8267 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
8268 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5464f5a1 | 8269 | # OS/2's system install, which has a completely different semantic |
252b5132 | 8270 | # ./install, which can be erroneously created by make from ./install.sh. |
5464f5a1 NN |
8271 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
8272 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
252b5132 | 8273 | if test -z "$INSTALL"; then |
5464f5a1 NN |
8274 | if test "${ac_cv_path_install+set}" = set; then |
8275 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 8276 | else |
5464f5a1 NN |
8277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8278 | for as_dir in $PATH | |
8279 | do | |
8280 | IFS=$as_save_IFS | |
8281 | test -z "$as_dir" && as_dir=. | |
8282 | # Account for people who put trailing slashes in PATH elements. | |
8283 | case $as_dir/ in | |
8284 | ./ | .// | /cC/* | \ | |
8285 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
8286 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
8287 | /usr/ucb/* ) ;; | |
8288 | *) | |
8289 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
8290 | # Don't use installbsd from OSF since it installs stuff as root | |
8291 | # by default. | |
8292 | for ac_prog in ginstall scoinst install; do | |
8293 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8294 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
252b5132 | 8295 | if test $ac_prog = install && |
5464f5a1 | 8296 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
8297 | # AIX install. It has an incompatible calling convention. |
8298 | : | |
5464f5a1 NN |
8299 | elif test $ac_prog = install && |
8300 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
8301 | # program-specific install script used by HP pwplus--don't use. | |
8302 | : | |
252b5132 | 8303 | else |
5464f5a1 NN |
8304 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
8305 | break 3 | |
252b5132 RH |
8306 | fi |
8307 | fi | |
8308 | done | |
5464f5a1 NN |
8309 | done |
8310 | ;; | |
8311 | esac | |
8312 | done | |
8313 | ||
252b5132 RH |
8314 | |
8315 | fi | |
8316 | if test "${ac_cv_path_install+set}" = set; then | |
5464f5a1 | 8317 | INSTALL=$ac_cv_path_install |
252b5132 RH |
8318 | else |
8319 | # As a last resort, use the slow shell script. We don't cache a | |
8320 | # path for INSTALL within a source directory, because that will | |
8321 | # break other packages using the cache if that directory is | |
8322 | # removed, or if the path is relative. | |
5464f5a1 | 8323 | INSTALL=$ac_install_sh |
252b5132 RH |
8324 | fi |
8325 | fi | |
5464f5a1 NN |
8326 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
8327 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
8328 | |
8329 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
8330 | # It thinks the first close brace ends the variable substitution. | |
8331 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
8332 | ||
5464f5a1 | 8333 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
8334 | |
8335 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
8336 | ||
6be7c12c | 8337 | |
252b5132 | 8338 | BFD_HOST_64BIT_LONG=0 |
ec317fb1 | 8339 | BFD_HOST_LONG_LONG=0 |
252b5132 RH |
8340 | BFD_HOST_64_BIT_DEFINED=0 |
8341 | BFD_HOST_64_BIT= | |
8342 | BFD_HOST_U_64_BIT= | |
252b5132 | 8343 | |
5464f5a1 NN |
8344 | echo "$as_me:$LINENO: checking for long long" >&5 |
8345 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
8346 | if test "${bfd_cv_has_long_long+set}" = set; then | |
8347 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
ec317fb1 | 8348 | else |
5464f5a1 NN |
8349 | cat >conftest.$ac_ext <<_ACEOF |
8350 | /* confdefs.h. */ | |
8351 | _ACEOF | |
8352 | cat confdefs.h >>conftest.$ac_ext | |
8353 | cat >>conftest.$ac_ext <<_ACEOF | |
8354 | /* end confdefs.h. */ | |
ec317fb1 | 8355 | |
5464f5a1 NN |
8356 | int |
8357 | main () | |
8358 | { | |
ec317fb1 | 8359 | unsigned long long ll = 18446744073709551615ULL; |
5464f5a1 NN |
8360 | ; |
8361 | return 0; | |
8362 | } | |
8363 | _ACEOF | |
8364 | rm -f conftest.$ac_objext | |
8365 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8366 | (eval $ac_compile) 2>conftest.er1 | |
8367 | ac_status=$? | |
8368 | grep -v '^ *+' conftest.er1 >conftest.err | |
8369 | rm -f conftest.er1 | |
8370 | cat conftest.err >&5 | |
8371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8372 | (exit $ac_status); } && | |
eac338cf | 8373 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
8374 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8375 | (eval $ac_try) 2>&5 | |
8376 | ac_status=$? | |
8377 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8378 | (exit $ac_status); }; } && | |
8379 | { ac_try='test -s conftest.$ac_objext' | |
8380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8381 | (eval $ac_try) 2>&5 | |
8382 | ac_status=$? | |
8383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8384 | (exit $ac_status); }; }; then | |
ec317fb1 ILT |
8385 | bfd_cv_has_long_long=yes |
8386 | else | |
5464f5a1 NN |
8387 | echo "$as_me: failed program was:" >&5 |
8388 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8389 | ||
8390 | bfd_cv_has_long_long=no | |
ec317fb1 | 8391 | fi |
5464f5a1 | 8392 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ec317fb1 ILT |
8393 | fi |
8394 | ||
5464f5a1 NN |
8395 | echo "$as_me:$LINENO: result: $bfd_cv_has_long_long" >&5 |
8396 | echo "${ECHO_T}$bfd_cv_has_long_long" >&6 | |
ec317fb1 ILT |
8397 | if test $bfd_cv_has_long_long = yes; then |
8398 | BFD_HOST_LONG_LONG=1 | |
5464f5a1 NN |
8399 | echo "$as_me:$LINENO: checking size of long long" >&5 |
8400 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
8401 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
8402 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6726e1ea L |
8403 | else |
8404 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence. | |
5464f5a1 NN |
8405 | cat >conftest.$ac_ext <<_ACEOF |
8406 | /* confdefs.h. */ | |
8407 | _ACEOF | |
8408 | cat confdefs.h >>conftest.$ac_ext | |
8409 | cat >>conftest.$ac_ext <<_ACEOF | |
8410 | /* end confdefs.h. */ | |
6726e1ea L |
8411 | #include "confdefs.h" |
8412 | #include <sys/types.h> | |
8413 | ||
8414 | ||
5464f5a1 NN |
8415 | int |
8416 | main () | |
8417 | { | |
6726e1ea | 8418 | switch (0) case 0: case (sizeof (long long) == $ac_size):; |
5464f5a1 NN |
8419 | ; |
8420 | return 0; | |
8421 | } | |
8422 | _ACEOF | |
8423 | rm -f conftest.$ac_objext | |
8424 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8425 | (eval $ac_compile) 2>conftest.er1 | |
8426 | ac_status=$? | |
8427 | grep -v '^ *+' conftest.er1 >conftest.err | |
8428 | rm -f conftest.er1 | |
8429 | cat conftest.err >&5 | |
8430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8431 | (exit $ac_status); } && | |
eac338cf | 8432 | { ac_try='test -z "$ac_c_werror_flag" || 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 | |
6726e1ea L |
8444 | ac_cv_sizeof_long_long=$ac_size |
8445 | else | |
5464f5a1 NN |
8446 | echo "$as_me: failed program was:" >&5 |
8447 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8448 | ||
6726e1ea | 8449 | fi |
5464f5a1 | 8450 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6726e1ea L |
8451 | if test x$ac_cv_sizeof_long_long != x ; then break; fi |
8452 | done | |
8453 | ||
8454 | fi | |
8455 | ||
8456 | if test x$ac_cv_sizeof_long_long = x ; then | |
5464f5a1 NN |
8457 | { { echo "$as_me:$LINENO: error: cannot determine a size for long long" >&5 |
8458 | echo "$as_me: error: cannot determine a size for long long" >&2;} | |
8459 | { (exit 1); exit 1; }; } | |
6726e1ea | 8460 | fi |
5464f5a1 NN |
8461 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
8462 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
8463 | ||
8464 | cat >>confdefs.h <<_ACEOF | |
6726e1ea | 8465 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
5464f5a1 | 8466 | _ACEOF |
6726e1ea L |
8467 | |
8468 | ||
8469 | fi | |
8470 | ||
5464f5a1 NN |
8471 | echo "$as_me:$LINENO: checking size of long" >&5 |
8472 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
8473 | if test "${ac_cv_sizeof_long+set}" = set; then | |
8474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6726e1ea L |
8475 | else |
8476 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence. | |
5464f5a1 NN |
8477 | cat >conftest.$ac_ext <<_ACEOF |
8478 | /* confdefs.h. */ | |
8479 | _ACEOF | |
8480 | cat confdefs.h >>conftest.$ac_ext | |
8481 | cat >>conftest.$ac_ext <<_ACEOF | |
8482 | /* end confdefs.h. */ | |
6726e1ea L |
8483 | #include "confdefs.h" |
8484 | #include <sys/types.h> | |
8485 | ||
8486 | ||
5464f5a1 NN |
8487 | int |
8488 | main () | |
8489 | { | |
6726e1ea | 8490 | switch (0) case 0: case (sizeof (long) == $ac_size):; |
5464f5a1 NN |
8491 | ; |
8492 | return 0; | |
8493 | } | |
8494 | _ACEOF | |
8495 | rm -f conftest.$ac_objext | |
8496 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8497 | (eval $ac_compile) 2>conftest.er1 | |
8498 | ac_status=$? | |
8499 | grep -v '^ *+' conftest.er1 >conftest.err | |
8500 | rm -f conftest.er1 | |
8501 | cat conftest.err >&5 | |
8502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8503 | (exit $ac_status); } && | |
eac338cf | 8504 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
8505 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8506 | (eval $ac_try) 2>&5 | |
8507 | ac_status=$? | |
8508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8509 | (exit $ac_status); }; } && | |
8510 | { ac_try='test -s conftest.$ac_objext' | |
8511 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8512 | (eval $ac_try) 2>&5 | |
8513 | ac_status=$? | |
8514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8515 | (exit $ac_status); }; }; then | |
6726e1ea L |
8516 | ac_cv_sizeof_long=$ac_size |
8517 | else | |
5464f5a1 NN |
8518 | echo "$as_me: failed program was:" >&5 |
8519 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8520 | ||
6726e1ea | 8521 | fi |
5464f5a1 | 8522 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6726e1ea L |
8523 | if test x$ac_cv_sizeof_long != x ; then break; fi |
8524 | done | |
8525 | ||
8526 | fi | |
8527 | ||
8528 | if test x$ac_cv_sizeof_long = x ; then | |
5464f5a1 NN |
8529 | { { echo "$as_me:$LINENO: error: cannot determine a size for long" >&5 |
8530 | echo "$as_me: error: cannot determine a size for long" >&2;} | |
8531 | { (exit 1); exit 1; }; } | |
6726e1ea | 8532 | fi |
5464f5a1 NN |
8533 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 |
8534 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
8535 | ||
8536 | cat >>confdefs.h <<_ACEOF | |
6726e1ea | 8537 | #define SIZEOF_LONG $ac_cv_sizeof_long |
5464f5a1 | 8538 | _ACEOF |
6726e1ea L |
8539 | |
8540 | ||
8541 | if test "x${ac_cv_sizeof_long}" = "x8"; then | |
8542 | host64=true | |
ccba357f AM |
8543 | BFD_HOST_64BIT_LONG=1 |
8544 | test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long" | |
8545 | test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long" | |
6726e1ea | 8546 | elif test "x${ac_cv_sizeof_long_long}" = "x8"; then |
ccba357f AM |
8547 | test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long" |
8548 | test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long" | |
6726e1ea L |
8549 | fi |
8550 | ||
ccba357f | 8551 | if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then |
6726e1ea | 8552 | BFD_HOST_64_BIT_DEFINED=1 |
ccba357f AM |
8553 | BFD_HOST_64_BIT="${HOST_64BIT_TYPE}" |
8554 | BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}" | |
ec317fb1 ILT |
8555 | fi |
8556 | ||
8557 | ||
8558 | ||
6be7c12c AO |
8559 | |
8560 | ||
8561 | ||
8562 | ||
252b5132 RH |
8563 | # Put a plausible default for CC_FOR_BUILD in Makefile. |
8564 | if test -z "$CC_FOR_BUILD"; then | |
8565 | if test "x$cross_compiling" = "xno"; then | |
8566 | CC_FOR_BUILD='$(CC)' | |
8567 | else | |
8568 | CC_FOR_BUILD=gcc | |
8569 | fi | |
8570 | fi | |
8571 | ||
8572 | # Also set EXEEXT_FOR_BUILD. | |
8573 | if test "x$cross_compiling" = "xno"; then | |
8574 | EXEEXT_FOR_BUILD='$(EXEEXT)' | |
8575 | else | |
5464f5a1 NN |
8576 | echo "$as_me:$LINENO: checking for build system executable suffix" >&5 |
8577 | echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6 | |
8578 | if test "${bfd_cv_build_exeext+set}" = set; then | |
8579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 8580 | else |
aab08431 ILT |
8581 | rm -f conftest* |
8582 | echo 'int main () { return 0; }' > conftest.c | |
8583 | bfd_cv_build_exeext= | |
8584 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 | |
8585 | for file in conftest.*; do | |
8586 | case $file in | |
8587 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
8588 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; | |
8589 | esac | |
8590 | done | |
8591 | rm -f conftest* | |
8592 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no | |
252b5132 | 8593 | fi |
5464f5a1 NN |
8594 | echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5 |
8595 | echo "${ECHO_T}$bfd_cv_build_exeext" >&6 | |
252b5132 RH |
8596 | EXEEXT_FOR_BUILD="" |
8597 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} | |
8598 | fi | |
8599 | ||
6be7c12c | 8600 | |
5464f5a1 NN |
8601 | |
8602 | ||
8603 | ||
8604 | ||
8605 | ||
8606 | ||
8607 | for ac_header in stddef.h string.h strings.h stdlib.h time.h unistd.h | |
252b5132 | 8608 | do |
5464f5a1 NN |
8609 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8610 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8611 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8612 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8613 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8614 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8615 | fi | |
8616 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8617 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8618 | else | |
8619 | # Is the header compilable? | |
8620 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8621 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8622 | cat >conftest.$ac_ext <<_ACEOF | |
8623 | /* confdefs.h. */ | |
8624 | _ACEOF | |
8625 | cat confdefs.h >>conftest.$ac_ext | |
8626 | cat >>conftest.$ac_ext <<_ACEOF | |
8627 | /* end confdefs.h. */ | |
8628 | $ac_includes_default | |
8629 | #include <$ac_header> | |
8630 | _ACEOF | |
8631 | rm -f conftest.$ac_objext | |
8632 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8633 | (eval $ac_compile) 2>conftest.er1 | |
8634 | ac_status=$? | |
8635 | grep -v '^ *+' conftest.er1 >conftest.err | |
8636 | rm -f conftest.er1 | |
8637 | cat conftest.err >&5 | |
8638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8639 | (exit $ac_status); } && | |
eac338cf | 8640 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
8641 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8642 | (eval $ac_try) 2>&5 | |
8643 | ac_status=$? | |
8644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8645 | (exit $ac_status); }; } && | |
8646 | { ac_try='test -s conftest.$ac_objext' | |
8647 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8648 | (eval $ac_try) 2>&5 | |
8649 | ac_status=$? | |
8650 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8651 | (exit $ac_status); }; }; then | |
8652 | ac_header_compiler=yes | |
8653 | else | |
8654 | echo "$as_me: failed program was:" >&5 | |
8655 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8656 | ||
8657 | ac_header_compiler=no | |
8658 | fi | |
8659 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8660 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8661 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8662 | ||
8663 | # Is the header present? | |
8664 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8665 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8666 | cat >conftest.$ac_ext <<_ACEOF | |
8667 | /* confdefs.h. */ | |
8668 | _ACEOF | |
8669 | cat confdefs.h >>conftest.$ac_ext | |
8670 | cat >>conftest.$ac_ext <<_ACEOF | |
8671 | /* end confdefs.h. */ | |
8672 | #include <$ac_header> | |
8673 | _ACEOF | |
8674 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8675 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8676 | ac_status=$? | |
8677 | grep -v '^ *+' conftest.er1 >conftest.err | |
8678 | rm -f conftest.er1 | |
8679 | cat conftest.err >&5 | |
8680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8681 | (exit $ac_status); } >/dev/null; then | |
8682 | if test -s conftest.err; then | |
8683 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8684 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8685 | else | |
8686 | ac_cpp_err= | |
8687 | fi | |
252b5132 | 8688 | else |
5464f5a1 | 8689 | ac_cpp_err=yes |
252b5132 | 8690 | fi |
5464f5a1 NN |
8691 | if test -z "$ac_cpp_err"; then |
8692 | ac_header_preproc=yes | |
8693 | else | |
8694 | echo "$as_me: failed program was:" >&5 | |
8695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8696 | ||
8697 | ac_header_preproc=no | |
252b5132 | 8698 | fi |
5464f5a1 NN |
8699 | rm -f conftest.err conftest.$ac_ext |
8700 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8701 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8702 | ||
8703 | # So? What about this header? | |
8704 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8705 | yes:no: ) | |
8706 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8707 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8708 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8709 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8710 | ac_header_preproc=yes | |
8711 | ;; | |
8712 | no:yes:* ) | |
8713 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8714 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8715 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8716 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8717 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8718 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8719 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8720 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8721 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8722 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8723 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8724 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8725 | ( | |
8726 | cat <<\_ASBOX | |
8727 | ## ------------------------------------------ ## | |
8728 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8729 | ## ------------------------------------------ ## | |
8730 | _ASBOX | |
8731 | ) | | |
8732 | sed "s/^/$as_me: WARNING: /" >&2 | |
8733 | ;; | |
8734 | esac | |
8735 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8736 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8737 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 8739 | else |
5464f5a1 NN |
8740 | eval "$as_ac_Header=\$ac_header_preproc" |
8741 | fi | |
8742 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8743 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8744 | ||
252b5132 | 8745 | fi |
5464f5a1 NN |
8746 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
8747 | cat >>confdefs.h <<_ACEOF | |
8748 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8749 | _ACEOF | |
8750 | ||
8751 | fi | |
8752 | ||
252b5132 RH |
8753 | done |
8754 | ||
5464f5a1 NN |
8755 | |
8756 | ||
8757 | ||
8758 | for ac_header in fcntl.h sys/file.h sys/time.h | |
252b5132 | 8759 | do |
5464f5a1 NN |
8760 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8761 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8762 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8763 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8764 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8766 | fi | |
8767 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8768 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8769 | else | |
8770 | # Is the header compilable? | |
8771 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8772 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8773 | cat >conftest.$ac_ext <<_ACEOF | |
8774 | /* confdefs.h. */ | |
8775 | _ACEOF | |
8776 | cat confdefs.h >>conftest.$ac_ext | |
8777 | cat >>conftest.$ac_ext <<_ACEOF | |
8778 | /* end confdefs.h. */ | |
8779 | $ac_includes_default | |
8780 | #include <$ac_header> | |
8781 | _ACEOF | |
8782 | rm -f conftest.$ac_objext | |
8783 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8784 | (eval $ac_compile) 2>conftest.er1 | |
8785 | ac_status=$? | |
8786 | grep -v '^ *+' conftest.er1 >conftest.err | |
8787 | rm -f conftest.er1 | |
8788 | cat conftest.err >&5 | |
8789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8790 | (exit $ac_status); } && | |
eac338cf | 8791 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
8792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8793 | (eval $ac_try) 2>&5 | |
8794 | ac_status=$? | |
8795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8796 | (exit $ac_status); }; } && | |
8797 | { ac_try='test -s conftest.$ac_objext' | |
8798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8799 | (eval $ac_try) 2>&5 | |
8800 | ac_status=$? | |
8801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8802 | (exit $ac_status); }; }; then | |
8803 | ac_header_compiler=yes | |
8804 | else | |
8805 | echo "$as_me: failed program was:" >&5 | |
8806 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8807 | ||
8808 | ac_header_compiler=no | |
8809 | fi | |
8810 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8811 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8812 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8813 | ||
8814 | # Is the header present? | |
8815 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8816 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8817 | cat >conftest.$ac_ext <<_ACEOF | |
8818 | /* confdefs.h. */ | |
8819 | _ACEOF | |
8820 | cat confdefs.h >>conftest.$ac_ext | |
8821 | cat >>conftest.$ac_ext <<_ACEOF | |
8822 | /* end confdefs.h. */ | |
8823 | #include <$ac_header> | |
8824 | _ACEOF | |
8825 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8826 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8827 | ac_status=$? | |
8828 | grep -v '^ *+' conftest.er1 >conftest.err | |
8829 | rm -f conftest.er1 | |
8830 | cat conftest.err >&5 | |
8831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8832 | (exit $ac_status); } >/dev/null; then | |
8833 | if test -s conftest.err; then | |
8834 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8835 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8836 | else | |
8837 | ac_cpp_err= | |
8838 | fi | |
252b5132 | 8839 | else |
5464f5a1 | 8840 | ac_cpp_err=yes |
252b5132 | 8841 | fi |
5464f5a1 NN |
8842 | if test -z "$ac_cpp_err"; then |
8843 | ac_header_preproc=yes | |
8844 | else | |
8845 | echo "$as_me: failed program was:" >&5 | |
8846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8847 | ||
8848 | ac_header_preproc=no | |
252b5132 | 8849 | fi |
5464f5a1 NN |
8850 | rm -f conftest.err conftest.$ac_ext |
8851 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8852 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8853 | ||
8854 | # So? What about this header? | |
8855 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8856 | yes:no: ) | |
8857 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8858 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8859 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8860 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8861 | ac_header_preproc=yes | |
8862 | ;; | |
8863 | no:yes:* ) | |
8864 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8865 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8866 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8867 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8868 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8869 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8870 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8871 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8872 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8873 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8874 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8875 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8876 | ( | |
8877 | cat <<\_ASBOX | |
8878 | ## ------------------------------------------ ## | |
8879 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8880 | ## ------------------------------------------ ## | |
8881 | _ASBOX | |
8882 | ) | | |
8883 | sed "s/^/$as_me: WARNING: /" >&2 | |
8884 | ;; | |
8885 | esac | |
8886 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8887 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8888 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 8890 | else |
5464f5a1 NN |
8891 | eval "$as_ac_Header=\$ac_header_preproc" |
8892 | fi | |
8893 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8894 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8895 | ||
8896 | fi | |
8897 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8898 | cat >>confdefs.h <<_ACEOF | |
8899 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8900 | _ACEOF | |
8901 | ||
252b5132 | 8902 | fi |
5464f5a1 | 8903 | |
252b5132 RH |
8904 | done |
8905 | ||
5464f5a1 NN |
8906 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
8907 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
8908 | if test "${ac_cv_header_time+set}" = set; then | |
8909 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8910 | else | |
8911 | cat >conftest.$ac_ext <<_ACEOF | |
8912 | /* confdefs.h. */ | |
8913 | _ACEOF | |
8914 | cat confdefs.h >>conftest.$ac_ext | |
8915 | cat >>conftest.$ac_ext <<_ACEOF | |
8916 | /* end confdefs.h. */ | |
252b5132 RH |
8917 | #include <sys/types.h> |
8918 | #include <sys/time.h> | |
8919 | #include <time.h> | |
5464f5a1 NN |
8920 | |
8921 | int | |
8922 | main () | |
8923 | { | |
8924 | if ((struct tm *) 0) | |
8925 | return 0; | |
8926 | ; | |
8927 | return 0; | |
8928 | } | |
8929 | _ACEOF | |
8930 | rm -f conftest.$ac_objext | |
8931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8932 | (eval $ac_compile) 2>conftest.er1 | |
8933 | ac_status=$? | |
8934 | grep -v '^ *+' conftest.er1 >conftest.err | |
8935 | rm -f conftest.er1 | |
8936 | cat conftest.err >&5 | |
8937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8938 | (exit $ac_status); } && | |
eac338cf | 8939 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
8940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
8941 | (eval $ac_try) 2>&5 | |
8942 | ac_status=$? | |
8943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8944 | (exit $ac_status); }; } && | |
8945 | { ac_try='test -s conftest.$ac_objext' | |
8946 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8947 | (eval $ac_try) 2>&5 | |
8948 | ac_status=$? | |
8949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8950 | (exit $ac_status); }; }; then | |
252b5132 RH |
8951 | ac_cv_header_time=yes |
8952 | else | |
5464f5a1 NN |
8953 | echo "$as_me: failed program was:" >&5 |
8954 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8955 | ||
8956 | ac_cv_header_time=no | |
252b5132 | 8957 | fi |
5464f5a1 | 8958 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 8959 | fi |
5464f5a1 NN |
8960 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
8961 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
6be7c12c | 8962 | if test $ac_cv_header_time = yes; then |
5464f5a1 NN |
8963 | |
8964 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 8965 | #define TIME_WITH_SYS_TIME 1 |
5464f5a1 | 8966 | _ACEOF |
252b5132 RH |
8967 | |
8968 | fi | |
8969 | ||
5464f5a1 NN |
8970 | |
8971 | ||
8972 | ||
8973 | ||
8974 | ||
252b5132 | 8975 | ac_header_dirent=no |
5464f5a1 NN |
8976 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
8977 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
8978 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
8979 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
8980 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8982 | else | |
8983 | cat >conftest.$ac_ext <<_ACEOF | |
8984 | /* confdefs.h. */ | |
8985 | _ACEOF | |
8986 | cat confdefs.h >>conftest.$ac_ext | |
8987 | cat >>conftest.$ac_ext <<_ACEOF | |
8988 | /* end confdefs.h. */ | |
252b5132 RH |
8989 | #include <sys/types.h> |
8990 | #include <$ac_hdr> | |
5464f5a1 NN |
8991 | |
8992 | int | |
8993 | main () | |
8994 | { | |
8995 | if ((DIR *) 0) | |
8996 | return 0; | |
8997 | ; | |
8998 | return 0; | |
8999 | } | |
9000 | _ACEOF | |
9001 | rm -f conftest.$ac_objext | |
9002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9003 | (eval $ac_compile) 2>conftest.er1 | |
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); } && | |
eac338cf | 9010 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
9011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9012 | (eval $ac_try) 2>&5 | |
9013 | ac_status=$? | |
9014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9015 | (exit $ac_status); }; } && | |
9016 | { ac_try='test -s conftest.$ac_objext' | |
9017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9018 | (eval $ac_try) 2>&5 | |
9019 | ac_status=$? | |
9020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9021 | (exit $ac_status); }; }; then | |
9022 | eval "$as_ac_Header=yes" | |
9023 | else | |
9024 | echo "$as_me: failed program was:" >&5 | |
9025 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9026 | ||
9027 | eval "$as_ac_Header=no" | |
9028 | fi | |
9029 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9030 | fi | |
9031 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
9032 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
9033 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
9034 | cat >>confdefs.h <<_ACEOF | |
9035 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
9036 | _ACEOF | |
9037 | ||
9038 | ac_header_dirent=$ac_hdr; break | |
252b5132 | 9039 | fi |
5464f5a1 | 9040 | |
252b5132 RH |
9041 | done |
9042 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
9043 | if test $ac_header_dirent = dirent.h; then | |
5464f5a1 NN |
9044 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
9045 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
9046 | if test "${ac_cv_search_opendir+set}" = set; then | |
9047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9048 | else | |
9049 | ac_func_search_save_LIBS=$LIBS | |
9050 | ac_cv_search_opendir=no | |
9051 | cat >conftest.$ac_ext <<_ACEOF | |
9052 | /* confdefs.h. */ | |
9053 | _ACEOF | |
9054 | cat confdefs.h >>conftest.$ac_ext | |
9055 | cat >>conftest.$ac_ext <<_ACEOF | |
9056 | /* end confdefs.h. */ | |
9057 | ||
252b5132 | 9058 | /* Override any gcc2 internal prototype to avoid an error. */ |
5464f5a1 NN |
9059 | #ifdef __cplusplus |
9060 | extern "C" | |
9061 | #endif | |
252b5132 | 9062 | /* We use char because int might match the return type of a gcc2 |
5464f5a1 NN |
9063 | builtin and then its argument prototype would still apply. */ |
9064 | char opendir (); | |
9065 | int | |
9066 | main () | |
9067 | { | |
9068 | opendir (); | |
9069 | ; | |
9070 | return 0; | |
9071 | } | |
9072 | _ACEOF | |
9073 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9074 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9075 | (eval $ac_link) 2>conftest.er1 | |
9076 | ac_status=$? | |
9077 | grep -v '^ *+' conftest.er1 >conftest.err | |
9078 | rm -f conftest.er1 | |
9079 | cat conftest.err >&5 | |
9080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9081 | (exit $ac_status); } && | |
eac338cf | 9082 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
9083 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9084 | (eval $ac_try) 2>&5 | |
9085 | ac_status=$? | |
9086 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9087 | (exit $ac_status); }; } && | |
9088 | { ac_try='test -s conftest$ac_exeext' | |
9089 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9090 | (eval $ac_try) 2>&5 | |
9091 | ac_status=$? | |
9092 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9093 | (exit $ac_status); }; }; then | |
9094 | ac_cv_search_opendir="none required" | |
9095 | else | |
9096 | echo "$as_me: failed program was:" >&5 | |
9097 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9098 | ||
9099 | fi | |
9100 | rm -f conftest.err conftest.$ac_objext \ | |
9101 | conftest$ac_exeext conftest.$ac_ext | |
9102 | if test "$ac_cv_search_opendir" = no; then | |
9103 | for ac_lib in dir; do | |
9104 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9105 | cat >conftest.$ac_ext <<_ACEOF | |
9106 | /* confdefs.h. */ | |
9107 | _ACEOF | |
9108 | cat confdefs.h >>conftest.$ac_ext | |
9109 | cat >>conftest.$ac_ext <<_ACEOF | |
9110 | /* end confdefs.h. */ | |
6be7c12c | 9111 | |
5464f5a1 NN |
9112 | /* Override any gcc2 internal prototype to avoid an error. */ |
9113 | #ifdef __cplusplus | |
9114 | extern "C" | |
9115 | #endif | |
9116 | /* We use char because int might match the return type of a gcc2 | |
9117 | builtin and then its argument prototype would still apply. */ | |
9118 | char opendir (); | |
9119 | int | |
9120 | main () | |
9121 | { | |
9122 | opendir (); | |
9123 | ; | |
9124 | return 0; | |
9125 | } | |
9126 | _ACEOF | |
9127 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9128 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9129 | (eval $ac_link) 2>conftest.er1 | |
9130 | ac_status=$? | |
9131 | grep -v '^ *+' conftest.er1 >conftest.err | |
9132 | rm -f conftest.er1 | |
9133 | cat conftest.err >&5 | |
9134 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9135 | (exit $ac_status); } && | |
eac338cf | 9136 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
9137 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9138 | (eval $ac_try) 2>&5 | |
9139 | ac_status=$? | |
9140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9141 | (exit $ac_status); }; } && | |
9142 | { ac_try='test -s conftest$ac_exeext' | |
9143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9144 | (eval $ac_try) 2>&5 | |
9145 | ac_status=$? | |
9146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9147 | (exit $ac_status); }; }; then | |
9148 | ac_cv_search_opendir="-l$ac_lib" | |
9149 | break | |
9150 | else | |
9151 | echo "$as_me: failed program was:" >&5 | |
9152 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9153 | ||
9154 | fi | |
9155 | rm -f conftest.err conftest.$ac_objext \ | |
9156 | conftest$ac_exeext conftest.$ac_ext | |
9157 | done | |
6be7c12c | 9158 | fi |
5464f5a1 | 9159 | LIBS=$ac_func_search_save_LIBS |
6be7c12c | 9160 | fi |
5464f5a1 NN |
9161 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
9162 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
9163 | if test "$ac_cv_search_opendir" != no; then | |
9164 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
9165 | ||
252b5132 RH |
9166 | fi |
9167 | ||
9168 | else | |
5464f5a1 NN |
9169 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
9170 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
9171 | if test "${ac_cv_search_opendir+set}" = set; then | |
9172 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b3baf5d0 | 9173 | else |
5464f5a1 NN |
9174 | ac_func_search_save_LIBS=$LIBS |
9175 | ac_cv_search_opendir=no | |
9176 | cat >conftest.$ac_ext <<_ACEOF | |
9177 | /* confdefs.h. */ | |
9178 | _ACEOF | |
9179 | cat confdefs.h >>conftest.$ac_ext | |
9180 | cat >>conftest.$ac_ext <<_ACEOF | |
9181 | /* end confdefs.h. */ | |
9182 | ||
6be7c12c | 9183 | /* Override any gcc2 internal prototype to avoid an error. */ |
5464f5a1 NN |
9184 | #ifdef __cplusplus |
9185 | extern "C" | |
9186 | #endif | |
6be7c12c | 9187 | /* We use char because int might match the return type of a gcc2 |
5464f5a1 NN |
9188 | builtin and then its argument prototype would still apply. */ |
9189 | char opendir (); | |
9190 | int | |
9191 | main () | |
9192 | { | |
9193 | opendir (); | |
9194 | ; | |
9195 | return 0; | |
9196 | } | |
9197 | _ACEOF | |
9198 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9199 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9200 | (eval $ac_link) 2>conftest.er1 | |
9201 | ac_status=$? | |
9202 | grep -v '^ *+' conftest.er1 >conftest.err | |
9203 | rm -f conftest.er1 | |
9204 | cat conftest.err >&5 | |
9205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9206 | (exit $ac_status); } && | |
eac338cf | 9207 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
9208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9209 | (eval $ac_try) 2>&5 | |
9210 | ac_status=$? | |
9211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9212 | (exit $ac_status); }; } && | |
9213 | { ac_try='test -s conftest$ac_exeext' | |
9214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9215 | (eval $ac_try) 2>&5 | |
9216 | ac_status=$? | |
9217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9218 | (exit $ac_status); }; }; then | |
9219 | ac_cv_search_opendir="none required" | |
9220 | else | |
9221 | echo "$as_me: failed program was:" >&5 | |
9222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9223 | ||
9224 | fi | |
9225 | rm -f conftest.err conftest.$ac_objext \ | |
9226 | conftest$ac_exeext conftest.$ac_ext | |
9227 | if test "$ac_cv_search_opendir" = no; then | |
9228 | for ac_lib in x; do | |
9229 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
9230 | cat >conftest.$ac_ext <<_ACEOF | |
9231 | /* confdefs.h. */ | |
9232 | _ACEOF | |
9233 | cat confdefs.h >>conftest.$ac_ext | |
9234 | cat >>conftest.$ac_ext <<_ACEOF | |
9235 | /* end confdefs.h. */ | |
6be7c12c | 9236 | |
5464f5a1 NN |
9237 | /* Override any gcc2 internal prototype to avoid an error. */ |
9238 | #ifdef __cplusplus | |
9239 | extern "C" | |
9240 | #endif | |
9241 | /* We use char because int might match the return type of a gcc2 | |
9242 | builtin and then its argument prototype would still apply. */ | |
9243 | char opendir (); | |
9244 | int | |
9245 | main () | |
9246 | { | |
9247 | opendir (); | |
9248 | ; | |
9249 | return 0; | |
9250 | } | |
9251 | _ACEOF | |
9252 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9253 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9254 | (eval $ac_link) 2>conftest.er1 | |
9255 | ac_status=$? | |
9256 | grep -v '^ *+' conftest.er1 >conftest.err | |
9257 | rm -f conftest.er1 | |
9258 | cat conftest.err >&5 | |
9259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9260 | (exit $ac_status); } && | |
eac338cf | 9261 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
9262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9263 | (eval $ac_try) 2>&5 | |
9264 | ac_status=$? | |
9265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9266 | (exit $ac_status); }; } && | |
9267 | { ac_try='test -s conftest$ac_exeext' | |
9268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9269 | (eval $ac_try) 2>&5 | |
9270 | ac_status=$? | |
9271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9272 | (exit $ac_status); }; }; then | |
9273 | ac_cv_search_opendir="-l$ac_lib" | |
9274 | break | |
9275 | else | |
9276 | echo "$as_me: failed program was:" >&5 | |
9277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9278 | ||
9279 | fi | |
9280 | rm -f conftest.err conftest.$ac_objext \ | |
9281 | conftest$ac_exeext conftest.$ac_ext | |
9282 | done | |
6be7c12c | 9283 | fi |
5464f5a1 | 9284 | LIBS=$ac_func_search_save_LIBS |
6be7c12c | 9285 | fi |
5464f5a1 NN |
9286 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 |
9287 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
9288 | if test "$ac_cv_search_opendir" != no; then | |
9289 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
9290 | ||
252b5132 RH |
9291 | fi |
9292 | ||
9293 | fi | |
9294 | ||
5464f5a1 NN |
9295 | |
9296 | ||
9297 | ||
9298 | ||
9299 | ||
9300 | ||
9301 | ||
633fd09f | 9302 | for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid |
252b5132 | 9303 | do |
5464f5a1 NN |
9304 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9305 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9306 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9307 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9308 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9309 | else | |
9310 | cat >conftest.$ac_ext <<_ACEOF | |
9311 | /* confdefs.h. */ | |
9312 | _ACEOF | |
9313 | cat confdefs.h >>conftest.$ac_ext | |
9314 | cat >>conftest.$ac_ext <<_ACEOF | |
9315 | /* end confdefs.h. */ | |
9316 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9317 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9318 | #define $ac_func innocuous_$ac_func | |
9319 | ||
252b5132 | 9320 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
9321 | which can conflict with char $ac_func (); below. |
9322 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9323 | <limits.h> exists even on freestanding compilers. */ | |
9324 | ||
9325 | #ifdef __STDC__ | |
9326 | # include <limits.h> | |
9327 | #else | |
9328 | # include <assert.h> | |
9329 | #endif | |
6be7c12c | 9330 | |
5464f5a1 | 9331 | #undef $ac_func |
252b5132 | 9332 | |
5464f5a1 NN |
9333 | /* Override any gcc2 internal prototype to avoid an error. */ |
9334 | #ifdef __cplusplus | |
9335 | extern "C" | |
9336 | { | |
9337 | #endif | |
9338 | /* We use char because int might match the return type of a gcc2 | |
9339 | builtin and then its argument prototype would still apply. */ | |
9340 | char $ac_func (); | |
252b5132 RH |
9341 | /* The GNU C library defines this for functions which it implements |
9342 | to always fail with ENOSYS. Some functions are actually named | |
9343 | something starting with __ and the normal name is an alias. */ | |
9344 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9345 | choke me | |
9346 | #else | |
5464f5a1 NN |
9347 | char (*f) () = $ac_func; |
9348 | #endif | |
9349 | #ifdef __cplusplus | |
9350 | } | |
252b5132 RH |
9351 | #endif |
9352 | ||
5464f5a1 NN |
9353 | int |
9354 | main () | |
9355 | { | |
9356 | return f != $ac_func; | |
9357 | ; | |
9358 | return 0; | |
9359 | } | |
9360 | _ACEOF | |
9361 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9362 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9363 | (eval $ac_link) 2>conftest.er1 | |
9364 | ac_status=$? | |
9365 | grep -v '^ *+' conftest.er1 >conftest.err | |
9366 | rm -f conftest.er1 | |
9367 | cat conftest.err >&5 | |
9368 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9369 | (exit $ac_status); } && | |
eac338cf | 9370 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
9371 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9372 | (eval $ac_try) 2>&5 | |
9373 | ac_status=$? | |
9374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9375 | (exit $ac_status); }; } && | |
9376 | { ac_try='test -s conftest$ac_exeext' | |
9377 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9378 | (eval $ac_try) 2>&5 | |
9379 | ac_status=$? | |
9380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9381 | (exit $ac_status); }; }; then | |
9382 | eval "$as_ac_var=yes" | |
9383 | else | |
9384 | echo "$as_me: failed program was:" >&5 | |
9385 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9386 | ||
9387 | eval "$as_ac_var=no" | |
9388 | fi | |
9389 | rm -f conftest.err conftest.$ac_objext \ | |
9390 | conftest$ac_exeext conftest.$ac_ext | |
9391 | fi | |
9392 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
9393 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9394 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9395 | cat >>confdefs.h <<_ACEOF | |
9396 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9397 | _ACEOF | |
252b5132 | 9398 | |
252b5132 RH |
9399 | fi |
9400 | done | |
9401 | ||
5464f5a1 | 9402 | |
49c97a80 ILT |
9403 | for ac_func in strtoull |
9404 | do | |
5464f5a1 NN |
9405 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
9406 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
9407 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
9408 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
9409 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9410 | else | |
9411 | cat >conftest.$ac_ext <<_ACEOF | |
9412 | /* confdefs.h. */ | |
9413 | _ACEOF | |
9414 | cat confdefs.h >>conftest.$ac_ext | |
9415 | cat >>conftest.$ac_ext <<_ACEOF | |
9416 | /* end confdefs.h. */ | |
9417 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
9418 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9419 | #define $ac_func innocuous_$ac_func | |
9420 | ||
49c97a80 | 9421 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
9422 | which can conflict with char $ac_func (); below. |
9423 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9424 | <limits.h> exists even on freestanding compilers. */ | |
9425 | ||
9426 | #ifdef __STDC__ | |
9427 | # include <limits.h> | |
9428 | #else | |
9429 | # include <assert.h> | |
9430 | #endif | |
49c97a80 | 9431 | |
5464f5a1 | 9432 | #undef $ac_func |
49c97a80 | 9433 | |
5464f5a1 NN |
9434 | /* Override any gcc2 internal prototype to avoid an error. */ |
9435 | #ifdef __cplusplus | |
9436 | extern "C" | |
9437 | { | |
9438 | #endif | |
9439 | /* We use char because int might match the return type of a gcc2 | |
9440 | builtin and then its argument prototype would still apply. */ | |
9441 | char $ac_func (); | |
49c97a80 ILT |
9442 | /* The GNU C library defines this for functions which it implements |
9443 | to always fail with ENOSYS. Some functions are actually named | |
9444 | something starting with __ and the normal name is an alias. */ | |
9445 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
9446 | choke me | |
9447 | #else | |
5464f5a1 NN |
9448 | char (*f) () = $ac_func; |
9449 | #endif | |
9450 | #ifdef __cplusplus | |
9451 | } | |
49c97a80 ILT |
9452 | #endif |
9453 | ||
5464f5a1 NN |
9454 | int |
9455 | main () | |
9456 | { | |
9457 | return f != $ac_func; | |
9458 | ; | |
9459 | return 0; | |
9460 | } | |
9461 | _ACEOF | |
9462 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9463 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9464 | (eval $ac_link) 2>conftest.er1 | |
9465 | ac_status=$? | |
9466 | grep -v '^ *+' conftest.er1 >conftest.err | |
9467 | rm -f conftest.er1 | |
9468 | cat conftest.err >&5 | |
9469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9470 | (exit $ac_status); } && | |
eac338cf | 9471 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
9472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9473 | (eval $ac_try) 2>&5 | |
9474 | ac_status=$? | |
9475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9476 | (exit $ac_status); }; } && | |
9477 | { ac_try='test -s conftest$ac_exeext' | |
9478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9479 | (eval $ac_try) 2>&5 | |
9480 | ac_status=$? | |
9481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9482 | (exit $ac_status); }; }; then | |
9483 | eval "$as_ac_var=yes" | |
9484 | else | |
9485 | echo "$as_me: failed program was:" >&5 | |
9486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9487 | ||
9488 | eval "$as_ac_var=no" | |
9489 | fi | |
9490 | rm -f conftest.err conftest.$ac_objext \ | |
9491 | conftest$ac_exeext conftest.$ac_ext | |
9492 | fi | |
9493 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
9494 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
9495 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
9496 | cat >>confdefs.h <<_ACEOF | |
9497 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
9498 | _ACEOF | |
49c97a80 | 9499 | |
49c97a80 ILT |
9500 | fi |
9501 | done | |
9502 | ||
6be7c12c | 9503 | |
2e9ebff5 JG |
9504 | echo "$as_me:$LINENO: checking whether basename is declared" >&5 |
9505 | echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6 | |
9506 | if test "${ac_cv_have_decl_basename+set}" = set; then | |
9507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9508 | else | |
9509 | cat >conftest.$ac_ext <<_ACEOF | |
9510 | /* confdefs.h. */ | |
9511 | _ACEOF | |
9512 | cat confdefs.h >>conftest.$ac_ext | |
9513 | cat >>conftest.$ac_ext <<_ACEOF | |
9514 | /* end confdefs.h. */ | |
ec7b76fe | 9515 | $ac_includes_default |
2e9ebff5 JG |
9516 | int |
9517 | main () | |
9518 | { | |
9519 | #ifndef basename | |
9520 | char *p = (char *) basename; | |
9521 | #endif | |
9522 | ||
9523 | ; | |
9524 | return 0; | |
9525 | } | |
9526 | _ACEOF | |
9527 | rm -f conftest.$ac_objext | |
9528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9529 | (eval $ac_compile) 2>conftest.er1 | |
9530 | ac_status=$? | |
9531 | grep -v '^ *+' conftest.er1 >conftest.err | |
9532 | rm -f conftest.er1 | |
9533 | cat conftest.err >&5 | |
9534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9535 | (exit $ac_status); } && | |
eac338cf | 9536 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
2e9ebff5 JG |
9537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9538 | (eval $ac_try) 2>&5 | |
9539 | ac_status=$? | |
9540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9541 | (exit $ac_status); }; } && | |
9542 | { ac_try='test -s conftest.$ac_objext' | |
9543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9544 | (eval $ac_try) 2>&5 | |
9545 | ac_status=$? | |
9546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9547 | (exit $ac_status); }; }; then | |
9548 | ac_cv_have_decl_basename=yes | |
9549 | else | |
9550 | echo "$as_me: failed program was:" >&5 | |
9551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9552 | ||
9553 | ac_cv_have_decl_basename=no | |
9554 | fi | |
9555 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9556 | fi | |
9557 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5 | |
9558 | echo "${ECHO_T}$ac_cv_have_decl_basename" >&6 | |
9559 | if test $ac_cv_have_decl_basename = yes; then | |
9560 | ||
9561 | cat >>confdefs.h <<_ACEOF | |
9562 | #define HAVE_DECL_BASENAME 1 | |
9563 | _ACEOF | |
9564 | ||
9565 | ||
9566 | else | |
9567 | cat >>confdefs.h <<_ACEOF | |
9568 | #define HAVE_DECL_BASENAME 0 | |
9569 | _ACEOF | |
9570 | ||
9571 | ||
9572 | fi | |
9573 | ||
9574 | ||
ec7b76fe JG |
9575 | echo "$as_me:$LINENO: checking whether ftello is declared" >&5 |
9576 | echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6 | |
9577 | if test "${ac_cv_have_decl_ftello+set}" = set; then | |
9578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9579 | else | |
9580 | cat >conftest.$ac_ext <<_ACEOF | |
9581 | /* confdefs.h. */ | |
9582 | _ACEOF | |
9583 | cat confdefs.h >>conftest.$ac_ext | |
9584 | cat >>conftest.$ac_ext <<_ACEOF | |
9585 | /* end confdefs.h. */ | |
9586 | $ac_includes_default | |
9587 | int | |
9588 | main () | |
9589 | { | |
9590 | #ifndef ftello | |
9591 | char *p = (char *) ftello; | |
9592 | #endif | |
9593 | ||
9594 | ; | |
9595 | return 0; | |
9596 | } | |
9597 | _ACEOF | |
9598 | rm -f conftest.$ac_objext | |
9599 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9600 | (eval $ac_compile) 2>conftest.er1 | |
9601 | ac_status=$? | |
9602 | grep -v '^ *+' conftest.er1 >conftest.err | |
9603 | rm -f conftest.er1 | |
9604 | cat conftest.err >&5 | |
9605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9606 | (exit $ac_status); } && | |
eac338cf | 9607 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ec7b76fe JG |
9608 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9609 | (eval $ac_try) 2>&5 | |
9610 | ac_status=$? | |
9611 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9612 | (exit $ac_status); }; } && | |
9613 | { ac_try='test -s conftest.$ac_objext' | |
9614 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9615 | (eval $ac_try) 2>&5 | |
9616 | ac_status=$? | |
9617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9618 | (exit $ac_status); }; }; then | |
9619 | ac_cv_have_decl_ftello=yes | |
9620 | else | |
9621 | echo "$as_me: failed program was:" >&5 | |
9622 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9623 | ||
9624 | ac_cv_have_decl_ftello=no | |
9625 | fi | |
9626 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9627 | fi | |
9628 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5 | |
9629 | echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6 | |
9630 | if test $ac_cv_have_decl_ftello = yes; then | |
9631 | ||
9632 | cat >>confdefs.h <<_ACEOF | |
9633 | #define HAVE_DECL_FTELLO 1 | |
9634 | _ACEOF | |
9635 | ||
9636 | ||
9637 | else | |
9638 | cat >>confdefs.h <<_ACEOF | |
9639 | #define HAVE_DECL_FTELLO 0 | |
9640 | _ACEOF | |
9641 | ||
9642 | ||
9643 | fi | |
9644 | ||
9645 | ||
9646 | echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5 | |
9647 | echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6 | |
9648 | if test "${ac_cv_have_decl_ftello64+set}" = set; then | |
9649 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9650 | else | |
9651 | cat >conftest.$ac_ext <<_ACEOF | |
9652 | /* confdefs.h. */ | |
9653 | _ACEOF | |
9654 | cat confdefs.h >>conftest.$ac_ext | |
9655 | cat >>conftest.$ac_ext <<_ACEOF | |
9656 | /* end confdefs.h. */ | |
9657 | $ac_includes_default | |
9658 | int | |
9659 | main () | |
9660 | { | |
9661 | #ifndef ftello64 | |
9662 | char *p = (char *) ftello64; | |
9663 | #endif | |
9664 | ||
9665 | ; | |
9666 | return 0; | |
9667 | } | |
9668 | _ACEOF | |
9669 | rm -f conftest.$ac_objext | |
9670 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9671 | (eval $ac_compile) 2>conftest.er1 | |
9672 | ac_status=$? | |
9673 | grep -v '^ *+' conftest.er1 >conftest.err | |
9674 | rm -f conftest.er1 | |
9675 | cat conftest.err >&5 | |
9676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9677 | (exit $ac_status); } && | |
eac338cf | 9678 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ec7b76fe JG |
9679 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9680 | (eval $ac_try) 2>&5 | |
9681 | ac_status=$? | |
9682 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9683 | (exit $ac_status); }; } && | |
9684 | { ac_try='test -s conftest.$ac_objext' | |
9685 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9686 | (eval $ac_try) 2>&5 | |
9687 | ac_status=$? | |
9688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9689 | (exit $ac_status); }; }; then | |
9690 | ac_cv_have_decl_ftello64=yes | |
9691 | else | |
9692 | echo "$as_me: failed program was:" >&5 | |
9693 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9694 | ||
9695 | ac_cv_have_decl_ftello64=no | |
9696 | fi | |
9697 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9698 | fi | |
9699 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5 | |
9700 | echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6 | |
9701 | if test $ac_cv_have_decl_ftello64 = yes; then | |
9702 | ||
9703 | cat >>confdefs.h <<_ACEOF | |
9704 | #define HAVE_DECL_FTELLO64 1 | |
9705 | _ACEOF | |
9706 | ||
9707 | ||
9708 | else | |
9709 | cat >>confdefs.h <<_ACEOF | |
9710 | #define HAVE_DECL_FTELLO64 0 | |
9711 | _ACEOF | |
9712 | ||
9713 | ||
9714 | fi | |
9715 | ||
9716 | ||
9717 | echo "$as_me:$LINENO: checking whether fseeko is declared" >&5 | |
9718 | echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6 | |
9719 | if test "${ac_cv_have_decl_fseeko+set}" = set; then | |
9720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9721 | else | |
9722 | cat >conftest.$ac_ext <<_ACEOF | |
9723 | /* confdefs.h. */ | |
9724 | _ACEOF | |
9725 | cat confdefs.h >>conftest.$ac_ext | |
9726 | cat >>conftest.$ac_ext <<_ACEOF | |
9727 | /* end confdefs.h. */ | |
9728 | $ac_includes_default | |
9729 | int | |
9730 | main () | |
9731 | { | |
9732 | #ifndef fseeko | |
9733 | char *p = (char *) fseeko; | |
9734 | #endif | |
9735 | ||
9736 | ; | |
9737 | return 0; | |
9738 | } | |
9739 | _ACEOF | |
9740 | rm -f conftest.$ac_objext | |
9741 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9742 | (eval $ac_compile) 2>conftest.er1 | |
9743 | ac_status=$? | |
9744 | grep -v '^ *+' conftest.er1 >conftest.err | |
9745 | rm -f conftest.er1 | |
9746 | cat conftest.err >&5 | |
9747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9748 | (exit $ac_status); } && | |
eac338cf | 9749 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ec7b76fe JG |
9750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9751 | (eval $ac_try) 2>&5 | |
9752 | ac_status=$? | |
9753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9754 | (exit $ac_status); }; } && | |
9755 | { ac_try='test -s conftest.$ac_objext' | |
9756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9757 | (eval $ac_try) 2>&5 | |
9758 | ac_status=$? | |
9759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9760 | (exit $ac_status); }; }; then | |
9761 | ac_cv_have_decl_fseeko=yes | |
9762 | else | |
9763 | echo "$as_me: failed program was:" >&5 | |
9764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9765 | ||
9766 | ac_cv_have_decl_fseeko=no | |
9767 | fi | |
9768 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9769 | fi | |
9770 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5 | |
9771 | echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6 | |
9772 | if test $ac_cv_have_decl_fseeko = yes; then | |
9773 | ||
9774 | cat >>confdefs.h <<_ACEOF | |
9775 | #define HAVE_DECL_FSEEKO 1 | |
9776 | _ACEOF | |
9777 | ||
9778 | ||
9779 | else | |
9780 | cat >>confdefs.h <<_ACEOF | |
9781 | #define HAVE_DECL_FSEEKO 0 | |
9782 | _ACEOF | |
9783 | ||
9784 | ||
9785 | fi | |
9786 | ||
9787 | ||
9788 | echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5 | |
9789 | echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6 | |
9790 | if test "${ac_cv_have_decl_fseeko64+set}" = set; then | |
9791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9792 | else | |
9793 | cat >conftest.$ac_ext <<_ACEOF | |
9794 | /* confdefs.h. */ | |
9795 | _ACEOF | |
9796 | cat confdefs.h >>conftest.$ac_ext | |
9797 | cat >>conftest.$ac_ext <<_ACEOF | |
9798 | /* end confdefs.h. */ | |
9799 | $ac_includes_default | |
9800 | int | |
9801 | main () | |
9802 | { | |
9803 | #ifndef fseeko64 | |
9804 | char *p = (char *) fseeko64; | |
9805 | #endif | |
9806 | ||
9807 | ; | |
9808 | return 0; | |
9809 | } | |
9810 | _ACEOF | |
9811 | rm -f conftest.$ac_objext | |
9812 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9813 | (eval $ac_compile) 2>conftest.er1 | |
9814 | ac_status=$? | |
9815 | grep -v '^ *+' conftest.er1 >conftest.err | |
9816 | rm -f conftest.er1 | |
9817 | cat conftest.err >&5 | |
9818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9819 | (exit $ac_status); } && | |
eac338cf | 9820 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
ec7b76fe JG |
9821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9822 | (eval $ac_try) 2>&5 | |
9823 | ac_status=$? | |
9824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9825 | (exit $ac_status); }; } && | |
9826 | { ac_try='test -s conftest.$ac_objext' | |
9827 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9828 | (eval $ac_try) 2>&5 | |
9829 | ac_status=$? | |
9830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9831 | (exit $ac_status); }; }; then | |
9832 | ac_cv_have_decl_fseeko64=yes | |
9833 | else | |
9834 | echo "$as_me: failed program was:" >&5 | |
9835 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9836 | ||
9837 | ac_cv_have_decl_fseeko64=no | |
9838 | fi | |
9839 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
9840 | fi | |
9841 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5 | |
9842 | echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6 | |
9843 | if test $ac_cv_have_decl_fseeko64 = yes; then | |
9844 | ||
9845 | cat >>confdefs.h <<_ACEOF | |
9846 | #define HAVE_DECL_FSEEKO64 1 | |
9847 | _ACEOF | |
9848 | ||
9849 | ||
9850 | else | |
9851 | cat >>confdefs.h <<_ACEOF | |
9852 | #define HAVE_DECL_FSEEKO64 0 | |
9853 | _ACEOF | |
9854 | ||
9855 | ||
9856 | fi | |
9857 | ||
9858 | ||
2e9ebff5 | 9859 | |
6be7c12c | 9860 | |
252b5132 | 9861 | case "${host}" in |
855b0be7 | 9862 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) |
5464f5a1 NN |
9863 | |
9864 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 9865 | #define USE_BINARY_FOPEN 1 |
5464f5a1 | 9866 | _ACEOF |
252b5132 RH |
9867 | ;; |
9868 | esac | |
9869 | ||
d34a2b1d JG |
9870 | echo "$as_me:$LINENO: checking whether ffs is declared" >&5 |
9871 | echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6 | |
9872 | if test "${ac_cv_have_decl_ffs+set}" = set; then | |
5464f5a1 | 9873 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 9874 | else |
5464f5a1 NN |
9875 | cat >conftest.$ac_ext <<_ACEOF |
9876 | /* confdefs.h. */ | |
9877 | _ACEOF | |
9878 | cat confdefs.h >>conftest.$ac_ext | |
9879 | cat >>conftest.$ac_ext <<_ACEOF | |
9880 | /* end confdefs.h. */ | |
d34a2b1d | 9881 | $ac_includes_default |
5464f5a1 NN |
9882 | int |
9883 | main () | |
9884 | { | |
d34a2b1d JG |
9885 | #ifndef ffs |
9886 | char *p = (char *) ffs; | |
9887 | #endif | |
9888 | ||
5464f5a1 NN |
9889 | ; |
9890 | return 0; | |
9891 | } | |
9892 | _ACEOF | |
9893 | rm -f conftest.$ac_objext | |
9894 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9895 | (eval $ac_compile) 2>conftest.er1 | |
9896 | ac_status=$? | |
9897 | grep -v '^ *+' conftest.er1 >conftest.err | |
9898 | rm -f conftest.er1 | |
9899 | cat conftest.err >&5 | |
9900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9901 | (exit $ac_status); } && | |
eac338cf | 9902 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
9903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9904 | (eval $ac_try) 2>&5 | |
9905 | ac_status=$? | |
9906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9907 | (exit $ac_status); }; } && | |
9908 | { ac_try='test -s conftest.$ac_objext' | |
9909 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9910 | (eval $ac_try) 2>&5 | |
9911 | ac_status=$? | |
9912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9913 | (exit $ac_status); }; }; then | |
d34a2b1d | 9914 | ac_cv_have_decl_ffs=yes |
252b5132 | 9915 | else |
5464f5a1 NN |
9916 | echo "$as_me: failed program was:" >&5 |
9917 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9918 | ||
d34a2b1d | 9919 | ac_cv_have_decl_ffs=no |
252b5132 | 9920 | fi |
5464f5a1 | 9921 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 9922 | fi |
d34a2b1d JG |
9923 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5 |
9924 | echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6 | |
9925 | if test $ac_cv_have_decl_ffs = yes; then | |
252b5132 | 9926 | |
d34a2b1d JG |
9927 | cat >>confdefs.h <<_ACEOF |
9928 | #define HAVE_DECL_FFS 1 | |
9929 | _ACEOF | |
5464f5a1 | 9930 | |
d34a2b1d JG |
9931 | |
9932 | else | |
9933 | cat >>confdefs.h <<_ACEOF | |
9934 | #define HAVE_DECL_FFS 0 | |
5464f5a1 | 9935 | _ACEOF |
252b5132 | 9936 | |
d34a2b1d | 9937 | |
252b5132 RH |
9938 | fi |
9939 | ||
d34a2b1d JG |
9940 | |
9941 | echo "$as_me:$LINENO: checking whether free is declared" >&5 | |
9942 | echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6 | |
9943 | if test "${ac_cv_have_decl_free+set}" = set; then | |
5464f5a1 | 9944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 9945 | else |
5464f5a1 NN |
9946 | cat >conftest.$ac_ext <<_ACEOF |
9947 | /* confdefs.h. */ | |
9948 | _ACEOF | |
9949 | cat confdefs.h >>conftest.$ac_ext | |
9950 | cat >>conftest.$ac_ext <<_ACEOF | |
9951 | /* end confdefs.h. */ | |
d34a2b1d | 9952 | $ac_includes_default |
5464f5a1 NN |
9953 | int |
9954 | main () | |
9955 | { | |
d34a2b1d JG |
9956 | #ifndef free |
9957 | char *p = (char *) free; | |
9958 | #endif | |
9959 | ||
5464f5a1 NN |
9960 | ; |
9961 | return 0; | |
9962 | } | |
9963 | _ACEOF | |
9964 | rm -f conftest.$ac_objext | |
9965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
9966 | (eval $ac_compile) 2>conftest.er1 | |
9967 | ac_status=$? | |
9968 | grep -v '^ *+' conftest.er1 >conftest.err | |
9969 | rm -f conftest.er1 | |
9970 | cat conftest.err >&5 | |
9971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9972 | (exit $ac_status); } && | |
eac338cf | 9973 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
9974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9975 | (eval $ac_try) 2>&5 | |
9976 | ac_status=$? | |
9977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9978 | (exit $ac_status); }; } && | |
9979 | { ac_try='test -s conftest.$ac_objext' | |
9980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9981 | (eval $ac_try) 2>&5 | |
9982 | ac_status=$? | |
9983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9984 | (exit $ac_status); }; }; then | |
d34a2b1d | 9985 | ac_cv_have_decl_free=yes |
252b5132 | 9986 | else |
5464f5a1 NN |
9987 | echo "$as_me: failed program was:" >&5 |
9988 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9989 | ||
d34a2b1d | 9990 | ac_cv_have_decl_free=no |
252b5132 | 9991 | fi |
5464f5a1 | 9992 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 9993 | fi |
d34a2b1d JG |
9994 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5 |
9995 | echo "${ECHO_T}$ac_cv_have_decl_free" >&6 | |
9996 | if test $ac_cv_have_decl_free = yes; then | |
9997 | ||
9998 | cat >>confdefs.h <<_ACEOF | |
9999 | #define HAVE_DECL_FREE 1 | |
10000 | _ACEOF | |
252b5132 | 10001 | |
5464f5a1 | 10002 | |
d34a2b1d JG |
10003 | else |
10004 | cat >>confdefs.h <<_ACEOF | |
10005 | #define HAVE_DECL_FREE 0 | |
5464f5a1 | 10006 | _ACEOF |
252b5132 | 10007 | |
d34a2b1d | 10008 | |
252b5132 RH |
10009 | fi |
10010 | ||
d34a2b1d JG |
10011 | |
10012 | echo "$as_me:$LINENO: checking whether getenv is declared" >&5 | |
10013 | echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6 | |
10014 | if test "${ac_cv_have_decl_getenv+set}" = set; then | |
5464f5a1 | 10015 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 10016 | else |
5464f5a1 NN |
10017 | cat >conftest.$ac_ext <<_ACEOF |
10018 | /* confdefs.h. */ | |
10019 | _ACEOF | |
10020 | cat confdefs.h >>conftest.$ac_ext | |
10021 | cat >>conftest.$ac_ext <<_ACEOF | |
10022 | /* end confdefs.h. */ | |
d34a2b1d | 10023 | $ac_includes_default |
5464f5a1 NN |
10024 | int |
10025 | main () | |
10026 | { | |
d34a2b1d JG |
10027 | #ifndef getenv |
10028 | char *p = (char *) getenv; | |
10029 | #endif | |
10030 | ||
5464f5a1 NN |
10031 | ; |
10032 | return 0; | |
10033 | } | |
10034 | _ACEOF | |
10035 | rm -f conftest.$ac_objext | |
10036 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10037 | (eval $ac_compile) 2>conftest.er1 | |
10038 | ac_status=$? | |
10039 | grep -v '^ *+' conftest.er1 >conftest.err | |
10040 | rm -f conftest.er1 | |
10041 | cat conftest.err >&5 | |
10042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10043 | (exit $ac_status); } && | |
eac338cf | 10044 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
10045 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10046 | (eval $ac_try) 2>&5 | |
10047 | ac_status=$? | |
10048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10049 | (exit $ac_status); }; } && | |
10050 | { ac_try='test -s conftest.$ac_objext' | |
10051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10052 | (eval $ac_try) 2>&5 | |
10053 | ac_status=$? | |
10054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10055 | (exit $ac_status); }; }; then | |
d34a2b1d | 10056 | ac_cv_have_decl_getenv=yes |
252b5132 | 10057 | else |
5464f5a1 NN |
10058 | echo "$as_me: failed program was:" >&5 |
10059 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10060 | ||
d34a2b1d | 10061 | ac_cv_have_decl_getenv=no |
252b5132 | 10062 | fi |
5464f5a1 | 10063 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 10064 | fi |
d34a2b1d JG |
10065 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5 |
10066 | echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6 | |
10067 | if test $ac_cv_have_decl_getenv = yes; then | |
252b5132 | 10068 | |
d34a2b1d JG |
10069 | cat >>confdefs.h <<_ACEOF |
10070 | #define HAVE_DECL_GETENV 1 | |
10071 | _ACEOF | |
5464f5a1 | 10072 | |
d34a2b1d JG |
10073 | |
10074 | else | |
10075 | cat >>confdefs.h <<_ACEOF | |
10076 | #define HAVE_DECL_GETENV 0 | |
5464f5a1 | 10077 | _ACEOF |
252b5132 | 10078 | |
d34a2b1d | 10079 | |
252b5132 RH |
10080 | fi |
10081 | ||
d34a2b1d JG |
10082 | |
10083 | echo "$as_me:$LINENO: checking whether malloc is declared" >&5 | |
10084 | echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6 | |
10085 | if test "${ac_cv_have_decl_malloc+set}" = set; then | |
5464f5a1 | 10086 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 10087 | else |
5464f5a1 NN |
10088 | cat >conftest.$ac_ext <<_ACEOF |
10089 | /* confdefs.h. */ | |
10090 | _ACEOF | |
10091 | cat confdefs.h >>conftest.$ac_ext | |
10092 | cat >>conftest.$ac_ext <<_ACEOF | |
10093 | /* end confdefs.h. */ | |
d34a2b1d | 10094 | $ac_includes_default |
5464f5a1 NN |
10095 | int |
10096 | main () | |
10097 | { | |
d34a2b1d JG |
10098 | #ifndef malloc |
10099 | char *p = (char *) malloc; | |
10100 | #endif | |
10101 | ||
5464f5a1 NN |
10102 | ; |
10103 | return 0; | |
10104 | } | |
10105 | _ACEOF | |
10106 | rm -f conftest.$ac_objext | |
10107 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10108 | (eval $ac_compile) 2>conftest.er1 | |
10109 | ac_status=$? | |
10110 | grep -v '^ *+' conftest.er1 >conftest.err | |
10111 | rm -f conftest.er1 | |
10112 | cat conftest.err >&5 | |
10113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10114 | (exit $ac_status); } && | |
eac338cf | 10115 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
10116 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10117 | (eval $ac_try) 2>&5 | |
10118 | ac_status=$? | |
10119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10120 | (exit $ac_status); }; } && | |
10121 | { ac_try='test -s conftest.$ac_objext' | |
10122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10123 | (eval $ac_try) 2>&5 | |
10124 | ac_status=$? | |
10125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10126 | (exit $ac_status); }; }; then | |
d34a2b1d | 10127 | ac_cv_have_decl_malloc=yes |
252b5132 | 10128 | else |
5464f5a1 NN |
10129 | echo "$as_me: failed program was:" >&5 |
10130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10131 | ||
d34a2b1d | 10132 | ac_cv_have_decl_malloc=no |
252b5132 | 10133 | fi |
5464f5a1 | 10134 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 10135 | fi |
d34a2b1d JG |
10136 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5 |
10137 | echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6 | |
10138 | if test $ac_cv_have_decl_malloc = yes; then | |
252b5132 | 10139 | |
d34a2b1d JG |
10140 | cat >>confdefs.h <<_ACEOF |
10141 | #define HAVE_DECL_MALLOC 1 | |
10142 | _ACEOF | |
5464f5a1 | 10143 | |
d34a2b1d JG |
10144 | |
10145 | else | |
10146 | cat >>confdefs.h <<_ACEOF | |
10147 | #define HAVE_DECL_MALLOC 0 | |
5464f5a1 | 10148 | _ACEOF |
252b5132 | 10149 | |
d34a2b1d | 10150 | |
252b5132 RH |
10151 | fi |
10152 | ||
d34a2b1d JG |
10153 | |
10154 | echo "$as_me:$LINENO: checking whether realloc is declared" >&5 | |
10155 | echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6 | |
10156 | if test "${ac_cv_have_decl_realloc+set}" = set; then | |
5464f5a1 | 10157 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 10158 | else |
5464f5a1 NN |
10159 | cat >conftest.$ac_ext <<_ACEOF |
10160 | /* confdefs.h. */ | |
10161 | _ACEOF | |
10162 | cat confdefs.h >>conftest.$ac_ext | |
10163 | cat >>conftest.$ac_ext <<_ACEOF | |
10164 | /* end confdefs.h. */ | |
d34a2b1d | 10165 | $ac_includes_default |
5464f5a1 NN |
10166 | int |
10167 | main () | |
10168 | { | |
d34a2b1d JG |
10169 | #ifndef realloc |
10170 | char *p = (char *) realloc; | |
10171 | #endif | |
10172 | ||
5464f5a1 NN |
10173 | ; |
10174 | return 0; | |
10175 | } | |
10176 | _ACEOF | |
10177 | rm -f conftest.$ac_objext | |
10178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10179 | (eval $ac_compile) 2>conftest.er1 | |
10180 | ac_status=$? | |
10181 | grep -v '^ *+' conftest.er1 >conftest.err | |
10182 | rm -f conftest.er1 | |
10183 | cat conftest.err >&5 | |
10184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10185 | (exit $ac_status); } && | |
eac338cf | 10186 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
10187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10188 | (eval $ac_try) 2>&5 | |
10189 | ac_status=$? | |
10190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10191 | (exit $ac_status); }; } && | |
10192 | { ac_try='test -s conftest.$ac_objext' | |
10193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10194 | (eval $ac_try) 2>&5 | |
10195 | ac_status=$? | |
10196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10197 | (exit $ac_status); }; }; then | |
d34a2b1d | 10198 | ac_cv_have_decl_realloc=yes |
252b5132 | 10199 | else |
5464f5a1 NN |
10200 | echo "$as_me: failed program was:" >&5 |
10201 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10202 | ||
d34a2b1d | 10203 | ac_cv_have_decl_realloc=no |
252b5132 | 10204 | fi |
5464f5a1 | 10205 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 10206 | fi |
d34a2b1d JG |
10207 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5 |
10208 | echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6 | |
10209 | if test $ac_cv_have_decl_realloc = yes; then | |
10210 | ||
10211 | cat >>confdefs.h <<_ACEOF | |
10212 | #define HAVE_DECL_REALLOC 1 | |
10213 | _ACEOF | |
252b5132 | 10214 | |
5464f5a1 | 10215 | |
d34a2b1d JG |
10216 | else |
10217 | cat >>confdefs.h <<_ACEOF | |
10218 | #define HAVE_DECL_REALLOC 0 | |
efa9bda4 AL |
10219 | _ACEOF |
10220 | ||
d34a2b1d | 10221 | |
efa9bda4 AL |
10222 | fi |
10223 | ||
d34a2b1d | 10224 | |
be5cacdb L |
10225 | echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5 |
10226 | echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6 | |
10227 | if test "${ac_cv_have_decl_stpcpy+set}" = set; then | |
10228 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10229 | else | |
10230 | cat >conftest.$ac_ext <<_ACEOF | |
10231 | /* confdefs.h. */ | |
10232 | _ACEOF | |
10233 | cat confdefs.h >>conftest.$ac_ext | |
10234 | cat >>conftest.$ac_ext <<_ACEOF | |
10235 | /* end confdefs.h. */ | |
10236 | $ac_includes_default | |
10237 | int | |
10238 | main () | |
10239 | { | |
10240 | #ifndef stpcpy | |
10241 | char *p = (char *) stpcpy; | |
10242 | #endif | |
10243 | ||
10244 | ; | |
10245 | return 0; | |
10246 | } | |
10247 | _ACEOF | |
10248 | rm -f conftest.$ac_objext | |
10249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10250 | (eval $ac_compile) 2>conftest.er1 | |
10251 | ac_status=$? | |
10252 | grep -v '^ *+' conftest.er1 >conftest.err | |
10253 | rm -f conftest.er1 | |
10254 | cat conftest.err >&5 | |
10255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10256 | (exit $ac_status); } && | |
10257 | { ac_try='test -z "$ac_c_werror_flag" | |
10258 | || test ! -s conftest.err' | |
10259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10260 | (eval $ac_try) 2>&5 | |
10261 | ac_status=$? | |
10262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10263 | (exit $ac_status); }; } && | |
10264 | { ac_try='test -s conftest.$ac_objext' | |
10265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10266 | (eval $ac_try) 2>&5 | |
10267 | ac_status=$? | |
10268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10269 | (exit $ac_status); }; }; then | |
10270 | ac_cv_have_decl_stpcpy=yes | |
10271 | else | |
10272 | echo "$as_me: failed program was:" >&5 | |
10273 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10274 | ||
10275 | ac_cv_have_decl_stpcpy=no | |
10276 | fi | |
10277 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10278 | fi | |
10279 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5 | |
10280 | echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6 | |
10281 | if test $ac_cv_have_decl_stpcpy = yes; then | |
10282 | ||
10283 | cat >>confdefs.h <<_ACEOF | |
10284 | #define HAVE_DECL_STPCPY 1 | |
10285 | _ACEOF | |
10286 | ||
10287 | ||
10288 | else | |
10289 | cat >>confdefs.h <<_ACEOF | |
10290 | #define HAVE_DECL_STPCPY 0 | |
10291 | _ACEOF | |
10292 | ||
10293 | ||
10294 | fi | |
10295 | ||
10296 | ||
d34a2b1d JG |
10297 | echo "$as_me:$LINENO: checking whether strstr is declared" >&5 |
10298 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 | |
10299 | if test "${ac_cv_have_decl_strstr+set}" = set; then | |
efa9bda4 AL |
10300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10301 | else | |
10302 | cat >conftest.$ac_ext <<_ACEOF | |
10303 | /* confdefs.h. */ | |
10304 | _ACEOF | |
10305 | cat confdefs.h >>conftest.$ac_ext | |
10306 | cat >>conftest.$ac_ext <<_ACEOF | |
10307 | /* end confdefs.h. */ | |
d34a2b1d | 10308 | $ac_includes_default |
efa9bda4 AL |
10309 | int |
10310 | main () | |
10311 | { | |
d34a2b1d JG |
10312 | #ifndef strstr |
10313 | char *p = (char *) strstr; | |
10314 | #endif | |
10315 | ||
efa9bda4 AL |
10316 | ; |
10317 | return 0; | |
10318 | } | |
10319 | _ACEOF | |
10320 | rm -f conftest.$ac_objext | |
10321 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10322 | (eval $ac_compile) 2>conftest.er1 | |
10323 | ac_status=$? | |
10324 | grep -v '^ *+' conftest.er1 >conftest.err | |
10325 | rm -f conftest.er1 | |
10326 | cat conftest.err >&5 | |
10327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10328 | (exit $ac_status); } && | |
eac338cf | 10329 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
efa9bda4 AL |
10330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10331 | (eval $ac_try) 2>&5 | |
10332 | ac_status=$? | |
10333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10334 | (exit $ac_status); }; } && | |
10335 | { ac_try='test -s conftest.$ac_objext' | |
10336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10337 | (eval $ac_try) 2>&5 | |
10338 | ac_status=$? | |
10339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10340 | (exit $ac_status); }; }; then | |
d34a2b1d | 10341 | ac_cv_have_decl_strstr=yes |
efa9bda4 AL |
10342 | else |
10343 | echo "$as_me: failed program was:" >&5 | |
10344 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10345 | ||
d34a2b1d | 10346 | ac_cv_have_decl_strstr=no |
efa9bda4 AL |
10347 | fi |
10348 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10349 | fi | |
d34a2b1d JG |
10350 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 |
10351 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 | |
10352 | if test $ac_cv_have_decl_strstr = yes; then | |
efa9bda4 | 10353 | |
d34a2b1d JG |
10354 | cat >>confdefs.h <<_ACEOF |
10355 | #define HAVE_DECL_STRSTR 1 | |
10356 | _ACEOF | |
efa9bda4 | 10357 | |
d34a2b1d JG |
10358 | |
10359 | else | |
10360 | cat >>confdefs.h <<_ACEOF | |
10361 | #define HAVE_DECL_STRSTR 0 | |
5464f5a1 | 10362 | _ACEOF |
252b5132 | 10363 | |
d34a2b1d | 10364 | |
252b5132 RH |
10365 | fi |
10366 | ||
6be7c12c | 10367 | |
d34a2b1d | 10368 | |
252b5132 RH |
10369 | # If we are configured native, pick a core file support file. |
10370 | COREFILE= | |
10371 | COREFLAG= | |
10372 | TRAD_HEADER= | |
10373 | if test "${target}" = "${host}"; then | |
10374 | case "${host}" in | |
13dfd2d0 | 10375 | alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu) |
46d59bfa DB |
10376 | COREFILE='' |
10377 | ;; | |
ed84e695 | 10378 | alpha*-*-linux-*) |
252b5132 RH |
10379 | COREFILE=trad-core.lo |
10380 | TRAD_HEADER='"hosts/alphalinux.h"' | |
10381 | ;; | |
690cc98b NC |
10382 | alpha*-*-netbsd* | alpha*-*-openbsd*) |
10383 | COREFILE=netbsd-core.lo | |
10384 | ;; | |
252b5132 | 10385 | alpha*-*-*) COREFILE=osf-core.lo ;; |
13dfd2d0 NC |
10386 | arm-*-freebsd* | arm-*-kfreebsd*-gnu) |
10387 | COREFILE='' ;; | |
61d0bc33 | 10388 | arm-*-netbsd*) COREFILE=netbsd-core.lo ;; |
252b5132 RH |
10389 | arm-*-riscix) COREFILE=trad-core.lo ;; |
10390 | hppa*-*-hpux*) COREFILE=hpux-core.lo ;; | |
10391 | hppa*-*-hiux*) COREFILE=hpux-core.lo ;; | |
10392 | hppa*-*-mpeix*) COREFILE=hpux-core.lo ;; | |
10393 | hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo" | |
10394 | COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; | |
eef0f186 MK |
10395 | hppa*-*-netbsd* | hppa*-*-openbsd*) |
10396 | COREFILE=netbsd-core.lo | |
10397 | ;; | |
10398 | ||
dc810e39 | 10399 | i370-*-*) |
5b93d8bb AM |
10400 | COREFILE=trad-core.lo |
10401 | TRAD_HEADER='"hosts/i370linux.h"' | |
10402 | ;; | |
10403 | ||
80c7c40a | 10404 | i[3-7]86-sequent-bsd*) |
5b93d8bb | 10405 | COREFILE=trad-core.lo |
252b5132 RH |
10406 | TRAD_HEADER='"hosts/symmetry.h"' |
10407 | ;; | |
80c7c40a NC |
10408 | i[3-7]86-sequent-sysv4*) ;; |
10409 | i[3-7]86-sequent-sysv*) | |
252b5132 RH |
10410 | COREFILE=trad-core.lo |
10411 | TRAD_HEADER='"hosts/symmetry.h"' | |
10412 | ;; | |
80c7c40a | 10413 | i[3-7]86-*-bsdi) |
7e3b3466 NC |
10414 | COREFILE= |
10415 | ;; | |
d2bef492 | 10416 | 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 |
10417 | COREFILE=trad-core.lo |
10418 | TRAD_HEADER='"hosts/i386bsd.h"' | |
10419 | ;; | |
13dfd2d0 | 10420 | i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu) |
d4af9775 DB |
10421 | COREFILE='' |
10422 | TRAD_HEADER='"hosts/i386bsd.h"' | |
10423 | ;; | |
4615568e | 10424 | i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*) |
252b5132 RH |
10425 | COREFILE=netbsd-core.lo |
10426 | ;; | |
80c7c40a | 10427 | i[3-7]86-esix-sysv3*) |
252b5132 RH |
10428 | COREFILE=trad-core.lo |
10429 | TRAD_HEADER='"hosts/esix.h"' | |
10430 | ;; | |
80c7c40a | 10431 | i[3-7]86-*-sco3.2v5*) |
252b5132 RH |
10432 | COREFILE=sco5-core.lo |
10433 | ;; | |
80c7c40a | 10434 | i[3-7]86-*-sco* | i[3-7]86-*-isc*) |
252b5132 RH |
10435 | COREFILE=trad-core.lo |
10436 | TRAD_HEADER='"hosts/i386sco.h"' | |
10437 | ;; | |
80c7c40a | 10438 | i[3-7]86-*-mach3*) |
252b5132 RH |
10439 | COREFILE=trad-core.lo |
10440 | TRAD_HEADER='"hosts/i386mach3.h"' | |
10441 | ;; | |
ed84e695 | 10442 | i[3-7]86-*-linux-*) |
252b5132 RH |
10443 | COREFILE=trad-core.lo |
10444 | TRAD_HEADER='"hosts/i386linux.h"' | |
10445 | ;; | |
80c7c40a NC |
10446 | i[3-7]86-*-isc*) COREFILE=trad-core.lo ;; |
10447 | i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;; | |
252b5132 RH |
10448 | i860-*-mach3* | i860-*-osf1*) |
10449 | COREFILE=trad-core.lo | |
10450 | TRAD_HEADER='"hosts/i860mach3.h"' | |
10451 | ;; | |
252b5132 RH |
10452 | mips-*-netbsd* | mips*-*-openbsd*) |
10453 | COREFILE=netbsd-core.lo | |
10454 | ;; | |
10455 | mips-dec-*) | |
10456 | COREFILE=trad-core.lo | |
10457 | TRAD_HEADER='"hosts/decstation.h"' | |
10458 | ;; | |
10459 | mips-sgi-irix4*) COREFILE=irix-core.lo ;; | |
10460 | mips-sgi-irix5*) COREFILE=irix-core.lo ;; | |
10461 | mips-sgi-irix6*) COREFILE=irix-core.lo ;; | |
252b5132 RH |
10462 | mips-*-sysv4*) ;; |
10463 | mips-*-sysv* | mips-*-riscos*) | |
10464 | COREFILE=trad-core.lo | |
10465 | TRAD_HEADER='"hosts/riscos.h"' | |
10466 | ;; | |
10467 | mips-sony-bsd*) | |
10468 | COREFILE=trad-core.lo | |
10469 | TRAD_HEADER='"hosts/news-mips.h"' | |
10470 | ;; | |
10471 | m68*-bull*-sysv*) | |
10472 | COREFILE=trad-core.lo | |
10473 | TRAD_HEADER='"hosts/dpx2.h"' | |
10474 | ;; | |
10475 | m68*-hp-hpux*) COREFILE=hpux-core.lo ;; | |
10476 | m68*-hp-bsd*) | |
10477 | COREFILE=trad-core.lo | |
10478 | TRAD_HEADER='"hosts/hp300bsd.h"' | |
10479 | ;; | |
ed84e695 | 10480 | m68*-*-linux-*) |
252b5132 RH |
10481 | COREFILE=trad-core.lo |
10482 | TRAD_HEADER='"hosts/m68klinux.h"' | |
10483 | ;; | |
10484 | m68*-motorola-sysv*) | |
10485 | COREFILE=trad-core.lo | |
10486 | TRAD_HEADER='"hosts/delta68.h"' | |
10487 | ;; | |
10488 | m68*-sony-*) | |
10489 | COREFILE=trad-core.lo | |
10490 | TRAD_HEADER='"hosts/news.h"' | |
10491 | ;; | |
10492 | m68*-*-netbsd* | m68*-*-openbsd*) | |
10493 | COREFILE=netbsd-core.lo | |
10494 | ;; | |
10495 | m68*-apple-aux*) | |
10496 | COREFILE=trad-core.lo | |
10497 | TRAD_HEADER='"hosts/m68kaux.h"' | |
10498 | ;; | |
eb1e0e80 NC |
10499 | m88*-*-sysv4*) |
10500 | ;; | |
10501 | m88*-motorola-sysv*) | |
10502 | COREFILE=ptrace-core.lo | |
10503 | ;; | |
252b5132 RH |
10504 | m88*-*-mach3*) |
10505 | COREFILE=trad-core.lo | |
10506 | TRAD_HEADER='"hosts/m88kmach3.h"' | |
10507 | ;; | |
c6f8758f NC |
10508 | m88*-*-openbsd*) |
10509 | COREFILE=netbsd-core.lo | |
10510 | ;; | |
252b5132 RH |
10511 | ns32k-pc532-mach) |
10512 | COREFILE=trad-core.lo | |
10513 | TRAD_HEADER='"hosts/pc532mach.h"' | |
10514 | ;; | |
10515 | ns32k-*-netbsd* | ns32k-*-openbsd*) | |
10516 | COREFILE=netbsd-core.lo | |
10517 | ;; | |
eb1e0e80 NC |
10518 | rs6000-*-lynx*) |
10519 | COREFILE=lynx-core.lo | |
10520 | ;; | |
10521 | rs6000-*-aix5.* | powerpc-*-aix5.*) | |
10522 | COREFILE=rs6000-core.lo | |
10523 | COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE" | |
10524 | ;; | |
83954261 | 10525 | rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*) |
653f71ca KB |
10526 | COREFILE=rs6000-core.lo |
10527 | COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE" | |
83954261 AM |
10528 | # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE |
10529 | # have c_impl as a member of struct core_dumpx | |
5464f5a1 NN |
10530 | echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5 |
10531 | echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6 | |
10532 | cat >conftest.$ac_ext <<_ACEOF | |
10533 | /* confdefs.h. */ | |
10534 | _ACEOF | |
10535 | cat confdefs.h >>conftest.$ac_ext | |
10536 | cat >>conftest.$ac_ext <<_ACEOF | |
10537 | /* end confdefs.h. */ | |
83954261 | 10538 | #include <core.h> |
5464f5a1 NN |
10539 | int |
10540 | main () | |
10541 | { | |
83954261 | 10542 | struct core_dumpx c; c.c_impl = 0; |
5464f5a1 NN |
10543 | ; |
10544 | return 0; | |
10545 | } | |
10546 | _ACEOF | |
10547 | rm -f conftest.$ac_objext | |
10548 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10549 | (eval $ac_compile) 2>conftest.er1 | |
10550 | ac_status=$? | |
10551 | grep -v '^ *+' conftest.er1 >conftest.err | |
10552 | rm -f conftest.er1 | |
10553 | cat conftest.err >&5 | |
10554 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10555 | (exit $ac_status); } && | |
eac338cf | 10556 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
10557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10558 | (eval $ac_try) 2>&5 | |
10559 | ac_status=$? | |
10560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10561 | (exit $ac_status); }; } && | |
10562 | { ac_try='test -s conftest.$ac_objext' | |
10563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10564 | (eval $ac_try) 2>&5 | |
10565 | ac_status=$? | |
10566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10567 | (exit $ac_status); }; }; then | |
10568 | ||
10569 | cat >>confdefs.h <<\_ACEOF | |
83954261 | 10570 | #define HAVE_ST_C_IMPL 1 |
5464f5a1 | 10571 | _ACEOF |
83954261 | 10572 | |
5464f5a1 NN |
10573 | echo "$as_me:$LINENO: result: yes" >&5 |
10574 | echo "${ECHO_T}yes" >&6 | |
83954261 | 10575 | else |
5464f5a1 NN |
10576 | echo "$as_me: failed program was:" >&5 |
10577 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10578 | ||
10579 | echo "$as_me:$LINENO: result: no" >&5 | |
10580 | echo "${ECHO_T}no" >&6 | |
83954261 | 10581 | fi |
5464f5a1 | 10582 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
653f71ca | 10583 | ;; |
252b5132 RH |
10584 | rs6000-*-aix4*) COREFILE=rs6000-core.lo ;; |
10585 | rs6000-*-*) COREFILE=rs6000-core.lo ;; | |
252b5132 RH |
10586 | powerpc-*-aix4*) COREFILE=rs6000-core.lo ;; |
10587 | powerpc-*-aix*) COREFILE=rs6000-core.lo ;; | |
10588 | powerpc-*-beos*) ;; | |
13dfd2d0 NC |
10589 | powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu) |
10590 | COREFILE='' ;; | |
252b5132 | 10591 | powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;; |
d4af9775 | 10592 | powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;; |
dc810e39 | 10593 | s390*-*-*) COREFILE=trad-core.lo ;; |
8d05742f | 10594 | sh*-*-netbsd*) COREFILE=netbsd-core.lo ;; |
a9bf1154 | 10595 | sparc-*-netbsd* | sparc*-*-openbsd*) |
252b5132 RH |
10596 | COREFILE=netbsd-core.lo |
10597 | ;; | |
10598 | tahoe-*-*) | |
10599 | COREFILE=trad-core.lo | |
10600 | TRAD_HEADER='"hosts/tahoe.h"' | |
10601 | ;; | |
de6e5e1a NC |
10602 | vax-*-netbsd* | vax-*-openbsd*) |
10603 | COREFILE=netbsd-core.lo | |
10604 | ;; | |
252b5132 RH |
10605 | vax-*-ultrix2*) |
10606 | COREFILE=trad-core.lo | |
10607 | TRAD_HEADER='"hosts/vaxult2.h"' | |
10608 | ;; | |
10609 | vax-*-ultrix*) | |
10610 | COREFILE=trad-core.lo | |
10611 | TRAD_HEADER='"hosts/vaxult2.h"' | |
10612 | ;; | |
ed84e695 | 10613 | vax-*-linux-*) |
f8fc3443 NC |
10614 | COREFILE=trad-core.lo |
10615 | TRAD_HEADER='"hosts/vaxlinux.h"' | |
10616 | ;; | |
252b5132 RH |
10617 | vax-*-*) |
10618 | COREFILE=trad-core.lo | |
10619 | TRAD_HEADER='"hosts/vaxbsd.h"' | |
10620 | ;; | |
85cfd8d3 MK |
10621 | x86_64-*-netbsd* | x86_64-*-openbsd*) |
10622 | COREFILE=netbsd-core.lo | |
10623 | ;; | |
252b5132 RH |
10624 | esac |
10625 | ||
10626 | case "$COREFILE" in | |
10627 | aix386-core.lo) COREFLAG=-DAIX386_CORE ;; | |
10628 | hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;; | |
10629 | hpux-core.lo) COREFLAG=-DHPUX_CORE ;; | |
10630 | irix-core.lo) COREFLAG=-DIRIX_CORE ;; | |
10631 | lynx-core.lo) COREFLAG=-DLYNX_CORE ;; | |
10632 | netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;; | |
10633 | osf-core.lo) COREFLAG=-DOSF_CORE ;; | |
10634 | ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;; | |
10635 | rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;; | |
10636 | sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;; | |
10637 | trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;; | |
10638 | esac | |
10639 | ||
10640 | # ELF corefile support has several flavors, but all of | |
10641 | # them use something called <sys/procfs.h> | |
5464f5a1 NN |
10642 | |
10643 | for ac_header in sys/procfs.h | |
252b5132 | 10644 | do |
5464f5a1 NN |
10645 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
10646 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10647 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10648 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10649 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10651 | fi | |
10652 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10653 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10654 | else | |
10655 | # Is the header compilable? | |
10656 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
10657 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
10658 | cat >conftest.$ac_ext <<_ACEOF | |
10659 | /* confdefs.h. */ | |
10660 | _ACEOF | |
10661 | cat confdefs.h >>conftest.$ac_ext | |
10662 | cat >>conftest.$ac_ext <<_ACEOF | |
10663 | /* end confdefs.h. */ | |
10664 | $ac_includes_default | |
10665 | #include <$ac_header> | |
10666 | _ACEOF | |
10667 | rm -f conftest.$ac_objext | |
10668 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10669 | (eval $ac_compile) 2>conftest.er1 | |
10670 | ac_status=$? | |
10671 | grep -v '^ *+' conftest.er1 >conftest.err | |
10672 | rm -f conftest.er1 | |
10673 | cat conftest.err >&5 | |
10674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10675 | (exit $ac_status); } && | |
eac338cf | 10676 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
10677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10678 | (eval $ac_try) 2>&5 | |
10679 | ac_status=$? | |
10680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10681 | (exit $ac_status); }; } && | |
10682 | { ac_try='test -s conftest.$ac_objext' | |
10683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10684 | (eval $ac_try) 2>&5 | |
10685 | ac_status=$? | |
10686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10687 | (exit $ac_status); }; }; then | |
10688 | ac_header_compiler=yes | |
10689 | else | |
10690 | echo "$as_me: failed program was:" >&5 | |
10691 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10692 | ||
10693 | ac_header_compiler=no | |
10694 | fi | |
10695 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
10696 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
10697 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
10698 | ||
10699 | # Is the header present? | |
10700 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
10701 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
10702 | cat >conftest.$ac_ext <<_ACEOF | |
10703 | /* confdefs.h. */ | |
10704 | _ACEOF | |
10705 | cat confdefs.h >>conftest.$ac_ext | |
10706 | cat >>conftest.$ac_ext <<_ACEOF | |
10707 | /* end confdefs.h. */ | |
10708 | #include <$ac_header> | |
10709 | _ACEOF | |
10710 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
10711 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
10712 | ac_status=$? | |
10713 | grep -v '^ *+' conftest.er1 >conftest.err | |
10714 | rm -f conftest.er1 | |
10715 | cat conftest.err >&5 | |
10716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10717 | (exit $ac_status); } >/dev/null; then | |
10718 | if test -s conftest.err; then | |
10719 | ac_cpp_err=$ac_c_preproc_warn_flag | |
10720 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
10721 | else | |
10722 | ac_cpp_err= | |
10723 | fi | |
252b5132 | 10724 | else |
5464f5a1 | 10725 | ac_cpp_err=yes |
252b5132 | 10726 | fi |
5464f5a1 NN |
10727 | if test -z "$ac_cpp_err"; then |
10728 | ac_header_preproc=yes | |
10729 | else | |
10730 | echo "$as_me: failed program was:" >&5 | |
10731 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10732 | ||
10733 | ac_header_preproc=no | |
252b5132 | 10734 | fi |
5464f5a1 NN |
10735 | rm -f conftest.err conftest.$ac_ext |
10736 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
10737 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
10738 | ||
10739 | # So? What about this header? | |
10740 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
10741 | yes:no: ) | |
10742 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
10743 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
10744 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
10745 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
10746 | ac_header_preproc=yes | |
10747 | ;; | |
10748 | no:yes:* ) | |
10749 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
10750 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
10751 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
10752 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
10753 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
10754 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
10755 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
10756 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
10757 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
10758 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
10759 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
10760 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
10761 | ( | |
10762 | cat <<\_ASBOX | |
10763 | ## ------------------------------------------ ## | |
10764 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
10765 | ## ------------------------------------------ ## | |
10766 | _ASBOX | |
10767 | ) | | |
10768 | sed "s/^/$as_me: WARNING: /" >&2 | |
10769 | ;; | |
10770 | esac | |
10771 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
10772 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
10773 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
10774 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 10775 | else |
5464f5a1 NN |
10776 | eval "$as_ac_Header=\$ac_header_preproc" |
10777 | fi | |
10778 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
10779 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
10780 | ||
252b5132 | 10781 | fi |
5464f5a1 NN |
10782 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
10783 | cat >>confdefs.h <<_ACEOF | |
10784 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
10785 | _ACEOF | |
10786 | ||
10787 | fi | |
10788 | ||
252b5132 RH |
10789 | done |
10790 | ||
10791 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
5464f5a1 NN |
10792 | echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5 |
10793 | echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
10794 | if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then | |
10795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10796 | else | |
10797 | cat >conftest.$ac_ext <<_ACEOF | |
10798 | /* confdefs.h. */ | |
10799 | _ACEOF | |
10800 | cat confdefs.h >>conftest.$ac_ext | |
10801 | cat >>conftest.$ac_ext <<_ACEOF | |
10802 | /* end confdefs.h. */ | |
7ee38065 MS |
10803 | |
10804 | #define _SYSCALL32 | |
252b5132 | 10805 | #include <sys/procfs.h> |
5464f5a1 NN |
10806 | int |
10807 | main () | |
10808 | { | |
252b5132 | 10809 | prstatus_t avar |
5464f5a1 NN |
10810 | ; |
10811 | return 0; | |
10812 | } | |
10813 | _ACEOF | |
10814 | rm -f conftest.$ac_objext | |
10815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10816 | (eval $ac_compile) 2>conftest.er1 | |
10817 | ac_status=$? | |
10818 | grep -v '^ *+' conftest.er1 >conftest.err | |
10819 | rm -f conftest.er1 | |
10820 | cat conftest.err >&5 | |
10821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10822 | (exit $ac_status); } && | |
eac338cf | 10823 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
10824 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10825 | (eval $ac_try) 2>&5 | |
10826 | ac_status=$? | |
10827 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10828 | (exit $ac_status); }; } && | |
10829 | { ac_try='test -s conftest.$ac_objext' | |
10830 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10831 | (eval $ac_try) 2>&5 | |
10832 | ac_status=$? | |
10833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10834 | (exit $ac_status); }; }; then | |
252b5132 RH |
10835 | bfd_cv_have_sys_procfs_type_prstatus_t=yes |
10836 | else | |
5464f5a1 NN |
10837 | echo "$as_me: failed program was:" >&5 |
10838 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10839 | ||
10840 | bfd_cv_have_sys_procfs_type_prstatus_t=no | |
10841 | ||
252b5132 | 10842 | fi |
5464f5a1 | 10843 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
10844 | fi |
10845 | ||
10846 | if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then | |
5464f5a1 NN |
10847 | |
10848 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 10849 | #define HAVE_PRSTATUS_T 1 |
5464f5a1 | 10850 | _ACEOF |
252b5132 RH |
10851 | |
10852 | fi | |
5464f5a1 NN |
10853 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5 |
10854 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6 | |
252b5132 | 10855 | |
5464f5a1 NN |
10856 | echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5 |
10857 | echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6 | |
10858 | if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then | |
10859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 10860 | else |
5464f5a1 NN |
10861 | cat >conftest.$ac_ext <<_ACEOF |
10862 | /* confdefs.h. */ | |
10863 | _ACEOF | |
10864 | cat confdefs.h >>conftest.$ac_ext | |
10865 | cat >>conftest.$ac_ext <<_ACEOF | |
10866 | /* end confdefs.h. */ | |
7ee38065 MS |
10867 | |
10868 | #define _SYSCALL32 | |
10869 | #include <sys/procfs.h> | |
5464f5a1 NN |
10870 | int |
10871 | main () | |
10872 | { | |
7ee38065 | 10873 | prstatus32_t avar |
5464f5a1 NN |
10874 | ; |
10875 | return 0; | |
10876 | } | |
10877 | _ACEOF | |
10878 | rm -f conftest.$ac_objext | |
10879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10880 | (eval $ac_compile) 2>conftest.er1 | |
10881 | ac_status=$? | |
10882 | grep -v '^ *+' conftest.er1 >conftest.err | |
10883 | rm -f conftest.er1 | |
10884 | cat conftest.err >&5 | |
10885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10886 | (exit $ac_status); } && | |
eac338cf | 10887 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
10888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10889 | (eval $ac_try) 2>&5 | |
10890 | ac_status=$? | |
10891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10892 | (exit $ac_status); }; } && | |
10893 | { ac_try='test -s conftest.$ac_objext' | |
10894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10895 | (eval $ac_try) 2>&5 | |
10896 | ac_status=$? | |
10897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10898 | (exit $ac_status); }; }; then | |
7ee38065 MS |
10899 | bfd_cv_have_sys_procfs_type_prstatus32_t=yes |
10900 | else | |
5464f5a1 NN |
10901 | echo "$as_me: failed program was:" >&5 |
10902 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10903 | ||
10904 | bfd_cv_have_sys_procfs_type_prstatus32_t=no | |
10905 | ||
7ee38065 | 10906 | fi |
5464f5a1 | 10907 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
10908 | fi |
10909 | ||
10910 | if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then | |
5464f5a1 NN |
10911 | |
10912 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 10913 | #define HAVE_PRSTATUS32_T 1 |
5464f5a1 | 10914 | _ACEOF |
7ee38065 MS |
10915 | |
10916 | fi | |
5464f5a1 NN |
10917 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5 |
10918 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6 | |
7ee38065 | 10919 | |
5464f5a1 NN |
10920 | echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5 |
10921 | echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6 | |
10922 | if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then | |
10923 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 10924 | else |
5464f5a1 NN |
10925 | cat >conftest.$ac_ext <<_ACEOF |
10926 | /* confdefs.h. */ | |
10927 | _ACEOF | |
10928 | cat confdefs.h >>conftest.$ac_ext | |
10929 | cat >>conftest.$ac_ext <<_ACEOF | |
10930 | /* end confdefs.h. */ | |
7ee38065 MS |
10931 | |
10932 | #define _SYSCALL32 | |
252b5132 | 10933 | #include <sys/procfs.h> |
5464f5a1 NN |
10934 | int |
10935 | main () | |
10936 | { | |
252b5132 | 10937 | prstatus_t avar; void* aref = (void*) &avar.pr_who |
5464f5a1 NN |
10938 | ; |
10939 | return 0; | |
10940 | } | |
10941 | _ACEOF | |
10942 | rm -f conftest.$ac_objext | |
10943 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10944 | (eval $ac_compile) 2>conftest.er1 | |
10945 | ac_status=$? | |
10946 | grep -v '^ *+' conftest.er1 >conftest.err | |
10947 | rm -f conftest.er1 | |
10948 | cat conftest.err >&5 | |
10949 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10950 | (exit $ac_status); } && | |
eac338cf | 10951 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
10952 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10953 | (eval $ac_try) 2>&5 | |
10954 | ac_status=$? | |
10955 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10956 | (exit $ac_status); }; } && | |
10957 | { ac_try='test -s conftest.$ac_objext' | |
10958 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10959 | (eval $ac_try) 2>&5 | |
10960 | ac_status=$? | |
10961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10962 | (exit $ac_status); }; }; then | |
252b5132 RH |
10963 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes |
10964 | else | |
5464f5a1 NN |
10965 | echo "$as_me: failed program was:" >&5 |
10966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10967 | ||
10968 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no | |
10969 | ||
252b5132 | 10970 | fi |
5464f5a1 | 10971 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
10972 | fi |
10973 | ||
10974 | if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then | |
5464f5a1 NN |
10975 | |
10976 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 10977 | #define HAVE_PRSTATUS_T_PR_WHO 1 |
5464f5a1 | 10978 | _ACEOF |
252b5132 RH |
10979 | |
10980 | fi | |
5464f5a1 NN |
10981 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5 |
10982 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6 | |
252b5132 | 10983 | |
5464f5a1 NN |
10984 | echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5 |
10985 | echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6 | |
10986 | if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then | |
10987 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 10988 | else |
5464f5a1 NN |
10989 | cat >conftest.$ac_ext <<_ACEOF |
10990 | /* confdefs.h. */ | |
10991 | _ACEOF | |
10992 | cat confdefs.h >>conftest.$ac_ext | |
10993 | cat >>conftest.$ac_ext <<_ACEOF | |
10994 | /* end confdefs.h. */ | |
7ee38065 MS |
10995 | |
10996 | #define _SYSCALL32 | |
10997 | #include <sys/procfs.h> | |
5464f5a1 NN |
10998 | int |
10999 | main () | |
11000 | { | |
7ee38065 | 11001 | prstatus32_t avar; void* aref = (void*) &avar.pr_who |
5464f5a1 NN |
11002 | ; |
11003 | return 0; | |
11004 | } | |
11005 | _ACEOF | |
11006 | rm -f conftest.$ac_objext | |
11007 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11008 | (eval $ac_compile) 2>conftest.er1 | |
11009 | ac_status=$? | |
11010 | grep -v '^ *+' conftest.er1 >conftest.err | |
11011 | rm -f conftest.er1 | |
11012 | cat conftest.err >&5 | |
11013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11014 | (exit $ac_status); } && | |
eac338cf | 11015 | { ac_try='test -z "$ac_c_werror_flag" || 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 | |
7ee38065 MS |
11027 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes |
11028 | else | |
5464f5a1 NN |
11029 | echo "$as_me: failed program was:" >&5 |
11030 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11031 | ||
11032 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no | |
11033 | ||
7ee38065 | 11034 | fi |
5464f5a1 | 11035 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
11036 | fi |
11037 | ||
11038 | if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then | |
5464f5a1 NN |
11039 | |
11040 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 11041 | #define HAVE_PRSTATUS32_T_PR_WHO 1 |
5464f5a1 | 11042 | _ACEOF |
7ee38065 MS |
11043 | |
11044 | fi | |
5464f5a1 NN |
11045 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5 |
11046 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6 | |
7ee38065 | 11047 | |
5464f5a1 NN |
11048 | echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5 |
11049 | echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
11050 | if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then | |
11051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 11052 | else |
5464f5a1 NN |
11053 | cat >conftest.$ac_ext <<_ACEOF |
11054 | /* confdefs.h. */ | |
11055 | _ACEOF | |
11056 | cat confdefs.h >>conftest.$ac_ext | |
11057 | cat >>conftest.$ac_ext <<_ACEOF | |
11058 | /* end confdefs.h. */ | |
7ee38065 MS |
11059 | |
11060 | #define _SYSCALL32 | |
252b5132 | 11061 | #include <sys/procfs.h> |
5464f5a1 NN |
11062 | int |
11063 | main () | |
11064 | { | |
252b5132 | 11065 | pstatus_t avar |
5464f5a1 NN |
11066 | ; |
11067 | return 0; | |
11068 | } | |
11069 | _ACEOF | |
11070 | rm -f conftest.$ac_objext | |
11071 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11072 | (eval $ac_compile) 2>conftest.er1 | |
11073 | ac_status=$? | |
11074 | grep -v '^ *+' conftest.er1 >conftest.err | |
11075 | rm -f conftest.er1 | |
11076 | cat conftest.err >&5 | |
11077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11078 | (exit $ac_status); } && | |
eac338cf | 11079 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
11080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11081 | (eval $ac_try) 2>&5 | |
11082 | ac_status=$? | |
11083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11084 | (exit $ac_status); }; } && | |
11085 | { ac_try='test -s conftest.$ac_objext' | |
11086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11087 | (eval $ac_try) 2>&5 | |
11088 | ac_status=$? | |
11089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11090 | (exit $ac_status); }; }; then | |
252b5132 RH |
11091 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
11092 | else | |
5464f5a1 NN |
11093 | echo "$as_me: failed program was:" >&5 |
11094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11095 | ||
11096 | bfd_cv_have_sys_procfs_type_pstatus_t=no | |
11097 | ||
252b5132 | 11098 | fi |
5464f5a1 | 11099 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
11100 | fi |
11101 | ||
11102 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then | |
5464f5a1 NN |
11103 | |
11104 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 11105 | #define HAVE_PSTATUS_T 1 |
5464f5a1 | 11106 | _ACEOF |
252b5132 RH |
11107 | |
11108 | fi | |
5464f5a1 NN |
11109 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 |
11110 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6 | |
252b5132 | 11111 | |
5464f5a1 NN |
11112 | echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5 |
11113 | echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
11114 | if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then | |
11115 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f572a39d | 11116 | else |
5464f5a1 NN |
11117 | cat >conftest.$ac_ext <<_ACEOF |
11118 | /* confdefs.h. */ | |
11119 | _ACEOF | |
11120 | cat confdefs.h >>conftest.$ac_ext | |
11121 | cat >>conftest.$ac_ext <<_ACEOF | |
11122 | /* end confdefs.h. */ | |
f572a39d AM |
11123 | |
11124 | #define _SYSCALL32 | |
11125 | #include <sys/procfs.h> | |
5464f5a1 NN |
11126 | int |
11127 | main () | |
11128 | { | |
f572a39d | 11129 | pxstatus_t avar |
5464f5a1 NN |
11130 | ; |
11131 | return 0; | |
11132 | } | |
11133 | _ACEOF | |
11134 | rm -f conftest.$ac_objext | |
11135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11136 | (eval $ac_compile) 2>conftest.er1 | |
11137 | ac_status=$? | |
11138 | grep -v '^ *+' conftest.er1 >conftest.err | |
11139 | rm -f conftest.er1 | |
11140 | cat conftest.err >&5 | |
11141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11142 | (exit $ac_status); } && | |
eac338cf | 11143 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
11144 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11145 | (eval $ac_try) 2>&5 | |
11146 | ac_status=$? | |
11147 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11148 | (exit $ac_status); }; } && | |
11149 | { ac_try='test -s conftest.$ac_objext' | |
11150 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11151 | (eval $ac_try) 2>&5 | |
11152 | ac_status=$? | |
11153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11154 | (exit $ac_status); }; }; then | |
f572a39d AM |
11155 | bfd_cv_have_sys_procfs_type_pxstatus_t=yes |
11156 | else | |
5464f5a1 NN |
11157 | echo "$as_me: failed program was:" >&5 |
11158 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11159 | ||
11160 | bfd_cv_have_sys_procfs_type_pxstatus_t=no | |
11161 | ||
f572a39d | 11162 | fi |
5464f5a1 | 11163 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f572a39d AM |
11164 | fi |
11165 | ||
11166 | if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then | |
5464f5a1 NN |
11167 | |
11168 | cat >>confdefs.h <<\_ACEOF | |
f572a39d | 11169 | #define HAVE_PXSTATUS_T 1 |
5464f5a1 | 11170 | _ACEOF |
f572a39d AM |
11171 | |
11172 | fi | |
5464f5a1 NN |
11173 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5 |
11174 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6 | |
f572a39d | 11175 | |
5464f5a1 NN |
11176 | echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5 |
11177 | echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6 | |
11178 | if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then | |
11179 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 11180 | else |
5464f5a1 NN |
11181 | cat >conftest.$ac_ext <<_ACEOF |
11182 | /* confdefs.h. */ | |
11183 | _ACEOF | |
11184 | cat confdefs.h >>conftest.$ac_ext | |
11185 | cat >>conftest.$ac_ext <<_ACEOF | |
11186 | /* end confdefs.h. */ | |
7ee38065 MS |
11187 | |
11188 | #define _SYSCALL32 | |
11189 | #include <sys/procfs.h> | |
5464f5a1 NN |
11190 | int |
11191 | main () | |
11192 | { | |
7ee38065 | 11193 | pstatus32_t avar |
5464f5a1 NN |
11194 | ; |
11195 | return 0; | |
11196 | } | |
11197 | _ACEOF | |
11198 | rm -f conftest.$ac_objext | |
11199 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11200 | (eval $ac_compile) 2>conftest.er1 | |
11201 | ac_status=$? | |
11202 | grep -v '^ *+' conftest.er1 >conftest.err | |
11203 | rm -f conftest.er1 | |
11204 | cat conftest.err >&5 | |
11205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11206 | (exit $ac_status); } && | |
eac338cf | 11207 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
11208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11209 | (eval $ac_try) 2>&5 | |
11210 | ac_status=$? | |
11211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11212 | (exit $ac_status); }; } && | |
11213 | { ac_try='test -s conftest.$ac_objext' | |
11214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11215 | (eval $ac_try) 2>&5 | |
11216 | ac_status=$? | |
11217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11218 | (exit $ac_status); }; }; then | |
7ee38065 MS |
11219 | bfd_cv_have_sys_procfs_type_pstatus32_t=yes |
11220 | else | |
5464f5a1 NN |
11221 | echo "$as_me: failed program was:" >&5 |
11222 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11223 | ||
11224 | bfd_cv_have_sys_procfs_type_pstatus32_t=no | |
11225 | ||
7ee38065 | 11226 | fi |
5464f5a1 | 11227 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
11228 | fi |
11229 | ||
11230 | if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then | |
5464f5a1 NN |
11231 | |
11232 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 11233 | #define HAVE_PSTATUS32_T 1 |
5464f5a1 | 11234 | _ACEOF |
7ee38065 MS |
11235 | |
11236 | fi | |
5464f5a1 NN |
11237 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5 |
11238 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6 | |
7ee38065 | 11239 | |
5464f5a1 NN |
11240 | echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5 |
11241 | echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6 | |
11242 | if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then | |
11243 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 11244 | else |
5464f5a1 NN |
11245 | cat >conftest.$ac_ext <<_ACEOF |
11246 | /* confdefs.h. */ | |
11247 | _ACEOF | |
11248 | cat confdefs.h >>conftest.$ac_ext | |
11249 | cat >>conftest.$ac_ext <<_ACEOF | |
11250 | /* end confdefs.h. */ | |
7ee38065 MS |
11251 | |
11252 | #define _SYSCALL32 | |
252b5132 | 11253 | #include <sys/procfs.h> |
5464f5a1 NN |
11254 | int |
11255 | main () | |
11256 | { | |
252b5132 | 11257 | prpsinfo_t avar |
5464f5a1 NN |
11258 | ; |
11259 | return 0; | |
11260 | } | |
11261 | _ACEOF | |
11262 | rm -f conftest.$ac_objext | |
11263 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11264 | (eval $ac_compile) 2>conftest.er1 | |
11265 | ac_status=$? | |
11266 | grep -v '^ *+' conftest.er1 >conftest.err | |
11267 | rm -f conftest.er1 | |
11268 | cat conftest.err >&5 | |
11269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11270 | (exit $ac_status); } && | |
eac338cf | 11271 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
11272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11273 | (eval $ac_try) 2>&5 | |
11274 | ac_status=$? | |
11275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11276 | (exit $ac_status); }; } && | |
11277 | { ac_try='test -s conftest.$ac_objext' | |
11278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11279 | (eval $ac_try) 2>&5 | |
11280 | ac_status=$? | |
11281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11282 | (exit $ac_status); }; }; then | |
252b5132 RH |
11283 | bfd_cv_have_sys_procfs_type_prpsinfo_t=yes |
11284 | else | |
5464f5a1 NN |
11285 | echo "$as_me: failed program was:" >&5 |
11286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11287 | ||
11288 | bfd_cv_have_sys_procfs_type_prpsinfo_t=no | |
11289 | ||
252b5132 | 11290 | fi |
5464f5a1 | 11291 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
11292 | fi |
11293 | ||
11294 | if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then | |
5464f5a1 NN |
11295 | |
11296 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 11297 | #define HAVE_PRPSINFO_T 1 |
5464f5a1 | 11298 | _ACEOF |
252b5132 RH |
11299 | |
11300 | fi | |
5464f5a1 NN |
11301 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5 |
11302 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6 | |
252b5132 | 11303 | |
5464f5a1 NN |
11304 | echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5 |
11305 | echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6 | |
11306 | if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then | |
11307 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 11308 | else |
5464f5a1 NN |
11309 | cat >conftest.$ac_ext <<_ACEOF |
11310 | /* confdefs.h. */ | |
11311 | _ACEOF | |
11312 | cat confdefs.h >>conftest.$ac_ext | |
11313 | cat >>conftest.$ac_ext <<_ACEOF | |
11314 | /* end confdefs.h. */ | |
7ee38065 MS |
11315 | |
11316 | #define _SYSCALL32 | |
11317 | #include <sys/procfs.h> | |
5464f5a1 NN |
11318 | int |
11319 | main () | |
11320 | { | |
7ee38065 | 11321 | prpsinfo32_t avar |
5464f5a1 NN |
11322 | ; |
11323 | return 0; | |
11324 | } | |
11325 | _ACEOF | |
11326 | rm -f conftest.$ac_objext | |
11327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11328 | (eval $ac_compile) 2>conftest.er1 | |
11329 | ac_status=$? | |
11330 | grep -v '^ *+' conftest.er1 >conftest.err | |
11331 | rm -f conftest.er1 | |
11332 | cat conftest.err >&5 | |
11333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11334 | (exit $ac_status); } && | |
eac338cf | 11335 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
11336 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11337 | (eval $ac_try) 2>&5 | |
11338 | ac_status=$? | |
11339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11340 | (exit $ac_status); }; } && | |
11341 | { ac_try='test -s conftest.$ac_objext' | |
11342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11343 | (eval $ac_try) 2>&5 | |
11344 | ac_status=$? | |
11345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11346 | (exit $ac_status); }; }; then | |
7ee38065 MS |
11347 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes |
11348 | else | |
5464f5a1 NN |
11349 | echo "$as_me: failed program was:" >&5 |
11350 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11351 | ||
11352 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=no | |
11353 | ||
7ee38065 | 11354 | fi |
5464f5a1 | 11355 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
11356 | fi |
11357 | ||
11358 | if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then | |
5464f5a1 NN |
11359 | |
11360 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 11361 | #define HAVE_PRPSINFO32_T 1 |
5464f5a1 | 11362 | _ACEOF |
7ee38065 MS |
11363 | |
11364 | fi | |
5464f5a1 NN |
11365 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5 |
11366 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6 | |
7ee38065 | 11367 | |
5464f5a1 NN |
11368 | echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5 |
11369 | echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6 | |
11370 | if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then | |
11371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 11372 | else |
5464f5a1 NN |
11373 | cat >conftest.$ac_ext <<_ACEOF |
11374 | /* confdefs.h. */ | |
11375 | _ACEOF | |
11376 | cat confdefs.h >>conftest.$ac_ext | |
11377 | cat >>conftest.$ac_ext <<_ACEOF | |
11378 | /* end confdefs.h. */ | |
7ee38065 MS |
11379 | |
11380 | #define _SYSCALL32 | |
252b5132 | 11381 | #include <sys/procfs.h> |
5464f5a1 NN |
11382 | int |
11383 | main () | |
11384 | { | |
252b5132 | 11385 | psinfo_t avar |
5464f5a1 NN |
11386 | ; |
11387 | return 0; | |
11388 | } | |
11389 | _ACEOF | |
11390 | rm -f conftest.$ac_objext | |
11391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11392 | (eval $ac_compile) 2>conftest.er1 | |
11393 | ac_status=$? | |
11394 | grep -v '^ *+' conftest.er1 >conftest.err | |
11395 | rm -f conftest.er1 | |
11396 | cat conftest.err >&5 | |
11397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11398 | (exit $ac_status); } && | |
eac338cf | 11399 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
11400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11401 | (eval $ac_try) 2>&5 | |
11402 | ac_status=$? | |
11403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11404 | (exit $ac_status); }; } && | |
11405 | { ac_try='test -s conftest.$ac_objext' | |
11406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11407 | (eval $ac_try) 2>&5 | |
11408 | ac_status=$? | |
11409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11410 | (exit $ac_status); }; }; then | |
252b5132 RH |
11411 | bfd_cv_have_sys_procfs_type_psinfo_t=yes |
11412 | else | |
5464f5a1 NN |
11413 | echo "$as_me: failed program was:" >&5 |
11414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11415 | ||
11416 | bfd_cv_have_sys_procfs_type_psinfo_t=no | |
11417 | ||
252b5132 | 11418 | fi |
5464f5a1 | 11419 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
11420 | fi |
11421 | ||
11422 | if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then | |
5464f5a1 NN |
11423 | |
11424 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 11425 | #define HAVE_PSINFO_T 1 |
5464f5a1 | 11426 | _ACEOF |
252b5132 RH |
11427 | |
11428 | fi | |
5464f5a1 NN |
11429 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5 |
11430 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6 | |
252b5132 | 11431 | |
5464f5a1 NN |
11432 | echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5 |
11433 | echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6 | |
11434 | if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then | |
11435 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 11436 | else |
5464f5a1 NN |
11437 | cat >conftest.$ac_ext <<_ACEOF |
11438 | /* confdefs.h. */ | |
11439 | _ACEOF | |
11440 | cat confdefs.h >>conftest.$ac_ext | |
11441 | cat >>conftest.$ac_ext <<_ACEOF | |
11442 | /* end confdefs.h. */ | |
7ee38065 MS |
11443 | |
11444 | #define _SYSCALL32 | |
11445 | #include <sys/procfs.h> | |
5464f5a1 NN |
11446 | int |
11447 | main () | |
11448 | { | |
7ee38065 | 11449 | psinfo32_t avar |
5464f5a1 NN |
11450 | ; |
11451 | return 0; | |
11452 | } | |
11453 | _ACEOF | |
11454 | rm -f conftest.$ac_objext | |
11455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11456 | (eval $ac_compile) 2>conftest.er1 | |
11457 | ac_status=$? | |
11458 | grep -v '^ *+' conftest.er1 >conftest.err | |
11459 | rm -f conftest.er1 | |
11460 | cat conftest.err >&5 | |
11461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11462 | (exit $ac_status); } && | |
eac338cf | 11463 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
11464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11465 | (eval $ac_try) 2>&5 | |
11466 | ac_status=$? | |
11467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11468 | (exit $ac_status); }; } && | |
11469 | { ac_try='test -s conftest.$ac_objext' | |
11470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11471 | (eval $ac_try) 2>&5 | |
11472 | ac_status=$? | |
11473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11474 | (exit $ac_status); }; }; then | |
7ee38065 MS |
11475 | bfd_cv_have_sys_procfs_type_psinfo32_t=yes |
11476 | else | |
5464f5a1 NN |
11477 | echo "$as_me: failed program was:" >&5 |
11478 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11479 | ||
11480 | bfd_cv_have_sys_procfs_type_psinfo32_t=no | |
11481 | ||
7ee38065 | 11482 | fi |
5464f5a1 | 11483 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
11484 | fi |
11485 | ||
11486 | if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then | |
5464f5a1 NN |
11487 | |
11488 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 11489 | #define HAVE_PSINFO32_T 1 |
5464f5a1 | 11490 | _ACEOF |
7ee38065 MS |
11491 | |
11492 | fi | |
5464f5a1 NN |
11493 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5 |
11494 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6 | |
7ee38065 | 11495 | |
5464f5a1 NN |
11496 | echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5 |
11497 | echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
11498 | if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then | |
11499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 11500 | else |
5464f5a1 NN |
11501 | cat >conftest.$ac_ext <<_ACEOF |
11502 | /* confdefs.h. */ | |
11503 | _ACEOF | |
11504 | cat confdefs.h >>conftest.$ac_ext | |
11505 | cat >>conftest.$ac_ext <<_ACEOF | |
11506 | /* end confdefs.h. */ | |
7ee38065 MS |
11507 | |
11508 | #define _SYSCALL32 | |
252b5132 | 11509 | #include <sys/procfs.h> |
5464f5a1 NN |
11510 | int |
11511 | main () | |
11512 | { | |
252b5132 | 11513 | lwpstatus_t avar |
5464f5a1 NN |
11514 | ; |
11515 | return 0; | |
11516 | } | |
11517 | _ACEOF | |
11518 | rm -f conftest.$ac_objext | |
11519 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11520 | (eval $ac_compile) 2>conftest.er1 | |
11521 | ac_status=$? | |
11522 | grep -v '^ *+' conftest.er1 >conftest.err | |
11523 | rm -f conftest.er1 | |
11524 | cat conftest.err >&5 | |
11525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11526 | (exit $ac_status); } && | |
eac338cf | 11527 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
11528 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11529 | (eval $ac_try) 2>&5 | |
11530 | ac_status=$? | |
11531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11532 | (exit $ac_status); }; } && | |
11533 | { ac_try='test -s conftest.$ac_objext' | |
11534 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11535 | (eval $ac_try) 2>&5 | |
11536 | ac_status=$? | |
11537 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11538 | (exit $ac_status); }; }; then | |
252b5132 RH |
11539 | bfd_cv_have_sys_procfs_type_lwpstatus_t=yes |
11540 | else | |
5464f5a1 NN |
11541 | echo "$as_me: failed program was:" >&5 |
11542 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11543 | ||
11544 | bfd_cv_have_sys_procfs_type_lwpstatus_t=no | |
11545 | ||
252b5132 | 11546 | fi |
5464f5a1 | 11547 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
11548 | fi |
11549 | ||
11550 | if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then | |
5464f5a1 NN |
11551 | |
11552 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 11553 | #define HAVE_LWPSTATUS_T 1 |
5464f5a1 | 11554 | _ACEOF |
252b5132 RH |
11555 | |
11556 | fi | |
5464f5a1 NN |
11557 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5 |
11558 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6 | |
252b5132 | 11559 | |
5464f5a1 NN |
11560 | echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5 |
11561 | echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
11562 | if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then | |
11563 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f572a39d | 11564 | else |
5464f5a1 NN |
11565 | cat >conftest.$ac_ext <<_ACEOF |
11566 | /* confdefs.h. */ | |
11567 | _ACEOF | |
11568 | cat confdefs.h >>conftest.$ac_ext | |
11569 | cat >>conftest.$ac_ext <<_ACEOF | |
11570 | /* end confdefs.h. */ | |
f572a39d AM |
11571 | |
11572 | #define _SYSCALL32 | |
11573 | #include <sys/procfs.h> | |
5464f5a1 NN |
11574 | int |
11575 | main () | |
11576 | { | |
f572a39d | 11577 | lwpxstatus_t avar |
5464f5a1 NN |
11578 | ; |
11579 | return 0; | |
11580 | } | |
11581 | _ACEOF | |
11582 | rm -f conftest.$ac_objext | |
11583 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11584 | (eval $ac_compile) 2>conftest.er1 | |
11585 | ac_status=$? | |
11586 | grep -v '^ *+' conftest.er1 >conftest.err | |
11587 | rm -f conftest.er1 | |
11588 | cat conftest.err >&5 | |
11589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11590 | (exit $ac_status); } && | |
eac338cf | 11591 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
11592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11593 | (eval $ac_try) 2>&5 | |
11594 | ac_status=$? | |
11595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11596 | (exit $ac_status); }; } && | |
11597 | { ac_try='test -s conftest.$ac_objext' | |
11598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11599 | (eval $ac_try) 2>&5 | |
11600 | ac_status=$? | |
11601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11602 | (exit $ac_status); }; }; then | |
f572a39d AM |
11603 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes |
11604 | else | |
5464f5a1 NN |
11605 | echo "$as_me: failed program was:" >&5 |
11606 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11607 | ||
11608 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=no | |
11609 | ||
f572a39d | 11610 | fi |
5464f5a1 | 11611 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f572a39d AM |
11612 | fi |
11613 | ||
11614 | if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then | |
5464f5a1 NN |
11615 | |
11616 | cat >>confdefs.h <<\_ACEOF | |
f572a39d | 11617 | #define HAVE_LWPXSTATUS_T 1 |
5464f5a1 | 11618 | _ACEOF |
f572a39d AM |
11619 | |
11620 | fi | |
5464f5a1 NN |
11621 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5 |
11622 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6 | |
f572a39d | 11623 | |
5464f5a1 NN |
11624 | echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5 |
11625 | echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6 | |
11626 | if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then | |
11627 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 11628 | else |
5464f5a1 NN |
11629 | cat >conftest.$ac_ext <<_ACEOF |
11630 | /* confdefs.h. */ | |
11631 | _ACEOF | |
11632 | cat confdefs.h >>conftest.$ac_ext | |
11633 | cat >>conftest.$ac_ext <<_ACEOF | |
11634 | /* end confdefs.h. */ | |
7ee38065 MS |
11635 | |
11636 | #define _SYSCALL32 | |
252b5132 | 11637 | #include <sys/procfs.h> |
5464f5a1 NN |
11638 | int |
11639 | main () | |
11640 | { | |
252b5132 | 11641 | lwpstatus_t avar; void* aref = (void*) &avar.pr_context |
5464f5a1 NN |
11642 | ; |
11643 | return 0; | |
11644 | } | |
11645 | _ACEOF | |
11646 | rm -f conftest.$ac_objext | |
11647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11648 | (eval $ac_compile) 2>conftest.er1 | |
11649 | ac_status=$? | |
11650 | grep -v '^ *+' conftest.er1 >conftest.err | |
11651 | rm -f conftest.er1 | |
11652 | cat conftest.err >&5 | |
11653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11654 | (exit $ac_status); } && | |
eac338cf | 11655 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
11656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11657 | (eval $ac_try) 2>&5 | |
11658 | ac_status=$? | |
11659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11660 | (exit $ac_status); }; } && | |
11661 | { ac_try='test -s conftest.$ac_objext' | |
11662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11663 | (eval $ac_try) 2>&5 | |
11664 | ac_status=$? | |
11665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11666 | (exit $ac_status); }; }; then | |
252b5132 RH |
11667 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes |
11668 | else | |
5464f5a1 NN |
11669 | echo "$as_me: failed program was:" >&5 |
11670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11671 | ||
11672 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no | |
11673 | ||
252b5132 | 11674 | fi |
5464f5a1 | 11675 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
11676 | fi |
11677 | ||
11678 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then | |
5464f5a1 NN |
11679 | |
11680 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 11681 | #define HAVE_LWPSTATUS_T_PR_CONTEXT 1 |
5464f5a1 | 11682 | _ACEOF |
252b5132 RH |
11683 | |
11684 | fi | |
5464f5a1 NN |
11685 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5 |
11686 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6 | |
252b5132 | 11687 | |
5464f5a1 NN |
11688 | echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5 |
11689 | echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6 | |
11690 | if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then | |
11691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 11692 | else |
5464f5a1 NN |
11693 | cat >conftest.$ac_ext <<_ACEOF |
11694 | /* confdefs.h. */ | |
11695 | _ACEOF | |
11696 | cat confdefs.h >>conftest.$ac_ext | |
11697 | cat >>conftest.$ac_ext <<_ACEOF | |
11698 | /* end confdefs.h. */ | |
7ee38065 MS |
11699 | |
11700 | #define _SYSCALL32 | |
252b5132 | 11701 | #include <sys/procfs.h> |
5464f5a1 NN |
11702 | int |
11703 | main () | |
11704 | { | |
252b5132 | 11705 | lwpstatus_t avar; void* aref = (void*) &avar.pr_reg |
5464f5a1 NN |
11706 | ; |
11707 | return 0; | |
11708 | } | |
11709 | _ACEOF | |
11710 | rm -f conftest.$ac_objext | |
11711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11712 | (eval $ac_compile) 2>conftest.er1 | |
11713 | ac_status=$? | |
11714 | grep -v '^ *+' conftest.er1 >conftest.err | |
11715 | rm -f conftest.er1 | |
11716 | cat conftest.err >&5 | |
11717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11718 | (exit $ac_status); } && | |
eac338cf | 11719 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
11720 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11721 | (eval $ac_try) 2>&5 | |
11722 | ac_status=$? | |
11723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11724 | (exit $ac_status); }; } && | |
11725 | { ac_try='test -s conftest.$ac_objext' | |
11726 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11727 | (eval $ac_try) 2>&5 | |
11728 | ac_status=$? | |
11729 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11730 | (exit $ac_status); }; }; then | |
252b5132 RH |
11731 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes |
11732 | else | |
5464f5a1 NN |
11733 | echo "$as_me: failed program was:" >&5 |
11734 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11735 | ||
11736 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no | |
11737 | ||
252b5132 | 11738 | fi |
5464f5a1 | 11739 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
11740 | fi |
11741 | ||
11742 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then | |
5464f5a1 NN |
11743 | |
11744 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 11745 | #define HAVE_LWPSTATUS_T_PR_REG 1 |
5464f5a1 | 11746 | _ACEOF |
252b5132 RH |
11747 | |
11748 | fi | |
5464f5a1 NN |
11749 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5 |
11750 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6 | |
252b5132 | 11751 | |
5464f5a1 NN |
11752 | echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5 |
11753 | echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
11754 | if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then | |
11755 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e3c976c4 | 11756 | else |
5464f5a1 NN |
11757 | cat >conftest.$ac_ext <<_ACEOF |
11758 | /* confdefs.h. */ | |
11759 | _ACEOF | |
11760 | cat confdefs.h >>conftest.$ac_ext | |
11761 | cat >>conftest.$ac_ext <<_ACEOF | |
11762 | /* end confdefs.h. */ | |
7ee38065 MS |
11763 | |
11764 | #define _SYSCALL32 | |
e3c976c4 | 11765 | #include <sys/procfs.h> |
5464f5a1 NN |
11766 | int |
11767 | main () | |
11768 | { | |
e3c976c4 | 11769 | win32_pstatus_t avar |
5464f5a1 NN |
11770 | ; |
11771 | return 0; | |
11772 | } | |
11773 | _ACEOF | |
11774 | rm -f conftest.$ac_objext | |
11775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11776 | (eval $ac_compile) 2>conftest.er1 | |
11777 | ac_status=$? | |
11778 | grep -v '^ *+' conftest.er1 >conftest.err | |
11779 | rm -f conftest.er1 | |
11780 | cat conftest.err >&5 | |
11781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11782 | (exit $ac_status); } && | |
eac338cf | 11783 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
11784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11785 | (eval $ac_try) 2>&5 | |
11786 | ac_status=$? | |
11787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11788 | (exit $ac_status); }; } && | |
11789 | { ac_try='test -s conftest.$ac_objext' | |
11790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11791 | (eval $ac_try) 2>&5 | |
11792 | ac_status=$? | |
11793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11794 | (exit $ac_status); }; }; then | |
e3c976c4 ILT |
11795 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes |
11796 | else | |
5464f5a1 NN |
11797 | echo "$as_me: failed program was:" >&5 |
11798 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11799 | ||
11800 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=no | |
11801 | ||
e3c976c4 | 11802 | fi |
5464f5a1 | 11803 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
11804 | fi |
11805 | ||
e3c976c4 | 11806 | if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then |
5464f5a1 NN |
11807 | |
11808 | cat >>confdefs.h <<\_ACEOF | |
e3c976c4 | 11809 | #define HAVE_WIN32_PSTATUS_T 1 |
5464f5a1 | 11810 | _ACEOF |
16e9c715 NC |
11811 | |
11812 | fi | |
5464f5a1 NN |
11813 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5 |
11814 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6 | |
e3c976c4 ILT |
11815 | |
11816 | fi | |
11817 | fi | |
16e9c715 | 11818 | |
b3baf5d0 | 11819 | |
6be7c12c | 11820 | if test -n "$TRAD_HEADER"; then |
5464f5a1 NN |
11821 | |
11822 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 11823 | #define TRAD_HEADER $TRAD_HEADER |
5464f5a1 | 11824 | _ACEOF |
252b5132 | 11825 | |
3f9b03b5 | 11826 | fi |
252b5132 RH |
11827 | |
11828 | # Horrible hacks to build DLLs on Windows. | |
11829 | WIN32LDFLAGS= | |
11830 | WIN32LIBADD= | |
11831 | case "${host}" in | |
11832 | *-*-cygwin*) | |
11833 | if test "$enable_shared" = "yes"; then | |
11834 | WIN32LDFLAGS="-no-undefined" | |
11835 | WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32" | |
11836 | fi | |
11837 | ;; | |
78be1d6e | 11838 | *-*-linux*) |
39691762 L |
11839 | # We borrow WIN32LIBADD so that the shared libbfd won't depend on |
11840 | # libiberty.a. | |
ca51bfff L |
11841 | case "${host}" in |
11842 | mips*-*-linux*) | |
11843 | # Linux/MIPS uses PIC by default. | |
11844 | if test "$enable_shared" = "yes"; then | |
11845 | WIN32LIBADD="-L../libiberty -liberty" | |
11846 | fi | |
11847 | ;; | |
11848 | *) | |
66e25bab | 11849 | x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` |
bb2a49f2 | 11850 | if test -n "$x"; then |
ca51bfff L |
11851 | WIN32LIBADD="-L../libiberty/pic -liberty" |
11852 | fi | |
11853 | ;; | |
11854 | esac | |
39691762 | 11855 | ;; |
252b5132 RH |
11856 | esac |
11857 | ||
6be7c12c AO |
11858 | |
11859 | ||
252b5132 RH |
11860 | # target stuff: |
11861 | ||
11862 | # Canonicalize the secondary target names. | |
11863 | if test -n "$enable_targets" ; then | |
11864 | for targ in `echo $enable_targets | sed 's/,/ /g'` | |
11865 | do | |
6d83c84b | 11866 | result=`$ac_config_sub $targ 2>/dev/null` |
252b5132 RH |
11867 | if test -n "$result" ; then |
11868 | canon_targets="$canon_targets $result" | |
11869 | else | |
11870 | # Allow targets that config.sub doesn't recognize, like "all". | |
11871 | canon_targets="$canon_targets $targ" | |
11872 | fi | |
11873 | done | |
11874 | fi | |
11875 | ||
11876 | all_targets=false | |
11877 | defvec= | |
11878 | selvecs= | |
08f74004 | 11879 | assocvecs= |
252b5132 RH |
11880 | selarchs= |
11881 | TDEFINES= | |
11882 | for targ in $target $canon_targets | |
11883 | do | |
11884 | if test "x$targ" = "xall"; then | |
11885 | all_targets=true | |
08f74004 | 11886 | assocvecs="$assocvecs $targ_defvec $targ_selvecs" |
252b5132 RH |
11887 | else |
11888 | . $srcdir/config.bfd | |
11889 | if test "x$targ" = "x$target"; then | |
11890 | defvec=$targ_defvec | |
11891 | fi | |
11892 | selvecs="$selvecs $targ_defvec $targ_selvecs" | |
11893 | selarchs="$selarchs $targ_archs" | |
11894 | TDEFINES="$TDEFINES $targ_cflags" | |
11895 | fi | |
11896 | done | |
11897 | ||
6be7c12c | 11898 | |
252b5132 RH |
11899 | # This processing still needs to be done if we're to decide properly whether |
11900 | # 64-bit support needs to be compiled in. Currently, it will be included if | |
11901 | # the default or any other explicitly requested target requires it; it | |
11902 | # will not be included on a 32-bit host if no 64-bit target is requested, and | |
9eb7245e | 11903 | # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is |
252b5132 RH |
11904 | # used. |
11905 | ||
11906 | # uniq the default and selected vectors in all the configured targets. | |
11907 | f="" | |
11908 | for i in $selvecs ; do | |
11909 | case " $f " in | |
11910 | *" $i "*) ;; | |
11911 | *) f="$f $i" ;; | |
11912 | esac | |
11913 | done | |
11914 | selvecs="$f" | |
11915 | ||
6be7c12c | 11916 | |
08f74004 AM |
11917 | # uniq the associated vectors in all the configured targets. |
11918 | f="" | |
11919 | for i in $assocvecs ; do | |
11920 | case " $f " in | |
11921 | *" $i "*) ;; | |
11922 | *) f="$f $i" ;; | |
11923 | esac | |
11924 | done | |
11925 | assocvecs="$f" | |
11926 | ||
11927 | ||
252b5132 RH |
11928 | # uniq the architectures in all the configured targets. |
11929 | f="" | |
11930 | for i in $selarchs ; do | |
11931 | case " $f " in | |
11932 | *" $i "*) ;; | |
11933 | *) f="$f $i" ;; | |
11934 | esac | |
11935 | done | |
11936 | selarchs="$f" | |
11937 | ||
11938 | # Target backend .o files. | |
11939 | tb= | |
11940 | ||
65765700 | 11941 | elf="elf.lo elflink.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo" |
252b5132 RH |
11942 | |
11943 | for vec in $selvecs | |
11944 | do | |
69263e90 | 11945 | target_size=32 |
252b5132 RH |
11946 | case "$vec" in |
11947 | # This list is alphabetized to make it easy to compare | |
dc810e39 AM |
11948 | # with the two vector lists in targets.c. For the same reason, |
11949 | # use one entry per line, even though this leads to long lines. | |
252b5132 RH |
11950 | a29kcoff_big_vec) tb="$tb coff-a29k.lo cofflink.lo" ;; |
11951 | a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;; | |
341ca622 | 11952 | aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;; |
252b5132 RH |
11953 | aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;; |
11954 | aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;; | |
11955 | aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;; | |
252b5132 | 11956 | apollocoff_vec) tb="$tb coff-apollo.lo" ;; |
dc810e39 AM |
11957 | arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; |
11958 | arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; | |
11959 | arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; | |
11960 | arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; | |
11961 | armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;; | |
11962 | armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;; | |
11963 | armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;; | |
11964 | armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; | |
11965 | armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; | |
11966 | armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; | |
11967 | armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; | |
252b5132 RH |
11968 | b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;; |
11969 | b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;; | |
fac41780 | 11970 | bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;; |
dc810e39 | 11971 | bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;; |
73c3cd1c | 11972 | bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;; |
adde6300 | 11973 | bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;; |
dc810e39 | 11974 | bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; |
252b5132 | 11975 | bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; |
7f266840 | 11976 | bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;; |
e5a52504 | 11977 | bfd_elf32_bigarm_symbian_vec) |
7f266840 | 11978 | tb="$tb elf32-arm.lo elf32.lo $elf" ;; |
4e7fd91e PB |
11979 | bfd_elf32_bigarm_vxworks_vec) |
11980 | tb="$tb elf32-arm.lo elf32.lo $elf" ;; | |
c6e90b02 | 11981 | bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;; |
0949843d | 11982 | bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;; |
06c15ad7 | 11983 | bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
5464f5a1 | 11984 | bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;; |
252b5132 RH |
11985 | bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; |
11986 | bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;; | |
d172d4ba | 11987 | bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;; |
252b5132 | 11988 | bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;; |
4e5ba5b7 | 11989 | bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; |
43850d5b | 11990 | bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; |
e01b0e69 | 11991 | bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;; |
dc810e39 | 11992 | bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
225247f0 | 11993 | bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
dc810e39 | 11994 | bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
5b93d8bb | 11995 | bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;; |
eac338cf PB |
11996 | bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; |
11997 | bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; | |
11998 | bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; | |
9d751335 | 11999 | bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; |
dc810e39 | 12000 | bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; |
b2ef150d | 12001 | bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;; |
dc810e39 | 12002 | bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;; |
fcf12726 | 12003 | bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";; |
cf88bb9f | 12004 | bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;; |
a75473eb | 12005 | bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;; |
252b5132 | 12006 | bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; |
dc810e39 | 12007 | bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; |
e5a52504 | 12008 | bfd_elf32_littlearm_symbian_vec) |
7f266840 | 12009 | tb="$tb elf32-arm.lo elf32.lo $elf" ;; |
4e7fd91e PB |
12010 | bfd_elf32_littlearm_vxworks_vec) |
12011 | tb="$tb elf32-arm.lo elf32.lo $elf" ;; | |
7f266840 | 12012 | bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo $elf" ;; |
c6e90b02 | 12013 | bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;; |
252b5132 | 12014 | bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; |
6edf0760 NC |
12015 | bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; |
12016 | bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; | |
12017 | bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; | |
f5a6f915 SC |
12018 | bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;; |
12019 | bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;; | |
252b5132 RH |
12020 | bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;; |
12021 | bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;; | |
12022 | bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; | |
12023 | bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; | |
12024 | bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;; | |
12025 | bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;; | |
2469cfa2 | 12026 | bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;; |
8a397dad TS |
12027 | bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
12028 | bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
12029 | bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
12030 | bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
b3baf5d0 | 12031 | bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;; |
3b16e843 | 12032 | bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;; |
0bcb993b ILT |
12033 | bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; |
12034 | bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; | |
b6821651 AM |
12035 | bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; |
12036 | bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf32.lo $elf" ;; | |
a85d7ed0 | 12037 | bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;; |
eb1e0e80 NC |
12038 | # FIXME: We include cofflink.lo not because it's needed for |
12039 | # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec | |
12040 | # which needs it but does not list it. Should be fixed in right place. | |
9cba27b2 JT |
12041 | bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; |
12042 | bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; | |
2bc3c89a AM |
12043 | bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; |
12044 | bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" target_size=64 ;; | |
12045 | bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;; | |
12046 | bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf32.lo $elf cofflink.lo" ;; | |
b6821651 AM |
12047 | bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; |
12048 | bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
12049 | bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo" ;; | |
85fbca6a | 12050 | bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf32.lo $elf coff-sh.lo" ;; |
b6821651 AM |
12051 | bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; |
12052 | bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
12053 | bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
22b75d0a | 12054 | bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf32.lo $elf" ;; |
c6e90b02 TS |
12055 | bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;; |
12056 | bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo" ;; | |
dc810e39 | 12057 | bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
252b5132 | 12058 | bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; |
90ace9e9 | 12059 | bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;; |
93fbbb04 | 12060 | bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;; |
e0001a05 NC |
12061 | bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; |
12062 | bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; | |
2238051f | 12063 | bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; |
dc810e39 AM |
12064 | bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; |
12065 | bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; | |
c6e90b02 | 12066 | bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
dc810e39 AM |
12067 | bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; |
12068 | bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; | |
dc810e39 | 12069 | bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; |
fcf12726 | 12070 | bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; |
dc810e39 AM |
12071 | bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; |
12072 | bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; | |
c6e90b02 | 12073 | bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
3c3bdf30 | 12074 | bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;; |
dc810e39 AM |
12075 | bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;; |
12076 | bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; | |
12077 | bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;; | |
341ca622 AM |
12078 | bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; |
12079 | bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
2bc3c89a AM |
12080 | bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; |
12081 | bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
12082 | bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
12083 | bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
22b75d0a | 12084 | bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf64.lo $elf"; target_size=64 ;; |
c6e90b02 TS |
12085 | bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
12086 | bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
dc810e39 | 12087 | bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;; |
3c3bdf30 | 12088 | bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;; |
dc810e39 AM |
12089 | bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; |
12090 | bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; | |
12091 | bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; | |
12092 | bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; | |
06c15ad7 | 12093 | cris_aout_vec) tb="$tb aout-cris.lo" ;; |
dc810e39 | 12094 | demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;; |
252b5132 | 12095 | ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
252b5132 | 12096 | ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
dc810e39 AM |
12097 | ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
12098 | ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;; | |
252b5132 RH |
12099 | go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;; |
12100 | go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;; | |
12101 | h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;; | |
12102 | h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;; | |
12103 | host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;; | |
12104 | hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;; | |
12105 | hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;; | |
12106 | i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;; | |
12107 | i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;; | |
12108 | i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;; | |
12109 | i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;; | |
12110 | i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;; | |
252b5132 RH |
12111 | i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;; |
12112 | i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;; | |
12113 | i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;; | |
12114 | i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;; | |
dc810e39 | 12115 | i386msdos_vec) tb="$tb i386msdos.lo" ;; |
252b5132 RH |
12116 | i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;; |
12117 | i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;; | |
dc810e39 AM |
12118 | i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;; |
12119 | i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;; | |
252b5132 RH |
12120 | i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;; |
12121 | icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;; | |
12122 | icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;; | |
12123 | ieee_vec) tb="$tb ieee.lo" ;; | |
dc810e39 AM |
12124 | m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;; |
12125 | m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;; | |
252b5132 RH |
12126 | m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;; |
12127 | m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;; | |
12128 | m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;; | |
12129 | m68klynx_aout_vec) tb="$tb m68klynx.lo lynx-core.lo aout32.lo" ;; | |
12130 | m68klynx_coff_vec) tb="$tb cf-m68klynx.lo coff-m68k.lo cofflink.lo lynx-core.lo" ;; | |
12131 | m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;; | |
252b5132 RH |
12132 | m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;; |
12133 | m88kbcs_vec) tb="$tb coff-m88k.lo" ;; | |
341ca622 | 12134 | m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;; |
c6f8758f | 12135 | m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;; |
7499d566 | 12136 | maxqcoff_vec) tb="$tb coff-maxq.lo" ;; |
93509525 KD |
12137 | mach_o_be_vec) tb="$tb mach-o.lo" ;; |
12138 | mach_o_le_vec) tb="$tb mach-o.lo" ;; | |
12139 | mach_o_fat_vec) tb="$tb mach-o.lo" ;; | |
277d1b5e ILT |
12140 | mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; |
12141 | mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; | |
12142 | mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; | |
12143 | mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; | |
dc810e39 AM |
12144 | mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;; |
12145 | mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;; | |
252b5132 | 12146 | newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;; |
dc810e39 | 12147 | nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;; |
252b5132 | 12148 | nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;; |
252b5132 | 12149 | nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;; |
dc810e39 | 12150 | nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;; |
3b16e843 | 12151 | or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;; |
252b5132 | 12152 | pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;; |
dc810e39 | 12153 | pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;; |
93509525 KD |
12154 | pef_vec) tb="$tb pef.lo" ;; |
12155 | pef_xlib_vec) tb="$tb pef.lo" ;; | |
e135f41b | 12156 | pdp11_aout_vec) tb="$tb pdp11.lo" ;; |
6768c14a | 12157 | pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; |
252b5132 | 12158 | ppcboot_vec) tb="$tb ppcboot.lo" ;; |
dc810e39 | 12159 | riscix_vec) tb="$tb aout32.lo riscix.lo" ;; |
eb1e0e80 | 12160 | rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;; |
dc810e39 | 12161 | rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; |
252b5132 | 12162 | shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
dc810e39 | 12163 | shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
252b5132 | 12164 | shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
dc810e39 | 12165 | shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
60bcf0fa NC |
12166 | shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; |
12167 | shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; | |
252b5132 | 12168 | som_vec) tb="$tb som.lo" ;; |
dc810e39 | 12169 | sparccoff_vec) tb="$tb coff-sparc.lo" ;; |
252b5132 RH |
12170 | sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;; |
12171 | sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;; | |
12172 | sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;; | |
12173 | sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;; | |
12174 | sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;; | |
252b5132 | 12175 | sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;; |
93509525 | 12176 | sym_vec) tb="$tb xsym.lo" ;; |
252b5132 RH |
12177 | tic30_aout_vec) tb="$tb aout-tic30.lo" ;; |
12178 | tic30_coff_vec) tb="$tb coff-tic30.lo" ;; | |
026df7c5 NC |
12179 | tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;; |
12180 | tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
12181 | tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;; | |
12182 | tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
12183 | tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;; | |
12184 | tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
81635ce4 | 12185 | tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 12186 | tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;; |
81635ce4 | 12187 | tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 12188 | tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;; |
81635ce4 | 12189 | tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 12190 | tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;; |
252b5132 | 12191 | tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;; |
90ace9e9 | 12192 | vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;; |
3c2bfad6 | 12193 | vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;; |
ba26fd96 | 12194 | vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;; |
252b5132 | 12195 | versados_vec) tb="$tb versados.lo" ;; |
dc810e39 | 12196 | vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;; |
252b5132 RH |
12197 | vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;; |
12198 | w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;; | |
12199 | we32kcoff_vec) tb="$tb coff-we32k.lo" ;; | |
12200 | z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo" ;; | |
12201 | ||
341ca622 AM |
12202 | # These appear out of order in targets.c |
12203 | srec_vec) tb="$tb srec.lo" ;; | |
12204 | symbolsrec_vec) tb="$tb srec.lo" ;; | |
12205 | tekhex_vec) tb="$tb tekhex.lo" ;; | |
12206 | cisco_core_big_vec) tb="$tb cisco-core.lo" ;; | |
12207 | cisco_core_little_vec) tb="$tb cisco-core.lo" ;; | |
12208 | ||
252b5132 | 12209 | "") ;; |
5464f5a1 NN |
12210 | *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5 |
12211 | echo "$as_me: error: *** unknown target vector $vec" >&2;} | |
12212 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 12213 | esac |
69263e90 AM |
12214 | |
12215 | if test ${target_size} = 64; then | |
12216 | target64=true | |
12217 | fi | |
12218 | if test x"${vec}" = x"${defvec}"; then | |
12219 | bfd_default_target_size=${target_size} | |
12220 | fi | |
252b5132 RH |
12221 | done |
12222 | ||
12223 | # Target architecture .o files. | |
12224 | # A couple of CPUs use shorter file names to avoid problems on DOS | |
12225 | # filesystems. | |
12226 | ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` | |
12227 | ||
12228 | # Weed out duplicate .o files. | |
12229 | f="" | |
12230 | for i in $tb ; do | |
12231 | case " $f " in | |
12232 | *" $i "*) ;; | |
12233 | *) f="$f $i" ;; | |
12234 | esac | |
12235 | done | |
12236 | tb="$f" | |
12237 | ||
12238 | f="" | |
12239 | for i in $ta ; do | |
12240 | case " $f " in | |
12241 | *" $i "*) ;; | |
12242 | *) f="$f $i" ;; | |
12243 | esac | |
12244 | done | |
12245 | ta="$f" | |
12246 | ||
12247 | bfd_backends="$tb" | |
12248 | bfd_machines="$ta" | |
12249 | ||
12250 | if test x${all_targets} = xtrue ; then | |
12251 | bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)' | |
12252 | bfd_machines="${bfd_machines}"' $(ALL_MACHINES)' | |
12253 | selvecs= | |
12254 | havevecs= | |
12255 | selarchs= | |
08f74004 AM |
12256 | test -n "$assocvecs" && |
12257 | assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
252b5132 RH |
12258 | else # all_targets is true |
12259 | # Only set these if they will be nonempty, for the clever echo. | |
12260 | havevecs= | |
08f74004 | 12261 | assocvecs= |
252b5132 RH |
12262 | test -n "$selvecs" && |
12263 | havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'` | |
12264 | test -n "$selvecs" && | |
12265 | selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
12266 | test -n "$selarchs" && | |
12267 | selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
12268 | fi # all_targets is true | |
12269 | ||
12270 | case ${host64}-${target64}-${want64} in | |
12271 | *true*) | |
12272 | wordsize=64 | |
2858ef35 | 12273 | bfd_libs='$(BFD64_LIBS) $(BFD32_LIBS)' |
252b5132 | 12274 | all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)' |
ccba357f | 12275 | if test $BFD_HOST_64_BIT_DEFINED = 0; then |
5464f5a1 NN |
12276 | { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5 |
12277 | echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;} | |
12278 | { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5 | |
12279 | echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;} | |
252b5132 | 12280 | fi |
966abd70 HPN |
12281 | if test -n "$GCC" ; then |
12282 | bad_64bit_gcc=no; | |
5464f5a1 NN |
12283 | echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5 |
12284 | echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6 | |
966abd70 | 12285 | # Add more tests for gcc versions with non-working 64-bit support here. |
5464f5a1 NN |
12286 | cat >conftest.$ac_ext <<_ACEOF |
12287 | /* confdefs.h. */ | |
12288 | _ACEOF | |
12289 | cat confdefs.h >>conftest.$ac_ext | |
12290 | cat >>conftest.$ac_ext <<_ACEOF | |
12291 | /* end confdefs.h. */ | |
966abd70 | 12292 | :__GNUC__:__GNUC_MINOR__:__i386__: |
5464f5a1 | 12293 | _ACEOF |
966abd70 | 12294 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5464f5a1 | 12295 | $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then |
966abd70 | 12296 | bad_64bit_gcc=yes; |
5464f5a1 NN |
12297 | echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5 |
12298 | echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6 | |
966abd70 | 12299 | else |
5464f5a1 NN |
12300 | echo "$as_me:$LINENO: result: no" >&5 |
12301 | echo "${ECHO_T}no" >&6 | |
966abd70 HPN |
12302 | fi |
12303 | rm -f conftest* | |
12304 | ||
12305 | if test $bad_64bit_gcc = yes ; then | |
5464f5a1 NN |
12306 | { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5 |
12307 | echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;} | |
12308 | { (exit 1); exit 1; }; } | |
966abd70 HPN |
12309 | fi |
12310 | fi | |
252b5132 RH |
12311 | ;; |
12312 | false-false-false) | |
12313 | wordsize=32 | |
2858ef35 | 12314 | bfd_libs='$(BFD32_LIBS)' |
252b5132 RH |
12315 | all_backends='$(BFD32_BACKENDS)' |
12316 | ;; | |
12317 | esac | |
12318 | ||
6be7c12c AO |
12319 | |
12320 | ||
12321 | ||
12322 | ||
12323 | ||
69263e90 | 12324 | |
2858ef35 | 12325 | |
1012372a AC |
12326 | # Determine the host dependant file_ptr a.k.a. off_t type. In order |
12327 | # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and | |
12328 | # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long. | |
12329 | # Hopefully a reasonable assumption since fseeko et.al. should be | |
12330 | # upward compatible. | |
5464f5a1 NN |
12331 | |
12332 | ||
12333 | ||
12334 | ||
1012372a AC |
12335 | for ac_func in ftello ftello64 fseeko fseeko64 |
12336 | do | |
5464f5a1 NN |
12337 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
12338 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12339 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
12340 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12341 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12342 | else | |
12343 | cat >conftest.$ac_ext <<_ACEOF | |
12344 | /* confdefs.h. */ | |
12345 | _ACEOF | |
12346 | cat confdefs.h >>conftest.$ac_ext | |
12347 | cat >>conftest.$ac_ext <<_ACEOF | |
12348 | /* end confdefs.h. */ | |
12349 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12350 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12351 | #define $ac_func innocuous_$ac_func | |
12352 | ||
1012372a | 12353 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
12354 | which can conflict with char $ac_func (); below. |
12355 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12356 | <limits.h> exists even on freestanding compilers. */ | |
12357 | ||
12358 | #ifdef __STDC__ | |
12359 | # include <limits.h> | |
12360 | #else | |
12361 | # include <assert.h> | |
12362 | #endif | |
1012372a | 12363 | |
5464f5a1 | 12364 | #undef $ac_func |
1012372a | 12365 | |
5464f5a1 NN |
12366 | /* Override any gcc2 internal prototype to avoid an error. */ |
12367 | #ifdef __cplusplus | |
12368 | extern "C" | |
12369 | { | |
12370 | #endif | |
12371 | /* We use char because int might match the return type of a gcc2 | |
12372 | builtin and then its argument prototype would still apply. */ | |
12373 | char $ac_func (); | |
1012372a AC |
12374 | /* The GNU C library defines this for functions which it implements |
12375 | to always fail with ENOSYS. Some functions are actually named | |
12376 | something starting with __ and the normal name is an alias. */ | |
12377 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12378 | choke me | |
12379 | #else | |
5464f5a1 NN |
12380 | char (*f) () = $ac_func; |
12381 | #endif | |
12382 | #ifdef __cplusplus | |
12383 | } | |
1012372a AC |
12384 | #endif |
12385 | ||
5464f5a1 NN |
12386 | int |
12387 | main () | |
12388 | { | |
12389 | return f != $ac_func; | |
12390 | ; | |
12391 | return 0; | |
12392 | } | |
12393 | _ACEOF | |
12394 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12395 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12396 | (eval $ac_link) 2>conftest.er1 | |
12397 | ac_status=$? | |
12398 | grep -v '^ *+' conftest.er1 >conftest.err | |
12399 | rm -f conftest.er1 | |
12400 | cat conftest.err >&5 | |
12401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12402 | (exit $ac_status); } && | |
eac338cf | 12403 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
12404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12405 | (eval $ac_try) 2>&5 | |
12406 | ac_status=$? | |
12407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12408 | (exit $ac_status); }; } && | |
12409 | { ac_try='test -s conftest$ac_exeext' | |
12410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12411 | (eval $ac_try) 2>&5 | |
12412 | ac_status=$? | |
12413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12414 | (exit $ac_status); }; }; then | |
12415 | eval "$as_ac_var=yes" | |
12416 | else | |
12417 | echo "$as_me: failed program was:" >&5 | |
12418 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12419 | ||
12420 | eval "$as_ac_var=no" | |
12421 | fi | |
12422 | rm -f conftest.err conftest.$ac_objext \ | |
12423 | conftest$ac_exeext conftest.$ac_ext | |
12424 | fi | |
12425 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
12426 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
12427 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
12428 | cat >>confdefs.h <<_ACEOF | |
12429 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12430 | _ACEOF | |
1012372a | 12431 | |
1012372a AC |
12432 | fi |
12433 | done | |
12434 | ||
1012372a | 12435 | if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then |
5464f5a1 NN |
12436 | echo "$as_me:$LINENO: checking size of off_t" >&5 |
12437 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 | |
12438 | if test "${ac_cv_sizeof_off_t+set}" = set; then | |
12439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1012372a AC |
12440 | else |
12441 | for ac_size in 4 8 1 2 16 12 ; do # List sizes in rough order of prevalence. | |
5464f5a1 NN |
12442 | cat >conftest.$ac_ext <<_ACEOF |
12443 | /* confdefs.h. */ | |
12444 | _ACEOF | |
12445 | cat confdefs.h >>conftest.$ac_ext | |
12446 | cat >>conftest.$ac_ext <<_ACEOF | |
12447 | /* end confdefs.h. */ | |
1012372a AC |
12448 | #include "confdefs.h" |
12449 | #include <sys/types.h> | |
12450 | ||
12451 | ||
5464f5a1 NN |
12452 | int |
12453 | main () | |
12454 | { | |
1012372a | 12455 | switch (0) case 0: case (sizeof (off_t) == $ac_size):; |
5464f5a1 NN |
12456 | ; |
12457 | return 0; | |
12458 | } | |
12459 | _ACEOF | |
12460 | rm -f conftest.$ac_objext | |
12461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12462 | (eval $ac_compile) 2>conftest.er1 | |
12463 | ac_status=$? | |
12464 | grep -v '^ *+' conftest.er1 >conftest.err | |
12465 | rm -f conftest.er1 | |
12466 | cat conftest.err >&5 | |
12467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12468 | (exit $ac_status); } && | |
eac338cf | 12469 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
12470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12471 | (eval $ac_try) 2>&5 | |
12472 | ac_status=$? | |
12473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12474 | (exit $ac_status); }; } && | |
12475 | { ac_try='test -s conftest.$ac_objext' | |
12476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12477 | (eval $ac_try) 2>&5 | |
12478 | ac_status=$? | |
12479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12480 | (exit $ac_status); }; }; then | |
1012372a AC |
12481 | ac_cv_sizeof_off_t=$ac_size |
12482 | else | |
5464f5a1 NN |
12483 | echo "$as_me: failed program was:" >&5 |
12484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12485 | ||
1012372a | 12486 | fi |
5464f5a1 | 12487 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
1012372a AC |
12488 | if test x$ac_cv_sizeof_off_t != x ; then break; fi |
12489 | done | |
12490 | ||
12491 | fi | |
12492 | ||
12493 | if test x$ac_cv_sizeof_off_t = x ; then | |
5464f5a1 NN |
12494 | { { echo "$as_me:$LINENO: error: cannot determine a size for off_t" >&5 |
12495 | echo "$as_me: error: cannot determine a size for off_t" >&2;} | |
12496 | { (exit 1); exit 1; }; } | |
1012372a | 12497 | fi |
5464f5a1 NN |
12498 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
12499 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 | |
12500 | ||
12501 | cat >>confdefs.h <<_ACEOF | |
1012372a | 12502 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
5464f5a1 | 12503 | _ACEOF |
1012372a AC |
12504 | |
12505 | ||
1012372a | 12506 | fi |
5464f5a1 NN |
12507 | echo "$as_me:$LINENO: checking file_ptr type" >&5 |
12508 | echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6 | |
ccba357f AM |
12509 | bfd_file_ptr="long" |
12510 | bfd_ufile_ptr="unsigned long" | |
12511 | if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \ | |
12512 | -o x"${ac_cv_sizeof_off_t}" = x8; then | |
1012372a AC |
12513 | bfd_file_ptr=BFD_HOST_64_BIT |
12514 | bfd_ufile_ptr=BFD_HOST_U_64_BIT | |
12515 | fi | |
5464f5a1 NN |
12516 | echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5 |
12517 | echo "${ECHO_T}$bfd_file_ptr" >&6 | |
1012372a AC |
12518 | |
12519 | ||
12520 | ||
12521 | ||
252b5132 RH |
12522 | tdefaults="" |
12523 | test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" | |
12524 | test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" | |
08f74004 | 12525 | test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'" |
252b5132 RH |
12526 | test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'" |
12527 | test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}" | |
12528 | ||
6be7c12c | 12529 | |
5464f5a1 NN |
12530 | |
12531 | ||
12532 | for ac_header in stdlib.h unistd.h | |
252b5132 | 12533 | do |
5464f5a1 NN |
12534 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12535 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12536 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12537 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12538 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12539 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12540 | fi | |
12541 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12542 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12543 | else | |
12544 | # Is the header compilable? | |
12545 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12546 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12547 | cat >conftest.$ac_ext <<_ACEOF | |
12548 | /* confdefs.h. */ | |
12549 | _ACEOF | |
12550 | cat confdefs.h >>conftest.$ac_ext | |
12551 | cat >>conftest.$ac_ext <<_ACEOF | |
12552 | /* end confdefs.h. */ | |
12553 | $ac_includes_default | |
12554 | #include <$ac_header> | |
12555 | _ACEOF | |
12556 | rm -f conftest.$ac_objext | |
12557 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12558 | (eval $ac_compile) 2>conftest.er1 | |
12559 | ac_status=$? | |
12560 | grep -v '^ *+' conftest.er1 >conftest.err | |
12561 | rm -f conftest.er1 | |
12562 | cat conftest.err >&5 | |
12563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12564 | (exit $ac_status); } && | |
eac338cf | 12565 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
12566 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12567 | (eval $ac_try) 2>&5 | |
12568 | ac_status=$? | |
12569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12570 | (exit $ac_status); }; } && | |
12571 | { ac_try='test -s conftest.$ac_objext' | |
12572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12573 | (eval $ac_try) 2>&5 | |
12574 | ac_status=$? | |
12575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12576 | (exit $ac_status); }; }; then | |
12577 | ac_header_compiler=yes | |
12578 | else | |
12579 | echo "$as_me: failed program was:" >&5 | |
12580 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12581 | ||
12582 | ac_header_compiler=no | |
12583 | fi | |
12584 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12585 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12586 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12587 | ||
12588 | # Is the header present? | |
12589 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12590 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12591 | cat >conftest.$ac_ext <<_ACEOF | |
12592 | /* confdefs.h. */ | |
12593 | _ACEOF | |
12594 | cat confdefs.h >>conftest.$ac_ext | |
12595 | cat >>conftest.$ac_ext <<_ACEOF | |
12596 | /* end confdefs.h. */ | |
12597 | #include <$ac_header> | |
12598 | _ACEOF | |
12599 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12600 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12601 | ac_status=$? | |
12602 | grep -v '^ *+' conftest.er1 >conftest.err | |
12603 | rm -f conftest.er1 | |
12604 | cat conftest.err >&5 | |
12605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12606 | (exit $ac_status); } >/dev/null; then | |
12607 | if test -s conftest.err; then | |
12608 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12609 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12610 | else | |
12611 | ac_cpp_err= | |
12612 | fi | |
252b5132 | 12613 | else |
5464f5a1 | 12614 | ac_cpp_err=yes |
252b5132 | 12615 | fi |
5464f5a1 NN |
12616 | if test -z "$ac_cpp_err"; then |
12617 | ac_header_preproc=yes | |
12618 | else | |
12619 | echo "$as_me: failed program was:" >&5 | |
12620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12621 | ||
12622 | ac_header_preproc=no | |
252b5132 | 12623 | fi |
5464f5a1 NN |
12624 | rm -f conftest.err conftest.$ac_ext |
12625 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12626 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12627 | ||
12628 | # So? What about this header? | |
12629 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12630 | yes:no: ) | |
12631 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12632 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12633 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12634 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12635 | ac_header_preproc=yes | |
12636 | ;; | |
12637 | no:yes:* ) | |
12638 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12639 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12640 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12641 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12642 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12643 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12644 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12645 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12646 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12647 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12648 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12649 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12650 | ( | |
12651 | cat <<\_ASBOX | |
12652 | ## ------------------------------------------ ## | |
12653 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12654 | ## ------------------------------------------ ## | |
12655 | _ASBOX | |
12656 | ) | | |
12657 | sed "s/^/$as_me: WARNING: /" >&2 | |
12658 | ;; | |
12659 | esac | |
12660 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12661 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12662 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 12664 | else |
5464f5a1 NN |
12665 | eval "$as_ac_Header=\$ac_header_preproc" |
12666 | fi | |
12667 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12668 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12669 | ||
12670 | fi | |
12671 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12672 | cat >>confdefs.h <<_ACEOF | |
12673 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12674 | _ACEOF | |
12675 | ||
252b5132 | 12676 | fi |
5464f5a1 | 12677 | |
252b5132 RH |
12678 | done |
12679 | ||
5464f5a1 | 12680 | |
252b5132 RH |
12681 | for ac_func in getpagesize |
12682 | do | |
5464f5a1 NN |
12683 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
12684 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12685 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
12686 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12688 | else | |
12689 | cat >conftest.$ac_ext <<_ACEOF | |
12690 | /* confdefs.h. */ | |
12691 | _ACEOF | |
12692 | cat confdefs.h >>conftest.$ac_ext | |
12693 | cat >>conftest.$ac_ext <<_ACEOF | |
12694 | /* end confdefs.h. */ | |
12695 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12696 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12697 | #define $ac_func innocuous_$ac_func | |
12698 | ||
252b5132 | 12699 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
12700 | which can conflict with char $ac_func (); below. |
12701 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12702 | <limits.h> exists even on freestanding compilers. */ | |
12703 | ||
12704 | #ifdef __STDC__ | |
12705 | # include <limits.h> | |
12706 | #else | |
12707 | # include <assert.h> | |
12708 | #endif | |
6be7c12c | 12709 | |
5464f5a1 | 12710 | #undef $ac_func |
252b5132 | 12711 | |
5464f5a1 NN |
12712 | /* Override any gcc2 internal prototype to avoid an error. */ |
12713 | #ifdef __cplusplus | |
12714 | extern "C" | |
12715 | { | |
12716 | #endif | |
12717 | /* We use char because int might match the return type of a gcc2 | |
12718 | builtin and then its argument prototype would still apply. */ | |
12719 | char $ac_func (); | |
252b5132 RH |
12720 | /* The GNU C library defines this for functions which it implements |
12721 | to always fail with ENOSYS. Some functions are actually named | |
12722 | something starting with __ and the normal name is an alias. */ | |
12723 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
12724 | choke me | |
12725 | #else | |
5464f5a1 NN |
12726 | char (*f) () = $ac_func; |
12727 | #endif | |
12728 | #ifdef __cplusplus | |
12729 | } | |
252b5132 RH |
12730 | #endif |
12731 | ||
5464f5a1 NN |
12732 | int |
12733 | main () | |
12734 | { | |
12735 | return f != $ac_func; | |
12736 | ; | |
12737 | return 0; | |
12738 | } | |
12739 | _ACEOF | |
12740 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12741 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12742 | (eval $ac_link) 2>conftest.er1 | |
12743 | ac_status=$? | |
12744 | grep -v '^ *+' conftest.er1 >conftest.err | |
12745 | rm -f conftest.er1 | |
12746 | cat conftest.err >&5 | |
12747 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12748 | (exit $ac_status); } && | |
eac338cf | 12749 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
12750 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12751 | (eval $ac_try) 2>&5 | |
12752 | ac_status=$? | |
12753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12754 | (exit $ac_status); }; } && | |
12755 | { ac_try='test -s conftest$ac_exeext' | |
12756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12757 | (eval $ac_try) 2>&5 | |
12758 | ac_status=$? | |
12759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12760 | (exit $ac_status); }; }; then | |
12761 | eval "$as_ac_var=yes" | |
12762 | else | |
12763 | echo "$as_me: failed program was:" >&5 | |
12764 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12765 | ||
12766 | eval "$as_ac_var=no" | |
12767 | fi | |
12768 | rm -f conftest.err conftest.$ac_objext \ | |
12769 | conftest$ac_exeext conftest.$ac_ext | |
12770 | fi | |
12771 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
12772 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
12773 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
12774 | cat >>confdefs.h <<_ACEOF | |
12775 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
12776 | _ACEOF | |
252b5132 | 12777 | |
252b5132 RH |
12778 | fi |
12779 | done | |
12780 | ||
5464f5a1 NN |
12781 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
12782 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
12783 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
12784 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
12785 | else |
12786 | if test "$cross_compiling" = yes; then | |
12787 | ac_cv_func_mmap_fixed_mapped=no | |
12788 | else | |
5464f5a1 NN |
12789 | cat >conftest.$ac_ext <<_ACEOF |
12790 | /* confdefs.h. */ | |
12791 | _ACEOF | |
12792 | cat confdefs.h >>conftest.$ac_ext | |
12793 | cat >>conftest.$ac_ext <<_ACEOF | |
12794 | /* end confdefs.h. */ | |
12795 | $ac_includes_default | |
12796 | /* malloc might have been renamed as rpl_malloc. */ | |
12797 | #undef malloc | |
6be7c12c | 12798 | |
252b5132 RH |
12799 | /* Thanks to Mike Haertel and Jim Avera for this test. |
12800 | Here is a matrix of mmap possibilities: | |
12801 | mmap private not fixed | |
12802 | mmap private fixed at somewhere currently unmapped | |
12803 | mmap private fixed at somewhere already mapped | |
12804 | mmap shared not fixed | |
12805 | mmap shared fixed at somewhere currently unmapped | |
12806 | mmap shared fixed at somewhere already mapped | |
12807 | For private mappings, we should verify that changes cannot be read() | |
12808 | back from the file, nor mmap's back from the file at a different | |
12809 | address. (There have been systems where private was not correctly | |
12810 | implemented like the infamous i386 svr4.0, and systems where the | |
5464f5a1 | 12811 | VM page cache was not coherent with the file system buffer cache |
252b5132 RH |
12812 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
12813 | For shared mappings, we should conversely verify that changes get | |
5464f5a1 | 12814 | propagated back to all the places they're supposed to be. |
252b5132 RH |
12815 | |
12816 | Grep wants private fixed already mapped. | |
12817 | The main things grep needs to know about mmap are: | |
12818 | * does it exist and is it safe to write into the mmap'd area | |
12819 | * how to use it (BSD variants) */ | |
5464f5a1 | 12820 | |
252b5132 RH |
12821 | #include <fcntl.h> |
12822 | #include <sys/mman.h> | |
12823 | ||
5464f5a1 NN |
12824 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
12825 | char *malloc (); | |
12826 | #endif | |
6be7c12c | 12827 | |
5464f5a1 NN |
12828 | /* This mess was copied from the GNU getpagesize.h. */ |
12829 | #if !HAVE_GETPAGESIZE | |
252b5132 | 12830 | /* Assume that all systems that can run configure have sys/param.h. */ |
5464f5a1 | 12831 | # if !HAVE_SYS_PARAM_H |
252b5132 RH |
12832 | # define HAVE_SYS_PARAM_H 1 |
12833 | # endif | |
12834 | ||
12835 | # ifdef _SC_PAGESIZE | |
12836 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
12837 | # else /* no _SC_PAGESIZE */ | |
5464f5a1 | 12838 | # if HAVE_SYS_PARAM_H |
252b5132 RH |
12839 | # include <sys/param.h> |
12840 | # ifdef EXEC_PAGESIZE | |
12841 | # define getpagesize() EXEC_PAGESIZE | |
12842 | # else /* no EXEC_PAGESIZE */ | |
12843 | # ifdef NBPG | |
12844 | # define getpagesize() NBPG * CLSIZE | |
12845 | # ifndef CLSIZE | |
12846 | # define CLSIZE 1 | |
12847 | # endif /* no CLSIZE */ | |
12848 | # else /* no NBPG */ | |
12849 | # ifdef NBPC | |
12850 | # define getpagesize() NBPC | |
12851 | # else /* no NBPC */ | |
12852 | # ifdef PAGESIZE | |
12853 | # define getpagesize() PAGESIZE | |
12854 | # endif /* PAGESIZE */ | |
12855 | # endif /* no NBPC */ | |
12856 | # endif /* no NBPG */ | |
12857 | # endif /* no EXEC_PAGESIZE */ | |
12858 | # else /* no HAVE_SYS_PARAM_H */ | |
12859 | # define getpagesize() 8192 /* punt totally */ | |
12860 | # endif /* no HAVE_SYS_PARAM_H */ | |
12861 | # endif /* no _SC_PAGESIZE */ | |
12862 | ||
5464f5a1 NN |
12863 | #endif /* no HAVE_GETPAGESIZE */ |
12864 | ||
12865 | int | |
12866 | main () | |
12867 | { | |
12868 | char *data, *data2, *data3; | |
12869 | int i, pagesize; | |
12870 | int fd; | |
12871 | ||
12872 | pagesize = getpagesize (); | |
12873 | ||
12874 | /* First, make a file with some known garbage in it. */ | |
12875 | data = (char *) malloc (pagesize); | |
12876 | if (!data) | |
12877 | exit (1); | |
12878 | for (i = 0; i < pagesize; ++i) | |
12879 | *(data + i) = rand (); | |
12880 | umask (0); | |
12881 | fd = creat ("conftest.mmap", 0600); | |
12882 | if (fd < 0) | |
12883 | exit (1); | |
12884 | if (write (fd, data, pagesize) != pagesize) | |
12885 | exit (1); | |
12886 | close (fd); | |
12887 | ||
12888 | /* Next, try to mmap the file at a fixed address which already has | |
12889 | something else allocated at it. If we can, also make sure that | |
12890 | we see the same garbage. */ | |
12891 | fd = open ("conftest.mmap", O_RDWR); | |
12892 | if (fd < 0) | |
12893 | exit (1); | |
12894 | data2 = (char *) malloc (2 * pagesize); | |
12895 | if (!data2) | |
12896 | exit (1); | |
12897 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
12898 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
12899 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
12900 | exit (1); | |
12901 | for (i = 0; i < pagesize; ++i) | |
12902 | if (*(data + i) != *(data2 + i)) | |
12903 | exit (1); | |
12904 | ||
12905 | /* Finally, make sure that changes to the mapped area do not | |
12906 | percolate back to the file as seen by read(). (This is a bug on | |
12907 | some variants of i386 svr4.0.) */ | |
12908 | for (i = 0; i < pagesize; ++i) | |
12909 | *(data2 + i) = *(data2 + i) + 1; | |
12910 | data3 = (char *) malloc (pagesize); | |
12911 | if (!data3) | |
12912 | exit (1); | |
12913 | if (read (fd, data3, pagesize) != pagesize) | |
12914 | exit (1); | |
12915 | for (i = 0; i < pagesize; ++i) | |
12916 | if (*(data + i) != *(data3 + i)) | |
12917 | exit (1); | |
12918 | close (fd); | |
12919 | exit (0); | |
12920 | } | |
12921 | _ACEOF | |
12922 | rm -f conftest$ac_exeext | |
12923 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12924 | (eval $ac_link) 2>&5 | |
12925 | ac_status=$? | |
12926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12927 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12929 | (eval $ac_try) 2>&5 | |
12930 | ac_status=$? | |
12931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12932 | (exit $ac_status); }; }; then | |
12933 | ac_cv_func_mmap_fixed_mapped=yes | |
12934 | else | |
12935 | echo "$as_me: program exited with status $ac_status" >&5 | |
12936 | echo "$as_me: failed program was:" >&5 | |
12937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12938 | ||
12939 | ( exit $ac_status ) | |
12940 | ac_cv_func_mmap_fixed_mapped=no | |
12941 | fi | |
12942 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12943 | fi | |
12944 | fi | |
12945 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
12946 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
12947 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
12948 | ||
12949 | cat >>confdefs.h <<\_ACEOF | |
12950 | #define HAVE_MMAP 1 | |
12951 | _ACEOF | |
12952 | ||
12953 | fi | |
12954 | rm -f conftest.mmap | |
12955 | ||
12956 | ||
12957 | ||
12958 | for ac_func in madvise mprotect | |
12959 | do | |
12960 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
12961 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
12962 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
12963 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
12964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12965 | else | |
12966 | cat >conftest.$ac_ext <<_ACEOF | |
12967 | /* confdefs.h. */ | |
12968 | _ACEOF | |
12969 | cat confdefs.h >>conftest.$ac_ext | |
12970 | cat >>conftest.$ac_ext <<_ACEOF | |
12971 | /* end confdefs.h. */ | |
12972 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
12973 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
12974 | #define $ac_func innocuous_$ac_func | |
12975 | ||
12976 | /* System header to define __stub macros and hopefully few prototypes, | |
12977 | which can conflict with char $ac_func (); below. | |
12978 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12979 | <limits.h> exists even on freestanding compilers. */ | |
12980 | ||
12981 | #ifdef __STDC__ | |
12982 | # include <limits.h> | |
12983 | #else | |
12984 | # include <assert.h> | |
12985 | #endif | |
12986 | ||
12987 | #undef $ac_func | |
12988 | ||
12989 | /* Override any gcc2 internal prototype to avoid an error. */ | |
12990 | #ifdef __cplusplus | |
12991 | extern "C" | |
12992 | { | |
12993 | #endif | |
12994 | /* We use char because int might match the return type of a gcc2 | |
12995 | builtin and then its argument prototype would still apply. */ | |
12996 | char $ac_func (); | |
12997 | /* The GNU C library defines this for functions which it implements | |
12998 | to always fail with ENOSYS. Some functions are actually named | |
12999 | something starting with __ and the normal name is an alias. */ | |
13000 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
13001 | choke me | |
13002 | #else | |
13003 | char (*f) () = $ac_func; | |
13004 | #endif | |
13005 | #ifdef __cplusplus | |
13006 | } | |
13007 | #endif | |
13008 | ||
13009 | int | |
13010 | main () | |
13011 | { | |
13012 | return f != $ac_func; | |
13013 | ; | |
13014 | return 0; | |
13015 | } | |
13016 | _ACEOF | |
13017 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13018 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13019 | (eval $ac_link) 2>conftest.er1 | |
13020 | ac_status=$? | |
13021 | grep -v '^ *+' conftest.er1 >conftest.err | |
13022 | rm -f conftest.er1 | |
13023 | cat conftest.err >&5 | |
13024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13025 | (exit $ac_status); } && | |
eac338cf | 13026 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5464f5a1 NN |
13027 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13028 | (eval $ac_try) 2>&5 | |
13029 | ac_status=$? | |
13030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13031 | (exit $ac_status); }; } && | |
13032 | { ac_try='test -s conftest$ac_exeext' | |
13033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13034 | (eval $ac_try) 2>&5 | |
13035 | ac_status=$? | |
13036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13037 | (exit $ac_status); }; }; then | |
13038 | eval "$as_ac_var=yes" | |
13039 | else | |
13040 | echo "$as_me: failed program was:" >&5 | |
13041 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13042 | ||
13043 | eval "$as_ac_var=no" | |
13044 | fi | |
13045 | rm -f conftest.err conftest.$ac_objext \ | |
13046 | conftest$ac_exeext conftest.$ac_ext | |
13047 | fi | |
13048 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
13049 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
13050 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
13051 | cat >>confdefs.h <<_ACEOF | |
13052 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
13053 | _ACEOF | |
13054 | ||
13055 | fi | |
13056 | done | |
13057 | ||
13058 | case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in | |
13059 | true+yes ) | |
13060 | cat >>confdefs.h <<\_ACEOF | |
13061 | #define USE_MMAP 1 | |
13062 | _ACEOF | |
13063 | ;; | |
13064 | esac | |
13065 | ||
13066 | rm -f doc/config.status | |
13067 | ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in" | |
13068 | ||
13069 | ac_config_commands="$ac_config_commands default" | |
13070 | ||
13071 | cat >confcache <<\_ACEOF | |
13072 | # This file is a shell script that caches the results of configure | |
13073 | # tests run on this system so they can be shared between configure | |
13074 | # scripts and configure runs, see configure's option --config-cache. | |
13075 | # It is not useful on other systems. If it contains results you don't | |
13076 | # want to keep, you may remove or edit it. | |
13077 | # | |
13078 | # config.status only pays attention to the cache file if you give it | |
13079 | # the --recheck option to rerun configure. | |
13080 | # | |
13081 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
13082 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
13083 | # following values. | |
13084 | ||
13085 | _ACEOF | |
13086 | ||
13087 | # The following way of writing the cache mishandles newlines in values, | |
13088 | # but we know of no workaround that is simple, portable, and efficient. | |
13089 | # So, don't put newlines in cache variables' values. | |
13090 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
13091 | # and sets the high bit in the cache file unless we assign to the vars. | |
13092 | { | |
13093 | (set) 2>&1 | | |
13094 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
13095 | *ac_space=\ *) | |
13096 | # `set' does not quote correctly, so add quotes (double-quote | |
13097 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
13098 | sed -n \ | |
13099 | "s/'/'\\\\''/g; | |
13100 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
13101 | ;; | |
13102 | *) | |
13103 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
13104 | sed -n \ | |
13105 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
13106 | ;; | |
13107 | esac; | |
13108 | } | | |
13109 | sed ' | |
13110 | t clear | |
13111 | : clear | |
13112 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
13113 | t end | |
13114 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
13115 | : end' >>confcache | |
13116 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
13117 | if test -w $cache_file; then | |
13118 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
13119 | cat confcache >$cache_file | |
13120 | else | |
13121 | echo "not updating unwritable cache $cache_file" | |
13122 | fi | |
13123 | fi | |
13124 | rm -f confcache | |
13125 | ||
13126 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
13127 | # Let make expand exec_prefix. | |
13128 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
13129 | ||
13130 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
13131 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
13132 | # trailing colons and then remove the whole line if VPATH becomes empty | |
13133 | # (actually we leave an empty line to preserve line numbers). | |
13134 | if test "x$srcdir" = x.; then | |
13135 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
13136 | s/:*\$(srcdir):*/:/; | |
13137 | s/:*\${srcdir}:*/:/; | |
13138 | s/:*@srcdir@:*/:/; | |
13139 | s/^\([^=]*=[ ]*\):*/\1/; | |
13140 | s/:*$//; | |
13141 | s/^[^=]*=[ ]*$//; | |
13142 | }' | |
13143 | fi | |
13144 | ||
13145 | DEFS=-DHAVE_CONFIG_H | |
13146 | ||
13147 | ac_libobjs= | |
13148 | ac_ltlibobjs= | |
13149 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
13150 | # 1. Remove the extension, and $U if already installed. | |
13151 | ac_i=`echo "$ac_i" | | |
13152 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
13153 | # 2. Add them. | |
13154 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
13155 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
13156 | done | |
13157 | LIBOBJS=$ac_libobjs | |
13158 | ||
13159 | LTLIBOBJS=$ac_ltlibobjs | |
13160 | ||
13161 | ||
f5385ebf AM |
13162 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
13163 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
13164 | Usually this means the macro was only invoked conditionally." >&5 | |
13165 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
13166 | Usually this means the macro was only invoked conditionally." >&2;} | |
13167 | { (exit 1); exit 1; }; } | |
13168 | fi | |
13169 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
13170 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
13171 | Usually this means the macro was only invoked conditionally." >&5 | |
13172 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
13173 | Usually this means the macro was only invoked conditionally." >&2;} | |
13174 | { (exit 1); exit 1; }; } | |
13175 | fi | |
13176 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
13177 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
13178 | Usually this means the macro was only invoked conditionally." >&5 | |
13179 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
13180 | Usually this means the macro was only invoked conditionally." >&2;} | |
13181 | { (exit 1); exit 1; }; } | |
13182 | fi | |
13183 | if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then | |
13184 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined. | |
13185 | Usually this means the macro was only invoked conditionally." >&5 | |
13186 | echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined. | |
13187 | Usually this means the macro was only invoked conditionally." >&2;} | |
13188 | { (exit 1); exit 1; }; } | |
13189 | fi | |
5464f5a1 NN |
13190 | |
13191 | : ${CONFIG_STATUS=./config.status} | |
13192 | ac_clean_files_save=$ac_clean_files | |
13193 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
13194 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
13195 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
13196 | cat >$CONFIG_STATUS <<_ACEOF | |
13197 | #! $SHELL | |
13198 | # Generated by $as_me. | |
13199 | # Run this file to recreate the current configuration. | |
13200 | # Compiler output produced by configure, useful for debugging | |
13201 | # configure, is in config.log if it exists. | |
13202 | ||
13203 | debug=false | |
13204 | ac_cs_recheck=false | |
13205 | ac_cs_silent=false | |
13206 | SHELL=\${CONFIG_SHELL-$SHELL} | |
13207 | _ACEOF | |
13208 | ||
13209 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13210 | ## --------------------- ## | |
13211 | ## M4sh Initialization. ## | |
13212 | ## --------------------- ## | |
13213 | ||
13214 | # Be Bourne compatible | |
13215 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
13216 | emulate sh | |
13217 | NULLCMD=: | |
13218 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
13219 | # is contrary to our usage. Disable this feature. | |
13220 | alias -g '${1+"$@"}'='"$@"' | |
13221 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
13222 | set -o posix | |
13223 | fi | |
13224 | DUALCASE=1; export DUALCASE # for MKS sh | |
13225 | ||
13226 | # Support unset when possible. | |
13227 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
13228 | as_unset=unset | |
13229 | else | |
13230 | as_unset=false | |
13231 | fi | |
13232 | ||
13233 | ||
13234 | # Work around bugs in pre-3.0 UWIN ksh. | |
13235 | $as_unset ENV MAIL MAILPATH | |
13236 | PS1='$ ' | |
13237 | PS2='> ' | |
13238 | PS4='+ ' | |
13239 | ||
13240 | # NLS nuisances. | |
13241 | for as_var in \ | |
13242 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
13243 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
13244 | LC_TELEPHONE LC_TIME | |
13245 | do | |
13246 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
13247 | eval $as_var=C; export $as_var | |
13248 | else | |
13249 | $as_unset $as_var | |
13250 | fi | |
13251 | done | |
13252 | ||
13253 | # Required to use basename. | |
13254 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
13255 | as_expr=expr | |
13256 | else | |
13257 | as_expr=false | |
13258 | fi | |
13259 | ||
13260 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
13261 | as_basename=basename | |
13262 | else | |
13263 | as_basename=false | |
13264 | fi | |
252b5132 | 13265 | |
6be7c12c | 13266 | |
5464f5a1 NN |
13267 | # Name of the executable. |
13268 | as_me=`$as_basename "$0" || | |
13269 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
13270 | X"$0" : 'X\(//\)$' \| \ | |
13271 | X"$0" : 'X\(/\)$' \| \ | |
13272 | . : '\(.\)' 2>/dev/null || | |
13273 | echo X/"$0" | | |
13274 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
13275 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
13276 | /^X\/\(\/\).*/{ s//\1/; q; } | |
13277 | s/.*/./; q'` | |
13278 | ||
13279 | ||
13280 | # PATH needs CR, and LINENO needs CR and PATH. | |
13281 | # Avoid depending upon Character Ranges. | |
13282 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
13283 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
13284 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
13285 | as_cr_digits='0123456789' | |
13286 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
13287 | ||
13288 | # The user is always right. | |
13289 | if test "${PATH_SEPARATOR+set}" != set; then | |
13290 | echo "#! /bin/sh" >conf$$.sh | |
13291 | echo "exit 0" >>conf$$.sh | |
13292 | chmod +x conf$$.sh | |
13293 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
13294 | PATH_SEPARATOR=';' | |
13295 | else | |
13296 | PATH_SEPARATOR=: | |
13297 | fi | |
13298 | rm -f conf$$.sh | |
13299 | fi | |
13300 | ||
13301 | ||
13302 | as_lineno_1=$LINENO | |
13303 | as_lineno_2=$LINENO | |
13304 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
13305 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
13306 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
13307 | # Find who we are. Look in the path if we contain no path at all | |
13308 | # relative or not. | |
13309 | case $0 in | |
13310 | *[\\/]* ) as_myself=$0 ;; | |
13311 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13312 | for as_dir in $PATH | |
13313 | do | |
13314 | IFS=$as_save_IFS | |
13315 | test -z "$as_dir" && as_dir=. | |
13316 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
13317 | done | |
13318 | ||
13319 | ;; | |
13320 | esac | |
13321 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
13322 | # in which case we are not to be found in the path. | |
13323 | if test "x$as_myself" = x; then | |
13324 | as_myself=$0 | |
13325 | fi | |
13326 | if test ! -f "$as_myself"; then | |
13327 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
13328 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
13329 | { (exit 1); exit 1; }; } | |
13330 | fi | |
13331 | case $CONFIG_SHELL in | |
13332 | '') | |
13333 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
13334 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
13335 | do | |
13336 | IFS=$as_save_IFS | |
13337 | test -z "$as_dir" && as_dir=. | |
13338 | for as_base in sh bash ksh sh5; do | |
13339 | case $as_dir in | |
13340 | /*) | |
13341 | if ("$as_dir/$as_base" -c ' | |
13342 | as_lineno_1=$LINENO | |
13343 | as_lineno_2=$LINENO | |
13344 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
13345 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
13346 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
13347 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
13348 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
13349 | CONFIG_SHELL=$as_dir/$as_base | |
13350 | export CONFIG_SHELL | |
13351 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
13352 | fi;; | |
13353 | esac | |
13354 | done | |
13355 | done | |
13356 | ;; | |
13357 | esac | |
13358 | ||
13359 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
13360 | # uniformly replaced by the line number. The first 'sed' inserts a | |
13361 | # line-number line before each line; the second 'sed' does the real | |
13362 | # work. The second script uses 'N' to pair each line-number line | |
13363 | # with the numbered line, and appends trailing '-' during | |
13364 | # substitution so that $LINENO is not a special case at line end. | |
13365 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
13366 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
13367 | sed '=' <$as_myself | | |
13368 | sed ' | |
13369 | N | |
13370 | s,$,-, | |
13371 | : loop | |
13372 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
13373 | t loop | |
13374 | s,-$,, | |
13375 | s,^['$as_cr_digits']*\n,, | |
13376 | ' >$as_me.lineno && | |
13377 | chmod +x $as_me.lineno || | |
13378 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
13379 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
13380 | { (exit 1); exit 1; }; } | |
13381 | ||
13382 | # Don't try to exec as it changes $[0], causing all sort of problems | |
13383 | # (the dirname of $[0] is not the place where we might find the | |
13384 | # original and so on. Autoconf is especially sensible to this). | |
13385 | . ./$as_me.lineno | |
13386 | # Exit status is that of the last command. | |
13387 | exit | |
252b5132 | 13388 | } |
6be7c12c | 13389 | |
5464f5a1 NN |
13390 | |
13391 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
13392 | *c*,-n*) ECHO_N= ECHO_C=' | |
13393 | ' ECHO_T=' ' ;; | |
13394 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
13395 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
13396 | esac | |
13397 | ||
13398 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
13399 | as_expr=expr | |
252b5132 | 13400 | else |
5464f5a1 | 13401 | as_expr=false |
252b5132 | 13402 | fi |
5464f5a1 NN |
13403 | |
13404 | rm -f conf$$ conf$$.exe conf$$.file | |
13405 | echo >conf$$.file | |
13406 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
13407 | # We could just check for DJGPP; but this test a) works b) is more generic | |
13408 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
13409 | if test -f conf$$.exe; then | |
13410 | # Don't use ln at all; we don't have any links | |
13411 | as_ln_s='cp -p' | |
13412 | else | |
13413 | as_ln_s='ln -s' | |
13414 | fi | |
13415 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
13416 | as_ln_s=ln | |
13417 | else | |
13418 | as_ln_s='cp -p' | |
252b5132 | 13419 | fi |
5464f5a1 | 13420 | rm -f conf$$ conf$$.exe conf$$.file |
6be7c12c | 13421 | |
5464f5a1 NN |
13422 | if mkdir -p . 2>/dev/null; then |
13423 | as_mkdir_p=: | |
13424 | else | |
13425 | test -d ./-p && rmdir ./-p | |
13426 | as_mkdir_p=false | |
252b5132 | 13427 | fi |
b3baf5d0 | 13428 | |
5464f5a1 | 13429 | as_executable_p="test -f" |
252b5132 | 13430 | |
5464f5a1 NN |
13431 | # Sed expression to map a string onto a valid CPP name. |
13432 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
252b5132 | 13433 | |
5464f5a1 NN |
13434 | # Sed expression to map a string onto a valid variable name. |
13435 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
6be7c12c | 13436 | |
252b5132 | 13437 | |
5464f5a1 NN |
13438 | # IFS |
13439 | # We need space, tab and new line, in precisely that order. | |
13440 | as_nl=' | |
13441 | ' | |
13442 | IFS=" $as_nl" | |
252b5132 | 13443 | |
5464f5a1 NN |
13444 | # CDPATH. |
13445 | $as_unset CDPATH | |
13446 | ||
13447 | exec 6>&1 | |
13448 | ||
13449 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
13450 | # report actual input values of CONFIG_FILES etc. instead of their | |
13451 | # values after options handling. Logging --version etc. is OK. | |
13452 | exec 5>>config.log | |
13453 | { | |
13454 | echo | |
13455 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
13456 | ## Running $as_me. ## | |
13457 | _ASBOX | |
13458 | } >&5 | |
13459 | cat >&5 <<_CSEOF | |
13460 | ||
13461 | This file was extended by $as_me, which was | |
13462 | generated by GNU Autoconf 2.59. Invocation command line was | |
13463 | ||
13464 | CONFIG_FILES = $CONFIG_FILES | |
13465 | CONFIG_HEADERS = $CONFIG_HEADERS | |
13466 | CONFIG_LINKS = $CONFIG_LINKS | |
13467 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
13468 | $ $0 $@ | |
13469 | ||
13470 | _CSEOF | |
13471 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
13472 | echo >&5 | |
13473 | _ACEOF | |
13474 | ||
13475 | # Files that config.status was made for. | |
13476 | if test -n "$ac_config_files"; then | |
13477 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
6be7c12c | 13478 | fi |
5464f5a1 NN |
13479 | |
13480 | if test -n "$ac_config_headers"; then | |
13481 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
6be7c12c | 13482 | fi |
252b5132 | 13483 | |
5464f5a1 NN |
13484 | if test -n "$ac_config_links"; then |
13485 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
252b5132 | 13486 | fi |
252b5132 | 13487 | |
5464f5a1 NN |
13488 | if test -n "$ac_config_commands"; then |
13489 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
13490 | fi | |
252b5132 | 13491 | |
5464f5a1 NN |
13492 | cat >>$CONFIG_STATUS <<\_ACEOF |
13493 | ||
13494 | ac_cs_usage="\ | |
13495 | \`$as_me' instantiates files from templates according to the | |
13496 | current configuration. | |
13497 | ||
13498 | Usage: $0 [OPTIONS] [FILE]... | |
13499 | ||
13500 | -h, --help print this help, then exit | |
13501 | -V, --version print version number, then exit | |
13502 | -q, --quiet do not print progress messages | |
13503 | -d, --debug don't remove temporary files | |
13504 | --recheck update $as_me by reconfiguring in the same conditions | |
13505 | --file=FILE[:TEMPLATE] | |
13506 | instantiate the configuration file FILE | |
13507 | --header=FILE[:TEMPLATE] | |
13508 | instantiate the configuration header FILE | |
13509 | ||
13510 | Configuration files: | |
13511 | $config_files | |
13512 | ||
13513 | Configuration headers: | |
13514 | $config_headers | |
13515 | ||
13516 | Configuration commands: | |
13517 | $config_commands | |
13518 | ||
13519 | Report bugs to <[email protected]>." | |
13520 | _ACEOF | |
13521 | ||
13522 | cat >>$CONFIG_STATUS <<_ACEOF | |
13523 | ac_cs_version="\\ | |
13524 | config.status | |
13525 | configured by $0, generated by GNU Autoconf 2.59, | |
13526 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
13527 | ||
13528 | Copyright (C) 2003 Free Software Foundation, Inc. | |
13529 | This config.status script is free software; the Free Software Foundation | |
13530 | gives unlimited permission to copy, distribute and modify it." | |
13531 | srcdir=$srcdir | |
13532 | INSTALL="$INSTALL" | |
13533 | _ACEOF | |
13534 | ||
13535 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13536 | # If no file are specified by the user, then we need to provide default | |
13537 | # value. By we need to know if files were specified by the user. | |
13538 | ac_need_defaults=: | |
13539 | while test $# != 0 | |
13540 | do | |
13541 | case $1 in | |
13542 | --*=*) | |
13543 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
13544 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
13545 | ac_shift=: | |
6be7c12c | 13546 | ;; |
5464f5a1 NN |
13547 | -*) |
13548 | ac_option=$1 | |
13549 | ac_optarg=$2 | |
13550 | ac_shift=shift | |
6be7c12c | 13551 | ;; |
5464f5a1 NN |
13552 | *) # This is not an option, so the user has probably given explicit |
13553 | # arguments. | |
13554 | ac_option=$1 | |
13555 | ac_need_defaults=false;; | |
13556 | esac | |
252b5132 | 13557 | |
5464f5a1 NN |
13558 | case $ac_option in |
13559 | # Handling of the options. | |
13560 | _ACEOF | |
13561 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13562 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
13563 | ac_cs_recheck=: ;; | |
13564 | --version | --vers* | -V ) | |
13565 | echo "$ac_cs_version"; exit 0 ;; | |
13566 | --he | --h) | |
13567 | # Conflict between --help and --header | |
13568 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
13569 | Try \`$0 --help' for more information." >&5 | |
13570 | echo "$as_me: error: ambiguous option: $1 | |
13571 | Try \`$0 --help' for more information." >&2;} | |
13572 | { (exit 1); exit 1; }; };; | |
13573 | --help | --hel | -h ) | |
13574 | echo "$ac_cs_usage"; exit 0 ;; | |
13575 | --debug | --d* | -d ) | |
13576 | debug=: ;; | |
13577 | --file | --fil | --fi | --f ) | |
13578 | $ac_shift | |
13579 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
13580 | ac_need_defaults=false;; | |
13581 | --header | --heade | --head | --hea ) | |
13582 | $ac_shift | |
13583 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
13584 | ac_need_defaults=false;; | |
13585 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
13586 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
13587 | ac_cs_silent=: ;; | |
6be7c12c | 13588 | |
5464f5a1 NN |
13589 | # This is an error. |
13590 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
13591 | Try \`$0 --help' for more information." >&5 | |
13592 | echo "$as_me: error: unrecognized option: $1 | |
13593 | Try \`$0 --help' for more information." >&2;} | |
13594 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 13595 | |
5464f5a1 | 13596 | *) ac_config_targets="$ac_config_targets $1" ;; |
252b5132 | 13597 | |
5464f5a1 NN |
13598 | esac |
13599 | shift | |
13600 | done | |
6be7c12c | 13601 | |
5464f5a1 | 13602 | ac_configure_extra_args= |
252b5132 | 13603 | |
5464f5a1 NN |
13604 | if $ac_cs_silent; then |
13605 | exec 6>/dev/null | |
13606 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
13607 | fi | |
6be7c12c | 13608 | |
5464f5a1 NN |
13609 | _ACEOF |
13610 | cat >>$CONFIG_STATUS <<_ACEOF | |
13611 | if \$ac_cs_recheck; then | |
13612 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
13613 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
13614 | fi | |
13615 | ||
13616 | _ACEOF | |
13617 | ||
13618 | cat >>$CONFIG_STATUS <<_ACEOF | |
6be7c12c | 13619 | # |
5464f5a1 | 13620 | # INIT-COMMANDS section. |
6be7c12c | 13621 | # |
b3baf5d0 | 13622 | |
f5385ebf | 13623 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
5464f5a1 NN |
13624 | |
13625 | ||
13626 | _ACEOF | |
13627 | ||
13628 | ||
13629 | ||
13630 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13631 | for ac_config_target in $ac_config_targets | |
252b5132 | 13632 | do |
5464f5a1 NN |
13633 | case "$ac_config_target" in |
13634 | # Handling of arguments. | |
13635 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
13636 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
13637 | "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;; | |
13638 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
f5385ebf | 13639 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
5464f5a1 NN |
13640 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
13641 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
13642 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
13643 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
13644 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
13645 | esac |
13646 | done | |
13647 | ||
5464f5a1 NN |
13648 | # If the user did not use the arguments to specify the items to instantiate, |
13649 | # then the envvar interface is used. Set only those that are not. | |
13650 | # We use the long form for the default assignment because of an extremely | |
13651 | # bizarre bug on SunOS 4.1.3. | |
13652 | if $ac_need_defaults; then | |
13653 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
13654 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
13655 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
13656 | fi | |
13657 | ||
13658 | # Have a temporary directory for convenience. Make it in the build tree | |
13659 | # simply because there is no reason to put it here, and in addition, | |
13660 | # creating and moving files from /tmp can sometimes cause problems. | |
13661 | # Create a temporary directory, and hook for its removal unless debugging. | |
13662 | $debug || | |
13663 | { | |
13664 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
13665 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
13666 | } | |
b3baf5d0 | 13667 | |
5464f5a1 | 13668 | # Create a (secure) tmp directory for tmp files. |
b3baf5d0 | 13669 | |
5464f5a1 NN |
13670 | { |
13671 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
13672 | test -n "$tmp" && test -d "$tmp" | |
13673 | } || | |
13674 | { | |
13675 | tmp=./confstat$$-$RANDOM | |
13676 | (umask 077 && mkdir $tmp) | |
13677 | } || | |
13678 | { | |
13679 | echo "$me: cannot create a temporary directory in ." >&2 | |
13680 | { (exit 1); exit 1; } | |
13681 | } | |
13682 | ||
13683 | _ACEOF | |
13684 | ||
13685 | cat >>$CONFIG_STATUS <<_ACEOF | |
13686 | ||
13687 | # | |
13688 | # CONFIG_FILES section. | |
13689 | # | |
b3baf5d0 | 13690 | |
5464f5a1 NN |
13691 | # No need to generate the scripts if there are no CONFIG_FILES. |
13692 | # This happens for instance when ./config.status config.h | |
13693 | if test -n "\$CONFIG_FILES"; then | |
13694 | # Protect against being on the right side of a sed subst in config.status. | |
13695 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
13696 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
13697 | s,@SHELL@,$SHELL,;t t | |
13698 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
13699 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
13700 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
13701 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
13702 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
13703 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
13704 | s,@exec_prefix@,$exec_prefix,;t t | |
13705 | s,@prefix@,$prefix,;t t | |
13706 | s,@program_transform_name@,$program_transform_name,;t t | |
13707 | s,@bindir@,$bindir,;t t | |
13708 | s,@sbindir@,$sbindir,;t t | |
13709 | s,@libexecdir@,$libexecdir,;t t | |
13710 | s,@datadir@,$datadir,;t t | |
13711 | s,@sysconfdir@,$sysconfdir,;t t | |
13712 | s,@sharedstatedir@,$sharedstatedir,;t t | |
13713 | s,@localstatedir@,$localstatedir,;t t | |
13714 | s,@libdir@,$libdir,;t t | |
13715 | s,@includedir@,$includedir,;t t | |
13716 | s,@oldincludedir@,$oldincludedir,;t t | |
13717 | s,@infodir@,$infodir,;t t | |
13718 | s,@mandir@,$mandir,;t t | |
13719 | s,@build_alias@,$build_alias,;t t | |
13720 | s,@host_alias@,$host_alias,;t t | |
13721 | s,@target_alias@,$target_alias,;t t | |
13722 | s,@DEFS@,$DEFS,;t t | |
13723 | s,@ECHO_C@,$ECHO_C,;t t | |
13724 | s,@ECHO_N@,$ECHO_N,;t t | |
13725 | s,@ECHO_T@,$ECHO_T,;t t | |
13726 | s,@LIBS@,$LIBS,;t t | |
13727 | s,@build@,$build,;t t | |
13728 | s,@build_cpu@,$build_cpu,;t t | |
13729 | s,@build_vendor@,$build_vendor,;t t | |
13730 | s,@build_os@,$build_os,;t t | |
13731 | s,@host@,$host,;t t | |
13732 | s,@host_cpu@,$host_cpu,;t t | |
13733 | s,@host_vendor@,$host_vendor,;t t | |
13734 | s,@host_os@,$host_os,;t t | |
13735 | s,@target@,$target,;t t | |
13736 | s,@target_cpu@,$target_cpu,;t t | |
13737 | s,@target_vendor@,$target_vendor,;t t | |
13738 | s,@target_os@,$target_os,;t t | |
13739 | s,@CC@,$CC,;t t | |
13740 | s,@CFLAGS@,$CFLAGS,;t t | |
13741 | s,@LDFLAGS@,$LDFLAGS,;t t | |
13742 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
13743 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
13744 | s,@EXEEXT@,$EXEEXT,;t t | |
13745 | s,@OBJEXT@,$OBJEXT,;t t | |
13746 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
13747 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
13748 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
f5385ebf | 13749 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
5464f5a1 NN |
13750 | s,@PACKAGE@,$PACKAGE,;t t |
13751 | s,@VERSION@,$VERSION,;t t | |
13752 | s,@ACLOCAL@,$ACLOCAL,;t t | |
13753 | s,@AUTOCONF@,$AUTOCONF,;t t | |
13754 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
13755 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
13756 | s,@MAKEINFO@,$MAKEINFO,;t t | |
f5385ebf AM |
13757 | s,@install_sh@,$install_sh,;t t |
13758 | s,@STRIP@,$STRIP,;t t | |
13759 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
13760 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
13761 | s,@mkdir_p@,$mkdir_p,;t t | |
13762 | s,@AWK@,$AWK,;t t | |
5464f5a1 | 13763 | s,@SET_MAKE@,$SET_MAKE,;t t |
f5385ebf AM |
13764 | s,@am__leading_dot@,$am__leading_dot,;t t |
13765 | s,@AMTAR@,$AMTAR,;t t | |
13766 | s,@am__tar@,$am__tar,;t t | |
13767 | s,@am__untar@,$am__untar,;t t | |
13768 | s,@DEPDIR@,$DEPDIR,;t t | |
13769 | s,@am__include@,$am__include,;t t | |
13770 | s,@am__quote@,$am__quote,;t t | |
13771 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
13772 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
13773 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
13774 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
13775 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
13776 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
5464f5a1 NN |
13777 | s,@AR@,$AR,;t t |
13778 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
13779 | s,@RANLIB@,$RANLIB,;t t | |
13780 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
13781 | s,@LN_S@,$LN_S,;t t | |
5464f5a1 NN |
13782 | s,@LIBTOOL@,$LIBTOOL,;t t |
13783 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
9e9b66a9 | 13784 | s,@NO_WERROR@,$NO_WERROR,;t t |
5464f5a1 NN |
13785 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
13786 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
13787 | s,@MAINT@,$MAINT,;t t | |
13788 | s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t | |
13789 | s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t | |
24443139 AS |
13790 | s,@host_noncanonical@,$host_noncanonical,;t t |
13791 | s,@target_noncanonical@,$target_noncanonical,;t t | |
5464f5a1 NN |
13792 | s,@bfdlibdir@,$bfdlibdir,;t t |
13793 | s,@bfdincludedir@,$bfdincludedir,;t t | |
13794 | s,@CPP@,$CPP,;t t | |
13795 | s,@EGREP@,$EGREP,;t t | |
13796 | s,@ALLOCA@,$ALLOCA,;t t | |
13797 | s,@USE_NLS@,$USE_NLS,;t t | |
13798 | s,@MSGFMT@,$MSGFMT,;t t | |
13799 | s,@GMSGFMT@,$GMSGFMT,;t t | |
13800 | s,@XGETTEXT@,$XGETTEXT,;t t | |
13801 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t | |
13802 | s,@CATALOGS@,$CATALOGS,;t t | |
13803 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
13804 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
13805 | s,@GMOFILES@,$GMOFILES,;t t | |
13806 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
13807 | s,@INTLDEPS@,$INTLDEPS,;t t | |
13808 | s,@INTLLIBS@,$INTLLIBS,;t t | |
13809 | s,@INTLOBJS@,$INTLOBJS,;t t | |
13810 | s,@POFILES@,$POFILES,;t t | |
13811 | s,@POSUB@,$POSUB,;t t | |
13812 | s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t | |
13813 | s,@GT_NO@,$GT_NO,;t t | |
13814 | s,@GT_YES@,$GT_YES,;t t | |
13815 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | |
13816 | s,@l@,$l,;t t | |
13817 | s,@HDEFINES@,$HDEFINES,;t t | |
13818 | s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t | |
13819 | s,@BFD_HOST_LONG_LONG@,$BFD_HOST_LONG_LONG,;t t | |
13820 | s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t | |
13821 | s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t | |
13822 | s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t | |
13823 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t | |
13824 | s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t | |
13825 | s,@COREFILE@,$COREFILE,;t t | |
13826 | s,@COREFLAG@,$COREFLAG,;t t | |
13827 | s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t | |
13828 | s,@WIN32LIBADD@,$WIN32LIBADD,;t t | |
13829 | s,@TDEFINES@,$TDEFINES,;t t | |
13830 | s,@wordsize@,$wordsize,;t t | |
13831 | s,@bfd_libs@,$bfd_libs,;t t | |
13832 | s,@all_backends@,$all_backends,;t t | |
13833 | s,@bfd_backends@,$bfd_backends,;t t | |
13834 | s,@bfd_machines@,$bfd_machines,;t t | |
13835 | s,@bfd_default_target_size@,$bfd_default_target_size,;t t | |
13836 | s,@bfd_file_ptr@,$bfd_file_ptr,;t t | |
13837 | s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t | |
13838 | s,@tdefaults@,$tdefaults,;t t | |
13839 | s,@LIBOBJS@,$LIBOBJS,;t t | |
13840 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
252b5132 | 13841 | CEOF |
252b5132 | 13842 | |
5464f5a1 NN |
13843 | _ACEOF |
13844 | ||
13845 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13846 | # Split the substitutions into bite-sized pieces for seds with | |
13847 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
13848 | ac_max_sed_lines=48 | |
13849 | ac_sed_frag=1 # Number of current file. | |
13850 | ac_beg=1 # First line for current file. | |
13851 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
13852 | ac_more_lines=: | |
13853 | ac_sed_cmds= | |
13854 | while $ac_more_lines; do | |
13855 | if test $ac_beg -gt 1; then | |
13856 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
252b5132 | 13857 | else |
5464f5a1 NN |
13858 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
13859 | fi | |
13860 | if test ! -s $tmp/subs.frag; then | |
13861 | ac_more_lines=false | |
13862 | else | |
13863 | # The purpose of the label and of the branching condition is to | |
13864 | # speed up the sed processing (if there are no `@' at all, there | |
13865 | # is no need to browse any of the substitutions). | |
13866 | # These are the two extra sed commands mentioned above. | |
13867 | (echo ':t | |
13868 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
13869 | if test -z "$ac_sed_cmds"; then | |
13870 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
13871 | else | |
13872 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
13873 | fi | |
13874 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
13875 | ac_beg=$ac_end | |
13876 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
252b5132 | 13877 | fi |
5464f5a1 NN |
13878 | done |
13879 | if test -z "$ac_sed_cmds"; then | |
13880 | ac_sed_cmds=cat | |
252b5132 | 13881 | fi |
5464f5a1 | 13882 | fi # test -n "$CONFIG_FILES" |
6be7c12c | 13883 | |
5464f5a1 NN |
13884 | _ACEOF |
13885 | cat >>$CONFIG_STATUS <<\_ACEOF | |
13886 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
252b5132 | 13887 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
5464f5a1 NN |
13888 | case $ac_file in |
13889 | - | *:- | *:-:* ) # input from stdin | |
13890 | cat >$tmp/stdin | |
13891 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13892 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13893 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
13894 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
13895 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
13896 | esac |
13897 | ||
5464f5a1 NN |
13898 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
13899 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
13900 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13901 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13902 | X"$ac_file" : 'X\(//\)$' \| \ | |
13903 | X"$ac_file" : 'X\(/\)' \| \ | |
13904 | . : '\(.\)' 2>/dev/null || | |
13905 | echo X"$ac_file" | | |
13906 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
13907 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13908 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13909 | /^X\(\/\).*/{ s//\1/; q; } | |
13910 | s/.*/./; q'` | |
13911 | { if $as_mkdir_p; then | |
13912 | mkdir -p "$ac_dir" | |
252b5132 | 13913 | else |
5464f5a1 NN |
13914 | as_dir="$ac_dir" |
13915 | as_dirs= | |
13916 | while test ! -d "$as_dir"; do | |
13917 | as_dirs="$as_dir $as_dirs" | |
13918 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
13919 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13920 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
13921 | X"$as_dir" : 'X\(//\)$' \| \ | |
13922 | X"$as_dir" : 'X\(/\)' \| \ | |
13923 | . : '\(.\)' 2>/dev/null || | |
13924 | echo X"$as_dir" | | |
13925 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
13926 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
13927 | /^X\(\/\/\)$/{ s//\1/; q; } | |
13928 | /^X\(\/\).*/{ s//\1/; q; } | |
13929 | s/.*/./; q'` | |
13930 | done | |
13931 | test ! -n "$as_dirs" || mkdir $as_dirs | |
13932 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
13933 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
13934 | { (exit 1); exit 1; }; }; } | |
13935 | ||
13936 | ac_builddir=. | |
13937 | ||
13938 | if test "$ac_dir" != .; then | |
13939 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
13940 | # A "../" for each directory in $ac_dir_suffix. | |
13941 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
13942 | else | |
13943 | ac_dir_suffix= ac_top_builddir= | |
13944 | fi | |
252b5132 | 13945 | |
5464f5a1 NN |
13946 | case $srcdir in |
13947 | .) # No --srcdir option. We are building in place. | |
13948 | ac_srcdir=. | |
13949 | if test -z "$ac_top_builddir"; then | |
13950 | ac_top_srcdir=. | |
13951 | else | |
13952 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
13953 | fi ;; | |
13954 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
13955 | ac_srcdir=$srcdir$ac_dir_suffix; | |
13956 | ac_top_srcdir=$srcdir ;; | |
252b5132 | 13957 | *) # Relative path. |
5464f5a1 NN |
13958 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
13959 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
13960 | esac | |
252b5132 | 13961 | |
5464f5a1 NN |
13962 | # Do not use `cd foo && pwd` to compute absolute paths, because |
13963 | # the directories may not exist. | |
13964 | case `pwd` in | |
13965 | .) ac_abs_builddir="$ac_dir";; | |
13966 | *) | |
13967 | case "$ac_dir" in | |
13968 | .) ac_abs_builddir=`pwd`;; | |
13969 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
13970 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
13971 | esac;; | |
13972 | esac | |
13973 | case $ac_abs_builddir in | |
13974 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
13975 | *) | |
13976 | case ${ac_top_builddir}. in | |
13977 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
13978 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
13979 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
13980 | esac;; | |
13981 | esac | |
13982 | case $ac_abs_builddir in | |
13983 | .) ac_abs_srcdir=$ac_srcdir;; | |
13984 | *) | |
13985 | case $ac_srcdir in | |
13986 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
13987 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
13988 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
13989 | esac;; | |
13990 | esac | |
13991 | case $ac_abs_builddir in | |
13992 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
13993 | *) | |
13994 | case $ac_top_srcdir in | |
13995 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
13996 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
13997 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
13998 | esac;; | |
13999 | esac | |
252b5132 | 14000 | |
5464f5a1 NN |
14001 | |
14002 | case $INSTALL in | |
14003 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
14004 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
6be7c12c | 14005 | esac |
252b5132 | 14006 | |
5464f5a1 NN |
14007 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
14008 | # use $as_me), people would be surprised to read: | |
14009 | # /* config.h. Generated by config.status. */ | |
14010 | if test x"$ac_file" = x-; then | |
14011 | configure_input= | |
14012 | else | |
14013 | configure_input="$ac_file. " | |
14014 | fi | |
14015 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
14016 | sed 's,.*/,,'` by configure." | |
14017 | ||
14018 | # First look for the input files in the build tree, otherwise in the | |
14019 | # src tree. | |
14020 | ac_file_inputs=`IFS=: | |
14021 | for f in $ac_file_in; do | |
14022 | case $f in | |
14023 | -) echo $tmp/stdin ;; | |
14024 | [\\/$]*) | |
14025 | # Absolute (can't be DOS-style, as IFS=:) | |
14026 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
14027 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
14028 | { (exit 1); exit 1; }; } | |
14029 | echo "$f";; | |
14030 | *) # Relative | |
14031 | if test -f "$f"; then | |
14032 | # Build tree | |
14033 | echo "$f" | |
14034 | elif test -f "$srcdir/$f"; then | |
14035 | # Source tree | |
14036 | echo "$srcdir/$f" | |
14037 | else | |
14038 | # /dev/null tree | |
14039 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
14040 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
14041 | { (exit 1); exit 1; }; } | |
14042 | fi;; | |
14043 | esac | |
14044 | done` || { (exit 1); exit 1; } | |
eac338cf PB |
14045 | |
14046 | if test x"$ac_file" != x-; then | |
14047 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
14048 | echo "$as_me: creating $ac_file" >&6;} | |
14049 | rm -f "$ac_file" | |
14050 | fi | |
5464f5a1 NN |
14051 | _ACEOF |
14052 | cat >>$CONFIG_STATUS <<_ACEOF | |
14053 | sed "$ac_vpsub | |
14054 | $extrasub | |
14055 | _ACEOF | |
14056 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14057 | :t | |
14058 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
14059 | s,@configure_input@,$configure_input,;t t | |
14060 | s,@srcdir@,$ac_srcdir,;t t | |
14061 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
14062 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
14063 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
14064 | s,@builddir@,$ac_builddir,;t t | |
14065 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
14066 | s,@top_builddir@,$ac_top_builddir,;t t | |
14067 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
14068 | s,@INSTALL@,$ac_INSTALL,;t t | |
14069 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
14070 | rm -f $tmp/stdin | |
14071 | if test x"$ac_file" != x-; then | |
14072 | mv $tmp/out $ac_file | |
14073 | else | |
14074 | cat $tmp/out | |
14075 | rm -f $tmp/out | |
14076 | fi | |
14077 | ||
14078 | done | |
14079 | _ACEOF | |
14080 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14081 | ||
14082 | # | |
14083 | # CONFIG_HEADER section. | |
14084 | # | |
252b5132 RH |
14085 | |
14086 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
14087 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
14088 | # | |
14089 | # ac_d sets the value in "#define NAME VALUE" lines. | |
5464f5a1 NN |
14090 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
14091 | ac_dB='[ ].*$,\1#\2' | |
14092 | ac_dC=' ' | |
14093 | ac_dD=',;t' | |
14094 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
14095 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
14096 | ac_uB='$,\1#\2define\3' | |
252b5132 | 14097 | ac_uC=' ' |
5464f5a1 NN |
14098 | ac_uD=',;t' |
14099 | ||
14100 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
252b5132 | 14101 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
5464f5a1 NN |
14102 | case $ac_file in |
14103 | - | *:- | *:-:* ) # input from stdin | |
14104 | cat >$tmp/stdin | |
14105 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
14106 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
14107 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
14108 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
14109 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
14110 | esac |
14111 | ||
5464f5a1 NN |
14112 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
14113 | echo "$as_me: creating $ac_file" >&6;} | |
14114 | ||
14115 | # First look for the input files in the build tree, otherwise in the | |
14116 | # src tree. | |
14117 | ac_file_inputs=`IFS=: | |
14118 | for f in $ac_file_in; do | |
14119 | case $f in | |
14120 | -) echo $tmp/stdin ;; | |
14121 | [\\/$]*) | |
14122 | # Absolute (can't be DOS-style, as IFS=:) | |
14123 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
14124 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
14125 | { (exit 1); exit 1; }; } | |
14126 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
14127 | echo "$f";; | |
14128 | *) # Relative | |
14129 | if test -f "$f"; then | |
14130 | # Build tree | |
14131 | echo "$f" | |
14132 | elif test -f "$srcdir/$f"; then | |
14133 | # Source tree | |
14134 | echo "$srcdir/$f" | |
14135 | else | |
14136 | # /dev/null tree | |
14137 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
14138 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
14139 | { (exit 1); exit 1; }; } | |
14140 | fi;; | |
14141 | esac | |
14142 | done` || { (exit 1); exit 1; } | |
14143 | # Remove the trailing spaces. | |
14144 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
14145 | ||
14146 | _ACEOF | |
14147 | ||
14148 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
14149 | # `conftest.undefs', that substitutes the proper values into | |
14150 | # config.h.in to produce config.h. The first handles `#define' | |
14151 | # templates, and the second `#undef' templates. | |
14152 | # And first: Protect against being on the right side of a sed subst in | |
14153 | # config.status. Protect against being in an unquoted here document | |
14154 | # in config.status. | |
14155 | rm -f conftest.defines conftest.undefs | |
14156 | # Using a here document instead of a string reduces the quoting nightmare. | |
14157 | # Putting comments in sed scripts is not portable. | |
14158 | # | |
14159 | # `end' is used to avoid that the second main sed command (meant for | |
14160 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
14161 | # See the Autoconf documentation for `clear'. | |
14162 | cat >confdef2sed.sed <<\_ACEOF | |
14163 | s/[\\&,]/\\&/g | |
14164 | s,[\\$`],\\&,g | |
14165 | t clear | |
14166 | : clear | |
14167 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
14168 | t end | |
14169 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
14170 | : end | |
14171 | _ACEOF | |
14172 | # If some macros were called several times there might be several times | |
14173 | # the same #defines, which is useless. Nevertheless, we may not want to | |
14174 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
14175 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
14176 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
14177 | rm -f confdef2sed.sed | |
252b5132 RH |
14178 | |
14179 | # This sed command replaces #undef with comments. This is necessary, for | |
14180 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
14181 | # on some systems where configure will not decide to define it. | |
5464f5a1 NN |
14182 | cat >>conftest.undefs <<\_ACEOF |
14183 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
14184 | _ACEOF | |
14185 | ||
14186 | # Break up conftest.defines because some shells have a limit on the size | |
14187 | # of here documents, and old seds have small limits too (100 cmds). | |
14188 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
14189 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
14190 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
14191 | echo ' :' >>$CONFIG_STATUS | |
14192 | rm -f conftest.tail | |
14193 | while grep . conftest.defines >/dev/null | |
14194 | do | |
14195 | # Write a limited-size here document to $tmp/defines.sed. | |
14196 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
14197 | # Speed up: don't consider the non `#define' lines. | |
14198 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
14199 | # Work around the forget-to-reset-the-flag bug. | |
14200 | echo 't clr' >>$CONFIG_STATUS | |
14201 | echo ': clr' >>$CONFIG_STATUS | |
14202 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
14203 | echo 'CEOF | |
14204 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
14205 | rm -f $tmp/in | |
14206 | mv $tmp/out $tmp/in | |
14207 | ' >>$CONFIG_STATUS | |
14208 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
14209 | rm -f conftest.defines | |
14210 | mv conftest.tail conftest.defines | |
14211 | done | |
14212 | rm -f conftest.defines | |
14213 | echo ' fi # grep' >>$CONFIG_STATUS | |
14214 | echo >>$CONFIG_STATUS | |
252b5132 | 14215 | |
5464f5a1 NN |
14216 | # Break up conftest.undefs because some shells have a limit on the size |
14217 | # of here documents, and old seds have small limits too (100 cmds). | |
14218 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
252b5132 | 14219 | rm -f conftest.tail |
5464f5a1 | 14220 | while grep . conftest.undefs >/dev/null |
252b5132 | 14221 | do |
5464f5a1 NN |
14222 | # Write a limited-size here document to $tmp/undefs.sed. |
14223 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
14224 | # Speed up: don't consider the non `#undef' | |
14225 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
14226 | # Work around the forget-to-reset-the-flag bug. | |
14227 | echo 't clr' >>$CONFIG_STATUS | |
14228 | echo ': clr' >>$CONFIG_STATUS | |
14229 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
252b5132 | 14230 | echo 'CEOF |
5464f5a1 NN |
14231 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
14232 | rm -f $tmp/in | |
14233 | mv $tmp/out $tmp/in | |
14234 | ' >>$CONFIG_STATUS | |
14235 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
14236 | rm -f conftest.undefs | |
14237 | mv conftest.tail conftest.undefs | |
252b5132 | 14238 | done |
5464f5a1 NN |
14239 | rm -f conftest.undefs |
14240 | ||
14241 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14242 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
14243 | # use $as_me), people would be surprised to read: | |
14244 | # /* config.h. Generated by config.status. */ | |
14245 | if test x"$ac_file" = x-; then | |
14246 | echo "/* Generated by configure. */" >$tmp/config.h | |
14247 | else | |
14248 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
14249 | fi | |
14250 | cat $tmp/in >>$tmp/config.h | |
14251 | rm -f $tmp/in | |
14252 | if test x"$ac_file" != x-; then | |
14253 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
14254 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
14255 | echo "$as_me: $ac_file is unchanged" >&6;} | |
14256 | else | |
14257 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
14258 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14259 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
14260 | X"$ac_file" : 'X\(//\)$' \| \ | |
14261 | X"$ac_file" : 'X\(/\)' \| \ | |
14262 | . : '\(.\)' 2>/dev/null || | |
14263 | echo X"$ac_file" | | |
14264 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14265 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14266 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14267 | /^X\(\/\).*/{ s//\1/; q; } | |
14268 | s/.*/./; q'` | |
14269 | { if $as_mkdir_p; then | |
14270 | mkdir -p "$ac_dir" | |
252b5132 | 14271 | else |
5464f5a1 NN |
14272 | as_dir="$ac_dir" |
14273 | as_dirs= | |
14274 | while test ! -d "$as_dir"; do | |
14275 | as_dirs="$as_dir $as_dirs" | |
14276 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
14277 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14278 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14279 | X"$as_dir" : 'X\(//\)$' \| \ | |
14280 | X"$as_dir" : 'X\(/\)' \| \ | |
14281 | . : '\(.\)' 2>/dev/null || | |
14282 | echo X"$as_dir" | | |
14283 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14284 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14285 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14286 | /^X\(\/\).*/{ s//\1/; q; } | |
14287 | s/.*/./; q'` | |
14288 | done | |
14289 | test ! -n "$as_dirs" || mkdir $as_dirs | |
14290 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
14291 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
14292 | { (exit 1); exit 1; }; }; } | |
14293 | ||
14294 | rm -f $ac_file | |
14295 | mv $tmp/config.h $ac_file | |
252b5132 | 14296 | fi |
5464f5a1 NN |
14297 | else |
14298 | cat $tmp/config.h | |
14299 | rm -f $tmp/config.h | |
252b5132 | 14300 | fi |
f5385ebf AM |
14301 | # Compute $ac_file's index in $config_headers. |
14302 | _am_stamp_count=1 | |
14303 | for _am_header in $config_headers :; do | |
14304 | case $_am_header in | |
14305 | $ac_file | $ac_file:* ) | |
14306 | break ;; | |
14307 | * ) | |
14308 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
14309 | esac | |
14310 | done | |
14311 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
14312 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14313 | X$ac_file : 'X\(//\)[^/]' \| \ | |
14314 | X$ac_file : 'X\(//\)$' \| \ | |
14315 | X$ac_file : 'X\(/\)' \| \ | |
14316 | . : '\(.\)' 2>/dev/null || | |
14317 | echo X$ac_file | | |
14318 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14319 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14320 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14321 | /^X\(\/\).*/{ s//\1/; q; } | |
14322 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
5464f5a1 NN |
14323 | done |
14324 | _ACEOF | |
14325 | cat >>$CONFIG_STATUS <<\_ACEOF | |
252b5132 | 14326 | |
5464f5a1 NN |
14327 | # |
14328 | # CONFIG_COMMANDS section. | |
14329 | # | |
14330 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
14331 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
14332 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
14333 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
14334 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14335 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
14336 | X"$ac_dest" : 'X\(//\)$' \| \ | |
14337 | X"$ac_dest" : 'X\(/\)' \| \ | |
14338 | . : '\(.\)' 2>/dev/null || | |
14339 | echo X"$ac_dest" | | |
14340 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14341 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14342 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14343 | /^X\(\/\).*/{ s//\1/; q; } | |
14344 | s/.*/./; q'` | |
14345 | { if $as_mkdir_p; then | |
14346 | mkdir -p "$ac_dir" | |
14347 | else | |
14348 | as_dir="$ac_dir" | |
14349 | as_dirs= | |
14350 | while test ! -d "$as_dir"; do | |
14351 | as_dirs="$as_dir $as_dirs" | |
14352 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
14353 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14354 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14355 | X"$as_dir" : 'X\(//\)$' \| \ | |
14356 | X"$as_dir" : 'X\(/\)' \| \ | |
14357 | . : '\(.\)' 2>/dev/null || | |
14358 | echo X"$as_dir" | | |
14359 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14360 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14361 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14362 | /^X\(\/\).*/{ s//\1/; q; } | |
14363 | s/.*/./; q'` | |
14364 | done | |
14365 | test ! -n "$as_dirs" || mkdir $as_dirs | |
14366 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
14367 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
14368 | { (exit 1); exit 1; }; }; } | |
b3baf5d0 | 14369 | |
5464f5a1 | 14370 | ac_builddir=. |
b3baf5d0 | 14371 | |
5464f5a1 NN |
14372 | if test "$ac_dir" != .; then |
14373 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
14374 | # A "../" for each directory in $ac_dir_suffix. | |
14375 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
14376 | else | |
14377 | ac_dir_suffix= ac_top_builddir= | |
14378 | fi | |
14379 | ||
14380 | case $srcdir in | |
14381 | .) # No --srcdir option. We are building in place. | |
14382 | ac_srcdir=. | |
14383 | if test -z "$ac_top_builddir"; then | |
14384 | ac_top_srcdir=. | |
14385 | else | |
14386 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
14387 | fi ;; | |
14388 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
14389 | ac_srcdir=$srcdir$ac_dir_suffix; | |
14390 | ac_top_srcdir=$srcdir ;; | |
14391 | *) # Relative path. | |
14392 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
14393 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
14394 | esac | |
14395 | ||
14396 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
14397 | # the directories may not exist. | |
14398 | case `pwd` in | |
14399 | .) ac_abs_builddir="$ac_dir";; | |
14400 | *) | |
14401 | case "$ac_dir" in | |
14402 | .) ac_abs_builddir=`pwd`;; | |
14403 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
14404 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
14405 | esac;; | |
14406 | esac | |
14407 | case $ac_abs_builddir in | |
14408 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
14409 | *) | |
14410 | case ${ac_top_builddir}. in | |
14411 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
14412 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
14413 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
14414 | esac;; | |
14415 | esac | |
14416 | case $ac_abs_builddir in | |
14417 | .) ac_abs_srcdir=$ac_srcdir;; | |
14418 | *) | |
14419 | case $ac_srcdir in | |
14420 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
14421 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
14422 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
14423 | esac;; | |
14424 | esac | |
14425 | case $ac_abs_builddir in | |
14426 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
14427 | *) | |
14428 | case $ac_top_srcdir in | |
14429 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
14430 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
14431 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
14432 | esac;; | |
14433 | esac | |
14434 | ||
14435 | ||
14436 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
14437 | echo "$as_me: executing $ac_dest commands" >&6;} | |
14438 | case $ac_dest in | |
f5385ebf AM |
14439 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
14440 | # Strip MF so we end up with the name of the file. | |
14441 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
14442 | # Check whether this is an Automake generated Makefile or not. | |
14443 | # We used to match only the files named `Makefile.in', but | |
14444 | # some people rename them; so instead we look at the file content. | |
14445 | # Grep'ing the first line is not enough: some people post-process | |
14446 | # each Makefile.in and add a new line on top of each file to say so. | |
14447 | # So let's grep whole file. | |
14448 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
14449 | dirpart=`(dirname "$mf") 2>/dev/null || | |
14450 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14451 | X"$mf" : 'X\(//\)[^/]' \| \ | |
14452 | X"$mf" : 'X\(//\)$' \| \ | |
14453 | X"$mf" : 'X\(/\)' \| \ | |
14454 | . : '\(.\)' 2>/dev/null || | |
14455 | echo X"$mf" | | |
14456 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14457 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14458 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14459 | /^X\(\/\).*/{ s//\1/; q; } | |
14460 | s/.*/./; q'` | |
14461 | else | |
14462 | continue | |
14463 | fi | |
14464 | # Extract the definition of DEPDIR, am__include, and am__quote | |
14465 | # from the Makefile without running `make'. | |
14466 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
14467 | test -z "$DEPDIR" && continue | |
14468 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
14469 | test -z "am__include" && continue | |
14470 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
14471 | # When using ansi2knr, U may be empty or an underscore; expand it | |
14472 | U=`sed -n 's/^U = //p' < "$mf"` | |
14473 | # Find all dependency output files, they are included files with | |
14474 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
14475 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
14476 | # expansion. | |
14477 | for file in `sed -n " | |
14478 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
14479 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
14480 | # Make sure the directory exists. | |
14481 | test -f "$dirpart/$file" && continue | |
14482 | fdir=`(dirname "$file") 2>/dev/null || | |
14483 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14484 | X"$file" : 'X\(//\)[^/]' \| \ | |
14485 | X"$file" : 'X\(//\)$' \| \ | |
14486 | X"$file" : 'X\(/\)' \| \ | |
14487 | . : '\(.\)' 2>/dev/null || | |
14488 | echo X"$file" | | |
14489 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14490 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14491 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14492 | /^X\(\/\).*/{ s//\1/; q; } | |
14493 | s/.*/./; q'` | |
14494 | { if $as_mkdir_p; then | |
14495 | mkdir -p $dirpart/$fdir | |
14496 | else | |
14497 | as_dir=$dirpart/$fdir | |
14498 | as_dirs= | |
14499 | while test ! -d "$as_dir"; do | |
14500 | as_dirs="$as_dir $as_dirs" | |
14501 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
14502 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
14503 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
14504 | X"$as_dir" : 'X\(//\)$' \| \ | |
14505 | X"$as_dir" : 'X\(/\)' \| \ | |
14506 | . : '\(.\)' 2>/dev/null || | |
14507 | echo X"$as_dir" | | |
14508 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
14509 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
14510 | /^X\(\/\/\)$/{ s//\1/; q; } | |
14511 | /^X\(\/\).*/{ s//\1/; q; } | |
14512 | s/.*/./; q'` | |
14513 | done | |
14514 | test ! -n "$as_dirs" || mkdir $as_dirs | |
14515 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
14516 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
14517 | { (exit 1); exit 1; }; }; } | |
14518 | ||
14519 | # echo "creating $dirpart/$file" | |
14520 | echo '# dummy' > "$dirpart/$file" | |
14521 | done | |
14522 | done | |
14523 | ;; | |
5464f5a1 NN |
14524 | default ) sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' -e '/BLD-POTFILES =/r po/BLD-POTFILES' po/Makefile.in > po/Makefile ;; |
14525 | esac | |
14526 | done | |
14527 | _ACEOF | |
14528 | ||
14529 | cat >>$CONFIG_STATUS <<\_ACEOF | |
14530 | ||
14531 | { (exit 0); exit 0; } | |
14532 | _ACEOF | |
252b5132 | 14533 | chmod +x $CONFIG_STATUS |
5464f5a1 NN |
14534 | ac_clean_files=$ac_clean_files_save |
14535 | ||
14536 | ||
14537 | # configure is writing to config.log, and then calls config.status. | |
14538 | # config.status does its own redirection, appending to config.log. | |
14539 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
14540 | # by configure, so config.status won't be able to write to it; its | |
14541 | # output is simply discarded. So we exec the FD to /dev/null, | |
14542 | # effectively closing config.log, so it can be properly (re)opened and | |
14543 | # appended to by config.status. When coming back to configure, we | |
14544 | # need to make the FD available again. | |
14545 | if test "$no_create" != yes; then | |
14546 | ac_cs_success=: | |
14547 | ac_config_status_args= | |
14548 | test "$silent" = yes && | |
14549 | ac_config_status_args="$ac_config_status_args --quiet" | |
14550 | exec 5>/dev/null | |
14551 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
14552 | exec 5>>config.log | |
14553 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
14554 | # would make configure fail if this is the last instruction. | |
14555 | $ac_cs_success || { (exit 1); exit 1; } | |
14556 | fi | |
252b5132 | 14557 | |
55c80943 | 14558 |