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 | ||
d7040cdb SE |
244 | |
245 | # Check that we are running under the correct shell. | |
246 | SHELL=${CONFIG_SHELL-/bin/sh} | |
247 | ||
248 | case X$lt_ECHO in | |
249 | X*--fallback-echo) | |
250 | # Remove one level of quotation (which was required for Make). | |
251 | ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
252 | ;; | |
253 | esac | |
254 | ||
255 | ECHO=${lt_ECHO-echo} | |
256 | if test "X$1" = X--no-reexec; then | |
257 | # Discard the --no-reexec flag, and continue. | |
258 | shift | |
259 | elif test "X$1" = X--fallback-echo; then | |
260 | # Avoid inline document here, it may be left over | |
261 | : | |
262 | elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then | |
263 | # Yippee, $ECHO works! | |
264 | : | |
265 | else | |
266 | # Restart under the correct shell. | |
267 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
268 | fi | |
269 | ||
270 | if test "X$1" = X--fallback-echo; then | |
271 | # used as fallback echo | |
272 | shift | |
273 | cat <<_LT_EOF | |
274 | $* | |
275 | _LT_EOF | |
276 | exit 0 | |
277 | fi | |
278 | ||
279 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
280 | # if CDPATH is set. | |
281 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
282 | ||
283 | if test -z "$lt_ECHO"; then | |
284 | if test "X${echo_test_string+set}" != Xset; then | |
285 | # find a string as large as possible, as long as the shell can cope with it | |
286 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
287 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
288 | if { echo_test_string=`eval $cmd`; } 2>/dev/null && | |
289 | { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null | |
290 | then | |
291 | break | |
292 | fi | |
293 | done | |
294 | fi | |
295 | ||
296 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
297 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
298 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
299 | : | |
300 | else | |
301 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
302 | # backslashes. This makes it impossible to quote backslashes using | |
303 | # echo "$something" | sed 's/\\/\\\\/g' | |
304 | # | |
305 | # So, first we look for a working echo in the user's PATH. | |
306 | ||
307 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
308 | for dir in $PATH /usr/ucb; do | |
309 | IFS="$lt_save_ifs" | |
310 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
311 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
312 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
313 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
314 | ECHO="$dir/echo" | |
315 | break | |
316 | fi | |
317 | done | |
318 | IFS="$lt_save_ifs" | |
319 | ||
320 | if test "X$ECHO" = Xecho; then | |
321 | # We didn't find a better echo, so look for alternatives. | |
322 | if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && | |
323 | echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && | |
324 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
325 | # This shell has a builtin print -r that does the trick. | |
326 | ECHO='print -r' | |
327 | elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && | |
328 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
329 | # If we have ksh, try running configure again with it. | |
330 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
331 | export ORIGINAL_CONFIG_SHELL | |
332 | CONFIG_SHELL=/bin/ksh | |
333 | export CONFIG_SHELL | |
334 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
335 | else | |
336 | # Try using printf. | |
337 | ECHO='printf %s\n' | |
338 | if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && | |
339 | echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && | |
340 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
341 | # Cool, printf works | |
342 | : | |
343 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
344 | test "X$echo_testing_string" = 'X\t' && | |
345 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
346 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
347 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
348 | export CONFIG_SHELL | |
349 | SHELL="$CONFIG_SHELL" | |
350 | export SHELL | |
351 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
352 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
353 | test "X$echo_testing_string" = 'X\t' && | |
354 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
355 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
356 | ECHO="$CONFIG_SHELL $0 --fallback-echo" | |
357 | else | |
358 | # maybe with a smaller string... | |
359 | prev=: | |
360 | ||
361 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
362 | if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null | |
363 | then | |
364 | break | |
365 | fi | |
366 | prev="$cmd" | |
367 | done | |
368 | ||
369 | if test "$prev" != 'sed 50q "$0"'; then | |
370 | echo_test_string=`eval $prev` | |
371 | export echo_test_string | |
372 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
373 | else | |
374 | # Oops. We lost completely, so just stick with echo. | |
375 | ECHO=echo | |
376 | fi | |
377 | fi | |
378 | fi | |
379 | fi | |
380 | fi | |
381 | fi | |
382 | ||
383 | # Copy echo and quote the copy suitably for passing to libtool from | |
384 | # the Makefile, instead of quoting the original, which is used later. | |
385 | lt_ECHO=$ECHO | |
386 | if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
387 | lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
388 | fi | |
389 | ||
390 | ||
391 | ||
392 | ||
5464f5a1 NN |
393 | # Name of the host. |
394 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
395 | # so uname gets run too. | |
396 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
252b5132 | 397 | |
5464f5a1 NN |
398 | exec 6>&1 |
399 | ||
400 | # | |
401 | # Initializations. | |
402 | # | |
252b5132 | 403 | ac_default_prefix=/usr/local |
5464f5a1 NN |
404 | ac_config_libobj_dir=. |
405 | cross_compiling=no | |
406 | subdirs= | |
407 | MFLAGS= | |
408 | MAKEFLAGS= | |
409 | SHELL=${CONFIG_SHELL-/bin/sh} | |
410 | ||
411 | # Maximum number of lines to put in a shell here document. | |
412 | # This variable seems obsolete. It should probably be removed, and | |
413 | # only ac_max_sed_lines should be used. | |
414 | : ${ac_max_here_lines=38} | |
415 | ||
416 | # Identity of this package. | |
417 | PACKAGE_NAME= | |
418 | PACKAGE_TARNAME= | |
419 | PACKAGE_VERSION= | |
420 | PACKAGE_STRING= | |
421 | PACKAGE_BUGREPORT= | |
422 | ||
423 | ac_unique_file="libbfd.c" | |
424 | # Factoring default headers for most tests. | |
425 | ac_includes_default="\ | |
426 | #include <stdio.h> | |
427 | #if HAVE_SYS_TYPES_H | |
428 | # include <sys/types.h> | |
429 | #endif | |
430 | #if HAVE_SYS_STAT_H | |
431 | # include <sys/stat.h> | |
432 | #endif | |
433 | #if STDC_HEADERS | |
434 | # include <stdlib.h> | |
435 | # include <stddef.h> | |
436 | #else | |
437 | # if HAVE_STDLIB_H | |
438 | # include <stdlib.h> | |
439 | # endif | |
440 | #endif | |
441 | #if HAVE_STRING_H | |
442 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
443 | # include <memory.h> | |
444 | # endif | |
445 | # include <string.h> | |
446 | #endif | |
447 | #if HAVE_STRINGS_H | |
448 | # include <strings.h> | |
449 | #endif | |
450 | #if HAVE_INTTYPES_H | |
451 | # include <inttypes.h> | |
452 | #else | |
453 | # if HAVE_STDINT_H | |
454 | # include <stdint.h> | |
455 | # endif | |
456 | #endif | |
457 | #if HAVE_UNISTD_H | |
458 | # include <unistd.h> | |
459 | #endif" | |
460 | ||
bce5e5c9 | 461 | 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 LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP DEBUGDIR PKGVERSION REPORT_BUGS_TO REPORT_BUGS_TEXI WARN_CFLAGS NO_WERROR MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT GENINSRC_NEVER_TRUE GENINSRC_NEVER_FALSE INSTALL_LIBBFD_TRUE INSTALL_LIBBFD_FALSE host_noncanonical target_noncanonical bfdlibdir bfdincludedir USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT MKINSTALLDIRS MSGFMT MSGMERGE HDEFINES BFD_HOST_64BIT_LONG BFD_HOST_64BIT_LONG_LONG BFD_HOST_64_BIT_DEFINED BFD_HOST_64_BIT BFD_HOST_U_64_BIT BFD_HOSTPTR_T CC_FOR_BUILD EXEEXT_FOR_BUILD COREFILE COREFLAG WIN32LDFLAGS WIN32LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir LIBOBJS LTLIBOBJS' |
5464f5a1 | 462 | ac_subst_files='' |
252b5132 RH |
463 | |
464 | # Initialize some variables set by options. | |
5464f5a1 NN |
465 | ac_init_help= |
466 | ac_init_version=false | |
252b5132 RH |
467 | # The variables have the same names as the options, with |
468 | # dashes changed to underlines. | |
5464f5a1 | 469 | cache_file=/dev/null |
252b5132 | 470 | exec_prefix=NONE |
252b5132 | 471 | no_create= |
252b5132 RH |
472 | no_recursion= |
473 | prefix=NONE | |
474 | program_prefix=NONE | |
475 | program_suffix=NONE | |
476 | program_transform_name=s,x,x, | |
477 | silent= | |
478 | site= | |
479 | srcdir= | |
252b5132 RH |
480 | verbose= |
481 | x_includes=NONE | |
482 | x_libraries=NONE | |
5464f5a1 NN |
483 | |
484 | # Installation directory options. | |
485 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
486 | # and all the variables that are supposed to be based on exec_prefix | |
487 | # by default will actually change. | |
488 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
252b5132 RH |
489 | bindir='${exec_prefix}/bin' |
490 | sbindir='${exec_prefix}/sbin' | |
491 | libexecdir='${exec_prefix}/libexec' | |
492 | datadir='${prefix}/share' | |
493 | sysconfdir='${prefix}/etc' | |
494 | sharedstatedir='${prefix}/com' | |
495 | localstatedir='${prefix}/var' | |
496 | libdir='${exec_prefix}/lib' | |
497 | includedir='${prefix}/include' | |
498 | oldincludedir='/usr/include' | |
499 | infodir='${prefix}/info' | |
500 | mandir='${prefix}/man' | |
501 | ||
252b5132 RH |
502 | ac_prev= |
503 | for ac_option | |
504 | do | |
252b5132 RH |
505 | # If the previous option needs an argument, assign it. |
506 | if test -n "$ac_prev"; then | |
507 | eval "$ac_prev=\$ac_option" | |
508 | ac_prev= | |
509 | continue | |
510 | fi | |
511 | ||
5464f5a1 | 512 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
252b5132 RH |
513 | |
514 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
515 | ||
5464f5a1 | 516 | case $ac_option in |
252b5132 RH |
517 | |
518 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
519 | ac_prev=bindir ;; | |
520 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
5464f5a1 | 521 | bindir=$ac_optarg ;; |
252b5132 RH |
522 | |
523 | -build | --build | --buil | --bui | --bu) | |
5464f5a1 | 524 | ac_prev=build_alias ;; |
252b5132 | 525 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
5464f5a1 | 526 | build_alias=$ac_optarg ;; |
252b5132 RH |
527 | |
528 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
529 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
530 | ac_prev=cache_file ;; | |
531 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
532 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
5464f5a1 NN |
533 | cache_file=$ac_optarg ;; |
534 | ||
535 | --config-cache | -C) | |
536 | cache_file=config.cache ;; | |
252b5132 RH |
537 | |
538 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
539 | ac_prev=datadir ;; | |
540 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
541 | | --da=*) | |
5464f5a1 | 542 | datadir=$ac_optarg ;; |
252b5132 RH |
543 | |
544 | -disable-* | --disable-*) | |
5464f5a1 | 545 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 546 | # Reject names that are not valid shell variable names. |
5464f5a1 NN |
547 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
548 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
549 | { (exit 1); exit 1; }; } | |
550 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
551 | eval "enable_$ac_feature=no" ;; | |
252b5132 RH |
552 | |
553 | -enable-* | --enable-*) | |
5464f5a1 | 554 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 555 | # Reject names that are not valid shell variable names. |
5464f5a1 NN |
556 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
557 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
558 | { (exit 1); exit 1; }; } | |
559 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
560 | case $ac_option in | |
561 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
562 | *) ac_optarg=yes ;; |
563 | esac | |
5464f5a1 | 564 | eval "enable_$ac_feature='$ac_optarg'" ;; |
252b5132 RH |
565 | |
566 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
567 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
568 | | --exec | --exe | --ex) | |
569 | ac_prev=exec_prefix ;; | |
570 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
571 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
572 | | --exec=* | --exe=* | --ex=*) | |
5464f5a1 | 573 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
574 | |
575 | -gas | --gas | --ga | --g) | |
576 | # Obsolete; use --with-gas. | |
577 | with_gas=yes ;; | |
578 | ||
5464f5a1 NN |
579 | -help | --help | --hel | --he | -h) |
580 | ac_init_help=long ;; | |
581 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
582 | ac_init_help=recursive ;; | |
583 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
584 | ac_init_help=short ;; | |
252b5132 RH |
585 | |
586 | -host | --host | --hos | --ho) | |
5464f5a1 | 587 | ac_prev=host_alias ;; |
252b5132 | 588 | -host=* | --host=* | --hos=* | --ho=*) |
5464f5a1 | 589 | host_alias=$ac_optarg ;; |
252b5132 RH |
590 | |
591 | -includedir | --includedir | --includedi | --included | --include \ | |
592 | | --includ | --inclu | --incl | --inc) | |
593 | ac_prev=includedir ;; | |
594 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
595 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
5464f5a1 | 596 | includedir=$ac_optarg ;; |
252b5132 RH |
597 | |
598 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
599 | ac_prev=infodir ;; | |
600 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
5464f5a1 | 601 | infodir=$ac_optarg ;; |
252b5132 RH |
602 | |
603 | -libdir | --libdir | --libdi | --libd) | |
604 | ac_prev=libdir ;; | |
605 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
5464f5a1 | 606 | libdir=$ac_optarg ;; |
252b5132 RH |
607 | |
608 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
609 | | --libexe | --libex | --libe) | |
610 | ac_prev=libexecdir ;; | |
611 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
612 | | --libexe=* | --libex=* | --libe=*) | |
5464f5a1 | 613 | libexecdir=$ac_optarg ;; |
252b5132 RH |
614 | |
615 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
616 | | --localstate | --localstat | --localsta | --localst \ | |
617 | | --locals | --local | --loca | --loc | --lo) | |
618 | ac_prev=localstatedir ;; | |
619 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
620 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
621 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
5464f5a1 | 622 | localstatedir=$ac_optarg ;; |
252b5132 RH |
623 | |
624 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
625 | ac_prev=mandir ;; | |
626 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
5464f5a1 | 627 | mandir=$ac_optarg ;; |
252b5132 RH |
628 | |
629 | -nfp | --nfp | --nf) | |
630 | # Obsolete; use --without-fp. | |
631 | with_fp=no ;; | |
632 | ||
633 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
5464f5a1 | 634 | | --no-cr | --no-c | -n) |
252b5132 RH |
635 | no_create=yes ;; |
636 | ||
637 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
638 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
639 | no_recursion=yes ;; | |
640 | ||
641 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
642 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
643 | | --oldin | --oldi | --old | --ol | --o) | |
644 | ac_prev=oldincludedir ;; | |
645 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
646 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
647 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
5464f5a1 | 648 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
649 | |
650 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
651 | ac_prev=prefix ;; | |
652 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
5464f5a1 | 653 | prefix=$ac_optarg ;; |
252b5132 RH |
654 | |
655 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
656 | | --program-pre | --program-pr | --program-p) | |
657 | ac_prev=program_prefix ;; | |
658 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
659 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
5464f5a1 | 660 | program_prefix=$ac_optarg ;; |
252b5132 RH |
661 | |
662 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
663 | | --program-suf | --program-su | --program-s) | |
664 | ac_prev=program_suffix ;; | |
665 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
666 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
5464f5a1 | 667 | program_suffix=$ac_optarg ;; |
252b5132 RH |
668 | |
669 | -program-transform-name | --program-transform-name \ | |
670 | | --program-transform-nam | --program-transform-na \ | |
671 | | --program-transform-n | --program-transform- \ | |
672 | | --program-transform | --program-transfor \ | |
673 | | --program-transfo | --program-transf \ | |
674 | | --program-trans | --program-tran \ | |
675 | | --progr-tra | --program-tr | --program-t) | |
676 | ac_prev=program_transform_name ;; | |
677 | -program-transform-name=* | --program-transform-name=* \ | |
678 | | --program-transform-nam=* | --program-transform-na=* \ | |
679 | | --program-transform-n=* | --program-transform-=* \ | |
680 | | --program-transform=* | --program-transfor=* \ | |
681 | | --program-transfo=* | --program-transf=* \ | |
682 | | --program-trans=* | --program-tran=* \ | |
683 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
5464f5a1 | 684 | program_transform_name=$ac_optarg ;; |
252b5132 RH |
685 | |
686 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
687 | | -silent | --silent | --silen | --sile | --sil) | |
688 | silent=yes ;; | |
689 | ||
690 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
691 | ac_prev=sbindir ;; | |
692 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
693 | | --sbi=* | --sb=*) | |
5464f5a1 | 694 | sbindir=$ac_optarg ;; |
252b5132 RH |
695 | |
696 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
697 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
698 | | --sharedst | --shareds | --shared | --share | --shar \ | |
699 | | --sha | --sh) | |
700 | ac_prev=sharedstatedir ;; | |
701 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
702 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
703 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
704 | | --sha=* | --sh=*) | |
5464f5a1 | 705 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
706 | |
707 | -site | --site | --sit) | |
708 | ac_prev=site ;; | |
709 | -site=* | --site=* | --sit=*) | |
5464f5a1 | 710 | site=$ac_optarg ;; |
6be7c12c | 711 | |
252b5132 RH |
712 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
713 | ac_prev=srcdir ;; | |
714 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
5464f5a1 | 715 | srcdir=$ac_optarg ;; |
252b5132 RH |
716 | |
717 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
718 | | --syscon | --sysco | --sysc | --sys | --sy) | |
719 | ac_prev=sysconfdir ;; | |
720 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
721 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
5464f5a1 | 722 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
723 | |
724 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
5464f5a1 | 725 | ac_prev=target_alias ;; |
252b5132 | 726 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
5464f5a1 | 727 | target_alias=$ac_optarg ;; |
252b5132 RH |
728 | |
729 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
730 | verbose=yes ;; | |
731 | ||
5464f5a1 NN |
732 | -version | --version | --versio | --versi | --vers | -V) |
733 | ac_init_version=: ;; | |
252b5132 RH |
734 | |
735 | -with-* | --with-*) | |
5464f5a1 | 736 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 737 | # Reject names that are not valid shell variable names. |
5464f5a1 NN |
738 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
739 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
740 | { (exit 1); exit 1; }; } | |
252b5132 | 741 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
5464f5a1 NN |
742 | case $ac_option in |
743 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
744 | *) ac_optarg=yes ;; |
745 | esac | |
5464f5a1 | 746 | eval "with_$ac_package='$ac_optarg'" ;; |
252b5132 RH |
747 | |
748 | -without-* | --without-*) | |
5464f5a1 | 749 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 750 | # Reject names that are not valid shell variable names. |
5464f5a1 NN |
751 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
752 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
753 | { (exit 1); exit 1; }; } | |
754 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
755 | eval "with_$ac_package=no" ;; | |
252b5132 RH |
756 | |
757 | --x) | |
758 | # Obsolete; use --with-x. | |
759 | with_x=yes ;; | |
760 | ||
761 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
762 | | --x-incl | --x-inc | --x-in | --x-i) | |
763 | ac_prev=x_includes ;; | |
764 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
765 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
5464f5a1 | 766 | x_includes=$ac_optarg ;; |
252b5132 RH |
767 | |
768 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
769 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
770 | ac_prev=x_libraries ;; | |
771 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
772 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
5464f5a1 | 773 | x_libraries=$ac_optarg ;; |
252b5132 | 774 | |
5464f5a1 NN |
775 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
776 | Try \`$0 --help' for more information." >&2 | |
777 | { (exit 1); exit 1; }; } | |
252b5132 RH |
778 | ;; |
779 | ||
5464f5a1 NN |
780 | *=*) |
781 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
782 | # Reject names that are not valid shell variable names. | |
783 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
784 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
785 | { (exit 1); exit 1; }; } | |
786 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
787 | eval "$ac_envvar='$ac_optarg'" | |
788 | export $ac_envvar ;; | |
789 | ||
252b5132 | 790 | *) |
5464f5a1 NN |
791 | # FIXME: should be removed in autoconf 3.0. |
792 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
793 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
794 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
795 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
252b5132 RH |
796 | ;; |
797 | ||
798 | esac | |
799 | done | |
800 | ||
801 | if test -n "$ac_prev"; then | |
5464f5a1 NN |
802 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
803 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
804 | { (exit 1); exit 1; }; } | |
252b5132 | 805 | fi |
252b5132 | 806 | |
5464f5a1 NN |
807 | # Be sure to have absolute paths. |
808 | for ac_var in exec_prefix prefix | |
809 | do | |
810 | eval ac_val=$`echo $ac_var` | |
811 | case $ac_val in | |
812 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
813 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
814 | { (exit 1); exit 1; }; };; | |
815 | esac | |
816 | done | |
6be7c12c | 817 | |
5464f5a1 NN |
818 | # Be sure to have absolute paths. |
819 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
820 | localstatedir libdir includedir oldincludedir infodir mandir | |
252b5132 | 821 | do |
5464f5a1 NN |
822 | eval ac_val=$`echo $ac_var` |
823 | case $ac_val in | |
824 | [\\/$]* | ?:[\\/]* ) ;; | |
825 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
826 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
827 | esac |
828 | done | |
829 | ||
5464f5a1 NN |
830 | # There might be people who depend on the old broken behavior: `$host' |
831 | # used to hold the argument of --host etc. | |
832 | # FIXME: To remove some day. | |
833 | build=$build_alias | |
834 | host=$host_alias | |
835 | target=$target_alias | |
836 | ||
837 | # FIXME: To remove some day. | |
838 | if test "x$host_alias" != x; then | |
839 | if test "x$build_alias" = x; then | |
840 | cross_compiling=maybe | |
841 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
842 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
843 | elif test "x$build_alias" != "x$host_alias"; then | |
844 | cross_compiling=yes | |
845 | fi | |
846 | fi | |
252b5132 | 847 | |
5464f5a1 NN |
848 | ac_tool_prefix= |
849 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
850 | ||
851 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 852 | |
252b5132 RH |
853 | |
854 | # Find the source files, if location was not specified. | |
855 | if test -z "$srcdir"; then | |
856 | ac_srcdir_defaulted=yes | |
857 | # Try the directory containing this script, then its parent. | |
5464f5a1 NN |
858 | ac_confdir=`(dirname "$0") 2>/dev/null || |
859 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
860 | X"$0" : 'X\(//\)[^/]' \| \ | |
861 | X"$0" : 'X\(//\)$' \| \ | |
862 | X"$0" : 'X\(/\)' \| \ | |
863 | . : '\(.\)' 2>/dev/null || | |
864 | echo X"$0" | | |
865 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
866 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
867 | /^X\(\/\/\)$/{ s//\1/; q; } | |
868 | /^X\(\/\).*/{ s//\1/; q; } | |
869 | s/.*/./; q'` | |
252b5132 RH |
870 | srcdir=$ac_confdir |
871 | if test ! -r $srcdir/$ac_unique_file; then | |
872 | srcdir=.. | |
873 | fi | |
874 | else | |
875 | ac_srcdir_defaulted=no | |
876 | fi | |
877 | if test ! -r $srcdir/$ac_unique_file; then | |
878 | if test "$ac_srcdir_defaulted" = yes; then | |
5464f5a1 NN |
879 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
880 | { (exit 1); exit 1; }; } | |
252b5132 | 881 | else |
5464f5a1 NN |
882 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
883 | { (exit 1); exit 1; }; } | |
252b5132 RH |
884 | fi |
885 | fi | |
5464f5a1 NN |
886 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
887 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
888 | { (exit 1); exit 1; }; } | |
889 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
890 | ac_env_build_alias_set=${build_alias+set} | |
891 | ac_env_build_alias_value=$build_alias | |
892 | ac_cv_env_build_alias_set=${build_alias+set} | |
893 | ac_cv_env_build_alias_value=$build_alias | |
894 | ac_env_host_alias_set=${host_alias+set} | |
895 | ac_env_host_alias_value=$host_alias | |
896 | ac_cv_env_host_alias_set=${host_alias+set} | |
897 | ac_cv_env_host_alias_value=$host_alias | |
898 | ac_env_target_alias_set=${target_alias+set} | |
899 | ac_env_target_alias_value=$target_alias | |
900 | ac_cv_env_target_alias_set=${target_alias+set} | |
901 | ac_cv_env_target_alias_value=$target_alias | |
902 | ac_env_CC_set=${CC+set} | |
903 | ac_env_CC_value=$CC | |
904 | ac_cv_env_CC_set=${CC+set} | |
905 | ac_cv_env_CC_value=$CC | |
906 | ac_env_CFLAGS_set=${CFLAGS+set} | |
907 | ac_env_CFLAGS_value=$CFLAGS | |
908 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
909 | ac_cv_env_CFLAGS_value=$CFLAGS | |
910 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
911 | ac_env_LDFLAGS_value=$LDFLAGS | |
912 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
913 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
914 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
915 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
916 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
917 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
918 | ac_env_CPP_set=${CPP+set} | |
919 | ac_env_CPP_value=$CPP | |
920 | ac_cv_env_CPP_set=${CPP+set} | |
921 | ac_cv_env_CPP_value=$CPP | |
b3baf5d0 | 922 | |
5464f5a1 NN |
923 | # |
924 | # Report the --help message. | |
925 | # | |
926 | if test "$ac_init_help" = "long"; then | |
927 | # Omit some internal or obsolete options to make the list less imposing. | |
928 | # This message is too long to be a string in the A/UX 3.1 sh. | |
929 | cat <<_ACEOF | |
930 | \`configure' configures this package to adapt to many kinds of systems. | |
252b5132 | 931 | |
5464f5a1 | 932 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 933 | |
5464f5a1 NN |
934 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
935 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
6be7c12c | 936 | |
5464f5a1 | 937 | Defaults for the options are specified in brackets. |
6be7c12c | 938 | |
5464f5a1 NN |
939 | Configuration: |
940 | -h, --help display this help and exit | |
941 | --help=short display options specific to this package | |
942 | --help=recursive display the short help of all the included packages | |
943 | -V, --version display version information and exit | |
944 | -q, --quiet, --silent do not print \`checking...' messages | |
945 | --cache-file=FILE cache test results in FILE [disabled] | |
946 | -C, --config-cache alias for \`--cache-file=config.cache' | |
947 | -n, --no-create do not create output files | |
948 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
949 | ||
950 | _ACEOF | |
951 | ||
952 | cat <<_ACEOF | |
953 | Installation directories: | |
954 | --prefix=PREFIX install architecture-independent files in PREFIX | |
955 | [$ac_default_prefix] | |
956 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
957 | [PREFIX] | |
6be7c12c | 958 | |
5464f5a1 NN |
959 | By default, \`make install' will install all the files in |
960 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
961 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
962 | for instance \`--prefix=\$HOME'. | |
6be7c12c | 963 | |
5464f5a1 | 964 | For better control, use the options below. |
6be7c12c | 965 | |
5464f5a1 NN |
966 | Fine tuning of the installation directories: |
967 | --bindir=DIR user executables [EPREFIX/bin] | |
968 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
969 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
970 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
971 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
972 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
973 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
974 | --libdir=DIR object code libraries [EPREFIX/lib] | |
975 | --includedir=DIR C header files [PREFIX/include] | |
976 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
977 | --infodir=DIR info documentation [PREFIX/info] | |
978 | --mandir=DIR man documentation [PREFIX/man] | |
979 | _ACEOF | |
6be7c12c | 980 | |
5464f5a1 | 981 | cat <<\_ACEOF |
6be7c12c | 982 | |
5464f5a1 NN |
983 | Program names: |
984 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
985 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
986 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
252b5132 | 987 | |
5464f5a1 NN |
988 | System types: |
989 | --build=BUILD configure for building on BUILD [guessed] | |
990 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
991 | --target=TARGET configure for building compilers for TARGET [HOST] | |
992 | _ACEOF | |
252b5132 | 993 | fi |
252b5132 | 994 | |
5464f5a1 | 995 | if test -n "$ac_init_help"; then |
6be7c12c | 996 | |
5464f5a1 | 997 | cat <<\_ACEOF |
252b5132 | 998 | |
5464f5a1 NN |
999 | Optional Features: |
1000 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1001 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
f5385ebf AM |
1002 | --disable-dependency-tracking speeds up one-time build |
1003 | --enable-dependency-tracking do not reject slow dependency extractors | |
d7040cdb SE |
1004 | --enable-shared[=PKGS] |
1005 | build shared libraries [default=no] | |
1006 | --enable-static[=PKGS] | |
1007 | build static libraries [default=yes] | |
1008 | --enable-fast-install[=PKGS] | |
1009 | optimize for fast installation [default=yes] | |
5464f5a1 NN |
1010 | --disable-libtool-lock avoid locking (might break parallel builds) |
1011 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) | |
1012 | --enable-targets alternative target configurations | |
1013 | --enable-commonbfdlib build shared BFD/opcodes/libiberty library | |
6ec7057a | 1014 | --enable-secureplt Default to creating read-only plt entries |
504b7d20 | 1015 | --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type |
241a6c40 AM |
1016 | --enable-werror treat compile warnings as errors |
1017 | --enable-build-warnings enable build-time compiler warnings | |
f5385ebf AM |
1018 | --enable-maintainer-mode enable make rules and dependencies not useful |
1019 | (and sometimes confusing) to the casual installer | |
5464f5a1 NN |
1020 | --enable-install-libbfd controls installation of libbfd and related headers |
1021 | --disable-nls do not use Native Language Support | |
1022 | ||
1023 | Optional Packages: | |
1024 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1025 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d7040cdb SE |
1026 | --with-pic try to use only PIC/non-PIC objects [default=use |
1027 | both] | |
1028 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
5464f5a1 | 1029 | --with-mmap try using mmap for BFD input files if available |
0d4a1476 AS |
1030 | --with-separate-debug-dir=DIR |
1031 | Look for global separate debug info in DIR | |
1032 | [default=LIBDIR/debug] | |
a1ac8190 JM |
1033 | --with-pkgversion=PKG Use PKG in the version string in place of "GNU |
1034 | Binutils" | |
c428fa83 | 1035 | --with-bugurl=URL Direct users to URL to report a bug |
5464f5a1 NN |
1036 | |
1037 | Some influential environment variables: | |
1038 | CC C compiler command | |
1039 | CFLAGS C compiler flags | |
1040 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1041 | nonstandard directory <lib dir> | |
1042 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1043 | headers in a nonstandard directory <include dir> | |
1044 | CPP C preprocessor | |
1045 | ||
1046 | Use these variables to override the choices made by `configure' or to help | |
1047 | it to find libraries and programs with nonstandard names/locations. | |
1048 | ||
1049 | _ACEOF | |
1050 | fi | |
1051 | ||
1052 | if test "$ac_init_help" = "recursive"; then | |
1053 | # If there are subdirs, report their specific --help. | |
1054 | ac_popdir=`pwd` | |
1055 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1056 | test -d $ac_dir || continue | |
1057 | ac_builddir=. | |
1058 | ||
1059 | if test "$ac_dir" != .; then | |
1060 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1061 | # A "../" for each directory in $ac_dir_suffix. | |
1062 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1063 | else | |
1064 | ac_dir_suffix= ac_top_builddir= | |
1065 | fi | |
1066 | ||
1067 | case $srcdir in | |
1068 | .) # No --srcdir option. We are building in place. | |
1069 | ac_srcdir=. | |
1070 | if test -z "$ac_top_builddir"; then | |
1071 | ac_top_srcdir=. | |
1072 | else | |
1073 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1074 | fi ;; | |
1075 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1076 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1077 | ac_top_srcdir=$srcdir ;; | |
1078 | *) # Relative path. | |
1079 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1080 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
6be7c12c AO |
1081 | esac |
1082 | ||
5464f5a1 NN |
1083 | # Do not use `cd foo && pwd` to compute absolute paths, because |
1084 | # the directories may not exist. | |
1085 | case `pwd` in | |
1086 | .) ac_abs_builddir="$ac_dir";; | |
1087 | *) | |
1088 | case "$ac_dir" in | |
1089 | .) ac_abs_builddir=`pwd`;; | |
1090 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1091 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1092 | esac;; | |
1093 | esac | |
1094 | case $ac_abs_builddir in | |
1095 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1096 | *) | |
1097 | case ${ac_top_builddir}. in | |
1098 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1099 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1100 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1101 | esac;; | |
1102 | esac | |
1103 | case $ac_abs_builddir in | |
1104 | .) ac_abs_srcdir=$ac_srcdir;; | |
1105 | *) | |
1106 | case $ac_srcdir in | |
1107 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1108 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1109 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1110 | esac;; | |
1111 | esac | |
1112 | case $ac_abs_builddir in | |
1113 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1114 | *) | |
1115 | case $ac_top_srcdir in | |
1116 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1117 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1118 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1119 | esac;; | |
1120 | esac | |
6be7c12c | 1121 | |
5464f5a1 NN |
1122 | cd $ac_dir |
1123 | # Check for guested configure; otherwise get Cygnus style configure. | |
1124 | if test -f $ac_srcdir/configure.gnu; then | |
1125 | echo | |
1126 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1127 | elif test -f $ac_srcdir/configure; then | |
1128 | echo | |
1129 | $SHELL $ac_srcdir/configure --help=recursive | |
1130 | elif test -f $ac_srcdir/configure.ac || | |
1131 | test -f $ac_srcdir/configure.in; then | |
1132 | echo | |
1133 | $ac_configure --help | |
1134 | else | |
1135 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1136 | fi | |
49c96104 | 1137 | cd $ac_popdir |
5464f5a1 | 1138 | done |
6be7c12c AO |
1139 | fi |
1140 | ||
5464f5a1 NN |
1141 | test -n "$ac_init_help" && exit 0 |
1142 | if $ac_init_version; then | |
1143 | cat <<\_ACEOF | |
6be7c12c | 1144 | |
5464f5a1 NN |
1145 | Copyright (C) 2003 Free Software Foundation, Inc. |
1146 | This configure script is free software; the Free Software Foundation | |
1147 | gives unlimited permission to copy, distribute and modify it. | |
1148 | _ACEOF | |
1149 | exit 0 | |
1150 | fi | |
1151 | exec 5>config.log | |
1152 | cat >&5 <<_ACEOF | |
1153 | This file contains any messages produced by compilers while | |
1154 | running configure, to aid debugging if configure makes a mistake. | |
6be7c12c | 1155 | |
5464f5a1 NN |
1156 | It was created by $as_me, which was |
1157 | generated by GNU Autoconf 2.59. Invocation command line was | |
6be7c12c | 1158 | |
5464f5a1 | 1159 | $ $0 $@ |
6be7c12c | 1160 | |
5464f5a1 NN |
1161 | _ACEOF |
1162 | { | |
1163 | cat <<_ASUNAME | |
1164 | ## --------- ## | |
1165 | ## Platform. ## | |
1166 | ## --------- ## | |
1167 | ||
1168 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1169 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1170 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1171 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1172 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1173 | ||
1174 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1175 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1176 | ||
1177 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1178 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1179 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1180 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1181 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1182 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1183 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1184 | ||
1185 | _ASUNAME | |
1186 | ||
1187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1188 | for as_dir in $PATH | |
1189 | do | |
1190 | IFS=$as_save_IFS | |
1191 | test -z "$as_dir" && as_dir=. | |
1192 | echo "PATH: $as_dir" | |
1193 | done | |
6be7c12c | 1194 | |
5464f5a1 | 1195 | } >&5 |
66e25bab | 1196 | |
5464f5a1 | 1197 | cat >&5 <<_ACEOF |
b3baf5d0 | 1198 | |
6be7c12c | 1199 | |
5464f5a1 NN |
1200 | ## ----------- ## |
1201 | ## Core tests. ## | |
1202 | ## ----------- ## | |
252b5132 | 1203 | |
5464f5a1 | 1204 | _ACEOF |
c5d1701e | 1205 | |
6be7c12c | 1206 | |
5464f5a1 NN |
1207 | # Keep a trace of the command line. |
1208 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1209 | # Strip out --silent because we don't want to record it for future runs. | |
1210 | # Also quote any args containing shell meta-characters. | |
1211 | # Make two passes to allow for proper duplicate-argument suppression. | |
1212 | ac_configure_args= | |
1213 | ac_configure_args0= | |
1214 | ac_configure_args1= | |
1215 | ac_sep= | |
1216 | ac_must_keep_next=false | |
1217 | for ac_pass in 1 2 | |
1218 | do | |
1219 | for ac_arg | |
1220 | do | |
1221 | case $ac_arg in | |
1222 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1223 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1224 | | -silent | --silent | --silen | --sile | --sil) | |
1225 | continue ;; | |
1226 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1227 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1228 | esac | |
1229 | case $ac_pass in | |
1230 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1231 | 2) | |
1232 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1233 | if test $ac_must_keep_next = true; then | |
1234 | ac_must_keep_next=false # Got value, back to normal. | |
1235 | else | |
1236 | case $ac_arg in | |
1237 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1238 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1239 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1240 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1241 | case "$ac_configure_args0 " in | |
1242 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1243 | esac | |
1244 | ;; | |
1245 | -* ) ac_must_keep_next=true ;; | |
1246 | esac | |
1247 | fi | |
1248 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1249 | # Get rid of the leading space. | |
1250 | ac_sep=" " | |
1251 | ;; | |
1252 | esac | |
1253 | done | |
1254 | done | |
1255 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1256 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1257 | ||
1258 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1259 | # config.log. We remove comments because anyway the quotes in there | |
1260 | # would cause problems or look ugly. | |
1261 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1262 | # such as our DU 5.0 friend, will then `close' the trap. | |
1263 | trap 'exit_status=$? | |
1264 | # Save into config.log some information that might help in debugging. | |
1265 | { | |
1266 | echo | |
1267 | ||
1268 | cat <<\_ASBOX | |
1269 | ## ---------------- ## | |
1270 | ## Cache variables. ## | |
1271 | ## ---------------- ## | |
1272 | _ASBOX | |
1273 | echo | |
1274 | # The following way of writing the cache mishandles newlines in values, | |
1275 | { | |
1276 | (set) 2>&1 | | |
1277 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1278 | *ac_space=\ *) | |
1279 | sed -n \ | |
1280 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1281 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1282 | ;; | |
1283 | *) | |
1284 | sed -n \ | |
1285 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1286 | ;; | |
1287 | esac; | |
1288 | } | |
1289 | echo | |
1290 | ||
1291 | cat <<\_ASBOX | |
1292 | ## ----------------- ## | |
1293 | ## Output variables. ## | |
1294 | ## ----------------- ## | |
1295 | _ASBOX | |
1296 | echo | |
1297 | for ac_var in $ac_subst_vars | |
1298 | do | |
1299 | eval ac_val=$`echo $ac_var` | |
1300 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1301 | done | sort | |
1302 | echo | |
1303 | ||
1304 | if test -n "$ac_subst_files"; then | |
1305 | cat <<\_ASBOX | |
1306 | ## ------------- ## | |
1307 | ## Output files. ## | |
1308 | ## ------------- ## | |
1309 | _ASBOX | |
1310 | echo | |
1311 | for ac_var in $ac_subst_files | |
1312 | do | |
1313 | eval ac_val=$`echo $ac_var` | |
1314 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1315 | done | sort | |
1316 | echo | |
1317 | fi | |
1318 | ||
1319 | if test -s confdefs.h; then | |
1320 | cat <<\_ASBOX | |
1321 | ## ----------- ## | |
1322 | ## confdefs.h. ## | |
1323 | ## ----------- ## | |
1324 | _ASBOX | |
1325 | echo | |
1326 | sed "/^$/d" confdefs.h | sort | |
1327 | echo | |
1328 | fi | |
1329 | test "$ac_signal" != 0 && | |
1330 | echo "$as_me: caught signal $ac_signal" | |
1331 | echo "$as_me: exit $exit_status" | |
1332 | } >&5 | |
1333 | rm -f core *.core && | |
1334 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1335 | exit $exit_status | |
1336 | ' 0 | |
1337 | for ac_signal in 1 2 13 15; do | |
1338 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1339 | done | |
1340 | ac_signal=0 | |
1341 | ||
1342 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1343 | rm -rf conftest* confdefs.h | |
1344 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1345 | echo >confdefs.h | |
1346 | ||
1347 | # Predefined preprocessor variables. | |
1348 | ||
1349 | cat >>confdefs.h <<_ACEOF | |
1350 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1351 | _ACEOF | |
1352 | ||
1353 | ||
1354 | cat >>confdefs.h <<_ACEOF | |
1355 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1356 | _ACEOF | |
1357 | ||
1358 | ||
1359 | cat >>confdefs.h <<_ACEOF | |
1360 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1361 | _ACEOF | |
1362 | ||
1363 | ||
1364 | cat >>confdefs.h <<_ACEOF | |
1365 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1366 | _ACEOF | |
1367 | ||
1368 | ||
1369 | cat >>confdefs.h <<_ACEOF | |
1370 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1371 | _ACEOF | |
1372 | ||
1373 | ||
1374 | # Let the site file select an alternate cache file if it wants to. | |
1375 | # Prefer explicitly selected file to automatically selected ones. | |
1376 | if test -z "$CONFIG_SITE"; then | |
1377 | if test "x$prefix" != xNONE; then | |
1378 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1379 | else | |
1380 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1381 | fi | |
1382 | fi | |
1383 | for ac_site_file in $CONFIG_SITE; do | |
1384 | if test -r "$ac_site_file"; then | |
1385 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1386 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1387 | sed 's/^/| /' "$ac_site_file" >&5 | |
1388 | . "$ac_site_file" | |
1389 | fi | |
1390 | done | |
1391 | ||
1392 | if test -r "$cache_file"; then | |
1393 | # Some versions of bash will fail to source /dev/null (special | |
1394 | # files actually), so we avoid doing that. | |
1395 | if test -f "$cache_file"; then | |
1396 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1397 | echo "$as_me: loading cache $cache_file" >&6;} | |
1398 | case $cache_file in | |
1399 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1400 | *) . ./$cache_file;; | |
1401 | esac | |
1402 | fi | |
1403 | else | |
1404 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1405 | echo "$as_me: creating cache $cache_file" >&6;} | |
1406 | >$cache_file | |
1407 | fi | |
1408 | ||
1409 | # Check that the precious variables saved in the cache have kept the same | |
1410 | # value. | |
1411 | ac_cache_corrupted=false | |
1412 | for ac_var in `(set) 2>&1 | | |
1413 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1414 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1415 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1416 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1417 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1418 | case $ac_old_set,$ac_new_set in | |
1419 | set,) | |
1420 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1421 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1422 | ac_cache_corrupted=: ;; | |
1423 | ,set) | |
1424 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1425 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1426 | ac_cache_corrupted=: ;; | |
1427 | ,);; | |
1428 | *) | |
1429 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
6194aaab L |
1430 | # differences in whitespace do not lead to failure. |
1431 | ac_old_val_w=`echo x $ac_old_val` | |
1432 | ac_new_val_w=`echo x $ac_new_val` | |
1433 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1434 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
5464f5a1 | 1435 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
6194aaab L |
1436 | ac_cache_corrupted=: |
1437 | else | |
1438 | { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1439 | echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1440 | eval $ac_var=\$ac_old_val | |
1441 | fi | |
1442 | { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1443 | echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1444 | { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1445 | echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
5464f5a1 NN |
1446 | fi;; |
1447 | esac | |
1448 | # Pass precious variables to config.status. | |
1449 | if test "$ac_new_set" = set; then | |
1450 | case $ac_new_val in | |
1451 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1452 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1453 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1454 | esac | |
1455 | case " $ac_configure_args " in | |
1456 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1457 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1458 | esac | |
1459 | fi | |
1460 | done | |
1461 | if $ac_cache_corrupted; then | |
1462 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1463 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1464 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1465 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1466 | { (exit 1); exit 1; }; } | |
1467 | fi | |
1468 | ||
1469 | ac_ext=c | |
1470 | ac_cpp='$CPP $CPPFLAGS' | |
1471 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1472 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1473 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1474 | ||
1475 | ||
1476 | ||
1477 | ||
1478 | ||
1479 | ||
1480 | ||
1481 | ||
1482 | ||
1483 | ||
1484 | ||
1485 | ||
1486 | ||
1487 | ||
1488 | ||
1489 | ||
1490 | ||
1491 | ||
1492 | ||
1493 | ||
1494 | ||
1495 | ac_aux_dir= | |
1496 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1497 | if test -f $ac_dir/install-sh; then | |
1498 | ac_aux_dir=$ac_dir | |
1499 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1500 | break | |
1501 | elif test -f $ac_dir/install.sh; then | |
1502 | ac_aux_dir=$ac_dir | |
1503 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1504 | break | |
1505 | elif test -f $ac_dir/shtool; then | |
1506 | ac_aux_dir=$ac_dir | |
1507 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1508 | break | |
1509 | fi | |
1510 | done | |
1511 | if test -z "$ac_aux_dir"; then | |
1512 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1513 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1514 | { (exit 1); exit 1; }; } | |
1515 | fi | |
1516 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1517 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1518 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1519 | ||
1520 | # Make sure we can run config.sub. | |
1521 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1522 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1523 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1524 | { (exit 1); exit 1; }; } | |
1525 | ||
1526 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1527 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1528 | if test "${ac_cv_build+set}" = set; then | |
1529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1530 | else | |
1531 | ac_cv_build_alias=$build_alias | |
1532 | test -z "$ac_cv_build_alias" && | |
1533 | ac_cv_build_alias=`$ac_config_guess` | |
1534 | test -z "$ac_cv_build_alias" && | |
1535 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1536 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1537 | { (exit 1); exit 1; }; } | |
1538 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1539 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1540 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1541 | { (exit 1); exit 1; }; } | |
1542 | ||
1543 | fi | |
1544 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1545 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1546 | build=$ac_cv_build | |
1547 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1548 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1549 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1550 | ||
1551 | ||
1552 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1553 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1554 | if test "${ac_cv_host+set}" = set; then | |
1555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1556 | else | |
1557 | ac_cv_host_alias=$host_alias | |
1558 | test -z "$ac_cv_host_alias" && | |
1559 | ac_cv_host_alias=$ac_cv_build_alias | |
1560 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1561 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1562 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1563 | { (exit 1); exit 1; }; } | |
1564 | ||
1565 | fi | |
1566 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1567 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1568 | host=$ac_cv_host | |
1569 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1570 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1571 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1572 | ||
1573 | ||
1574 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1575 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1576 | if test "${ac_cv_target+set}" = set; then | |
1577 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1578 | else | |
1579 | ac_cv_target_alias=$target_alias | |
1580 | test "x$ac_cv_target_alias" = "x" && | |
1581 | ac_cv_target_alias=$ac_cv_host_alias | |
1582 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1583 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1584 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1585 | { (exit 1); exit 1; }; } | |
1586 | ||
1587 | fi | |
1588 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1589 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1590 | target=$ac_cv_target | |
1591 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1592 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1593 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1594 | ||
1595 | ||
1596 | # The aliases save the names the user supplied, while $host etc. | |
1597 | # will get canonicalized. | |
1598 | test -n "$target_alias" && | |
1599 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1600 | NONENONEs,x,x, && | |
1601 | program_prefix=${target_alias}- | |
1602 | ac_ext=c | |
1603 | ac_cpp='$CPP $CPPFLAGS' | |
1604 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1605 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1606 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1607 | if test -n "$ac_tool_prefix"; then | |
1608 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1609 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1610 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1611 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1612 | if test "${ac_cv_prog_CC+set}" = set; then | |
1613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1614 | else | |
1615 | if test -n "$CC"; then | |
1616 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1617 | else | |
1618 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1619 | for as_dir in $PATH | |
1620 | do | |
1621 | IFS=$as_save_IFS | |
1622 | test -z "$as_dir" && as_dir=. | |
1623 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1624 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1625 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1626 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1627 | break 2 | |
1628 | fi | |
1629 | done | |
1630 | done | |
1631 | ||
1632 | fi | |
1633 | fi | |
1634 | CC=$ac_cv_prog_CC | |
1635 | if test -n "$CC"; then | |
1636 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1637 | echo "${ECHO_T}$CC" >&6 | |
1638 | else | |
1639 | echo "$as_me:$LINENO: result: no" >&5 | |
1640 | echo "${ECHO_T}no" >&6 | |
1641 | fi | |
1642 | ||
1643 | fi | |
1644 | if test -z "$ac_cv_prog_CC"; then | |
1645 | ac_ct_CC=$CC | |
1646 | # Extract the first word of "gcc", so it can be a program name with args. | |
1647 | set dummy gcc; ac_word=$2 | |
1648 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1649 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1650 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1652 | else | |
1653 | if test -n "$ac_ct_CC"; then | |
1654 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1655 | else | |
1656 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1657 | for as_dir in $PATH | |
1658 | do | |
1659 | IFS=$as_save_IFS | |
1660 | test -z "$as_dir" && as_dir=. | |
1661 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1662 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1663 | ac_cv_prog_ac_ct_CC="gcc" | |
1664 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1665 | break 2 | |
1666 | fi | |
1667 | done | |
1668 | done | |
1669 | ||
1670 | fi | |
1671 | fi | |
1672 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1673 | if test -n "$ac_ct_CC"; then | |
1674 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1675 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1676 | else | |
1677 | echo "$as_me:$LINENO: result: no" >&5 | |
1678 | echo "${ECHO_T}no" >&6 | |
1679 | fi | |
1680 | ||
1681 | CC=$ac_ct_CC | |
1682 | else | |
1683 | CC="$ac_cv_prog_CC" | |
1684 | fi | |
1685 | ||
1686 | if test -z "$CC"; then | |
1687 | if test -n "$ac_tool_prefix"; then | |
1688 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1689 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1690 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1691 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1692 | if test "${ac_cv_prog_CC+set}" = set; then | |
1693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1694 | else | |
1695 | if test -n "$CC"; then | |
1696 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1697 | else | |
1698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1699 | for as_dir in $PATH | |
1700 | do | |
1701 | IFS=$as_save_IFS | |
1702 | test -z "$as_dir" && as_dir=. | |
1703 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1704 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1705 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1706 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1707 | break 2 | |
1708 | fi | |
1709 | done | |
1710 | done | |
1711 | ||
1712 | fi | |
1713 | fi | |
1714 | CC=$ac_cv_prog_CC | |
1715 | if test -n "$CC"; then | |
1716 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1717 | echo "${ECHO_T}$CC" >&6 | |
1718 | else | |
1719 | echo "$as_me:$LINENO: result: no" >&5 | |
1720 | echo "${ECHO_T}no" >&6 | |
1721 | fi | |
1722 | ||
1723 | fi | |
1724 | if test -z "$ac_cv_prog_CC"; then | |
1725 | ac_ct_CC=$CC | |
1726 | # Extract the first word of "cc", so it can be a program name with args. | |
1727 | set dummy cc; ac_word=$2 | |
1728 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1729 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1730 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1731 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1732 | else | |
1733 | if test -n "$ac_ct_CC"; then | |
1734 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1735 | else | |
1736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1737 | for as_dir in $PATH | |
1738 | do | |
1739 | IFS=$as_save_IFS | |
1740 | test -z "$as_dir" && as_dir=. | |
1741 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1742 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1743 | ac_cv_prog_ac_ct_CC="cc" | |
1744 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1745 | break 2 | |
1746 | fi | |
1747 | done | |
1748 | done | |
1749 | ||
1750 | fi | |
1751 | fi | |
1752 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1753 | if test -n "$ac_ct_CC"; then | |
1754 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1755 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1756 | else | |
1757 | echo "$as_me:$LINENO: result: no" >&5 | |
1758 | echo "${ECHO_T}no" >&6 | |
1759 | fi | |
1760 | ||
1761 | CC=$ac_ct_CC | |
1762 | else | |
1763 | CC="$ac_cv_prog_CC" | |
1764 | fi | |
1765 | ||
1766 | fi | |
1767 | if test -z "$CC"; then | |
1768 | # Extract the first word of "cc", so it can be a program name with args. | |
1769 | set dummy cc; ac_word=$2 | |
1770 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1771 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1772 | if test "${ac_cv_prog_CC+set}" = set; then | |
1773 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1774 | else | |
1775 | if test -n "$CC"; then | |
1776 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1777 | else | |
1778 | ac_prog_rejected=no | |
1779 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1780 | for as_dir in $PATH | |
1781 | do | |
1782 | IFS=$as_save_IFS | |
1783 | test -z "$as_dir" && as_dir=. | |
1784 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1785 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1786 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1787 | ac_prog_rejected=yes | |
1788 | continue | |
1789 | fi | |
1790 | ac_cv_prog_CC="cc" | |
1791 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1792 | break 2 | |
1793 | fi | |
1794 | done | |
1795 | done | |
1796 | ||
1797 | if test $ac_prog_rejected = yes; then | |
1798 | # We found a bogon in the path, so make sure we never use it. | |
1799 | set dummy $ac_cv_prog_CC | |
1800 | shift | |
1801 | if test $# != 0; then | |
1802 | # We chose a different compiler from the bogus one. | |
1803 | # However, it has the same basename, so the bogon will be chosen | |
1804 | # first if we set CC to just the basename; use the full file name. | |
1805 | shift | |
1806 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1807 | fi | |
1808 | fi | |
1809 | fi | |
1810 | fi | |
1811 | CC=$ac_cv_prog_CC | |
1812 | if test -n "$CC"; then | |
1813 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1814 | echo "${ECHO_T}$CC" >&6 | |
1815 | else | |
1816 | echo "$as_me:$LINENO: result: no" >&5 | |
1817 | echo "${ECHO_T}no" >&6 | |
1818 | fi | |
1819 | ||
1820 | fi | |
1821 | if test -z "$CC"; then | |
1822 | if test -n "$ac_tool_prefix"; then | |
1823 | for ac_prog in cl | |
1824 | do | |
1825 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1826 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1827 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1828 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1829 | if test "${ac_cv_prog_CC+set}" = set; then | |
1830 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1831 | else | |
1832 | if test -n "$CC"; then | |
1833 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1834 | else | |
1835 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1836 | for as_dir in $PATH | |
1837 | do | |
1838 | IFS=$as_save_IFS | |
1839 | test -z "$as_dir" && as_dir=. | |
1840 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1841 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1842 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1843 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1844 | break 2 | |
1845 | fi | |
1846 | done | |
1847 | done | |
1848 | ||
1849 | fi | |
1850 | fi | |
1851 | CC=$ac_cv_prog_CC | |
1852 | if test -n "$CC"; then | |
1853 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1854 | echo "${ECHO_T}$CC" >&6 | |
1855 | else | |
1856 | echo "$as_me:$LINENO: result: no" >&5 | |
1857 | echo "${ECHO_T}no" >&6 | |
1858 | fi | |
1859 | ||
1860 | test -n "$CC" && break | |
1861 | done | |
1862 | fi | |
1863 | if test -z "$CC"; then | |
1864 | ac_ct_CC=$CC | |
1865 | for ac_prog in cl | |
1866 | do | |
1867 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1868 | set dummy $ac_prog; ac_word=$2 | |
1869 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1870 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1871 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1873 | else | |
1874 | if test -n "$ac_ct_CC"; then | |
1875 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1876 | else | |
1877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1878 | for as_dir in $PATH | |
1879 | do | |
1880 | IFS=$as_save_IFS | |
1881 | test -z "$as_dir" && as_dir=. | |
1882 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1883 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1884 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1885 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1886 | break 2 | |
1887 | fi | |
1888 | done | |
1889 | done | |
1890 | ||
1891 | fi | |
1892 | fi | |
1893 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1894 | if test -n "$ac_ct_CC"; then | |
1895 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1896 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1897 | else | |
1898 | echo "$as_me:$LINENO: result: no" >&5 | |
1899 | echo "${ECHO_T}no" >&6 | |
1900 | fi | |
1901 | ||
1902 | test -n "$ac_ct_CC" && break | |
1903 | done | |
1904 | ||
1905 | CC=$ac_ct_CC | |
1906 | fi | |
1907 | ||
1908 | fi | |
1909 | ||
1910 | ||
1911 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1912 | See \`config.log' for more details." >&5 | |
1913 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1914 | See \`config.log' for more details." >&2;} | |
1915 | { (exit 1); exit 1; }; } | |
1916 | ||
1917 | # Provide some information about the compiler. | |
1918 | echo "$as_me:$LINENO:" \ | |
1919 | "checking for C compiler version" >&5 | |
1920 | ac_compiler=`set X $ac_compile; echo $2` | |
1921 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1922 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1923 | ac_status=$? | |
1924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1925 | (exit $ac_status); } | |
1926 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1927 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1928 | ac_status=$? | |
1929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1930 | (exit $ac_status); } | |
1931 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1932 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1933 | ac_status=$? | |
1934 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1935 | (exit $ac_status); } | |
1936 | ||
1937 | cat >conftest.$ac_ext <<_ACEOF | |
1938 | /* confdefs.h. */ | |
1939 | _ACEOF | |
1940 | cat confdefs.h >>conftest.$ac_ext | |
1941 | cat >>conftest.$ac_ext <<_ACEOF | |
1942 | /* end confdefs.h. */ | |
1943 | ||
1944 | int | |
1945 | main () | |
1946 | { | |
1947 | ||
1948 | ; | |
1949 | return 0; | |
1950 | } | |
1951 | _ACEOF | |
1952 | ac_clean_files_save=$ac_clean_files | |
1953 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1954 | # Try to create an executable without -o first, disregard a.out. | |
1955 | # It will help us diagnose broken compilers, and finding out an intuition | |
1956 | # of exeext. | |
1957 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1958 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1959 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1960 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1961 | (eval $ac_link_default) 2>&5 | |
1962 | ac_status=$? | |
1963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1964 | (exit $ac_status); }; then | |
1965 | # Find the output, starting from the most likely. This scheme is | |
1966 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1967 | # resort. | |
1968 | ||
1969 | # Be careful to initialize this variable, since it used to be cached. | |
1970 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1971 | ac_cv_exeext= | |
1972 | # b.out is created by i960 compilers. | |
1973 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1974 | do | |
1975 | test -f "$ac_file" || continue | |
1976 | case $ac_file in | |
1977 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1978 | ;; | |
1979 | conftest.$ac_ext ) | |
1980 | # This is the source file. | |
1981 | ;; | |
1982 | [ab].out ) | |
1983 | # We found the default executable, but exeext='' is most | |
1984 | # certainly right. | |
1985 | break;; | |
1986 | *.* ) | |
1987 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1988 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1989 | # but it would be cool to find out if it's true. Does anybody | |
1990 | # maintain Libtool? --akim. | |
1991 | export ac_cv_exeext | |
1992 | break;; | |
1993 | * ) | |
1994 | break;; | |
1995 | esac | |
1996 | done | |
1997 | else | |
1998 | echo "$as_me: failed program was:" >&5 | |
1999 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2000 | ||
2001 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2002 | See \`config.log' for more details." >&5 | |
2003 | echo "$as_me: error: C compiler cannot create executables | |
2004 | See \`config.log' for more details." >&2;} | |
2005 | { (exit 77); exit 77; }; } | |
2006 | fi | |
2007 | ||
2008 | ac_exeext=$ac_cv_exeext | |
2009 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2010 | echo "${ECHO_T}$ac_file" >&6 | |
2011 | ||
2012 | # Check the compiler produces executables we can run. If not, either | |
2013 | # the compiler is broken, or we cross compile. | |
2014 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2015 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2016 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2017 | # If not cross compiling, check that we can run a simple program. | |
2018 | if test "$cross_compiling" != yes; then | |
2019 | if { ac_try='./$ac_file' | |
2020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2021 | (eval $ac_try) 2>&5 | |
2022 | ac_status=$? | |
2023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2024 | (exit $ac_status); }; }; then | |
2025 | cross_compiling=no | |
2026 | else | |
2027 | if test "$cross_compiling" = maybe; then | |
2028 | cross_compiling=yes | |
2029 | else | |
2030 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2031 | If you meant to cross compile, use \`--host'. | |
2032 | See \`config.log' for more details." >&5 | |
2033 | echo "$as_me: error: cannot run C compiled programs. | |
2034 | If you meant to cross compile, use \`--host'. | |
2035 | See \`config.log' for more details." >&2;} | |
2036 | { (exit 1); exit 1; }; } | |
2037 | fi | |
2038 | fi | |
2039 | fi | |
2040 | echo "$as_me:$LINENO: result: yes" >&5 | |
2041 | echo "${ECHO_T}yes" >&6 | |
2042 | ||
2043 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2044 | ac_clean_files=$ac_clean_files_save | |
2045 | # Check the compiler produces executables we can run. If not, either | |
2046 | # the compiler is broken, or we cross compile. | |
2047 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2048 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2049 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2050 | echo "${ECHO_T}$cross_compiling" >&6 | |
2051 | ||
2052 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2053 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2054 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2055 | (eval $ac_link) 2>&5 | |
2056 | ac_status=$? | |
2057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2058 | (exit $ac_status); }; then | |
2059 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2060 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2061 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2062 | # `rm'. | |
2063 | for ac_file in conftest.exe conftest conftest.*; do | |
2064 | test -f "$ac_file" || continue | |
2065 | case $ac_file in | |
2066 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2067 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2068 | export ac_cv_exeext | |
2069 | break;; | |
2070 | * ) break;; | |
2071 | esac | |
2072 | done | |
2073 | else | |
2074 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2075 | See \`config.log' for more details." >&5 | |
2076 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2077 | See \`config.log' for more details." >&2;} | |
2078 | { (exit 1); exit 1; }; } | |
2079 | fi | |
2080 | ||
2081 | rm -f conftest$ac_cv_exeext | |
2082 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2083 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2084 | ||
2085 | rm -f conftest.$ac_ext | |
2086 | EXEEXT=$ac_cv_exeext | |
2087 | ac_exeext=$EXEEXT | |
2088 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2089 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2090 | if test "${ac_cv_objext+set}" = set; then | |
2091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2092 | else | |
2093 | cat >conftest.$ac_ext <<_ACEOF | |
2094 | /* confdefs.h. */ | |
2095 | _ACEOF | |
2096 | cat confdefs.h >>conftest.$ac_ext | |
2097 | cat >>conftest.$ac_ext <<_ACEOF | |
2098 | /* end confdefs.h. */ | |
2099 | ||
2100 | int | |
2101 | main () | |
2102 | { | |
2103 | ||
2104 | ; | |
2105 | return 0; | |
2106 | } | |
2107 | _ACEOF | |
2108 | rm -f conftest.o conftest.obj | |
2109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2110 | (eval $ac_compile) 2>&5 | |
2111 | ac_status=$? | |
2112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2113 | (exit $ac_status); }; then | |
2114 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2115 | case $ac_file in | |
2116 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2117 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2118 | break;; | |
2119 | esac | |
2120 | done | |
2121 | else | |
2122 | echo "$as_me: failed program was:" >&5 | |
2123 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2124 | ||
2125 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2126 | See \`config.log' for more details." >&5 | |
2127 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2128 | See \`config.log' for more details." >&2;} | |
2129 | { (exit 1); exit 1; }; } | |
2130 | fi | |
2131 | ||
2132 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2133 | fi | |
2134 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2135 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2136 | OBJEXT=$ac_cv_objext | |
2137 | ac_objext=$OBJEXT | |
2138 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2139 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2140 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2142 | else | |
2143 | cat >conftest.$ac_ext <<_ACEOF | |
2144 | /* confdefs.h. */ | |
2145 | _ACEOF | |
2146 | cat confdefs.h >>conftest.$ac_ext | |
2147 | cat >>conftest.$ac_ext <<_ACEOF | |
2148 | /* end confdefs.h. */ | |
2149 | ||
2150 | int | |
2151 | main () | |
2152 | { | |
2153 | #ifndef __GNUC__ | |
2154 | choke me | |
2155 | #endif | |
2156 | ||
2157 | ; | |
2158 | return 0; | |
2159 | } | |
2160 | _ACEOF | |
2161 | rm -f conftest.$ac_objext | |
2162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2163 | (eval $ac_compile) 2>conftest.er1 | |
2164 | ac_status=$? | |
2165 | grep -v '^ *+' conftest.er1 >conftest.err | |
2166 | rm -f conftest.er1 | |
2167 | cat conftest.err >&5 | |
2168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2169 | (exit $ac_status); } && | |
49c96104 SE |
2170 | { ac_try='test -z "$ac_c_werror_flag" |
2171 | || test ! -s conftest.err' | |
5464f5a1 NN |
2172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2173 | (eval $ac_try) 2>&5 | |
2174 | ac_status=$? | |
2175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2176 | (exit $ac_status); }; } && | |
2177 | { ac_try='test -s conftest.$ac_objext' | |
2178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2179 | (eval $ac_try) 2>&5 | |
2180 | ac_status=$? | |
2181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2182 | (exit $ac_status); }; }; then | |
2183 | ac_compiler_gnu=yes | |
2184 | else | |
2185 | echo "$as_me: failed program was:" >&5 | |
2186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2187 | ||
2188 | ac_compiler_gnu=no | |
2189 | fi | |
2190 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2191 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2192 | ||
2193 | fi | |
2194 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2195 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2196 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2197 | ac_test_CFLAGS=${CFLAGS+set} | |
2198 | ac_save_CFLAGS=$CFLAGS | |
2199 | CFLAGS="-g" | |
2200 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2201 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2202 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2204 | else | |
2205 | cat >conftest.$ac_ext <<_ACEOF | |
2206 | /* confdefs.h. */ | |
2207 | _ACEOF | |
2208 | cat confdefs.h >>conftest.$ac_ext | |
2209 | cat >>conftest.$ac_ext <<_ACEOF | |
2210 | /* end confdefs.h. */ | |
2211 | ||
2212 | int | |
2213 | main () | |
2214 | { | |
2215 | ||
2216 | ; | |
2217 | return 0; | |
2218 | } | |
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); } && | |
49c96104 SE |
2229 | { ac_try='test -z "$ac_c_werror_flag" |
2230 | || test ! -s conftest.err' | |
5464f5a1 NN |
2231 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2232 | (eval $ac_try) 2>&5 | |
2233 | ac_status=$? | |
2234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2235 | (exit $ac_status); }; } && | |
2236 | { ac_try='test -s conftest.$ac_objext' | |
2237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2238 | (eval $ac_try) 2>&5 | |
2239 | ac_status=$? | |
2240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2241 | (exit $ac_status); }; }; then | |
2242 | ac_cv_prog_cc_g=yes | |
2243 | else | |
2244 | echo "$as_me: failed program was:" >&5 | |
2245 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2246 | ||
2247 | ac_cv_prog_cc_g=no | |
2248 | fi | |
2249 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2250 | fi | |
2251 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2252 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2253 | if test "$ac_test_CFLAGS" = set; then | |
2254 | CFLAGS=$ac_save_CFLAGS | |
2255 | elif test $ac_cv_prog_cc_g = yes; then | |
2256 | if test "$GCC" = yes; then | |
2257 | CFLAGS="-g -O2" | |
2258 | else | |
2259 | CFLAGS="-g" | |
2260 | fi | |
2261 | else | |
2262 | if test "$GCC" = yes; then | |
2263 | CFLAGS="-O2" | |
2264 | else | |
2265 | CFLAGS= | |
2266 | fi | |
2267 | fi | |
2268 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2269 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2270 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2271 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2272 | else | |
2273 | ac_cv_prog_cc_stdc=no | |
2274 | ac_save_CC=$CC | |
2275 | cat >conftest.$ac_ext <<_ACEOF | |
2276 | /* confdefs.h. */ | |
2277 | _ACEOF | |
2278 | cat confdefs.h >>conftest.$ac_ext | |
2279 | cat >>conftest.$ac_ext <<_ACEOF | |
2280 | /* end confdefs.h. */ | |
2281 | #include <stdarg.h> | |
2282 | #include <stdio.h> | |
2283 | #include <sys/types.h> | |
2284 | #include <sys/stat.h> | |
2285 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2286 | struct buf { int x; }; | |
2287 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2288 | static char *e (p, i) | |
2289 | char **p; | |
2290 | int i; | |
2291 | { | |
2292 | return p[i]; | |
2293 | } | |
2294 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2295 | { | |
2296 | char *s; | |
2297 | va_list v; | |
2298 | va_start (v,p); | |
2299 | s = g (p, va_arg (v,int)); | |
2300 | va_end (v); | |
2301 | return s; | |
2302 | } | |
2303 | ||
2304 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2305 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2306 | These don't provoke an error unfortunately, instead are silently treated | |
2307 | as 'x'. The following induces an error, until -std1 is added to get | |
2308 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2309 | array size at least. It's necessary to write '\x00'==0 to get something | |
2310 | that's true only with -std1. */ | |
2311 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2312 | ||
2313 | int test (int i, double x); | |
2314 | struct s1 {int (*f) (int a);}; | |
2315 | struct s2 {int (*f) (double a);}; | |
2316 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2317 | int argc; | |
2318 | char **argv; | |
2319 | int | |
2320 | main () | |
2321 | { | |
2322 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2323 | ; | |
2324 | return 0; | |
2325 | } | |
2326 | _ACEOF | |
2327 | # Don't try gcc -ansi; that turns off useful extensions and | |
2328 | # breaks some systems' header files. | |
2329 | # AIX -qlanglvl=ansi | |
2330 | # Ultrix and OSF/1 -std1 | |
2331 | # HP-UX 10.20 and later -Ae | |
2332 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2333 | # SVR4 -Xc -D__EXTENSIONS__ | |
2334 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2335 | do | |
2336 | CC="$ac_save_CC $ac_arg" | |
2337 | rm -f conftest.$ac_objext | |
2338 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2339 | (eval $ac_compile) 2>conftest.er1 | |
2340 | ac_status=$? | |
2341 | grep -v '^ *+' conftest.er1 >conftest.err | |
2342 | rm -f conftest.er1 | |
2343 | cat conftest.err >&5 | |
2344 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2345 | (exit $ac_status); } && | |
49c96104 SE |
2346 | { ac_try='test -z "$ac_c_werror_flag" |
2347 | || test ! -s conftest.err' | |
5464f5a1 NN |
2348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2349 | (eval $ac_try) 2>&5 | |
2350 | ac_status=$? | |
2351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2352 | (exit $ac_status); }; } && | |
2353 | { ac_try='test -s conftest.$ac_objext' | |
2354 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2355 | (eval $ac_try) 2>&5 | |
2356 | ac_status=$? | |
2357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2358 | (exit $ac_status); }; }; then | |
2359 | ac_cv_prog_cc_stdc=$ac_arg | |
2360 | break | |
2361 | else | |
2362 | echo "$as_me: failed program was:" >&5 | |
2363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2364 | ||
2365 | fi | |
2366 | rm -f conftest.err conftest.$ac_objext | |
2367 | done | |
2368 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2369 | CC=$ac_save_CC | |
2370 | ||
2371 | fi | |
2372 | ||
2373 | case "x$ac_cv_prog_cc_stdc" in | |
2374 | x|xno) | |
2375 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2376 | echo "${ECHO_T}none needed" >&6 ;; | |
2377 | *) | |
2378 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2379 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2380 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2381 | esac | |
2382 | ||
2383 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2384 | # in C++ we need to declare it. In case someone uses the same compiler | |
2385 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2386 | # the declaration of exit, since it's the most demanding environment. | |
2387 | cat >conftest.$ac_ext <<_ACEOF | |
2388 | #ifndef __cplusplus | |
2389 | choke me | |
2390 | #endif | |
2391 | _ACEOF | |
2392 | rm -f conftest.$ac_objext | |
2393 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2394 | (eval $ac_compile) 2>conftest.er1 | |
2395 | ac_status=$? | |
2396 | grep -v '^ *+' conftest.er1 >conftest.err | |
2397 | rm -f conftest.er1 | |
2398 | cat conftest.err >&5 | |
2399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2400 | (exit $ac_status); } && | |
49c96104 SE |
2401 | { ac_try='test -z "$ac_c_werror_flag" |
2402 | || test ! -s conftest.err' | |
5464f5a1 NN |
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); }; } && | |
2408 | { ac_try='test -s conftest.$ac_objext' | |
2409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2410 | (eval $ac_try) 2>&5 | |
2411 | ac_status=$? | |
2412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2413 | (exit $ac_status); }; }; then | |
2414 | for ac_declaration in \ | |
2415 | '' \ | |
2416 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2417 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2418 | 'extern "C" void exit (int) throw ();' \ | |
2419 | 'extern "C" void exit (int);' \ | |
2420 | 'void exit (int);' | |
2421 | do | |
2422 | cat >conftest.$ac_ext <<_ACEOF | |
2423 | /* confdefs.h. */ | |
2424 | _ACEOF | |
2425 | cat confdefs.h >>conftest.$ac_ext | |
2426 | cat >>conftest.$ac_ext <<_ACEOF | |
2427 | /* end confdefs.h. */ | |
2428 | $ac_declaration | |
2429 | #include <stdlib.h> | |
2430 | int | |
2431 | main () | |
2432 | { | |
2433 | exit (42); | |
2434 | ; | |
2435 | return 0; | |
2436 | } | |
2437 | _ACEOF | |
2438 | rm -f conftest.$ac_objext | |
2439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2440 | (eval $ac_compile) 2>conftest.er1 | |
2441 | ac_status=$? | |
2442 | grep -v '^ *+' conftest.er1 >conftest.err | |
2443 | rm -f conftest.er1 | |
2444 | cat conftest.err >&5 | |
2445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2446 | (exit $ac_status); } && | |
49c96104 SE |
2447 | { ac_try='test -z "$ac_c_werror_flag" |
2448 | || test ! -s conftest.err' | |
5464f5a1 NN |
2449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2450 | (eval $ac_try) 2>&5 | |
2451 | ac_status=$? | |
2452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2453 | (exit $ac_status); }; } && | |
2454 | { ac_try='test -s conftest.$ac_objext' | |
2455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2456 | (eval $ac_try) 2>&5 | |
2457 | ac_status=$? | |
2458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2459 | (exit $ac_status); }; }; then | |
2460 | : | |
2461 | else | |
2462 | echo "$as_me: failed program was:" >&5 | |
2463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2464 | ||
2465 | continue | |
2466 | fi | |
2467 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2468 | cat >conftest.$ac_ext <<_ACEOF | |
2469 | /* confdefs.h. */ | |
2470 | _ACEOF | |
2471 | cat confdefs.h >>conftest.$ac_ext | |
2472 | cat >>conftest.$ac_ext <<_ACEOF | |
2473 | /* end confdefs.h. */ | |
2474 | $ac_declaration | |
2475 | int | |
2476 | main () | |
2477 | { | |
2478 | exit (42); | |
2479 | ; | |
2480 | return 0; | |
2481 | } | |
2482 | _ACEOF | |
2483 | rm -f conftest.$ac_objext | |
2484 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2485 | (eval $ac_compile) 2>conftest.er1 | |
2486 | ac_status=$? | |
2487 | grep -v '^ *+' conftest.er1 >conftest.err | |
2488 | rm -f conftest.er1 | |
2489 | cat conftest.err >&5 | |
2490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2491 | (exit $ac_status); } && | |
49c96104 SE |
2492 | { ac_try='test -z "$ac_c_werror_flag" |
2493 | || test ! -s conftest.err' | |
5464f5a1 NN |
2494 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2495 | (eval $ac_try) 2>&5 | |
2496 | ac_status=$? | |
2497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2498 | (exit $ac_status); }; } && | |
2499 | { ac_try='test -s conftest.$ac_objext' | |
2500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2501 | (eval $ac_try) 2>&5 | |
2502 | ac_status=$? | |
2503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2504 | (exit $ac_status); }; }; then | |
2505 | break | |
2506 | else | |
2507 | echo "$as_me: failed program was:" >&5 | |
2508 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2509 | ||
2510 | fi | |
2511 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2512 | done | |
2513 | rm -f conftest* | |
2514 | if test -n "$ac_declaration"; then | |
2515 | echo '#ifdef __cplusplus' >>confdefs.h | |
2516 | echo $ac_declaration >>confdefs.h | |
2517 | echo '#endif' >>confdefs.h | |
2518 | fi | |
2519 | ||
2520 | else | |
2521 | echo "$as_me: failed program was:" >&5 | |
2522 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2523 | ||
2524 | fi | |
2525 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2526 | ac_ext=c | |
2527 | ac_cpp='$CPP $CPPFLAGS' | |
2528 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2529 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2530 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2531 | ||
2532 | ||
f5385ebf AM |
2533 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2534 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
2535 | if test "${ac_cv_search_strerror+set}" = set; then | |
5464f5a1 NN |
2536 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2537 | else | |
f5385ebf AM |
2538 | ac_func_search_save_LIBS=$LIBS |
2539 | ac_cv_search_strerror=no | |
5464f5a1 NN |
2540 | cat >conftest.$ac_ext <<_ACEOF |
2541 | /* confdefs.h. */ | |
2542 | _ACEOF | |
2543 | cat confdefs.h >>conftest.$ac_ext | |
2544 | cat >>conftest.$ac_ext <<_ACEOF | |
2545 | /* end confdefs.h. */ | |
2546 | ||
2547 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2548 | #ifdef __cplusplus | |
2549 | extern "C" | |
2550 | #endif | |
2551 | /* We use char because int might match the return type of a gcc2 | |
2552 | builtin and then its argument prototype would still apply. */ | |
2553 | char strerror (); | |
2554 | int | |
2555 | main () | |
2556 | { | |
2557 | strerror (); | |
2558 | ; | |
2559 | return 0; | |
2560 | } | |
2561 | _ACEOF | |
2562 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2563 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2564 | (eval $ac_link) 2>conftest.er1 | |
2565 | ac_status=$? | |
2566 | grep -v '^ *+' conftest.er1 >conftest.err | |
2567 | rm -f conftest.er1 | |
2568 | cat conftest.err >&5 | |
2569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2570 | (exit $ac_status); } && | |
49c96104 SE |
2571 | { ac_try='test -z "$ac_c_werror_flag" |
2572 | || test ! -s conftest.err' | |
5464f5a1 NN |
2573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2574 | (eval $ac_try) 2>&5 | |
2575 | ac_status=$? | |
2576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2577 | (exit $ac_status); }; } && | |
2578 | { ac_try='test -s conftest$ac_exeext' | |
2579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2580 | (eval $ac_try) 2>&5 | |
2581 | ac_status=$? | |
2582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2583 | (exit $ac_status); }; }; then | |
f5385ebf | 2584 | ac_cv_search_strerror="none required" |
5464f5a1 NN |
2585 | else |
2586 | echo "$as_me: failed program was:" >&5 | |
2587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2588 | ||
5464f5a1 NN |
2589 | fi |
2590 | rm -f conftest.err conftest.$ac_objext \ | |
2591 | conftest$ac_exeext conftest.$ac_ext | |
f5385ebf AM |
2592 | if test "$ac_cv_search_strerror" = no; then |
2593 | for ac_lib in cposix; do | |
2594 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2595 | cat >conftest.$ac_ext <<_ACEOF | |
2596 | /* confdefs.h. */ | |
2597 | _ACEOF | |
2598 | cat confdefs.h >>conftest.$ac_ext | |
2599 | cat >>conftest.$ac_ext <<_ACEOF | |
2600 | /* end confdefs.h. */ | |
2601 | ||
2602 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2603 | #ifdef __cplusplus | |
2604 | extern "C" | |
2605 | #endif | |
2606 | /* We use char because int might match the return type of a gcc2 | |
2607 | builtin and then its argument prototype would still apply. */ | |
2608 | char strerror (); | |
2609 | int | |
2610 | main () | |
2611 | { | |
2612 | strerror (); | |
2613 | ; | |
2614 | return 0; | |
2615 | } | |
2616 | _ACEOF | |
2617 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2619 | (eval $ac_link) 2>conftest.er1 | |
2620 | ac_status=$? | |
2621 | grep -v '^ *+' conftest.er1 >conftest.err | |
2622 | rm -f conftest.er1 | |
2623 | cat conftest.err >&5 | |
2624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2625 | (exit $ac_status); } && | |
49c96104 SE |
2626 | { ac_try='test -z "$ac_c_werror_flag" |
2627 | || test ! -s conftest.err' | |
f5385ebf AM |
2628 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2629 | (eval $ac_try) 2>&5 | |
2630 | ac_status=$? | |
2631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2632 | (exit $ac_status); }; } && | |
2633 | { ac_try='test -s conftest$ac_exeext' | |
2634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2635 | (eval $ac_try) 2>&5 | |
2636 | ac_status=$? | |
2637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2638 | (exit $ac_status); }; }; then | |
2639 | ac_cv_search_strerror="-l$ac_lib" | |
2640 | break | |
2641 | else | |
2642 | echo "$as_me: failed program was:" >&5 | |
2643 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2644 | ||
5464f5a1 | 2645 | fi |
f5385ebf AM |
2646 | rm -f conftest.err conftest.$ac_objext \ |
2647 | conftest$ac_exeext conftest.$ac_ext | |
2648 | done | |
5464f5a1 | 2649 | fi |
f5385ebf AM |
2650 | LIBS=$ac_func_search_save_LIBS |
2651 | fi | |
2652 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
2653 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2654 | if test "$ac_cv_search_strerror" != no; then | |
2655 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
5464f5a1 | 2656 | |
f5385ebf | 2657 | fi |
5464f5a1 NN |
2658 | |
2659 | ||
f5385ebf | 2660 | am__api_version="1.9" |
5464f5a1 NN |
2661 | # Find a good install program. We prefer a C program (faster), |
2662 | # so one script is as good as another. But avoid the broken or | |
2663 | # incompatible versions: | |
2664 | # SysV /etc/install, /usr/sbin/install | |
2665 | # SunOS /usr/etc/install | |
2666 | # IRIX /sbin/install | |
2667 | # AIX /bin/install | |
2668 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
252b5132 RH |
2669 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2670 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2671 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5464f5a1 | 2672 | # OS/2's system install, which has a completely different semantic |
252b5132 | 2673 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 2674 | # Reject install programs that cannot install multiple files. |
5464f5a1 NN |
2675 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2676 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
252b5132 | 2677 | if test -z "$INSTALL"; then |
5464f5a1 NN |
2678 | if test "${ac_cv_path_install+set}" = set; then |
2679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 2680 | else |
5464f5a1 NN |
2681 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2682 | for as_dir in $PATH | |
2683 | do | |
2684 | IFS=$as_save_IFS | |
2685 | test -z "$as_dir" && as_dir=. | |
2686 | # Account for people who put trailing slashes in PATH elements. | |
2687 | case $as_dir/ in | |
2688 | ./ | .// | /cC/* | \ | |
2689 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2690 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2691 | /usr/ucb/* ) ;; | |
2692 | *) | |
2693 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2694 | # Don't use installbsd from OSF since it installs stuff as root | |
2695 | # by default. | |
2696 | for ac_prog in ginstall scoinst install; do | |
2697 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2698 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
252b5132 | 2699 | if test $ac_prog = install && |
5464f5a1 | 2700 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
2701 | # AIX install. It has an incompatible calling convention. |
2702 | : | |
5464f5a1 NN |
2703 | elif test $ac_prog = install && |
2704 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2705 | # program-specific install script used by HP pwplus--don't use. | |
2706 | : | |
252b5132 | 2707 | else |
58c85be7 RW |
2708 | rm -rf conftest.one conftest.two conftest.dir |
2709 | echo one > conftest.one | |
2710 | echo two > conftest.two | |
2711 | mkdir conftest.dir | |
2712 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2713 | test -s conftest.one && test -s conftest.two && | |
2714 | test -s conftest.dir/conftest.one && | |
2715 | test -s conftest.dir/conftest.two | |
2716 | then | |
2717 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2718 | break 3 | |
2719 | fi | |
252b5132 RH |
2720 | fi |
2721 | fi | |
2722 | done | |
5464f5a1 NN |
2723 | done |
2724 | ;; | |
2725 | esac | |
2726 | done | |
2727 | ||
58c85be7 | 2728 | rm -rf conftest.one conftest.two conftest.dir |
252b5132 RH |
2729 | |
2730 | fi | |
2731 | if test "${ac_cv_path_install+set}" = set; then | |
5464f5a1 | 2732 | INSTALL=$ac_cv_path_install |
252b5132 | 2733 | else |
58c85be7 RW |
2734 | # As a last resort, use the slow shell script. Don't cache a |
2735 | # value for INSTALL within a source directory, because that will | |
252b5132 | 2736 | # break other packages using the cache if that directory is |
58c85be7 | 2737 | # removed, or if the value is a relative name. |
5464f5a1 | 2738 | INSTALL=$ac_install_sh |
252b5132 RH |
2739 | fi |
2740 | fi | |
5464f5a1 NN |
2741 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2742 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
2743 | |
2744 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2745 | # It thinks the first close brace ends the variable substitution. | |
2746 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2747 | ||
5464f5a1 | 2748 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2749 | |
2750 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2751 | ||
5464f5a1 NN |
2752 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2753 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
252b5132 RH |
2754 | # Just in case |
2755 | sleep 1 | |
f5385ebf | 2756 | echo timestamp > conftest.file |
252b5132 RH |
2757 | # Do `set' in a subshell so we don't clobber the current shell's |
2758 | # arguments. Must try -L first in case configure is actually a | |
2759 | # symlink; some systems play weird games with the mod time of symlinks | |
2760 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2761 | # directory). | |
2762 | if ( | |
f5385ebf | 2763 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
252b5132 RH |
2764 | if test "$*" = "X"; then |
2765 | # -L didn't work. | |
f5385ebf | 2766 | set X `ls -t $srcdir/configure conftest.file` |
252b5132 | 2767 | fi |
f5385ebf AM |
2768 | rm -f conftest.file |
2769 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2770 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
2771 | |
2772 | # If neither matched, then we have a broken ls. This can happen | |
2773 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2774 | # broken ls alias from the environment. This has actually | |
2775 | # happened. Such a system could not be considered "sane". | |
5464f5a1 NN |
2776 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2777 | alias in your environment" >&5 | |
2778 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2779 | alias in your environment" >&2;} | |
2780 | { (exit 1); exit 1; }; } | |
252b5132 RH |
2781 | fi |
2782 | ||
f5385ebf | 2783 | test "$2" = conftest.file |
252b5132 RH |
2784 | ) |
2785 | then | |
2786 | # Ok. | |
2787 | : | |
2788 | else | |
5464f5a1 NN |
2789 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2790 | Check your system clock" >&5 | |
2791 | echo "$as_me: error: newly created file is older than distributed files! | |
2792 | Check your system clock" >&2;} | |
2793 | { (exit 1); exit 1; }; } | |
252b5132 | 2794 | fi |
5464f5a1 NN |
2795 | echo "$as_me:$LINENO: result: yes" >&5 |
2796 | echo "${ECHO_T}yes" >&6 | |
252b5132 | 2797 | test "$program_prefix" != NONE && |
5464f5a1 | 2798 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
252b5132 RH |
2799 | # Use a double $ so make ignores it. |
2800 | test "$program_suffix" != NONE && | |
5464f5a1 NN |
2801 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
2802 | # Double any \ or $. echo might interpret backslashes. | |
2803 | # By default was `s,x,x', remove it if useless. | |
2804 | cat <<\_ACEOF >conftest.sed | |
2805 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2806 | _ACEOF | |
2807 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
2808 | rm conftest.sed | |
2809 | ||
f5385ebf AM |
2810 | # expand $ac_aux_dir to an absolute path |
2811 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2812 | ||
2813 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2814 | # Use eval to expand $SHELL | |
2815 | if eval "$MISSING --run true"; then | |
2816 | am_missing_run="$MISSING --run " | |
2817 | else | |
2818 | am_missing_run= | |
2819 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2820 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2821 | fi | |
2822 | ||
2823 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
2824 | # We used to keeping the `.' as first argument, in order to | |
2825 | # allow $(mkdir_p) to be used without argument. As in | |
2826 | # $(mkdir_p) $(somedir) | |
2827 | # where $(somedir) is conditionally defined. However this is wrong | |
2828 | # for two reasons: | |
2829 | # 1. if the package is installed by a user who cannot write `.' | |
2830 | # make install will fail, | |
2831 | # 2. the above comment should most certainly read | |
2832 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
2833 | # so it does not work when $(somedir) is undefined and | |
2834 | # $(DESTDIR) is not. | |
2835 | # To support the latter case, we have to write | |
2836 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
2837 | # so the `.' trick is pointless. | |
2838 | mkdir_p='mkdir -p --' | |
2839 | else | |
2840 | # On NextStep and OpenStep, the `mkdir' command does not | |
2841 | # recognize any option. It will interpret all options as | |
2842 | # directories to create, and then abort because `.' already | |
2843 | # exists. | |
2844 | for d in ./-p ./--version; | |
2845 | do | |
2846 | test -d $d && rmdir $d | |
2847 | done | |
2848 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
2849 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
2850 | mkdir_p='$(mkinstalldirs)' | |
2851 | else | |
2852 | mkdir_p='$(install_sh) -d' | |
2853 | fi | |
2854 | fi | |
2855 | ||
2856 | for ac_prog in gawk mawk nawk awk | |
2857 | do | |
2858 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2859 | set dummy $ac_prog; ac_word=$2 | |
2860 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2861 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2862 | if test "${ac_cv_prog_AWK+set}" = set; then | |
2863 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2864 | else | |
2865 | if test -n "$AWK"; then | |
2866 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2867 | else | |
2868 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2869 | for as_dir in $PATH | |
2870 | do | |
2871 | IFS=$as_save_IFS | |
2872 | test -z "$as_dir" && as_dir=. | |
2873 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2874 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2875 | ac_cv_prog_AWK="$ac_prog" | |
2876 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2877 | break 2 | |
2878 | fi | |
2879 | done | |
2880 | done | |
2881 | ||
2882 | fi | |
2883 | fi | |
2884 | AWK=$ac_cv_prog_AWK | |
2885 | if test -n "$AWK"; then | |
2886 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
2887 | echo "${ECHO_T}$AWK" >&6 | |
2888 | else | |
2889 | echo "$as_me:$LINENO: result: no" >&5 | |
2890 | echo "${ECHO_T}no" >&6 | |
2891 | fi | |
2892 | ||
2893 | test -n "$AWK" && break | |
2894 | done | |
2895 | ||
5464f5a1 NN |
2896 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2897 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
2898 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
2899 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2901 | else | |
2902 | cat >conftest.make <<\_ACEOF | |
252b5132 | 2903 | all: |
5464f5a1 NN |
2904 | @echo 'ac_maketemp="$(MAKE)"' |
2905 | _ACEOF | |
252b5132 | 2906 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
5464f5a1 | 2907 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
252b5132 RH |
2908 | if test -n "$ac_maketemp"; then |
2909 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2910 | else | |
2911 | eval ac_cv_prog_make_${ac_make}_set=no | |
2912 | fi | |
5464f5a1 | 2913 | rm -f conftest.make |
252b5132 RH |
2914 | fi |
2915 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
5464f5a1 NN |
2916 | echo "$as_me:$LINENO: result: yes" >&5 |
2917 | echo "${ECHO_T}yes" >&6 | |
252b5132 RH |
2918 | SET_MAKE= |
2919 | else | |
5464f5a1 NN |
2920 | echo "$as_me:$LINENO: result: no" >&5 |
2921 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2922 | SET_MAKE="MAKE=${MAKE-make}" |
2923 | fi | |
2924 | ||
f5385ebf AM |
2925 | rm -rf .tst 2>/dev/null |
2926 | mkdir .tst 2>/dev/null | |
2927 | if test -d .tst; then | |
2928 | am__leading_dot=. | |
2929 | else | |
2930 | am__leading_dot=_ | |
2931 | fi | |
2932 | rmdir .tst 2>/dev/null | |
2933 | ||
2934 | DEPDIR="${am__leading_dot}deps" | |
2935 | ||
2936 | ac_config_commands="$ac_config_commands depfiles" | |
2937 | ||
2938 | ||
2939 | am_make=${MAKE-make} | |
2940 | cat > confinc << 'END' | |
2941 | am__doit: | |
2942 | @echo done | |
2943 | .PHONY: am__doit | |
2944 | END | |
2945 | # If we don't find an include directive, just comment out the code. | |
2946 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2947 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2948 | am__include="#" | |
2949 | am__quote= | |
2950 | _am_result=none | |
2951 | # First try GNU make style include. | |
2952 | echo "include confinc" > confmf | |
2953 | # We grep out `Entering directory' and `Leaving directory' | |
2954 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2955 | # In particular we don't look at `^make:' because GNU make might | |
2956 | # be invoked under some other name (usually "gmake"), in which | |
2957 | # case it prints its new name instead of `make'. | |
2958 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2959 | am__include=include | |
2960 | am__quote= | |
2961 | _am_result=GNU | |
2962 | fi | |
2963 | # Now try BSD make style include. | |
2964 | if test "$am__include" = "#"; then | |
2965 | echo '.include "confinc"' > confmf | |
2966 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2967 | am__include=.include | |
2968 | am__quote="\"" | |
2969 | _am_result=BSD | |
2970 | fi | |
2971 | fi | |
2972 | ||
2973 | ||
2974 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2975 | echo "${ECHO_T}$_am_result" >&6 | |
2976 | rm -f confinc confmf | |
2977 | ||
2978 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2979 | if test "${enable_dependency_tracking+set}" = set; then | |
2980 | enableval="$enable_dependency_tracking" | |
2981 | ||
2982 | fi; | |
2983 | if test "x$enable_dependency_tracking" != xno; then | |
2984 | am_depcomp="$ac_aux_dir/depcomp" | |
2985 | AMDEPBACKSLASH='\' | |
2986 | fi | |
2987 | ||
2988 | ||
2989 | if test "x$enable_dependency_tracking" != xno; then | |
2990 | AMDEP_TRUE= | |
2991 | AMDEP_FALSE='#' | |
2992 | else | |
2993 | AMDEP_TRUE='#' | |
2994 | AMDEP_FALSE= | |
2995 | fi | |
6be7c12c | 2996 | |
252b5132 | 2997 | |
252b5132 | 2998 | |
f5385ebf AM |
2999 | # test to see if srcdir already configured |
3000 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
3001 | test -f $srcdir/config.status; then | |
5464f5a1 NN |
3002 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
3003 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
3004 | { (exit 1); exit 1; }; } | |
252b5132 | 3005 | fi |
5464f5a1 | 3006 | |
f5385ebf AM |
3007 | # test whether we have cygpath |
3008 | if test -z "$CYGPATH_W"; then | |
3009 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3010 | CYGPATH_W='cygpath -w' | |
3011 | else | |
3012 | CYGPATH_W=echo | |
3013 | fi | |
3014 | fi | |
3015 | ||
3016 | ||
3017 | # Define the identity of the package. | |
3018 | PACKAGE=bfd | |
be118e79 | 3019 | VERSION=2.18.50 |
f5385ebf AM |
3020 | |
3021 | ||
5464f5a1 | 3022 | cat >>confdefs.h <<_ACEOF |
252b5132 | 3023 | #define PACKAGE "$PACKAGE" |
5464f5a1 | 3024 | _ACEOF |
252b5132 | 3025 | |
5464f5a1 NN |
3026 | |
3027 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 3028 | #define VERSION "$VERSION" |
5464f5a1 | 3029 | _ACEOF |
252b5132 | 3030 | |
f5385ebf AM |
3031 | # Some tools Automake needs. |
3032 | ||
3033 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3034 | ||
3035 | ||
3036 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3037 | ||
3038 | ||
3039 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3040 | ||
3041 | ||
3042 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3043 | ||
3044 | ||
3045 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
6be7c12c | 3046 | |
f5385ebf | 3047 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
6be7c12c | 3048 | |
f5385ebf AM |
3049 | # Installed binaries are usually stripped using `strip' when the user |
3050 | # run `make install-strip'. However `strip' might not be the right | |
3051 | # tool to use in cross-compilation environments, therefore Automake | |
3052 | # will honor the `STRIP' environment variable to overrule this program. | |
3053 | if test "$cross_compiling" != no; then | |
3054 | if test -n "$ac_tool_prefix"; then | |
3055 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3056 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3057 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3058 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3059 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
3060 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3061 | else | |
3062 | if test -n "$STRIP"; then | |
3063 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
252b5132 | 3064 | else |
f5385ebf AM |
3065 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3066 | for as_dir in $PATH | |
3067 | do | |
3068 | IFS=$as_save_IFS | |
3069 | test -z "$as_dir" && as_dir=. | |
3070 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3071 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3072 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3073 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3074 | break 2 | |
3075 | fi | |
3076 | done | |
3077 | done | |
3078 | ||
3079 | fi | |
3080 | fi | |
3081 | STRIP=$ac_cv_prog_STRIP | |
3082 | if test -n "$STRIP"; then | |
3083 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
3084 | echo "${ECHO_T}$STRIP" >&6 | |
3085 | else | |
3086 | echo "$as_me:$LINENO: result: no" >&5 | |
3087 | echo "${ECHO_T}no" >&6 | |
3088 | fi | |
3089 | ||
252b5132 | 3090 | fi |
f5385ebf AM |
3091 | if test -z "$ac_cv_prog_STRIP"; then |
3092 | ac_ct_STRIP=$STRIP | |
3093 | # Extract the first word of "strip", so it can be a program name with args. | |
3094 | set dummy strip; ac_word=$2 | |
3095 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3096 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3097 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
3098 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3099 | else | |
3100 | if test -n "$ac_ct_STRIP"; then | |
3101 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3102 | else | |
3103 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3104 | for as_dir in $PATH | |
3105 | do | |
3106 | IFS=$as_save_IFS | |
3107 | test -z "$as_dir" && as_dir=. | |
3108 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3109 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3110 | ac_cv_prog_ac_ct_STRIP="strip" | |
3111 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3112 | break 2 | |
3113 | fi | |
3114 | done | |
3115 | done | |
252b5132 | 3116 | |
f5385ebf AM |
3117 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
3118 | fi | |
3119 | fi | |
3120 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3121 | if test -n "$ac_ct_STRIP"; then | |
3122 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
3123 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
252b5132 | 3124 | else |
f5385ebf AM |
3125 | echo "$as_me:$LINENO: result: no" >&5 |
3126 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3127 | fi |
3128 | ||
f5385ebf | 3129 | STRIP=$ac_ct_STRIP |
252b5132 | 3130 | else |
f5385ebf AM |
3131 | STRIP="$ac_cv_prog_STRIP" |
3132 | fi | |
3133 | ||
252b5132 | 3134 | fi |
f5385ebf AM |
3135 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
3136 | ||
3137 | # We need awk for the "check" target. The system "awk" is bad on | |
3138 | # some platforms. | |
3139 | # Always define AMTAR for backward compatibility. | |
3140 | ||
3141 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
3142 | ||
3143 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
3144 | ||
252b5132 | 3145 | |
f5385ebf AM |
3146 | |
3147 | ||
3148 | depcc="$CC" am_compiler_list= | |
3149 | ||
3150 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3151 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
3152 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 3154 | else |
f5385ebf AM |
3155 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3156 | # We make a subdir and do the tests there. Otherwise we can end up | |
3157 | # making bogus files that we don't know about and never remove. For | |
3158 | # instance it was reported that on HP-UX the gcc test will end up | |
3159 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3160 | # in D'. | |
3161 | mkdir conftest.dir | |
3162 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3163 | # using a relative directory. | |
3164 | cp "$am_depcomp" conftest.dir | |
3165 | cd conftest.dir | |
3166 | # We will build objects and dependencies in a subdirectory because | |
3167 | # it helps to detect inapplicable dependency modes. For instance | |
3168 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3169 | # side effect of compilation, but ICC will put the dependencies in | |
3170 | # the current directory while Tru64 will put them in the object | |
3171 | # directory. | |
3172 | mkdir sub | |
3173 | ||
3174 | am_cv_CC_dependencies_compiler_type=none | |
3175 | if test "$am_compiler_list" = ""; then | |
3176 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3177 | fi | |
3178 | for depmode in $am_compiler_list; do | |
3179 | # Setup a source with many dependencies, because some compilers | |
3180 | # like to wrap large dependency lists on column 80 (with \), and | |
3181 | # we should not choose a depcomp mode which is confused by this. | |
3182 | # | |
3183 | # We need to recreate these files for each test, as the compiler may | |
3184 | # overwrite some of them when testing with obscure command lines. | |
3185 | # This happens at least with the AIX C compiler. | |
3186 | : > sub/conftest.c | |
3187 | for i in 1 2 3 4 5 6; do | |
3188 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3189 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3190 | # Solaris 8's {/usr,}/bin/sh. | |
3191 | touch sub/conftst$i.h | |
3192 | done | |
3193 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3194 | ||
3195 | case $depmode in | |
3196 | nosideeffect) | |
3197 | # after this tag, mechanisms are not by side-effect, so they'll | |
3198 | # only be used when explicitly requested | |
3199 | if test "x$enable_dependency_tracking" = xyes; then | |
3200 | continue | |
3201 | else | |
3202 | break | |
3203 | fi | |
3204 | ;; | |
3205 | none) break ;; | |
3206 | esac | |
3207 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3208 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3209 | # handle `-M -o', and we need to detect this. | |
3210 | if depmode=$depmode \ | |
3211 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3212 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3213 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3214 | >/dev/null 2>conftest.err && | |
3215 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3216 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3217 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3218 | # icc doesn't choke on unknown options, it will just issue warnings | |
3219 | # or remarks (even with -Werror). So we grep stderr for any message | |
3220 | # that says an option was ignored or not supported. | |
3221 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3222 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3223 | # The diagnosis changed in icc 8.0: | |
3224 | # icc: Command line remark: option '-MP' not supported | |
3225 | if (grep 'ignoring option' conftest.err || | |
3226 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3227 | am_cv_CC_dependencies_compiler_type=$depmode | |
3228 | break | |
3229 | fi | |
3230 | fi | |
3231 | done | |
3232 | ||
3233 | cd .. | |
3234 | rm -rf conftest.dir | |
3235 | else | |
3236 | am_cv_CC_dependencies_compiler_type=none | |
3237 | fi | |
3238 | ||
252b5132 | 3239 | fi |
f5385ebf AM |
3240 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3241 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3242 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
252b5132 | 3243 | |
f5385ebf AM |
3244 | |
3245 | ||
3246 | if | |
3247 | test "x$enable_dependency_tracking" != xno \ | |
3248 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3249 | am__fastdepCC_TRUE= | |
3250 | am__fastdepCC_FALSE='#' | |
252b5132 | 3251 | else |
f5385ebf AM |
3252 | am__fastdepCC_TRUE='#' |
3253 | am__fastdepCC_FALSE= | |
252b5132 RH |
3254 | fi |
3255 | ||
6be7c12c | 3256 | |
e43d48cc | 3257 | |
f5385ebf | 3258 | |
5464f5a1 NN |
3259 | if test -n "$ac_tool_prefix"; then |
3260 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
252b5132 | 3261 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
5464f5a1 NN |
3262 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3263 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3264 | if test "${ac_cv_prog_AR+set}" = set; then | |
3265 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3266 | else |
3267 | if test -n "$AR"; then | |
3268 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3269 | else | |
5464f5a1 NN |
3270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3271 | for as_dir in $PATH | |
3272 | do | |
3273 | IFS=$as_save_IFS | |
3274 | test -z "$as_dir" && as_dir=. | |
3275 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3276 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3277 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
3278 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3279 | break 2 | |
3280 | fi | |
3281 | done | |
3282 | done | |
3283 | ||
252b5132 RH |
3284 | fi |
3285 | fi | |
5464f5a1 | 3286 | AR=$ac_cv_prog_AR |
252b5132 | 3287 | if test -n "$AR"; then |
5464f5a1 NN |
3288 | echo "$as_me:$LINENO: result: $AR" >&5 |
3289 | echo "${ECHO_T}$AR" >&6 | |
252b5132 | 3290 | else |
5464f5a1 NN |
3291 | echo "$as_me:$LINENO: result: no" >&5 |
3292 | echo "${ECHO_T}no" >&6 | |
3293 | fi | |
3294 | ||
252b5132 | 3295 | fi |
5464f5a1 NN |
3296 | if test -z "$ac_cv_prog_AR"; then |
3297 | ac_ct_AR=$AR | |
3298 | # Extract the first word of "ar", so it can be a program name with args. | |
3299 | set dummy ar; ac_word=$2 | |
3300 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3301 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3302 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
3303 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3304 | else | |
3305 | if test -n "$ac_ct_AR"; then | |
3306 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
3307 | else | |
3308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3309 | for as_dir in $PATH | |
3310 | do | |
3311 | IFS=$as_save_IFS | |
3312 | test -z "$as_dir" && as_dir=. | |
3313 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3314 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3315 | ac_cv_prog_ac_ct_AR="ar" | |
3316 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3317 | break 2 | |
3318 | fi | |
3319 | done | |
3320 | done | |
252b5132 | 3321 | |
5464f5a1 NN |
3322 | fi |
3323 | fi | |
3324 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
3325 | if test -n "$ac_ct_AR"; then | |
3326 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
3327 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
3328 | else | |
3329 | echo "$as_me:$LINENO: result: no" >&5 | |
3330 | echo "${ECHO_T}no" >&6 | |
3331 | fi | |
252b5132 | 3332 | |
5464f5a1 NN |
3333 | AR=$ac_ct_AR |
3334 | else | |
3335 | AR="$ac_cv_prog_AR" | |
3336 | fi | |
6be7c12c | 3337 | |
5464f5a1 NN |
3338 | if test -n "$ac_tool_prefix"; then |
3339 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
252b5132 | 3340 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5464f5a1 NN |
3341 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3342 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3343 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3345 | else |
3346 | if test -n "$RANLIB"; then | |
3347 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3348 | else | |
5464f5a1 NN |
3349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3350 | for as_dir in $PATH | |
3351 | do | |
3352 | IFS=$as_save_IFS | |
3353 | test -z "$as_dir" && as_dir=. | |
3354 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3355 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3356 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3357 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3358 | break 2 | |
3359 | fi | |
3360 | done | |
3361 | done | |
3362 | ||
252b5132 RH |
3363 | fi |
3364 | fi | |
5464f5a1 | 3365 | RANLIB=$ac_cv_prog_RANLIB |
252b5132 | 3366 | if test -n "$RANLIB"; then |
5464f5a1 NN |
3367 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3368 | echo "${ECHO_T}$RANLIB" >&6 | |
252b5132 | 3369 | else |
5464f5a1 NN |
3370 | echo "$as_me:$LINENO: result: no" >&5 |
3371 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3372 | fi |
3373 | ||
5464f5a1 | 3374 | fi |
252b5132 | 3375 | if test -z "$ac_cv_prog_RANLIB"; then |
5464f5a1 | 3376 | ac_ct_RANLIB=$RANLIB |
252b5132 RH |
3377 | # Extract the first word of "ranlib", so it can be a program name with args. |
3378 | set dummy ranlib; ac_word=$2 | |
5464f5a1 NN |
3379 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3380 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3381 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3382 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 3383 | else |
5464f5a1 NN |
3384 | if test -n "$ac_ct_RANLIB"; then |
3385 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6be7c12c | 3386 | else |
5464f5a1 NN |
3387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3388 | for as_dir in $PATH | |
3389 | do | |
3390 | IFS=$as_save_IFS | |
3391 | test -z "$as_dir" && as_dir=. | |
3392 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3393 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3394 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3395 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3396 | break 2 | |
3397 | fi | |
3398 | done | |
3399 | done | |
3400 | ||
3401 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
252b5132 RH |
3402 | fi |
3403 | fi | |
5464f5a1 NN |
3404 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3405 | if test -n "$ac_ct_RANLIB"; then | |
3406 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3407 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
252b5132 | 3408 | else |
5464f5a1 NN |
3409 | echo "$as_me:$LINENO: result: no" >&5 |
3410 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3411 | fi |
3412 | ||
5464f5a1 | 3413 | RANLIB=$ac_ct_RANLIB |
252b5132 | 3414 | else |
5464f5a1 | 3415 | RANLIB="$ac_cv_prog_RANLIB" |
6be7c12c AO |
3416 | fi |
3417 | ||
252b5132 RH |
3418 | |
3419 | # Check whether --enable-shared or --disable-shared was given. | |
3420 | if test "${enable_shared+set}" = set; then | |
3421 | enableval="$enable_shared" | |
3422 | p=${PACKAGE-default} | |
d7040cdb SE |
3423 | case $enableval in |
3424 | yes) enable_shared=yes ;; | |
3425 | no) enable_shared=no ;; | |
3426 | *) | |
3427 | enable_shared=no | |
3428 | # Look at the argument we got. We use all the common list separators. | |
3429 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3430 | for pkg in $enableval; do | |
3431 | IFS="$lt_save_ifs" | |
3432 | if test "X$pkg" = "X$p"; then | |
3433 | enable_shared=yes | |
3434 | fi | |
3435 | done | |
3436 | IFS="$lt_save_ifs" | |
3437 | ;; | |
3438 | esac | |
252b5132 RH |
3439 | else |
3440 | enable_shared=no | |
5464f5a1 | 3441 | fi; |
252b5132 | 3442 | |
d7040cdb SE |
3443 | |
3444 | ||
3445 | ||
3446 | ||
3447 | ||
3448 | ||
3449 | ||
3450 | ||
cfbc9945 SE |
3451 | ac_ext=c |
3452 | ac_cpp='$CPP $CPPFLAGS' | |
3453 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3454 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3455 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3456 | if test -n "$ac_tool_prefix"; then | |
3457 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3458 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3459 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3460 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3461 | if test "${ac_cv_prog_CC+set}" = set; then | |
3462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 3463 | else |
cfbc9945 SE |
3464 | if test -n "$CC"; then |
3465 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
b2ef150d | 3466 | else |
cfbc9945 SE |
3467 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3468 | for as_dir in $PATH | |
3469 | do | |
3470 | IFS=$as_save_IFS | |
3471 | test -z "$as_dir" && as_dir=. | |
3472 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3473 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3474 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3475 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3476 | break 2 | |
3477 | fi | |
3478 | done | |
3479 | done | |
c5d1701e | 3480 | |
cfbc9945 SE |
3481 | fi |
3482 | fi | |
3483 | CC=$ac_cv_prog_CC | |
3484 | if test -n "$CC"; then | |
3485 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3486 | echo "${ECHO_T}$CC" >&6 | |
252b5132 | 3487 | else |
cfbc9945 SE |
3488 | echo "$as_me:$LINENO: result: no" >&5 |
3489 | echo "${ECHO_T}no" >&6 | |
252b5132 | 3490 | fi |
cfbc9945 SE |
3491 | |
3492 | fi | |
3493 | if test -z "$ac_cv_prog_CC"; then | |
3494 | ac_ct_CC=$CC | |
3495 | # Extract the first word of "gcc", so it can be a program name with args. | |
3496 | set dummy gcc; ac_word=$2 | |
3497 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3498 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3499 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
5464f5a1 | 3500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 3501 | else |
cfbc9945 SE |
3502 | if test -n "$ac_ct_CC"; then |
3503 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
252b5132 | 3504 | else |
cfbc9945 SE |
3505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3506 | for as_dir in $PATH | |
3507 | do | |
3508 | IFS=$as_save_IFS | |
3509 | test -z "$as_dir" && as_dir=. | |
3510 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3511 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3512 | ac_cv_prog_ac_ct_CC="gcc" | |
3513 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3514 | break 2 | |
3515 | fi | |
3516 | done | |
3517 | done | |
3518 | ||
252b5132 RH |
3519 | fi |
3520 | fi | |
cfbc9945 SE |
3521 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3522 | if test -n "$ac_ct_CC"; then | |
3523 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3524 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
252b5132 | 3525 | else |
5464f5a1 NN |
3526 | echo "$as_me:$LINENO: result: no" >&5 |
3527 | echo "${ECHO_T}no" >&6 | |
252b5132 | 3528 | fi |
cfbc9945 SE |
3529 | |
3530 | CC=$ac_ct_CC | |
3531 | else | |
3532 | CC="$ac_cv_prog_CC" | |
3533 | fi | |
3534 | ||
3535 | if test -z "$CC"; then | |
3536 | if test -n "$ac_tool_prefix"; then | |
3537 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3538 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3539 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3540 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3541 | if test "${ac_cv_prog_CC+set}" = set; then | |
5464f5a1 | 3542 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 3543 | else |
cfbc9945 SE |
3544 | if test -n "$CC"; then |
3545 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 3546 | else |
cfbc9945 SE |
3547 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3548 | for as_dir in $PATH | |
3549 | do | |
3550 | IFS=$as_save_IFS | |
3551 | test -z "$as_dir" && as_dir=. | |
3552 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3553 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3554 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3555 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3556 | break 2 | |
3557 | fi | |
3558 | done | |
3559 | done | |
3560 | ||
252b5132 RH |
3561 | fi |
3562 | fi | |
cfbc9945 SE |
3563 | CC=$ac_cv_prog_CC |
3564 | if test -n "$CC"; then | |
3565 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3566 | echo "${ECHO_T}$CC" >&6 | |
ac48eca1 | 3567 | else |
cfbc9945 SE |
3568 | echo "$as_me:$LINENO: result: no" >&5 |
3569 | echo "${ECHO_T}no" >&6 | |
ac48eca1 | 3570 | fi |
ac48eca1 | 3571 | |
cfbc9945 SE |
3572 | fi |
3573 | if test -z "$ac_cv_prog_CC"; then | |
3574 | ac_ct_CC=$CC | |
3575 | # Extract the first word of "cc", so it can be a program name with args. | |
3576 | set dummy cc; ac_word=$2 | |
3577 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3578 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3579 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
5464f5a1 | 3580 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 3581 | else |
cfbc9945 SE |
3582 | if test -n "$ac_ct_CC"; then |
3583 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
252b5132 | 3584 | else |
cfbc9945 SE |
3585 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3586 | for as_dir in $PATH | |
3587 | do | |
3588 | IFS=$as_save_IFS | |
3589 | test -z "$as_dir" && as_dir=. | |
3590 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3591 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3592 | ac_cv_prog_ac_ct_CC="cc" | |
3593 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3594 | break 2 | |
3595 | fi | |
3596 | done | |
3597 | done | |
3598 | ||
252b5132 | 3599 | fi |
cfbc9945 SE |
3600 | fi |
3601 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3602 | if test -n "$ac_ct_CC"; then | |
3603 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3604 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3605 | else | |
3606 | echo "$as_me:$LINENO: result: no" >&5 | |
3607 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3608 | fi |
3609 | ||
cfbc9945 SE |
3610 | CC=$ac_ct_CC |
3611 | else | |
3612 | CC="$ac_cv_prog_CC" | |
3613 | fi | |
252b5132 | 3614 | |
cfbc9945 SE |
3615 | fi |
3616 | if test -z "$CC"; then | |
3617 | # Extract the first word of "cc", so it can be a program name with args. | |
3618 | set dummy cc; ac_word=$2 | |
3619 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3620 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3621 | if test "${ac_cv_prog_CC+set}" = set; then | |
3622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 3623 | else |
cfbc9945 SE |
3624 | if test -n "$CC"; then |
3625 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3626 | else | |
3627 | ac_prog_rejected=no | |
3628 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3629 | for as_dir in $PATH | |
3630 | do | |
3631 | IFS=$as_save_IFS | |
3632 | test -z "$as_dir" && as_dir=. | |
3633 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3634 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3635 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3636 | ac_prog_rejected=yes | |
3637 | continue | |
3638 | fi | |
3639 | ac_cv_prog_CC="cc" | |
3640 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3641 | break 2 | |
3642 | fi | |
3643 | done | |
3644 | done | |
3645 | ||
3646 | if test $ac_prog_rejected = yes; then | |
3647 | # We found a bogon in the path, so make sure we never use it. | |
3648 | set dummy $ac_cv_prog_CC | |
3649 | shift | |
3650 | if test $# != 0; then | |
3651 | # We chose a different compiler from the bogus one. | |
3652 | # However, it has the same basename, so the bogon will be chosen | |
3653 | # first if we set CC to just the basename; use the full file name. | |
3654 | shift | |
3655 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3656 | fi | |
3657 | fi | |
3658 | fi | |
3659 | fi | |
3660 | CC=$ac_cv_prog_CC | |
3661 | if test -n "$CC"; then | |
3662 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3663 | echo "${ECHO_T}$CC" >&6 | |
3664 | else | |
3665 | echo "$as_me:$LINENO: result: no" >&5 | |
3666 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3667 | fi |
3668 | ||
cfbc9945 SE |
3669 | fi |
3670 | if test -z "$CC"; then | |
3671 | if test -n "$ac_tool_prefix"; then | |
3672 | for ac_prog in cl | |
3673 | do | |
3674 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3675 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3676 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3677 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3678 | if test "${ac_cv_prog_CC+set}" = set; then | |
5464f5a1 | 3679 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac48eca1 | 3680 | else |
cfbc9945 SE |
3681 | if test -n "$CC"; then |
3682 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3683 | else | |
3684 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3685 | for as_dir in $PATH | |
3686 | do | |
3687 | IFS=$as_save_IFS | |
3688 | test -z "$as_dir" && as_dir=. | |
3689 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3690 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3691 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3692 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3693 | break 2 | |
3694 | fi | |
3695 | done | |
3696 | done | |
ac48eca1 | 3697 | |
cfbc9945 SE |
3698 | fi |
3699 | fi | |
3700 | CC=$ac_cv_prog_CC | |
3701 | if test -n "$CC"; then | |
3702 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3703 | echo "${ECHO_T}$CC" >&6 | |
3704 | else | |
3705 | echo "$as_me:$LINENO: result: no" >&5 | |
3706 | echo "${ECHO_T}no" >&6 | |
3707 | fi | |
ac48eca1 | 3708 | |
cfbc9945 SE |
3709 | test -n "$CC" && break |
3710 | done | |
3711 | fi | |
3712 | if test -z "$CC"; then | |
3713 | ac_ct_CC=$CC | |
3714 | for ac_prog in cl | |
3715 | do | |
3716 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3717 | set dummy $ac_prog; ac_word=$2 | |
3718 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3719 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3720 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3722 | else | |
3723 | if test -n "$ac_ct_CC"; then | |
3724 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3725 | else | |
3726 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3727 | for as_dir in $PATH | |
3728 | do | |
3729 | IFS=$as_save_IFS | |
3730 | test -z "$as_dir" && as_dir=. | |
3731 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3732 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3733 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3734 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3735 | break 2 | |
3736 | fi | |
3737 | done | |
3738 | done | |
ac48eca1 | 3739 | |
cfbc9945 SE |
3740 | fi |
3741 | fi | |
3742 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3743 | if test -n "$ac_ct_CC"; then | |
3744 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3745 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3746 | else | |
3747 | echo "$as_me:$LINENO: result: no" >&5 | |
3748 | echo "${ECHO_T}no" >&6 | |
3749 | fi | |
ac48eca1 | 3750 | |
cfbc9945 SE |
3751 | test -n "$ac_ct_CC" && break |
3752 | done | |
ac48eca1 | 3753 | |
cfbc9945 SE |
3754 | CC=$ac_ct_CC |
3755 | fi | |
55c80943 | 3756 | |
cfbc9945 | 3757 | fi |
ac48eca1 | 3758 | |
ac48eca1 | 3759 | |
cfbc9945 SE |
3760 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
3761 | See \`config.log' for more details." >&5 | |
3762 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
3763 | See \`config.log' for more details." >&2;} | |
3764 | { (exit 1); exit 1; }; } | |
ac48eca1 | 3765 | |
cfbc9945 SE |
3766 | # Provide some information about the compiler. |
3767 | echo "$as_me:$LINENO:" \ | |
3768 | "checking for C compiler version" >&5 | |
3769 | ac_compiler=`set X $ac_compile; echo $2` | |
3770 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
3771 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
3772 | ac_status=$? | |
3773 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3774 | (exit $ac_status); } | |
3775 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
3776 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
3777 | ac_status=$? | |
3778 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3779 | (exit $ac_status); } | |
3780 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
3781 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
3782 | ac_status=$? | |
3783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3784 | (exit $ac_status); } | |
ac48eca1 | 3785 | |
cfbc9945 SE |
3786 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3787 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
3788 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
5464f5a1 | 3789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac48eca1 | 3790 | else |
cfbc9945 SE |
3791 | cat >conftest.$ac_ext <<_ACEOF |
3792 | /* confdefs.h. */ | |
3793 | _ACEOF | |
3794 | cat confdefs.h >>conftest.$ac_ext | |
3795 | cat >>conftest.$ac_ext <<_ACEOF | |
3796 | /* end confdefs.h. */ | |
ac48eca1 | 3797 | |
cfbc9945 SE |
3798 | int |
3799 | main () | |
3800 | { | |
3801 | #ifndef __GNUC__ | |
3802 | choke me | |
3803 | #endif | |
5464f5a1 | 3804 | |
cfbc9945 SE |
3805 | ; |
3806 | return 0; | |
3807 | } | |
3808 | _ACEOF | |
3809 | rm -f conftest.$ac_objext | |
3810 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3811 | (eval $ac_compile) 2>conftest.er1 | |
3812 | ac_status=$? | |
3813 | grep -v '^ *+' conftest.er1 >conftest.err | |
3814 | rm -f conftest.er1 | |
3815 | cat conftest.err >&5 | |
3816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3817 | (exit $ac_status); } && | |
3818 | { ac_try='test -z "$ac_c_werror_flag" | |
3819 | || test ! -s conftest.err' | |
3820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3821 | (eval $ac_try) 2>&5 | |
3822 | ac_status=$? | |
3823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3824 | (exit $ac_status); }; } && | |
3825 | { ac_try='test -s conftest.$ac_objext' | |
3826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3827 | (eval $ac_try) 2>&5 | |
3828 | ac_status=$? | |
3829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3830 | (exit $ac_status); }; }; then | |
3831 | ac_compiler_gnu=yes | |
ac48eca1 | 3832 | else |
cfbc9945 SE |
3833 | echo "$as_me: failed program was:" >&5 |
3834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3835 | ||
3836 | ac_compiler_gnu=no | |
ac48eca1 | 3837 | fi |
cfbc9945 SE |
3838 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3839 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
ac48eca1 | 3840 | |
5464f5a1 | 3841 | fi |
cfbc9945 SE |
3842 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3843 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
3844 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3845 | ac_test_CFLAGS=${CFLAGS+set} | |
3846 | ac_save_CFLAGS=$CFLAGS | |
3847 | CFLAGS="-g" | |
3848 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3849 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
3850 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
5464f5a1 | 3851 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6be7c12c | 3852 | else |
cfbc9945 SE |
3853 | cat >conftest.$ac_ext <<_ACEOF |
3854 | /* confdefs.h. */ | |
3855 | _ACEOF | |
3856 | cat confdefs.h >>conftest.$ac_ext | |
3857 | cat >>conftest.$ac_ext <<_ACEOF | |
3858 | /* end confdefs.h. */ | |
3859 | ||
3860 | int | |
3861 | main () | |
3862 | { | |
3863 | ||
3864 | ; | |
3865 | return 0; | |
3866 | } | |
3867 | _ACEOF | |
3868 | rm -f conftest.$ac_objext | |
3869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3870 | (eval $ac_compile) 2>conftest.er1 | |
3871 | ac_status=$? | |
3872 | grep -v '^ *+' conftest.er1 >conftest.err | |
3873 | rm -f conftest.er1 | |
3874 | cat conftest.err >&5 | |
3875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3876 | (exit $ac_status); } && | |
3877 | { ac_try='test -z "$ac_c_werror_flag" | |
3878 | || test ! -s conftest.err' | |
3879 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3880 | (eval $ac_try) 2>&5 | |
3881 | ac_status=$? | |
3882 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3883 | (exit $ac_status); }; } && | |
3884 | { ac_try='test -s conftest.$ac_objext' | |
3885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3886 | (eval $ac_try) 2>&5 | |
3887 | ac_status=$? | |
3888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3889 | (exit $ac_status); }; }; then | |
3890 | ac_cv_prog_cc_g=yes | |
6be7c12c | 3891 | else |
cfbc9945 SE |
3892 | echo "$as_me: failed program was:" >&5 |
3893 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5464f5a1 | 3894 | |
cfbc9945 | 3895 | ac_cv_prog_cc_g=no |
ac48eca1 | 3896 | fi |
cfbc9945 | 3897 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ac48eca1 | 3898 | fi |
cfbc9945 SE |
3899 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3900 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
3901 | if test "$ac_test_CFLAGS" = set; then | |
3902 | CFLAGS=$ac_save_CFLAGS | |
3903 | elif test $ac_cv_prog_cc_g = yes; then | |
3904 | if test "$GCC" = yes; then | |
3905 | CFLAGS="-g -O2" | |
3906 | else | |
3907 | CFLAGS="-g" | |
3908 | fi | |
ac48eca1 | 3909 | else |
cfbc9945 SE |
3910 | if test "$GCC" = yes; then |
3911 | CFLAGS="-O2" | |
3912 | else | |
3913 | CFLAGS= | |
3914 | fi | |
ac48eca1 | 3915 | fi |
cfbc9945 SE |
3916 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
3917 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3918 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
5464f5a1 | 3919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac48eca1 | 3920 | else |
cfbc9945 SE |
3921 | ac_cv_prog_cc_stdc=no |
3922 | ac_save_CC=$CC | |
3923 | cat >conftest.$ac_ext <<_ACEOF | |
3924 | /* confdefs.h. */ | |
3925 | _ACEOF | |
3926 | cat confdefs.h >>conftest.$ac_ext | |
3927 | cat >>conftest.$ac_ext <<_ACEOF | |
3928 | /* end confdefs.h. */ | |
3929 | #include <stdarg.h> | |
3930 | #include <stdio.h> | |
3931 | #include <sys/types.h> | |
3932 | #include <sys/stat.h> | |
3933 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3934 | struct buf { int x; }; | |
3935 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3936 | static char *e (p, i) | |
3937 | char **p; | |
3938 | int i; | |
3939 | { | |
3940 | return p[i]; | |
3941 | } | |
3942 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3943 | { | |
3944 | char *s; | |
3945 | va_list v; | |
3946 | va_start (v,p); | |
3947 | s = g (p, va_arg (v,int)); | |
3948 | va_end (v); | |
3949 | return s; | |
3950 | } | |
5464f5a1 | 3951 | |
cfbc9945 SE |
3952 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3953 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3954 | These don't provoke an error unfortunately, instead are silently treated | |
3955 | as 'x'. The following induces an error, until -std1 is added to get | |
3956 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3957 | array size at least. It's necessary to write '\x00'==0 to get something | |
3958 | that's true only with -std1. */ | |
3959 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3960 | ||
3961 | int test (int i, double x); | |
3962 | struct s1 {int (*f) (int a);}; | |
3963 | struct s2 {int (*f) (double a);}; | |
3964 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3965 | int argc; | |
3966 | char **argv; | |
3967 | int | |
3968 | main () | |
3969 | { | |
3970 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3971 | ; | |
3972 | return 0; | |
3973 | } | |
3974 | _ACEOF | |
3975 | # Don't try gcc -ansi; that turns off useful extensions and | |
3976 | # breaks some systems' header files. | |
3977 | # AIX -qlanglvl=ansi | |
3978 | # Ultrix and OSF/1 -std1 | |
3979 | # HP-UX 10.20 and later -Ae | |
3980 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3981 | # SVR4 -Xc -D__EXTENSIONS__ | |
3982 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3983 | do | |
3984 | CC="$ac_save_CC $ac_arg" | |
3985 | rm -f conftest.$ac_objext | |
3986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3987 | (eval $ac_compile) 2>conftest.er1 | |
3988 | ac_status=$? | |
3989 | grep -v '^ *+' conftest.er1 >conftest.err | |
3990 | rm -f conftest.er1 | |
3991 | cat conftest.err >&5 | |
3992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3993 | (exit $ac_status); } && | |
3994 | { ac_try='test -z "$ac_c_werror_flag" | |
3995 | || test ! -s conftest.err' | |
3996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3997 | (eval $ac_try) 2>&5 | |
3998 | ac_status=$? | |
3999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4000 | (exit $ac_status); }; } && | |
4001 | { ac_try='test -s conftest.$ac_objext' | |
4002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4003 | (eval $ac_try) 2>&5 | |
4004 | ac_status=$? | |
4005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4006 | (exit $ac_status); }; }; then | |
4007 | ac_cv_prog_cc_stdc=$ac_arg | |
4008 | break | |
ac48eca1 | 4009 | else |
cfbc9945 SE |
4010 | echo "$as_me: failed program was:" >&5 |
4011 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ac48eca1 | 4012 | |
5464f5a1 | 4013 | fi |
cfbc9945 | 4014 | rm -f conftest.err conftest.$ac_objext |
5464f5a1 | 4015 | done |
cfbc9945 SE |
4016 | rm -f conftest.$ac_ext conftest.$ac_objext |
4017 | CC=$ac_save_CC | |
5464f5a1 | 4018 | |
ac48eca1 | 4019 | fi |
252b5132 | 4020 | |
cfbc9945 SE |
4021 | case "x$ac_cv_prog_cc_stdc" in |
4022 | x|xno) | |
4023 | echo "$as_me:$LINENO: result: none needed" >&5 | |
4024 | echo "${ECHO_T}none needed" >&6 ;; | |
4025 | *) | |
4026 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
4027 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
4028 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
4029 | esac | |
6be7c12c | 4030 | |
cfbc9945 SE |
4031 | # Some people use a C++ compiler to compile C. Since we use `exit', |
4032 | # in C++ we need to declare it. In case someone uses the same compiler | |
4033 | # for both compiling C and C++ we need to have the C++ compiler decide | |
4034 | # the declaration of exit, since it's the most demanding environment. | |
4035 | cat >conftest.$ac_ext <<_ACEOF | |
4036 | #ifndef __cplusplus | |
4037 | choke me | |
4038 | #endif | |
4039 | _ACEOF | |
4040 | rm -f conftest.$ac_objext | |
4041 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4042 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 | 4043 | ac_status=$? |
cfbc9945 SE |
4044 | grep -v '^ *+' conftest.er1 >conftest.err |
4045 | rm -f conftest.er1 | |
4046 | cat conftest.err >&5 | |
5464f5a1 | 4047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
cfbc9945 SE |
4048 | (exit $ac_status); } && |
4049 | { ac_try='test -z "$ac_c_werror_flag" | |
4050 | || test ! -s conftest.err' | |
4051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4052 | (eval $ac_try) 2>&5 | |
5464f5a1 NN |
4053 | ac_status=$? |
4054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
cfbc9945 SE |
4055 | (exit $ac_status); }; } && |
4056 | { ac_try='test -s conftest.$ac_objext' | |
4057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4058 | (eval $ac_try) 2>&5 | |
d70c5fc7 NC |
4059 | ac_status=$? |
4060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
cfbc9945 SE |
4061 | (exit $ac_status); }; }; then |
4062 | for ac_declaration in \ | |
4063 | '' \ | |
4064 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
4065 | 'extern "C" void std::exit (int); using std::exit;' \ | |
4066 | 'extern "C" void exit (int) throw ();' \ | |
4067 | 'extern "C" void exit (int);' \ | |
4068 | 'void exit (int);' | |
4069 | do | |
4070 | cat >conftest.$ac_ext <<_ACEOF | |
4071 | /* confdefs.h. */ | |
4072 | _ACEOF | |
4073 | cat confdefs.h >>conftest.$ac_ext | |
4074 | cat >>conftest.$ac_ext <<_ACEOF | |
4075 | /* end confdefs.h. */ | |
4076 | $ac_declaration | |
4077 | #include <stdlib.h> | |
4078 | int | |
4079 | main () | |
4080 | { | |
4081 | exit (42); | |
4082 | ; | |
4083 | return 0; | |
4084 | } | |
4085 | _ACEOF | |
4086 | rm -f conftest.$ac_objext | |
4087 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4088 | (eval $ac_compile) 2>conftest.er1 | |
4089 | ac_status=$? | |
4090 | grep -v '^ *+' conftest.er1 >conftest.err | |
4091 | rm -f conftest.er1 | |
4092 | cat conftest.err >&5 | |
4093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4094 | (exit $ac_status); } && | |
4095 | { ac_try='test -z "$ac_c_werror_flag" | |
4096 | || test ! -s conftest.err' | |
4097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4098 | (eval $ac_try) 2>&5 | |
4099 | ac_status=$? | |
4100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4101 | (exit $ac_status); }; } && | |
4102 | { ac_try='test -s conftest.$ac_objext' | |
4103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4104 | (eval $ac_try) 2>&5 | |
4105 | ac_status=$? | |
4106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4107 | (exit $ac_status); }; }; then | |
4108 | : | |
b2ef150d | 4109 | else |
cfbc9945 SE |
4110 | echo "$as_me: failed program was:" >&5 |
4111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5464f5a1 | 4112 | |
cfbc9945 SE |
4113 | continue |
4114 | fi | |
4115 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4116 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
4117 | /* confdefs.h. */ |
4118 | _ACEOF | |
4119 | cat confdefs.h >>conftest.$ac_ext | |
4120 | cat >>conftest.$ac_ext <<_ACEOF | |
4121 | /* end confdefs.h. */ | |
cfbc9945 | 4122 | $ac_declaration |
5464f5a1 NN |
4123 | int |
4124 | main () | |
4125 | { | |
cfbc9945 | 4126 | exit (42); |
5464f5a1 NN |
4127 | ; |
4128 | return 0; | |
4129 | } | |
4130 | _ACEOF | |
cfbc9945 SE |
4131 | rm -f conftest.$ac_objext |
4132 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4133 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
4134 | ac_status=$? |
4135 | grep -v '^ *+' conftest.er1 >conftest.err | |
4136 | rm -f conftest.er1 | |
4137 | cat conftest.err >&5 | |
4138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4139 | (exit $ac_status); } && | |
49c96104 SE |
4140 | { ac_try='test -z "$ac_c_werror_flag" |
4141 | || test ! -s conftest.err' | |
5464f5a1 NN |
4142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4143 | (eval $ac_try) 2>&5 | |
4144 | ac_status=$? | |
4145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4146 | (exit $ac_status); }; } && | |
cfbc9945 | 4147 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
4148 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4149 | (eval $ac_try) 2>&5 | |
4150 | ac_status=$? | |
4151 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4152 | (exit $ac_status); }; }; then | |
cfbc9945 | 4153 | break |
b2ef150d | 4154 | else |
5464f5a1 NN |
4155 | echo "$as_me: failed program was:" >&5 |
4156 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4157 | ||
b2ef150d | 4158 | fi |
cfbc9945 SE |
4159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4160 | done | |
4161 | rm -f conftest* | |
4162 | if test -n "$ac_declaration"; then | |
4163 | echo '#ifdef __cplusplus' >>confdefs.h | |
4164 | echo $ac_declaration >>confdefs.h | |
4165 | echo '#endif' >>confdefs.h | |
6ec7057a | 4166 | fi |
cfbc9945 | 4167 | |
92f01d61 | 4168 | else |
cfbc9945 SE |
4169 | echo "$as_me: failed program was:" >&5 |
4170 | sed 's/^/| /' conftest.$ac_ext >&5 | |
92f01d61 | 4171 | |
cfbc9945 SE |
4172 | fi |
4173 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4174 | ac_ext=c | |
4175 | ac_cpp='$CPP $CPPFLAGS' | |
4176 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4177 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4178 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
92f01d61 JM |
4179 | |
4180 | ||
cfbc9945 SE |
4181 | cat >>confdefs.h <<\_ACEOF |
4182 | #define _GNU_SOURCE 1 | |
4183 | _ACEOF | |
a1ac8190 | 4184 | |
c428fa83 | 4185 | |
cfbc9945 | 4186 | |
d7040cdb SE |
4187 | |
4188 | ||
4189 | macro_version='2.1a' | |
4190 | macro_revision='1.2435' | |
4191 | ||
4192 | ||
4193 | ||
4194 | ||
4195 | ||
4196 | ||
4197 | ||
4198 | ||
4199 | ||
4200 | ||
4201 | ||
4202 | ||
4203 | ltmain="$ac_aux_dir/ltmain.sh" | |
4204 | ||
4205 | # Set options | |
4206 | ||
4207 | enable_dlopen=no | |
4208 | ||
4209 | ||
4210 | enable_win32_dll=no | |
4211 | ||
4212 | ||
4213 | ||
cfbc9945 SE |
4214 | # Check whether --enable-static or --disable-static was given. |
4215 | if test "${enable_static+set}" = set; then | |
4216 | enableval="$enable_static" | |
4217 | p=${PACKAGE-default} | |
d7040cdb SE |
4218 | case $enableval in |
4219 | yes) enable_static=yes ;; | |
4220 | no) enable_static=no ;; | |
4221 | *) | |
4222 | enable_static=no | |
4223 | # Look at the argument we got. We use all the common list separators. | |
4224 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4225 | for pkg in $enableval; do | |
4226 | IFS="$lt_save_ifs" | |
4227 | if test "X$pkg" = "X$p"; then | |
4228 | enable_static=yes | |
4229 | fi | |
4230 | done | |
4231 | IFS="$lt_save_ifs" | |
4232 | ;; | |
4233 | esac | |
c428fa83 | 4234 | else |
cfbc9945 SE |
4235 | enable_static=yes |
4236 | fi; | |
d7040cdb SE |
4237 | |
4238 | ||
4239 | ||
4240 | ||
4241 | ||
4242 | ||
4243 | ||
4244 | ||
4245 | ||
4246 | # Check whether --with-pic or --without-pic was given. | |
4247 | if test "${with_pic+set}" = set; then | |
4248 | withval="$with_pic" | |
4249 | pic_mode="$withval" | |
4250 | else | |
4251 | pic_mode=default | |
4252 | fi; | |
4253 | ||
4254 | test -z "$pic_mode" && pic_mode=default | |
4255 | ||
4256 | ||
4257 | ||
4258 | ||
4259 | ||
4260 | ||
4261 | ||
cfbc9945 SE |
4262 | # Check whether --enable-fast-install or --disable-fast-install was given. |
4263 | if test "${enable_fast_install+set}" = set; then | |
4264 | enableval="$enable_fast_install" | |
4265 | p=${PACKAGE-default} | |
d7040cdb SE |
4266 | case $enableval in |
4267 | yes) enable_fast_install=yes ;; | |
4268 | no) enable_fast_install=no ;; | |
4269 | *) | |
4270 | enable_fast_install=no | |
4271 | # Look at the argument we got. We use all the common list separators. | |
4272 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
4273 | for pkg in $enableval; do | |
4274 | IFS="$lt_save_ifs" | |
4275 | if test "X$pkg" = "X$p"; then | |
4276 | enable_fast_install=yes | |
4277 | fi | |
4278 | done | |
4279 | IFS="$lt_save_ifs" | |
4280 | ;; | |
4281 | esac | |
cfbc9945 SE |
4282 | else |
4283 | enable_fast_install=yes | |
4284 | fi; | |
c428fa83 | 4285 | |
d7040cdb SE |
4286 | |
4287 | ||
4288 | ||
4289 | ||
4290 | ||
4291 | ||
4292 | ||
4293 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
4294 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | |
4295 | if test "${lt_cv_path_SED+set}" = set; then | |
4296 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4297 | else | |
4298 | # Loop through the user's path and test for sed and gsed. | |
4299 | # Then use that list of sed's as ones to test for truncation. | |
4300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4301 | for as_dir in $PATH | |
4302 | do | |
4303 | IFS=$as_save_IFS | |
4304 | test -z "$as_dir" && as_dir=. | |
4305 | for lt_ac_prog in sed gsed; do | |
4306 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4307 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | |
4308 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
4309 | fi | |
4310 | done | |
4311 | done | |
4312 | done | |
4313 | IFS=$as_save_IFS | |
4314 | lt_ac_max=0 | |
4315 | lt_ac_count=0 | |
4316 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
4317 | # along with /bin/sed that truncates output. | |
4318 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
4319 | test ! -f $lt_ac_sed && continue | |
4320 | cat /dev/null > conftest.in | |
4321 | lt_ac_count=0 | |
4322 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
4323 | # Check for GNU sed and select it if it is found. | |
4324 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
4325 | lt_cv_path_SED=$lt_ac_sed | |
4326 | break | |
4327 | fi | |
4328 | while true; do | |
4329 | cat conftest.in conftest.in >conftest.tmp | |
4330 | mv conftest.tmp conftest.in | |
4331 | cp conftest.in conftest.nl | |
4332 | echo >>conftest.nl | |
4333 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
4334 | cmp -s conftest.out conftest.nl || break | |
4335 | # 10000 chars as input seems more than enough | |
4336 | test $lt_ac_count -gt 10 && break | |
4337 | lt_ac_count=`expr $lt_ac_count + 1` | |
4338 | if test $lt_ac_count -gt $lt_ac_max; then | |
4339 | lt_ac_max=$lt_ac_count | |
4340 | lt_cv_path_SED=$lt_ac_sed | |
4341 | fi | |
4342 | done | |
4343 | done | |
4344 | ||
4345 | fi | |
4346 | ||
4347 | SED=$lt_cv_path_SED | |
4348 | ||
4349 | echo "$as_me:$LINENO: result: $SED" >&5 | |
4350 | echo "${ECHO_T}$SED" >&6 | |
4351 | ||
4352 | test -z "$SED" && SED=sed | |
4353 | Xsed="$SED -e 1s/^X//" | |
4354 | ||
4355 | ||
4356 | ||
4357 | ||
4358 | ||
4359 | ||
4360 | ||
4361 | ||
4362 | ||
4363 | ||
4364 | ||
4365 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
4366 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
4367 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4369 | else | |
4370 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
4371 | then ac_cv_prog_egrep='grep -E' | |
4372 | else ac_cv_prog_egrep='egrep' | |
4373 | fi | |
4374 | fi | |
4375 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
4376 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
4377 | EGREP=$ac_cv_prog_egrep | |
4378 | ||
4379 | ||
4380 | echo "$as_me:$LINENO: checking for fgrep" >&5 | |
4381 | echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 | |
4382 | if test "${ac_cv_prog_fgrep+set}" = set; then | |
4383 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4384 | else | |
4385 | if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1 | |
4386 | then ac_cv_prog_fgrep='grep -F' | |
4387 | else ac_cv_prog_fgrep='fgrep' | |
4388 | fi | |
4389 | fi | |
4390 | echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5 | |
4391 | echo "${ECHO_T}$ac_cv_prog_fgrep" >&6 | |
4392 | FGREP=$ac_cv_prog_fgrep | |
4393 | ||
4394 | ||
4395 | test -z "$GREP" && GREP=grep | |
4396 | ||
4397 | ||
4398 | ||
4399 | ||
4400 | ||
4401 | ||
4402 | ||
4403 | ||
4404 | ||
4405 | ||
4406 | ||
4407 | ||
4408 | ||
4409 | ||
4410 | ||
4411 | ||
4412 | ||
4413 | ||
4414 | ||
cfbc9945 SE |
4415 | # Check whether --with-gnu-ld or --without-gnu-ld was given. |
4416 | if test "${with_gnu_ld+set}" = set; then | |
4417 | withval="$with_gnu_ld" | |
4418 | test "$withval" = no || with_gnu_ld=yes | |
4419 | else | |
4420 | with_gnu_ld=no | |
c428fa83 | 4421 | fi; |
cfbc9945 SE |
4422 | ac_prog=ld |
4423 | if test "$GCC" = yes; then | |
4424 | # Check if gcc -print-prog-name=ld gives a path. | |
d7040cdb SE |
4425 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
4426 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
cfbc9945 SE |
4427 | case $host in |
4428 | *-*-mingw*) | |
4429 | # gcc leaves a trailing carriage return which upsets mingw | |
4430 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
4431 | *) | |
4432 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
4433 | esac | |
4434 | case $ac_prog in | |
4435 | # Accept absolute paths. | |
d7040cdb | 4436 | [\\/]* | ?:[\\/]*) |
cfbc9945 | 4437 | re_direlt='/[^/][^/]*/\.\./' |
d7040cdb SE |
4438 | # Canonicalize the pathname of ld |
4439 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
4440 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
4441 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
cfbc9945 SE |
4442 | done |
4443 | test -z "$LD" && LD="$ac_prog" | |
4444 | ;; | |
5bd8253d | 4445 | "") |
cfbc9945 SE |
4446 | # If it fails, then pretend we aren't using GCC. |
4447 | ac_prog=ld | |
5bd8253d L |
4448 | ;; |
4449 | *) | |
cfbc9945 SE |
4450 | # If it is relative, then search for the first ld in PATH. |
4451 | with_gnu_ld=unknown | |
5bd8253d | 4452 | ;; |
cfbc9945 SE |
4453 | esac |
4454 | elif test "$with_gnu_ld" = yes; then | |
4455 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
4456 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
4457 | else | |
4458 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
4459 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
4460 | fi | |
4461 | if test "${lt_cv_path_LD+set}" = set; then | |
4462 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4463 | else | |
4464 | if test -z "$LD"; then | |
d7040cdb | 4465 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
cfbc9945 | 4466 | for ac_dir in $PATH; do |
d7040cdb | 4467 | IFS="$lt_save_ifs" |
cfbc9945 SE |
4468 | test -z "$ac_dir" && ac_dir=. |
4469 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
4470 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
4471 | # Check to see if the program is GNU ld. I'd rather use --version, | |
d7040cdb | 4472 | # but apparently some variants of GNU ld only accept -v. |
cfbc9945 | 4473 | # Break only if it was the GNU/non-GNU ld that we prefer. |
d7040cdb SE |
4474 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4475 | *GNU* | *'with BFD'*) | |
cfbc9945 | 4476 | test "$with_gnu_ld" != no && break |
d7040cdb SE |
4477 | ;; |
4478 | *) | |
cfbc9945 | 4479 | test "$with_gnu_ld" != yes && break |
d7040cdb SE |
4480 | ;; |
4481 | esac | |
cfbc9945 SE |
4482 | fi |
4483 | done | |
d7040cdb | 4484 | IFS="$lt_save_ifs" |
cfbc9945 SE |
4485 | else |
4486 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
9e9b66a9 | 4487 | fi |
1ad12f97 NC |
4488 | fi |
4489 | ||
cfbc9945 SE |
4490 | LD="$lt_cv_path_LD" |
4491 | if test -n "$LD"; then | |
4492 | echo "$as_me:$LINENO: result: $LD" >&5 | |
4493 | echo "${ECHO_T}$LD" >&6 | |
4494 | else | |
4495 | echo "$as_me:$LINENO: result: no" >&5 | |
4496 | echo "${ECHO_T}no" >&6 | |
4497 | fi | |
4498 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
4499 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
4500 | { (exit 1); exit 1; }; } | |
4501 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
4502 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
4503 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
4504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4505 | else | |
d7040cdb SE |
4506 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
4507 | case `$LD -v 2>&1 </dev/null` in | |
4508 | *GNU* | *'with BFD'*) | |
cfbc9945 | 4509 | lt_cv_prog_gnu_ld=yes |
d7040cdb SE |
4510 | ;; |
4511 | *) | |
cfbc9945 | 4512 | lt_cv_prog_gnu_ld=no |
d7040cdb SE |
4513 | ;; |
4514 | esac | |
49c96104 | 4515 | fi |
cfbc9945 SE |
4516 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4517 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
4518 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
49c96104 | 4519 | |
9e9b66a9 | 4520 | |
cfbc9945 | 4521 | |
d7040cdb SE |
4522 | |
4523 | ||
4524 | ||
4525 | ||
4526 | ||
4527 | ||
4528 | ||
4529 | echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
4530 | echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6 | |
cfbc9945 SE |
4531 | if test "${lt_cv_path_NM+set}" = set; then |
4532 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4533 | else | |
4534 | if test -n "$NM"; then | |
4535 | # Let the user override the test. | |
4536 | lt_cv_path_NM="$NM" | |
4537 | else | |
d7040cdb SE |
4538 | lt_nm_to_check="${ac_tool_prefix}nm" |
4539 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
4540 | lt_nm_to_check="$lt_nm_to_check nm" | |
4541 | fi | |
4542 | for lt_tmp_nm in $lt_nm_to_check; do | |
4543 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
4544 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
4545 | IFS="$lt_save_ifs" | |
4546 | test -z "$ac_dir" && ac_dir=. | |
4547 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
4548 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
4549 | # Check to see if the nm accepts a BSD-compat flag. | |
4550 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
4551 | # nm: unknown option "B" ignored | |
4552 | # Tru64's nm complains that /dev/null is an invalid object file | |
4553 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
4554 | */dev/null* | *'Invalid file or object type'*) | |
4555 | lt_cv_path_NM="$tmp_nm -B" | |
4556 | break | |
4557 | ;; | |
4558 | *) | |
4559 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
4560 | */dev/null*) | |
4561 | lt_cv_path_NM="$tmp_nm -p" | |
4562 | break | |
4563 | ;; | |
4564 | *) | |
4565 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
4566 | continue # so that we can try to find one that supports BSD flags | |
4567 | ;; | |
4568 | esac | |
4569 | ;; | |
4570 | esac | |
cfbc9945 | 4571 | fi |
d7040cdb SE |
4572 | done |
4573 | IFS="$lt_save_ifs" | |
cfbc9945 | 4574 | done |
d7040cdb | 4575 | : ${lt_cv_path_NM=no} |
cfbc9945 | 4576 | fi |
a2d91340 | 4577 | fi |
d7040cdb SE |
4578 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4579 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | |
4580 | if test "$lt_cv_path_NM" != "no"; then | |
4581 | NM="$lt_cv_path_NM" | |
cfbc9945 | 4582 | else |
d7040cdb SE |
4583 | # Didn't find any BSD compatible name lister, look for dumpbin. |
4584 | if test -n "$ac_tool_prefix"; then | |
4585 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4586 | do | |
4587 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4588 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4589 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4590 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4591 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then | |
cfbc9945 | 4592 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 4593 | else |
d7040cdb SE |
4594 | if test -n "$DUMPBIN"; then |
4595 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
4596 | else | |
4597 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4598 | for as_dir in $PATH | |
4599 | do | |
4600 | IFS=$as_save_IFS | |
4601 | test -z "$as_dir" && as_dir=. | |
4602 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4603 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4604 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
4605 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4606 | break 2 | |
4607 | fi | |
4608 | done | |
4609 | done | |
5464f5a1 | 4610 | |
d7040cdb SE |
4611 | fi |
4612 | fi | |
4613 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
4614 | if test -n "$DUMPBIN"; then | |
4615 | echo "$as_me:$LINENO: result: $DUMPBIN" >&5 | |
4616 | echo "${ECHO_T}$DUMPBIN" >&6 | |
4617 | else | |
4618 | echo "$as_me:$LINENO: result: no" >&5 | |
4619 | echo "${ECHO_T}no" >&6 | |
4620 | fi | |
d5fbea21 | 4621 | |
d7040cdb SE |
4622 | test -n "$DUMPBIN" && break |
4623 | done | |
4624 | fi | |
4625 | if test -z "$DUMPBIN"; then | |
4626 | ac_ct_DUMPBIN=$DUMPBIN | |
4627 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
4628 | do | |
4629 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4630 | set dummy $ac_prog; ac_word=$2 | |
4631 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4632 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
4633 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then | |
4634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4635 | else | |
4636 | if test -n "$ac_ct_DUMPBIN"; then | |
4637 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
4638 | else | |
4639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4640 | for as_dir in $PATH | |
4641 | do | |
4642 | IFS=$as_save_IFS | |
4643 | test -z "$as_dir" && as_dir=. | |
4644 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4645 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4646 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
4647 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4648 | break 2 | |
cfbc9945 | 4649 | fi |
d7040cdb SE |
4650 | done |
4651 | done | |
d5fbea21 | 4652 | |
d7040cdb SE |
4653 | fi |
4654 | fi | |
4655 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
4656 | if test -n "$ac_ct_DUMPBIN"; then | |
4657 | echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 | |
4658 | echo "${ECHO_T}$ac_ct_DUMPBIN" >&6 | |
4659 | else | |
4660 | echo "$as_me:$LINENO: result: no" >&5 | |
4661 | echo "${ECHO_T}no" >&6 | |
4662 | fi | |
d5fbea21 | 4663 | |
d7040cdb SE |
4664 | test -n "$ac_ct_DUMPBIN" && break |
4665 | done | |
4666 | test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":" | |
24443139 | 4667 | |
d7040cdb SE |
4668 | DUMPBIN=$ac_ct_DUMPBIN |
4669 | fi | |
24443139 | 4670 | |
24443139 | 4671 | |
d7040cdb SE |
4672 | if test "$DUMPBIN" != ":"; then |
4673 | NM="$DUMPBIN" | |
cfbc9945 | 4674 | fi |
d7040cdb SE |
4675 | fi |
4676 | test -z "$NM" && NM=nm | |
a703a6ea | 4677 | |
f5385ebf | 4678 | |
cfbc9945 | 4679 | |
24443139 AS |
4680 | |
4681 | ||
4682 | ||
d7040cdb SE |
4683 | echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
4684 | echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6 | |
4685 | if test "${lt_cv_nm_interface+set}" = set; then | |
4686 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4687 | else | |
4688 | lt_cv_nm_interface="BSD nm" | |
4689 | echo "int some_variable = 0;" > conftest.$ac_ext | |
6194aaab | 4690 | (eval echo "\"\$as_me:4690: $ac_compile\"" >&5) |
d7040cdb SE |
4691 | (eval "$ac_compile" 2>conftest.err) |
4692 | cat conftest.err >&5 | |
6194aaab | 4693 | (eval echo "\"\$as_me:4693: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
d7040cdb SE |
4694 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
4695 | cat conftest.err >&5 | |
6194aaab | 4696 | (eval echo "\"\$as_me:4696: output\"" >&5) |
d7040cdb SE |
4697 | cat conftest.out >&5 |
4698 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
4699 | lt_cv_nm_interface="MS dumpbin" | |
4700 | fi | |
4701 | rm -f conftest* | |
cfbc9945 | 4702 | fi |
d7040cdb SE |
4703 | echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 |
4704 | echo "${ECHO_T}$lt_cv_nm_interface" >&6 | |
a703a6ea | 4705 | |
d7040cdb SE |
4706 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4707 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
4708 | LN_S=$as_ln_s | |
4709 | if test "$LN_S" = "ln -s"; then | |
4710 | echo "$as_me:$LINENO: result: yes" >&5 | |
4711 | echo "${ECHO_T}yes" >&6 | |
4712 | else | |
4713 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
4714 | echo "${ECHO_T}no, using $LN_S" >&6 | |
4715 | fi | |
252b5132 | 4716 | |
cfbc9945 SE |
4717 | # find the maximum length of command line arguments |
4718 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
4719 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
4720 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
4721 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4722 | else | |
4723 | i=0 | |
4724 | teststring="ABCD" | |
5464f5a1 | 4725 | |
cfbc9945 SE |
4726 | case $build_os in |
4727 | msdosdjgpp*) | |
4728 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
4729 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
4730 | # during glob expansion). Even if it were fixed, the result of this | |
4731 | # check would be larger than it should be. | |
4732 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
4733 | ;; | |
5464f5a1 | 4734 | |
d7040cdb SE |
4735 | gnu*) |
4736 | # Under GNU Hurd, this test is not required because there is | |
4737 | # no limit to the length of command line arguments. | |
4738 | # Libtool will interpret -1 as no limit whatsoever | |
4739 | lt_cv_sys_max_cmd_len=-1; | |
4740 | ;; | |
4741 | ||
cfbc9945 SE |
4742 | cygwin* | mingw*) |
4743 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
4744 | # about 5 minutes as the teststring grows exponentially. | |
4745 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
4746 | # you end up with a "frozen" computer, even though with patience | |
4747 | # the test eventually succeeds (with a max line length of 256k). | |
4748 | # Instead, let's just punt: use the minimum linelength reported by | |
4749 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
4750 | lt_cv_sys_max_cmd_len=8192; | |
4751 | ;; | |
5464f5a1 | 4752 | |
cfbc9945 SE |
4753 | amigaos*) |
4754 | # On AmigaOS with pdksh, this test takes hours, literally. | |
4755 | # So we just punt and use a minimum line length of 8192. | |
4756 | lt_cv_sys_max_cmd_len=8192; | |
4757 | ;; | |
5464f5a1 | 4758 | |
cfbc9945 SE |
4759 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
4760 | # This has been around since 386BSD, at least. Likely further. | |
4761 | if test -x /sbin/sysctl; then | |
4762 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
4763 | elif test -x /usr/sbin/sysctl; then | |
4764 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
4765 | else | |
d7040cdb | 4766 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
cfbc9945 SE |
4767 | fi |
4768 | # And add a safety zone | |
4769 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4770 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4771 | ;; | |
d7040cdb SE |
4772 | |
4773 | interix*) | |
4774 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
4775 | lt_cv_sys_max_cmd_len=196608 | |
4776 | ;; | |
4777 | ||
4778 | osf*) | |
4779 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
4780 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
4781 | # nice to cause kernel panics so lets avoid the loop below. | |
4782 | # First set a reasonable default. | |
4783 | lt_cv_sys_max_cmd_len=16384 | |
4784 | # | |
4785 | if test -x /sbin/sysconfig; then | |
4786 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
4787 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
4788 | esac | |
4789 | fi | |
4790 | ;; | |
4791 | sco3.2v5*) | |
4792 | lt_cv_sys_max_cmd_len=102400 | |
4793 | ;; | |
4794 | sysv5* | sco5v6* | sysv4.2uw2*) | |
4795 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
4796 | if test -n "$kargmax"; then | |
4797 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
4798 | else | |
4799 | lt_cv_sys_max_cmd_len=32768 | |
4800 | fi | |
4801 | ;; | |
4802 | *) | |
79887925 L |
4803 | lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null` |
4804 | if test -n $lt_cv_sys_max_cmd_len; then | |
4805 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
4806 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
4807 | else | |
4808 | # Make teststring a little bigger before we do anything with it. | |
4809 | # a 1K string should be a reasonable start. | |
4810 | for i in 1 2 3 4 5 6 7 8 ; do | |
4811 | teststring=$teststring$teststring | |
4812 | done | |
4813 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
4814 | # If test is not a shell built-in, we'll probably end up computing a | |
4815 | # maximum length that is only half of the actual maximum length, but | |
4816 | # we can't tell. | |
4817 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
4818 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
4819 | test $i != 17 # 1/2 MB should be enough | |
4820 | do | |
4821 | i=`expr $i + 1` | |
4822 | teststring=$teststring$teststring | |
4823 | done | |
4824 | # Only check the string length outside the loop. | |
4825 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
4826 | teststring= | |
4827 | # Add a significant safety factor because C++ compilers can tack on | |
4828 | # massive amounts of additional arguments before passing them to the | |
4829 | # linker. It appears as though 1/2 is a usable value. | |
4830 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
4831 | fi | |
d7040cdb | 4832 | ;; |
cfbc9945 | 4833 | esac |
5464f5a1 | 4834 | |
252b5132 | 4835 | fi |
cfbc9945 | 4836 | |
d7040cdb | 4837 | if test -n $lt_cv_sys_max_cmd_len ; then |
cfbc9945 SE |
4838 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
4839 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
5464f5a1 | 4840 | else |
cfbc9945 SE |
4841 | echo "$as_me:$LINENO: result: none" >&5 |
4842 | echo "${ECHO_T}none" >&6 | |
5464f5a1 | 4843 | fi |
d7040cdb | 4844 | max_cmd_len=$lt_cv_sys_max_cmd_len |
252b5132 | 4845 | |
cfbc9945 | 4846 | |
252b5132 | 4847 | |
cfbc9945 | 4848 | |
cfbc9945 | 4849 | |
d7040cdb SE |
4850 | |
4851 | ||
4852 | : ${CP="cp -f"} | |
4853 | : ${MV="mv -f"} | |
4854 | : ${RM="rm -f"} | |
4855 | ||
4856 | echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 | |
4857 | echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6 | |
4858 | # Try some XSI features | |
4859 | xsi_shell=no | |
4860 | ( _lt_dummy="a/b/c" | |
4861 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
4862 | = c,a/b,, ) >/dev/null 2>&1 \ | |
4863 | && xsi_shell=yes | |
4864 | echo "$as_me:$LINENO: result: $xsi_shell" >&5 | |
4865 | echo "${ECHO_T}$xsi_shell" >&6 | |
4866 | ||
4867 | ||
4868 | echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 | |
4869 | echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6 | |
4870 | lt_shell_append=no | |
4871 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
4872 | >/dev/null 2>&1 \ | |
4873 | && lt_shell_append=yes | |
4874 | echo "$as_me:$LINENO: result: $lt_shell_append" >&5 | |
4875 | echo "${ECHO_T}$lt_shell_append" >&6 | |
4876 | ||
4877 | ||
4878 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
4879 | lt_unset=unset | |
5464f5a1 | 4880 | else |
d7040cdb | 4881 | lt_unset=false |
5464f5a1 | 4882 | fi |
252b5132 | 4883 | |
d7040cdb SE |
4884 | |
4885 | ||
4886 | ||
4887 | ||
4888 | # test EBCDIC or ASCII | |
4889 | case `echo X|tr X '\101'` in | |
4890 | A) # ASCII based system | |
4891 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
4892 | lt_SP2NL='tr \040 \012' | |
4893 | lt_NL2SP='tr \015\012 \040\040' | |
4894 | ;; | |
4895 | *) # EBCDIC based system | |
4896 | lt_SP2NL='tr \100 \n' | |
4897 | lt_NL2SP='tr \r\n \100\100' | |
4898 | ;; | |
4899 | esac | |
4900 | ||
4901 | ||
4902 | ||
4903 | ||
4904 | ||
4905 | ||
4906 | ||
4907 | ||
4908 | ||
4909 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
4910 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
4911 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
5464f5a1 NN |
4912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4913 | else | |
d7040cdb SE |
4914 | lt_cv_ld_reload_flag='-r' |
4915 | fi | |
4916 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
4917 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
4918 | reload_flag=$lt_cv_ld_reload_flag | |
4919 | case $reload_flag in | |
4920 | "" | " "*) ;; | |
4921 | *) reload_flag=" $reload_flag" ;; | |
4922 | esac | |
4923 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4924 | case $host_os in | |
4925 | darwin*) | |
4926 | if test "$GCC" = yes; then | |
4927 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
4928 | else | |
4929 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
4930 | fi | |
4931 | ;; | |
4932 | esac | |
4933 | ||
4934 | ||
4935 | ||
4936 | ||
4937 | ||
4938 | ||
4939 | ||
4940 | ||
4941 | ||
4942 | ||
4943 | echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 | |
4944 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6 | |
4945 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
4946 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4947 | else | |
4948 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
4949 | lt_cv_file_magic_test_file= | |
4950 | lt_cv_deplibs_check_method='unknown' | |
4951 | # Need to set the preceding variable on all platforms that support | |
4952 | # interlibrary dependencies. | |
4953 | # 'none' -- dependencies not supported. | |
4954 | # `unknown' -- same as none, but documents that we really don't know. | |
4955 | # 'pass_all' -- all dependencies passed with no checks. | |
4956 | # 'test_compile' -- check by making test program. | |
4957 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
4958 | # which responds to the $file_magic_cmd with a given extended regex. | |
4959 | # If you have `file' or equivalent on your system and you're not sure | |
4960 | # whether `pass_all' will *always* work, you probably want this one. | |
4961 | ||
4962 | case $host_os in | |
e81819a5 | 4963 | aix[4-9]*) |
d7040cdb SE |
4964 | lt_cv_deplibs_check_method=pass_all |
4965 | ;; | |
4966 | ||
4967 | beos*) | |
4968 | lt_cv_deplibs_check_method=pass_all | |
4969 | ;; | |
4970 | ||
4971 | bsdi[45]*) | |
4972 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
4973 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
4974 | lt_cv_file_magic_test_file=/shlib/libc.so | |
4975 | ;; | |
4976 | ||
4977 | cygwin*) | |
4978 | # func_win32_libid is a shell function defined in ltmain.sh | |
4979 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4980 | lt_cv_file_magic_cmd='func_win32_libid' | |
4981 | ;; | |
4982 | ||
4983 | mingw* | pw32*) | |
4984 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
4985 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
4986 | # unless we find 'file', for example because we are cross-compiling. | |
4987 | if ( file / ) >/dev/null 2>&1; then | |
4988 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
4989 | lt_cv_file_magic_cmd='func_win32_libid' | |
4990 | else | |
4991 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
4992 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
4993 | fi | |
4994 | ;; | |
4995 | ||
4996 | darwin* | rhapsody*) | |
4997 | lt_cv_deplibs_check_method=pass_all | |
cfbc9945 | 4998 | ;; |
d7040cdb SE |
4999 | |
5000 | freebsd* | dragonfly*) | |
5001 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5002 | case $host_cpu in | |
5003 | i*86 ) | |
5004 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5005 | # Let's accept both of them until this is cleared up. | |
5006 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5007 | lt_cv_file_magic_cmd=/usr/bin/file | |
5008 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5009 | ;; | |
5010 | esac | |
5011 | else | |
5012 | lt_cv_deplibs_check_method=pass_all | |
5013 | fi | |
5014 | ;; | |
5015 | ||
5016 | gnu*) | |
5017 | lt_cv_deplibs_check_method=pass_all | |
cfbc9945 | 5018 | ;; |
d7040cdb SE |
5019 | |
5020 | hpux10.20* | hpux11*) | |
5021 | lt_cv_file_magic_cmd=/usr/bin/file | |
5022 | case $host_cpu in | |
5023 | ia64*) | |
5024 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5025 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5026 | ;; | |
5027 | hppa*64*) | |
5028 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' | |
5029 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5030 | ;; | |
cfbc9945 | 5031 | *) |
d7040cdb SE |
5032 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
5033 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5034 | ;; | |
5035 | esac | |
5036 | ;; | |
6be7c12c | 5037 | |
d7040cdb SE |
5038 | interix[3-9]*) |
5039 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5040 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5041 | ;; | |
cfbc9945 | 5042 | |
d7040cdb SE |
5043 | irix5* | irix6* | nonstopux*) |
5044 | case $LD in | |
5045 | *-32|*"-32 ") libmagic=32-bit;; | |
5046 | *-n32|*"-n32 ") libmagic=N32;; | |
5047 | *-64|*"-64 ") libmagic=64-bit;; | |
5048 | *) libmagic=never-match;; | |
5049 | esac | |
5050 | lt_cv_deplibs_check_method=pass_all | |
cfbc9945 | 5051 | ;; |
cfbc9945 | 5052 | |
d7040cdb SE |
5053 | # This must be Linux ELF. |
5054 | linux* | k*bsd*-gnu) | |
5055 | lt_cv_deplibs_check_method=pass_all | |
5056 | ;; | |
5464f5a1 | 5057 | |
d7040cdb SE |
5058 | netbsd*) |
5059 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5060 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
cfbc9945 | 5061 | else |
d7040cdb | 5062 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
cfbc9945 | 5063 | fi |
d7040cdb SE |
5064 | ;; |
5065 | ||
5066 | newos6*) | |
5067 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5068 | lt_cv_file_magic_cmd=/usr/bin/file | |
5069 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5070 | ;; | |
5071 | ||
5072 | *nto* | *qnx*) | |
5073 | lt_cv_deplibs_check_method=pass_all | |
5074 | ;; | |
cfbc9945 | 5075 | |
d7040cdb SE |
5076 | openbsd*) |
5077 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5078 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5079 | else | |
5080 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
cfbc9945 SE |
5081 | fi |
5082 | ;; | |
d7040cdb SE |
5083 | |
5084 | osf3* | osf4* | osf5*) | |
5085 | lt_cv_deplibs_check_method=pass_all | |
5086 | ;; | |
5087 | ||
5088 | rdos*) | |
5089 | lt_cv_deplibs_check_method=pass_all | |
5090 | ;; | |
5091 | ||
5092 | solaris*) | |
5093 | lt_cv_deplibs_check_method=pass_all | |
5094 | ;; | |
5095 | ||
5096 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5097 | lt_cv_deplibs_check_method=pass_all | |
5098 | ;; | |
5099 | ||
5100 | sysv4 | sysv4.3*) | |
5101 | case $host_vendor in | |
5102 | motorola) | |
5103 | 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]' | |
5104 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
5105 | ;; | |
5106 | ncr) | |
5107 | lt_cv_deplibs_check_method=pass_all | |
5108 | ;; | |
5109 | sequent) | |
5110 | lt_cv_file_magic_cmd='/bin/file' | |
5111 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
5112 | ;; | |
5113 | sni) | |
5114 | lt_cv_file_magic_cmd='/bin/file' | |
5115 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
5116 | lt_cv_file_magic_test_file=/lib/libc.so | |
5117 | ;; | |
5118 | siemens) | |
5119 | lt_cv_deplibs_check_method=pass_all | |
5120 | ;; | |
5121 | pc) | |
5122 | lt_cv_deplibs_check_method=pass_all | |
5123 | ;; | |
5124 | esac | |
5125 | ;; | |
5126 | ||
5127 | tpf*) | |
5128 | lt_cv_deplibs_check_method=pass_all | |
5129 | ;; | |
cfbc9945 SE |
5130 | esac |
5131 | ||
d7040cdb SE |
5132 | fi |
5133 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
5134 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
5135 | file_magic_cmd=$lt_cv_file_magic_cmd | |
5136 | deplibs_check_method=$lt_cv_deplibs_check_method | |
5137 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
5138 | ||
5139 | ||
5140 | ||
5141 | ||
5142 | ||
5143 | ||
5144 | ||
5145 | ||
5146 | ||
5147 | ||
5148 | ||
5149 | ||
cfbc9945 | 5150 | if test -n "$ac_tool_prefix"; then |
d7040cdb SE |
5151 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
5152 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5464f5a1 NN |
5153 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5154 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
d7040cdb | 5155 | if test "${ac_cv_prog_AR+set}" = set; then |
5464f5a1 NN |
5156 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5157 | else | |
d7040cdb SE |
5158 | if test -n "$AR"; then |
5159 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5464f5a1 NN |
5160 | else |
5161 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5162 | for as_dir in $PATH | |
5163 | do | |
5164 | IFS=$as_save_IFS | |
5165 | test -z "$as_dir" && as_dir=. | |
5166 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5167 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d7040cdb | 5168 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5464f5a1 NN |
5169 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5170 | break 2 | |
5171 | fi | |
5172 | done | |
5173 | done | |
5174 | ||
5175 | fi | |
5176 | fi | |
d7040cdb SE |
5177 | AR=$ac_cv_prog_AR |
5178 | if test -n "$AR"; then | |
5179 | echo "$as_me:$LINENO: result: $AR" >&5 | |
5180 | echo "${ECHO_T}$AR" >&6 | |
5464f5a1 NN |
5181 | else |
5182 | echo "$as_me:$LINENO: result: no" >&5 | |
5183 | echo "${ECHO_T}no" >&6 | |
5184 | fi | |
5185 | ||
5464f5a1 | 5186 | fi |
d7040cdb SE |
5187 | if test -z "$ac_cv_prog_AR"; then |
5188 | ac_ct_AR=$AR | |
5189 | # Extract the first word of "ar", so it can be a program name with args. | |
5190 | set dummy ar; ac_word=$2 | |
5464f5a1 NN |
5191 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5192 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
d7040cdb | 5193 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
5464f5a1 | 5194 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 5195 | else |
d7040cdb SE |
5196 | if test -n "$ac_ct_AR"; then |
5197 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
252b5132 | 5198 | else |
5464f5a1 NN |
5199 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5200 | for as_dir in $PATH | |
5201 | do | |
5202 | IFS=$as_save_IFS | |
5203 | test -z "$as_dir" && as_dir=. | |
5204 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5205 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d7040cdb | 5206 | ac_cv_prog_ac_ct_AR="ar" |
5464f5a1 NN |
5207 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5208 | break 2 | |
5209 | fi | |
5210 | done | |
5211 | done | |
5212 | ||
d7040cdb | 5213 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
5464f5a1 NN |
5214 | fi |
5215 | fi | |
d7040cdb SE |
5216 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
5217 | if test -n "$ac_ct_AR"; then | |
5218 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
5219 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
5220 | else | |
5221 | echo "$as_me:$LINENO: result: no" >&5 | |
5464f5a1 NN |
5222 | echo "${ECHO_T}no" >&6 |
5223 | fi | |
5224 | ||
d7040cdb | 5225 | AR=$ac_ct_AR |
cfbc9945 | 5226 | else |
d7040cdb | 5227 | AR="$ac_cv_prog_AR" |
5464f5a1 | 5228 | fi |
cfbc9945 | 5229 | |
d7040cdb SE |
5230 | test -z "$AR" && AR=ar |
5231 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
5232 | ||
5233 | ||
5234 | ||
5235 | ||
5236 | ||
5237 | ||
5238 | ||
5239 | ||
5240 | ||
5241 | ||
5242 | ||
cfbc9945 SE |
5243 | if test -n "$ac_tool_prefix"; then |
5244 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
5245 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5464f5a1 NN |
5246 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5247 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
cfbc9945 | 5248 | if test "${ac_cv_prog_STRIP+set}" = set; then |
5464f5a1 NN |
5249 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5250 | else | |
cfbc9945 SE |
5251 | if test -n "$STRIP"; then |
5252 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5464f5a1 NN |
5253 | else |
5254 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5255 | for as_dir in $PATH | |
5256 | do | |
5257 | IFS=$as_save_IFS | |
5258 | test -z "$as_dir" && as_dir=. | |
5259 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5260 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
cfbc9945 | 5261 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5464f5a1 NN |
5262 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5263 | break 2 | |
5264 | fi | |
5265 | done | |
5266 | done | |
5267 | ||
5268 | fi | |
5269 | fi | |
cfbc9945 SE |
5270 | STRIP=$ac_cv_prog_STRIP |
5271 | if test -n "$STRIP"; then | |
5272 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
5273 | echo "${ECHO_T}$STRIP" >&6 | |
5464f5a1 NN |
5274 | else |
5275 | echo "$as_me:$LINENO: result: no" >&5 | |
5276 | echo "${ECHO_T}no" >&6 | |
5277 | fi | |
5278 | ||
252b5132 | 5279 | fi |
cfbc9945 SE |
5280 | if test -z "$ac_cv_prog_STRIP"; then |
5281 | ac_ct_STRIP=$STRIP | |
5282 | # Extract the first word of "strip", so it can be a program name with args. | |
5283 | set dummy strip; ac_word=$2 | |
5464f5a1 NN |
5284 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5285 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
cfbc9945 | 5286 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
5464f5a1 NN |
5287 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5288 | else | |
cfbc9945 SE |
5289 | if test -n "$ac_ct_STRIP"; then |
5290 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5464f5a1 NN |
5291 | else |
5292 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5293 | for as_dir in $PATH | |
5294 | do | |
5295 | IFS=$as_save_IFS | |
5296 | test -z "$as_dir" && as_dir=. | |
5297 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5298 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
cfbc9945 | 5299 | ac_cv_prog_ac_ct_STRIP="strip" |
5464f5a1 NN |
5300 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5301 | break 2 | |
5302 | fi | |
5303 | done | |
5304 | done | |
5305 | ||
cfbc9945 | 5306 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
5464f5a1 NN |
5307 | fi |
5308 | fi | |
cfbc9945 SE |
5309 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
5310 | if test -n "$ac_ct_STRIP"; then | |
5311 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
5312 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
5464f5a1 NN |
5313 | else |
5314 | echo "$as_me:$LINENO: result: no" >&5 | |
5315 | echo "${ECHO_T}no" >&6 | |
5316 | fi | |
5317 | ||
cfbc9945 SE |
5318 | STRIP=$ac_ct_STRIP |
5319 | else | |
5320 | STRIP="$ac_cv_prog_STRIP" | |
5464f5a1 NN |
5321 | fi |
5322 | ||
d7040cdb | 5323 | test -z "$STRIP" && STRIP=: |
5464f5a1 | 5324 | |
cfbc9945 SE |
5325 | |
5326 | ||
cfbc9945 | 5327 | |
cfbc9945 SE |
5328 | |
5329 | ||
d7040cdb SE |
5330 | if test -n "$ac_tool_prefix"; then |
5331 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
5332 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
5333 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5334 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5335 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
5336 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cfbc9945 | 5337 | else |
d7040cdb SE |
5338 | if test -n "$RANLIB"; then |
5339 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
5340 | else | |
5341 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5342 | for as_dir in $PATH | |
5343 | do | |
5344 | IFS=$as_save_IFS | |
5345 | test -z "$as_dir" && as_dir=. | |
5346 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5347 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5348 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
5349 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5350 | break 2 | |
cfbc9945 | 5351 | fi |
d7040cdb SE |
5352 | done |
5353 | done | |
cfbc9945 | 5354 | |
d7040cdb SE |
5355 | fi |
5356 | fi | |
5357 | RANLIB=$ac_cv_prog_RANLIB | |
5358 | if test -n "$RANLIB"; then | |
5359 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
5360 | echo "${ECHO_T}$RANLIB" >&6 | |
5361 | else | |
5362 | echo "$as_me:$LINENO: result: no" >&5 | |
5363 | echo "${ECHO_T}no" >&6 | |
5364 | fi | |
cfbc9945 | 5365 | |
d7040cdb SE |
5366 | fi |
5367 | if test -z "$ac_cv_prog_RANLIB"; then | |
5368 | ac_ct_RANLIB=$RANLIB | |
5369 | # Extract the first word of "ranlib", so it can be a program name with args. | |
5370 | set dummy ranlib; ac_word=$2 | |
5371 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5372 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5373 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
5374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5375 | else | |
5376 | if test -n "$ac_ct_RANLIB"; then | |
5377 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
5378 | else | |
5379 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5380 | for as_dir in $PATH | |
5381 | do | |
5382 | IFS=$as_save_IFS | |
5383 | test -z "$as_dir" && as_dir=. | |
5384 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5385 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5386 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
5387 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5388 | break 2 | |
cfbc9945 | 5389 | fi |
d7040cdb SE |
5390 | done |
5391 | done | |
cfbc9945 | 5392 | |
d7040cdb SE |
5393 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
5394 | fi | |
5395 | fi | |
5396 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
5397 | if test -n "$ac_ct_RANLIB"; then | |
5398 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
5399 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
cfbc9945 | 5400 | else |
d7040cdb SE |
5401 | echo "$as_me:$LINENO: result: no" >&5 |
5402 | echo "${ECHO_T}no" >&6 | |
5403 | fi | |
5464f5a1 | 5404 | |
d7040cdb SE |
5405 | RANLIB=$ac_ct_RANLIB |
5406 | else | |
5407 | RANLIB="$ac_cv_prog_RANLIB" | |
5408 | fi | |
5464f5a1 | 5409 | |
d7040cdb | 5410 | test -z "$RANLIB" && RANLIB=: |
5464f5a1 | 5411 | |
5464f5a1 | 5412 | |
5464f5a1 | 5413 | |
cfbc9945 | 5414 | |
cfbc9945 | 5415 | |
d7040cdb SE |
5416 | |
5417 | # Determine commands to create old-style static archives. | |
5418 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
5419 | old_postinstall_cmds='chmod 644 $oldlib' | |
5420 | old_postuninstall_cmds= | |
5421 | ||
5422 | if test -n "$RANLIB"; then | |
5423 | case $host_os in | |
5424 | openbsd*) | |
5425 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
5426 | ;; | |
5427 | *) | |
5428 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
5429 | ;; | |
5430 | esac | |
5431 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
cfbc9945 | 5432 | fi |
cfbc9945 SE |
5433 | |
5434 | ||
cfbc9945 SE |
5435 | |
5436 | ||
cfbc9945 | 5437 | |
cfbc9945 | 5438 | |
cfbc9945 | 5439 | |
cfbc9945 | 5440 | |
cfbc9945 SE |
5441 | |
5442 | ||
cfbc9945 | 5443 | |
cfbc9945 | 5444 | |
cfbc9945 SE |
5445 | |
5446 | ||
5447 | ||
5448 | ||
5449 | ||
5450 | ||
5451 | ||
5464f5a1 | 5452 | |
5464f5a1 | 5453 | |
cfbc9945 SE |
5454 | |
5455 | ||
5456 | ||
5464f5a1 | 5457 | |
5464f5a1 | 5458 | |
cfbc9945 SE |
5459 | |
5460 | ||
5461 | ||
5464f5a1 | 5462 | |
cfbc9945 SE |
5463 | |
5464 | ||
5465 | ||
5466 | ||
d7040cdb SE |
5467 | # If no C compiler was specified, use CC. |
5468 | LTCC=${LTCC-"$CC"} | |
cfbc9945 | 5469 | |
d7040cdb SE |
5470 | # If no C compiler flags were specified, use CFLAGS. |
5471 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
cfbc9945 | 5472 | |
d7040cdb SE |
5473 | # Allow CC to be a program name with arguments. |
5474 | compiler=$CC | |
cfbc9945 | 5475 | |
cfbc9945 | 5476 | |
d7040cdb SE |
5477 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
5478 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
5479 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | |
5480 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
5481 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5482 | else | |
5464f5a1 | 5483 | |
d7040cdb SE |
5484 | # These are sane defaults that work on at least a few old systems. |
5485 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5464f5a1 | 5486 | |
d7040cdb SE |
5487 | # Character class describing NM global symbol codes. |
5488 | symcode='[BCDEGRST]' | |
5489 | ||
5490 | # Regexp to match symbols that can be accessed directly from C. | |
5491 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
5492 | ||
5493 | # Define system-specific variables. | |
5494 | case $host_os in | |
5495 | aix*) | |
5496 | symcode='[BCDT]' | |
5497 | ;; | |
5498 | cygwin* | mingw* | pw32*) | |
5499 | symcode='[ABCDGISTW]' | |
5500 | ;; | |
5501 | hpux*) | |
5502 | if test "$host_cpu" = ia64; then | |
5503 | symcode='[ABCDEGRST]' | |
5504 | fi | |
5505 | ;; | |
5506 | irix* | nonstopux*) | |
5507 | symcode='[BCDEGRST]' | |
5508 | ;; | |
5509 | osf*) | |
5510 | symcode='[BCDEGQRST]' | |
5511 | ;; | |
5512 | solaris*) | |
5513 | symcode='[BDRT]' | |
5514 | ;; | |
5515 | sco3.2v5*) | |
5516 | symcode='[DT]' | |
5517 | ;; | |
5518 | sysv4.2uw2*) | |
5519 | symcode='[DT]' | |
5520 | ;; | |
5521 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
5522 | symcode='[ABDT]' | |
5523 | ;; | |
5524 | sysv4) | |
5525 | symcode='[DFNSTU]' | |
5526 | ;; | |
cfbc9945 | 5527 | esac |
5464f5a1 | 5528 | |
d7040cdb SE |
5529 | # If we're using GNU nm, then use its standard symbol codes. |
5530 | case `$NM -V 2>&1` in | |
5531 | *GNU* | *'with BFD'*) | |
5532 | symcode='[ABCDGIRSTW]' ;; | |
5533 | esac | |
5464f5a1 | 5534 | |
d7040cdb SE |
5535 | # Transform an extracted symbol line into a proper C declaration. |
5536 | # Some systems (esp. on ia64) link data and code symbols differently, | |
5537 | # so use this general approach. | |
5538 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5464f5a1 | 5539 | |
d7040cdb SE |
5540 | # Transform an extracted symbol line into symbol name and symbol address |
5541 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
5464f5a1 | 5542 | |
d7040cdb SE |
5543 | # Handle CRLF in mingw tool chain |
5544 | opt_cr= | |
5545 | case $build_os in | |
5546 | mingw*) | |
5547 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
5548 | ;; | |
5549 | esac | |
5464f5a1 | 5550 | |
d7040cdb SE |
5551 | # Try without a prefix underscore, then with it. |
5552 | for ac_symprfx in "" "_"; do | |
5553 | ||
5554 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
5555 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
5556 | ||
5557 | # Write the raw and C identifiers. | |
5558 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
5559 | # Fake it for dumpbin and say T for any non-static function | |
5560 | # and D for any global variable. | |
5561 | # Also find C++ and __fastcall symbols from MSVC++, | |
5562 | # which start with @ or ?. | |
5563 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
5564 | " {last_section=section; section=\$ 3};"\ | |
5565 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
5566 | " \$ 0!~/External *\|/{next};"\ | |
5567 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
5568 | " {if(hide[section]) next};"\ | |
5569 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
5570 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
5571 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
5572 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
5573 | " ' prfx=^$ac_symprfx" | |
5574 | else | |
5575 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
5576 | fi | |
cfbc9945 | 5577 | |
d7040cdb SE |
5578 | # Check to see that the pipe works correctly. |
5579 | pipe_works=no | |
cfbc9945 | 5580 | |
d7040cdb SE |
5581 | rm -f conftest* |
5582 | cat > conftest.$ac_ext <<_LT_EOF | |
5583 | #ifdef __cplusplus | |
5584 | extern "C" { | |
5585 | #endif | |
5586 | char nm_test_var; | |
5587 | void nm_test_func(void); | |
5588 | void nm_test_func(void){} | |
5589 | #ifdef __cplusplus | |
5590 | } | |
5591 | #endif | |
5592 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
5593 | _LT_EOF | |
cfbc9945 | 5594 | |
d7040cdb SE |
5595 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5596 | (eval $ac_compile) 2>&5 | |
5597 | ac_status=$? | |
5598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5599 | (exit $ac_status); }; then | |
5600 | # Now try to grab the symbols. | |
5601 | nlist=conftest.nm | |
5602 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
5603 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
5604 | ac_status=$? | |
5605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5606 | (exit $ac_status); } && test -s "$nlist"; then | |
5607 | # Try sorting and uniquifying the output. | |
5608 | if sort "$nlist" | uniq > "$nlist"T; then | |
5609 | mv -f "$nlist"T "$nlist" | |
5610 | else | |
5611 | rm -f "$nlist"T | |
5612 | fi | |
cfbc9945 | 5613 | |
d7040cdb SE |
5614 | # Make sure that we snagged all the symbols we need. |
5615 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
5616 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
5617 | cat <<_LT_EOF > conftest.$ac_ext | |
5618 | #ifdef __cplusplus | |
5619 | extern "C" { | |
5620 | #endif | |
cfbc9945 | 5621 | |
d7040cdb SE |
5622 | _LT_EOF |
5623 | # Now generate the symbol file. | |
5624 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
5464f5a1 | 5625 | |
d7040cdb | 5626 | cat <<_LT_EOF >> conftest.$ac_ext |
cfbc9945 | 5627 | |
d7040cdb SE |
5628 | /* The mapping between symbol names and symbols. */ |
5629 | const struct { | |
5630 | const char *name; | |
5631 | void *address; | |
5632 | } | |
5633 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
5634 | { | |
5635 | { "@PROGRAM@", (void *) 0 }, | |
5636 | _LT_EOF | |
5637 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
5638 | cat <<\_LT_EOF >> conftest.$ac_ext | |
5639 | {0, (void *) 0} | |
5640 | }; | |
5641 | ||
5642 | /* This works around a problem in FreeBSD linker */ | |
5643 | #ifdef FREEBSD_WORKAROUND | |
5644 | static const void *lt_preloaded_setup() { | |
5645 | return lt__PROGRAM__LTX_preloaded_symbols; | |
5646 | } | |
5647 | #endif | |
cfbc9945 | 5648 | |
d7040cdb SE |
5649 | #ifdef __cplusplus |
5650 | } | |
5651 | #endif | |
5652 | _LT_EOF | |
5653 | # Now try linking the two files. | |
5654 | mv conftest.$ac_objext conftstm.$ac_objext | |
5655 | lt_save_LIBS="$LIBS" | |
5656 | lt_save_CFLAGS="$CFLAGS" | |
5657 | LIBS="conftstm.$ac_objext" | |
5658 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
5659 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5660 | (eval $ac_link) 2>&5 | |
5661 | ac_status=$? | |
5662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5663 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
5664 | pipe_works=yes | |
5665 | fi | |
5666 | LIBS="$lt_save_LIBS" | |
5667 | CFLAGS="$lt_save_CFLAGS" | |
5668 | else | |
5669 | echo "cannot find nm_test_func in $nlist" >&5 | |
5670 | fi | |
5671 | else | |
5672 | echo "cannot find nm_test_var in $nlist" >&5 | |
5673 | fi | |
5674 | else | |
5675 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
5676 | fi | |
5677 | else | |
5678 | echo "$progname: failed program was:" >&5 | |
5679 | cat conftest.$ac_ext >&5 | |
5680 | fi | |
5681 | rm -f conftest* conftst* | |
cfbc9945 | 5682 | |
d7040cdb SE |
5683 | # Do not use the global_symbol_pipe unless it works. |
5684 | if test "$pipe_works" = yes; then | |
5685 | break | |
5686 | else | |
5687 | lt_cv_sys_global_symbol_pipe= | |
5688 | fi | |
5689 | done | |
cfbc9945 | 5690 | |
252b5132 | 5691 | fi |
5464f5a1 | 5692 | |
d7040cdb SE |
5693 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
5694 | lt_cv_sys_global_symbol_to_cdecl= | |
5695 | fi | |
5696 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
5697 | echo "$as_me:$LINENO: result: failed" >&5 | |
5698 | echo "${ECHO_T}failed" >&6 | |
b3baf5d0 | 5699 | else |
d7040cdb SE |
5700 | echo "$as_me:$LINENO: result: ok" >&5 |
5701 | echo "${ECHO_T}ok" >&6 | |
5702 | fi | |
5464f5a1 | 5703 | |
cfbc9945 | 5704 | |
b3baf5d0 | 5705 | |
cfbc9945 SE |
5706 | |
5707 | ||
5708 | ||
5709 | ||
5464f5a1 | 5710 | |
4a2a2686 HPN |
5711 | |
5712 | ||
5713 | ||
cfbc9945 SE |
5714 | |
5715 | ||
cfbc9945 | 5716 | |
cfbc9945 | 5717 | |
9d7cbccd | 5718 | |
20e95c23 | 5719 | |
d7040cdb SE |
5720 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
5721 | if test "${enable_libtool_lock+set}" = set; then | |
5722 | enableval="$enable_libtool_lock" | |
20e95c23 | 5723 | |
d7040cdb SE |
5724 | fi; |
5725 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
20e95c23 | 5726 | |
d7040cdb SE |
5727 | # Some flags need to be propagated to the compiler or linker for good |
5728 | # libtool support. | |
5729 | case $host in | |
5730 | ia64-*-hpux*) | |
5731 | # Find out which ABI we are using. | |
5732 | echo 'int i;' > conftest.$ac_ext | |
5733 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5734 | (eval $ac_compile) 2>&5 | |
5735 | ac_status=$? | |
5736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5737 | (exit $ac_status); }; then | |
5738 | case `/usr/bin/file conftest.$ac_objext` in | |
5739 | *ELF-32*) | |
5740 | HPUX_IA64_MODE="32" | |
5741 | ;; | |
5742 | *ELF-64*) | |
5743 | HPUX_IA64_MODE="64" | |
5744 | ;; | |
20e95c23 | 5745 | esac |
d7040cdb SE |
5746 | fi |
5747 | rm -rf conftest* | |
5748 | ;; | |
5749 | *-*-irix6*) | |
5750 | # Find out which ABI we are using. | |
6194aaab | 5751 | echo '#line 5751 "configure"' > conftest.$ac_ext |
d7040cdb SE |
5752 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5753 | (eval $ac_compile) 2>&5 | |
5754 | ac_status=$? | |
5755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5756 | (exit $ac_status); }; then | |
5757 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
5758 | case `/usr/bin/file conftest.$ac_objext` in | |
5759 | *32-bit*) | |
5760 | LD="${LD-ld} -melf32bsmip" | |
5761 | ;; | |
5762 | *N32*) | |
5763 | LD="${LD-ld} -melf32bmipn32" | |
5764 | ;; | |
5765 | *64-bit*) | |
5766 | LD="${LD-ld} -melf64bmip" | |
5767 | ;; | |
5768 | esac | |
20e95c23 | 5769 | else |
d7040cdb SE |
5770 | case `/usr/bin/file conftest.$ac_objext` in |
5771 | *32-bit*) | |
5772 | LD="${LD-ld} -32" | |
5773 | ;; | |
5774 | *N32*) | |
5775 | LD="${LD-ld} -n32" | |
5776 | ;; | |
5777 | *64-bit*) | |
5778 | LD="${LD-ld} -64" | |
5779 | ;; | |
20e95c23 DJ |
5780 | esac |
5781 | fi | |
d7040cdb SE |
5782 | fi |
5783 | rm -rf conftest* | |
5784 | ;; | |
20e95c23 | 5785 | |
d7040cdb SE |
5786 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
5787 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
5788 | # Find out which ABI we are using. | |
5789 | echo 'int i;' > conftest.$ac_ext | |
5790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5791 | (eval $ac_compile) 2>&5 | |
5792 | ac_status=$? | |
5793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5794 | (exit $ac_status); }; then | |
5795 | case `/usr/bin/file conftest.o` in | |
5796 | *32-bit*) | |
5797 | case $host in | |
5798 | x86_64-*kfreebsd*-gnu) | |
5799 | LD="${LD-ld} -m elf_i386_fbsd" | |
5800 | ;; | |
5801 | x86_64-*linux*) | |
5802 | LD="${LD-ld} -m elf_i386" | |
5803 | ;; | |
5804 | ppc64-*linux*|powerpc64-*linux*) | |
5805 | LD="${LD-ld} -m elf32ppclinux" | |
5806 | ;; | |
5807 | s390x-*linux*) | |
5808 | LD="${LD-ld} -m elf_s390" | |
5809 | ;; | |
5810 | sparc64-*linux*) | |
5811 | LD="${LD-ld} -m elf32_sparc" | |
5812 | ;; | |
5813 | esac | |
5814 | ;; | |
5815 | *64-bit*) | |
5816 | case $host in | |
5817 | x86_64-*kfreebsd*-gnu) | |
5818 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
5819 | ;; | |
5820 | x86_64-*linux*) | |
5821 | LD="${LD-ld} -m elf_x86_64" | |
5822 | ;; | |
5823 | ppc*-*linux*|powerpc*-*linux*) | |
5824 | LD="${LD-ld} -m elf64ppc" | |
5825 | ;; | |
5826 | s390*-*linux*|s390*-*tpf*) | |
5827 | LD="${LD-ld} -m elf64_s390" | |
5828 | ;; | |
5829 | sparc*-*linux*) | |
5830 | LD="${LD-ld} -m elf64_sparc" | |
5831 | ;; | |
5832 | esac | |
5833 | ;; | |
20e95c23 DJ |
5834 | esac |
5835 | fi | |
d7040cdb SE |
5836 | rm -rf conftest* |
5837 | ;; | |
20e95c23 | 5838 | |
d7040cdb SE |
5839 | *-*-sco3.2v5*) |
5840 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
5841 | SAVE_CFLAGS="$CFLAGS" | |
5842 | CFLAGS="$CFLAGS -belf" | |
5843 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
5844 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
5845 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
5846 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 5847 | else |
d7040cdb SE |
5848 | ac_ext=c |
5849 | ac_cpp='$CPP $CPPFLAGS' | |
5850 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5851 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5852 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20e95c23 | 5853 | |
d7040cdb SE |
5854 | cat >conftest.$ac_ext <<_ACEOF |
5855 | /* confdefs.h. */ | |
5856 | _ACEOF | |
5857 | cat confdefs.h >>conftest.$ac_ext | |
5858 | cat >>conftest.$ac_ext <<_ACEOF | |
5859 | /* end confdefs.h. */ | |
20e95c23 | 5860 | |
d7040cdb SE |
5861 | int |
5862 | main () | |
5863 | { | |
20e95c23 | 5864 | |
d7040cdb SE |
5865 | ; |
5866 | return 0; | |
5867 | } | |
5868 | _ACEOF | |
5869 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5870 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5871 | (eval $ac_link) 2>conftest.er1 | |
5872 | ac_status=$? | |
5873 | grep -v '^ *+' conftest.er1 >conftest.err | |
5874 | rm -f conftest.er1 | |
5875 | cat conftest.err >&5 | |
5876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5877 | (exit $ac_status); } && | |
5878 | { ac_try='test -z "$ac_c_werror_flag" | |
5879 | || test ! -s conftest.err' | |
5880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5881 | (eval $ac_try) 2>&5 | |
5882 | ac_status=$? | |
5883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5884 | (exit $ac_status); }; } && | |
5885 | { ac_try='test -s conftest$ac_exeext' | |
5886 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5887 | (eval $ac_try) 2>&5 | |
5888 | ac_status=$? | |
5889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5890 | (exit $ac_status); }; }; then | |
5891 | lt_cv_cc_needs_belf=yes | |
5892 | else | |
5893 | echo "$as_me: failed program was:" >&5 | |
5894 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5895 | ||
5896 | lt_cv_cc_needs_belf=no | |
5897 | fi | |
5898 | rm -f conftest.err conftest.$ac_objext \ | |
5899 | conftest$ac_exeext conftest.$ac_ext | |
5900 | ac_ext=c | |
5901 | ac_cpp='$CPP $CPPFLAGS' | |
5902 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5903 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5904 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5905 | ||
5906 | fi | |
5907 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
5908 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
5909 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
5910 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
5911 | CFLAGS="$SAVE_CFLAGS" | |
5912 | fi | |
5913 | ;; | |
5914 | sparc*-*solaris*) | |
5915 | # Find out which ABI we are using. | |
5916 | echo 'int i;' > conftest.$ac_ext | |
5917 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5918 | (eval $ac_compile) 2>&5 | |
5919 | ac_status=$? | |
5920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5921 | (exit $ac_status); }; then | |
5922 | case `/usr/bin/file conftest.o` in | |
5923 | *64-bit*) | |
5924 | case $lt_cv_prog_gnu_ld in | |
5925 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
5926 | *) LD="${LD-ld} -64" ;; | |
5927 | esac | |
5928 | ;; | |
5929 | esac | |
5930 | fi | |
5931 | rm -rf conftest* | |
5932 | ;; | |
5933 | esac | |
5934 | ||
5935 | need_locks="$enable_libtool_lock" | |
5936 | ||
5937 | ac_ext=c | |
5938 | ac_cpp='$CPP $CPPFLAGS' | |
5939 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5940 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5941 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
5942 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
5943 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
5944 | # On Suns, sometimes $CPP names a directory. | |
5945 | if test -n "$CPP" && test -d "$CPP"; then | |
5946 | CPP= | |
5947 | fi | |
5948 | if test -z "$CPP"; then | |
5949 | if test "${ac_cv_prog_CPP+set}" = set; then | |
5950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5951 | else | |
5952 | # Double quotes because CPP needs to be expanded | |
5953 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
5954 | do | |
5955 | ac_preproc_ok=false | |
5956 | for ac_c_preproc_warn_flag in '' yes | |
5957 | do | |
5958 | # Use a header file that comes with gcc, so configuring glibc | |
5959 | # with a fresh cross-compiler works. | |
5960 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5961 | # <limits.h> exists even on freestanding compilers. | |
5962 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5963 | # not just through cpp. "Syntax error" is here to catch this case. | |
5964 | cat >conftest.$ac_ext <<_ACEOF | |
5965 | /* confdefs.h. */ | |
5966 | _ACEOF | |
5967 | cat confdefs.h >>conftest.$ac_ext | |
5968 | cat >>conftest.$ac_ext <<_ACEOF | |
5969 | /* end confdefs.h. */ | |
5970 | #ifdef __STDC__ | |
5971 | # include <limits.h> | |
5972 | #else | |
5973 | # include <assert.h> | |
5974 | #endif | |
5975 | Syntax error | |
5976 | _ACEOF | |
5977 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5978 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5979 | ac_status=$? | |
5980 | grep -v '^ *+' conftest.er1 >conftest.err | |
5981 | rm -f conftest.er1 | |
5982 | cat conftest.err >&5 | |
5983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5984 | (exit $ac_status); } >/dev/null; then | |
5985 | if test -s conftest.err; then | |
5986 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5987 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5988 | else | |
5989 | ac_cpp_err= | |
5990 | fi | |
5991 | else | |
5992 | ac_cpp_err=yes | |
5993 | fi | |
5994 | if test -z "$ac_cpp_err"; then | |
5995 | : | |
5996 | else | |
5997 | echo "$as_me: failed program was:" >&5 | |
5998 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5999 | ||
6000 | # Broken: fails on valid input. | |
6001 | continue | |
6002 | fi | |
6003 | rm -f conftest.err conftest.$ac_ext | |
6004 | ||
6005 | # OK, works on sane cases. Now check whether non-existent headers | |
6006 | # can be detected and how. | |
6007 | cat >conftest.$ac_ext <<_ACEOF | |
6008 | /* confdefs.h. */ | |
6009 | _ACEOF | |
6010 | cat confdefs.h >>conftest.$ac_ext | |
6011 | cat >>conftest.$ac_ext <<_ACEOF | |
6012 | /* end confdefs.h. */ | |
6013 | #include <ac_nonexistent.h> | |
6014 | _ACEOF | |
6015 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6016 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6017 | ac_status=$? | |
6018 | grep -v '^ *+' conftest.er1 >conftest.err | |
6019 | rm -f conftest.er1 | |
6020 | cat conftest.err >&5 | |
6021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6022 | (exit $ac_status); } >/dev/null; then | |
6023 | if test -s conftest.err; then | |
6024 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6025 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6026 | else | |
6027 | ac_cpp_err= | |
6028 | fi | |
6029 | else | |
6030 | ac_cpp_err=yes | |
6031 | fi | |
6032 | if test -z "$ac_cpp_err"; then | |
6033 | # Broken: success on invalid input. | |
6034 | continue | |
6035 | else | |
6036 | echo "$as_me: failed program was:" >&5 | |
6037 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6038 | ||
6039 | # Passes both tests. | |
6040 | ac_preproc_ok=: | |
6041 | break | |
6042 | fi | |
6043 | rm -f conftest.err conftest.$ac_ext | |
6044 | ||
6045 | done | |
6046 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6047 | rm -f conftest.err conftest.$ac_ext | |
6048 | if $ac_preproc_ok; then | |
6049 | break | |
6050 | fi | |
6051 | ||
6052 | done | |
6053 | ac_cv_prog_CPP=$CPP | |
6054 | ||
6055 | fi | |
6056 | CPP=$ac_cv_prog_CPP | |
6057 | else | |
6058 | ac_cv_prog_CPP=$CPP | |
6059 | fi | |
6060 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
6061 | echo "${ECHO_T}$CPP" >&6 | |
6062 | ac_preproc_ok=false | |
6063 | for ac_c_preproc_warn_flag in '' yes | |
6064 | do | |
6065 | # Use a header file that comes with gcc, so configuring glibc | |
6066 | # with a fresh cross-compiler works. | |
6067 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6068 | # <limits.h> exists even on freestanding compilers. | |
6069 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
6070 | # not just through cpp. "Syntax error" is here to catch this case. | |
6071 | cat >conftest.$ac_ext <<_ACEOF | |
6072 | /* confdefs.h. */ | |
6073 | _ACEOF | |
6074 | cat confdefs.h >>conftest.$ac_ext | |
6075 | cat >>conftest.$ac_ext <<_ACEOF | |
6076 | /* end confdefs.h. */ | |
6077 | #ifdef __STDC__ | |
6078 | # include <limits.h> | |
6079 | #else | |
6080 | # include <assert.h> | |
6081 | #endif | |
6082 | Syntax error | |
6083 | _ACEOF | |
6084 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6085 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6086 | ac_status=$? | |
6087 | grep -v '^ *+' conftest.er1 >conftest.err | |
6088 | rm -f conftest.er1 | |
6089 | cat conftest.err >&5 | |
6090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6091 | (exit $ac_status); } >/dev/null; then | |
6092 | if test -s conftest.err; then | |
6093 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6094 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6095 | else | |
6096 | ac_cpp_err= | |
6097 | fi | |
6098 | else | |
6099 | ac_cpp_err=yes | |
6100 | fi | |
6101 | if test -z "$ac_cpp_err"; then | |
6102 | : | |
6103 | else | |
6104 | echo "$as_me: failed program was:" >&5 | |
6105 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6106 | ||
6107 | # Broken: fails on valid input. | |
6108 | continue | |
6109 | fi | |
6110 | rm -f conftest.err conftest.$ac_ext | |
6111 | ||
6112 | # OK, works on sane cases. Now check whether non-existent headers | |
6113 | # can be detected and how. | |
6114 | cat >conftest.$ac_ext <<_ACEOF | |
6115 | /* confdefs.h. */ | |
6116 | _ACEOF | |
6117 | cat confdefs.h >>conftest.$ac_ext | |
6118 | cat >>conftest.$ac_ext <<_ACEOF | |
6119 | /* end confdefs.h. */ | |
6120 | #include <ac_nonexistent.h> | |
6121 | _ACEOF | |
6122 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6123 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6124 | ac_status=$? | |
6125 | grep -v '^ *+' conftest.er1 >conftest.err | |
6126 | rm -f conftest.er1 | |
6127 | cat conftest.err >&5 | |
6128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6129 | (exit $ac_status); } >/dev/null; then | |
6130 | if test -s conftest.err; then | |
6131 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6132 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6133 | else | |
6134 | ac_cpp_err= | |
6135 | fi | |
6136 | else | |
6137 | ac_cpp_err=yes | |
6138 | fi | |
6139 | if test -z "$ac_cpp_err"; then | |
6140 | # Broken: success on invalid input. | |
6141 | continue | |
6142 | else | |
6143 | echo "$as_me: failed program was:" >&5 | |
6144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6145 | ||
6146 | # Passes both tests. | |
6147 | ac_preproc_ok=: | |
6148 | break | |
6149 | fi | |
6150 | rm -f conftest.err conftest.$ac_ext | |
6151 | ||
6152 | done | |
6153 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
6154 | rm -f conftest.err conftest.$ac_ext | |
6155 | if $ac_preproc_ok; then | |
6156 | : | |
6157 | else | |
6158 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
6159 | See \`config.log' for more details." >&5 | |
6160 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
6161 | See \`config.log' for more details." >&2;} | |
6162 | { (exit 1); exit 1; }; } | |
6163 | fi | |
6164 | ||
6165 | ac_ext=c | |
6166 | ac_cpp='$CPP $CPPFLAGS' | |
6167 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6168 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6169 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6170 | ||
6171 | ||
6172 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
6173 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
6174 | if test "${ac_cv_header_stdc+set}" = set; then | |
6175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6176 | else | |
6177 | cat >conftest.$ac_ext <<_ACEOF | |
6178 | /* confdefs.h. */ | |
6179 | _ACEOF | |
6180 | cat confdefs.h >>conftest.$ac_ext | |
6181 | cat >>conftest.$ac_ext <<_ACEOF | |
6182 | /* end confdefs.h. */ | |
6183 | #include <stdlib.h> | |
6184 | #include <stdarg.h> | |
6185 | #include <string.h> | |
6186 | #include <float.h> | |
6187 | ||
6188 | int | |
6189 | main () | |
6190 | { | |
6191 | ||
6192 | ; | |
6193 | return 0; | |
6194 | } | |
6195 | _ACEOF | |
6196 | rm -f conftest.$ac_objext | |
6197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6198 | (eval $ac_compile) 2>conftest.er1 | |
6199 | ac_status=$? | |
6200 | grep -v '^ *+' conftest.er1 >conftest.err | |
6201 | rm -f conftest.er1 | |
6202 | cat conftest.err >&5 | |
6203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6204 | (exit $ac_status); } && | |
6205 | { ac_try='test -z "$ac_c_werror_flag" | |
6206 | || test ! -s conftest.err' | |
6207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6208 | (eval $ac_try) 2>&5 | |
6209 | ac_status=$? | |
6210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6211 | (exit $ac_status); }; } && | |
6212 | { ac_try='test -s conftest.$ac_objext' | |
6213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6214 | (eval $ac_try) 2>&5 | |
6215 | ac_status=$? | |
6216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6217 | (exit $ac_status); }; }; then | |
6218 | ac_cv_header_stdc=yes | |
6219 | else | |
6220 | echo "$as_me: failed program was:" >&5 | |
6221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6222 | ||
6223 | ac_cv_header_stdc=no | |
6224 | fi | |
6225 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6226 | ||
6227 | if test $ac_cv_header_stdc = yes; then | |
6228 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
6229 | cat >conftest.$ac_ext <<_ACEOF | |
6230 | /* confdefs.h. */ | |
6231 | _ACEOF | |
6232 | cat confdefs.h >>conftest.$ac_ext | |
6233 | cat >>conftest.$ac_ext <<_ACEOF | |
6234 | /* end confdefs.h. */ | |
6235 | #include <string.h> | |
6236 | ||
6237 | _ACEOF | |
6238 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6239 | $EGREP "memchr" >/dev/null 2>&1; then | |
6240 | : | |
6241 | else | |
6242 | ac_cv_header_stdc=no | |
6243 | fi | |
6244 | rm -f conftest* | |
6245 | ||
6246 | fi | |
6247 | ||
6248 | if test $ac_cv_header_stdc = yes; then | |
6249 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
6250 | cat >conftest.$ac_ext <<_ACEOF | |
6251 | /* confdefs.h. */ | |
6252 | _ACEOF | |
6253 | cat confdefs.h >>conftest.$ac_ext | |
6254 | cat >>conftest.$ac_ext <<_ACEOF | |
6255 | /* end confdefs.h. */ | |
6256 | #include <stdlib.h> | |
6257 | ||
6258 | _ACEOF | |
6259 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
6260 | $EGREP "free" >/dev/null 2>&1; then | |
6261 | : | |
6262 | else | |
6263 | ac_cv_header_stdc=no | |
6264 | fi | |
6265 | rm -f conftest* | |
6266 | ||
6267 | fi | |
6268 | ||
6269 | if test $ac_cv_header_stdc = yes; then | |
6270 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
6271 | if test "$cross_compiling" = yes; then | |
6272 | : | |
6273 | else | |
6274 | cat >conftest.$ac_ext <<_ACEOF | |
6275 | /* confdefs.h. */ | |
6276 | _ACEOF | |
6277 | cat confdefs.h >>conftest.$ac_ext | |
6278 | cat >>conftest.$ac_ext <<_ACEOF | |
6279 | /* end confdefs.h. */ | |
6280 | #include <ctype.h> | |
6281 | #if ((' ' & 0x0FF) == 0x020) | |
6282 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
6283 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
6284 | #else | |
6285 | # define ISLOWER(c) \ | |
6286 | (('a' <= (c) && (c) <= 'i') \ | |
6287 | || ('j' <= (c) && (c) <= 'r') \ | |
6288 | || ('s' <= (c) && (c) <= 'z')) | |
6289 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
6290 | #endif | |
6291 | ||
6292 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
6293 | int | |
6294 | main () | |
6295 | { | |
6296 | int i; | |
6297 | for (i = 0; i < 256; i++) | |
6298 | if (XOR (islower (i), ISLOWER (i)) | |
6299 | || toupper (i) != TOUPPER (i)) | |
6300 | exit(2); | |
6301 | exit (0); | |
6302 | } | |
6303 | _ACEOF | |
6304 | rm -f conftest$ac_exeext | |
6305 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6306 | (eval $ac_link) 2>&5 | |
6307 | ac_status=$? | |
6308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6309 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6311 | (eval $ac_try) 2>&5 | |
6312 | ac_status=$? | |
6313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6314 | (exit $ac_status); }; }; then | |
6315 | : | |
6316 | else | |
6317 | echo "$as_me: program exited with status $ac_status" >&5 | |
6318 | echo "$as_me: failed program was:" >&5 | |
6319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6320 | ||
6321 | ( exit $ac_status ) | |
6322 | ac_cv_header_stdc=no | |
6323 | fi | |
6324 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6325 | fi | |
6326 | fi | |
6327 | fi | |
6328 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
6329 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
6330 | if test $ac_cv_header_stdc = yes; then | |
6331 | ||
6332 | cat >>confdefs.h <<\_ACEOF | |
6333 | #define STDC_HEADERS 1 | |
6334 | _ACEOF | |
6335 | ||
6336 | fi | |
6337 | ||
6338 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
6339 | ||
6340 | ||
6341 | ||
6342 | ||
6343 | ||
6344 | ||
6345 | ||
6346 | ||
6347 | ||
6348 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
6349 | inttypes.h stdint.h unistd.h | |
6350 | do | |
6351 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6352 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6353 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6354 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6356 | else | |
6357 | cat >conftest.$ac_ext <<_ACEOF | |
6358 | /* confdefs.h. */ | |
6359 | _ACEOF | |
6360 | cat confdefs.h >>conftest.$ac_ext | |
6361 | cat >>conftest.$ac_ext <<_ACEOF | |
6362 | /* end confdefs.h. */ | |
6363 | $ac_includes_default | |
6364 | ||
6365 | #include <$ac_header> | |
6366 | _ACEOF | |
6367 | rm -f conftest.$ac_objext | |
6368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6369 | (eval $ac_compile) 2>conftest.er1 | |
6370 | ac_status=$? | |
6371 | grep -v '^ *+' conftest.er1 >conftest.err | |
6372 | rm -f conftest.er1 | |
6373 | cat conftest.err >&5 | |
6374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6375 | (exit $ac_status); } && | |
6376 | { ac_try='test -z "$ac_c_werror_flag" | |
6377 | || test ! -s conftest.err' | |
6378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6379 | (eval $ac_try) 2>&5 | |
6380 | ac_status=$? | |
6381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6382 | (exit $ac_status); }; } && | |
6383 | { ac_try='test -s conftest.$ac_objext' | |
6384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6385 | (eval $ac_try) 2>&5 | |
6386 | ac_status=$? | |
6387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6388 | (exit $ac_status); }; }; then | |
6389 | eval "$as_ac_Header=yes" | |
6390 | else | |
6391 | echo "$as_me: failed program was:" >&5 | |
6392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6393 | ||
6394 | eval "$as_ac_Header=no" | |
6395 | fi | |
6396 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6397 | fi | |
6398 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6399 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6400 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6401 | cat >>confdefs.h <<_ACEOF | |
6402 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6403 | _ACEOF | |
6404 | ||
6405 | fi | |
6406 | ||
6407 | done | |
6408 | ||
6409 | ||
6410 | ||
6411 | for ac_header in dlfcn.h | |
6412 | do | |
6413 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
6414 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6415 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6416 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6417 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6418 | else | |
6419 | cat >conftest.$ac_ext <<_ACEOF | |
6420 | /* confdefs.h. */ | |
6421 | _ACEOF | |
6422 | cat confdefs.h >>conftest.$ac_ext | |
6423 | cat >>conftest.$ac_ext <<_ACEOF | |
6424 | /* end confdefs.h. */ | |
6425 | $ac_includes_default | |
6426 | ||
6427 | #include <$ac_header> | |
6428 | _ACEOF | |
6429 | rm -f conftest.$ac_objext | |
6430 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6431 | (eval $ac_compile) 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); } && | |
6438 | { ac_try='test -z "$ac_c_werror_flag" | |
6439 | || test ! -s conftest.err' | |
6440 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6441 | (eval $ac_try) 2>&5 | |
6442 | ac_status=$? | |
6443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6444 | (exit $ac_status); }; } && | |
6445 | { ac_try='test -s conftest.$ac_objext' | |
6446 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6447 | (eval $ac_try) 2>&5 | |
6448 | ac_status=$? | |
6449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6450 | (exit $ac_status); }; }; then | |
6451 | eval "$as_ac_Header=yes" | |
6452 | else | |
6453 | echo "$as_me: failed program was:" >&5 | |
6454 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6455 | ||
6456 | eval "$as_ac_Header=no" | |
6457 | fi | |
6458 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6459 | fi | |
6460 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6461 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6462 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6463 | cat >>confdefs.h <<_ACEOF | |
6464 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6465 | _ACEOF | |
6466 | ||
6467 | fi | |
6468 | ||
6469 | done | |
6470 | ||
6471 | ||
6472 | ||
6473 | # This can be used to rebuild libtool when needed | |
6474 | LIBTOOL_DEPS="$ltmain" | |
6475 | ||
6476 | # Always use our own libtool. | |
6477 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
6478 | ||
6479 | ||
6480 | ||
6481 | ||
6482 | ||
6483 | ||
6484 | ||
6485 | ||
6486 | ||
6487 | ||
6488 | ||
6489 | ||
6490 | ||
6491 | ||
6492 | ||
6493 | ||
6494 | ||
6495 | ||
6496 | ||
6497 | ||
6498 | ||
6499 | ||
6500 | ||
6501 | ||
6502 | ||
6503 | test -z "$LN_S" && LN_S="ln -s" | |
6504 | ||
6505 | ||
6506 | ||
6507 | ||
6508 | ||
6509 | ||
6510 | ||
6511 | ||
6512 | ||
6513 | ||
6514 | ||
6515 | ||
6516 | ||
6517 | ||
6518 | if test -n "${ZSH_VERSION+set}" ; then | |
6519 | setopt NO_GLOB_SUBST | |
6520 | fi | |
6521 | ||
6522 | echo "$as_me:$LINENO: checking for objdir" >&5 | |
6523 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | |
6524 | if test "${lt_cv_objdir+set}" = set; then | |
6525 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6526 | else | |
6527 | rm -f .libs 2>/dev/null | |
6528 | mkdir .libs 2>/dev/null | |
6529 | if test -d .libs; then | |
6530 | lt_cv_objdir=.libs | |
6531 | else | |
6532 | # MS-DOS does not allow filenames that begin with a dot. | |
6533 | lt_cv_objdir=_libs | |
6534 | fi | |
6535 | rmdir .libs 2>/dev/null | |
6536 | fi | |
6537 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
6538 | echo "${ECHO_T}$lt_cv_objdir" >&6 | |
6539 | objdir=$lt_cv_objdir | |
6540 | ||
6541 | ||
6542 | ||
6543 | ||
6544 | ||
6545 | cat >>confdefs.h <<_ACEOF | |
6546 | #define LT_OBJDIR "$lt_cv_objdir/" | |
6547 | _ACEOF | |
6548 | ||
6549 | ||
6550 | ||
6551 | ||
6552 | ||
6553 | ||
6554 | ||
6555 | ||
6556 | ||
6557 | ||
6558 | ||
6559 | ||
6560 | ||
6561 | ||
6562 | ||
6563 | ||
6564 | ||
6565 | case $host_os in | |
6566 | aix3*) | |
6567 | # AIX sometimes has problems with the GCC collect2 program. For some | |
6568 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
6569 | # vanish in a puff of smoke. | |
6570 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
6571 | COLLECT_NAMES= | |
6572 | export COLLECT_NAMES | |
6573 | fi | |
6574 | ;; | |
6575 | esac | |
6576 | ||
6577 | # Sed substitution that helps us do robust quoting. It backslashifies | |
6578 | # metacharacters that are still active within double-quoted strings. | |
6579 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
6580 | ||
6581 | # Same as above, but do not quote variable references. | |
6582 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
6583 | ||
6584 | # Sed substitution to delay expansion of an escaped shell variable in a | |
6585 | # double_quote_subst'ed string. | |
6586 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
6587 | ||
6588 | # Sed substitution to delay expansion of an escaped single quote. | |
6589 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
6590 | ||
6591 | # Sed substitution to avoid accidental globbing in evaled expressions | |
6592 | no_glob_subst='s/\*/\\\*/g' | |
6593 | ||
6594 | # Global variables: | |
6595 | ofile=libtool | |
6596 | can_build_shared=yes | |
6597 | ||
6598 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
6599 | # which needs '.lib'). | |
6600 | libext=a | |
6601 | ||
6602 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
6603 | ||
6604 | old_CC="$CC" | |
6605 | old_CFLAGS="$CFLAGS" | |
6606 | ||
6607 | # Set sane defaults for various variables | |
6608 | test -z "$CC" && CC=cc | |
6609 | test -z "$LTCC" && LTCC=$CC | |
6610 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
6611 | test -z "$LD" && LD=ld | |
6612 | test -z "$ac_objext" && ac_objext=o | |
6613 | ||
6614 | for cc_temp in $compiler""; do | |
6615 | case $cc_temp in | |
6616 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
6617 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
6618 | \-*) ;; | |
6619 | *) break;; | |
6620 | esac | |
6621 | done | |
6622 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
6623 | ||
6624 | ||
6625 | # Only perform the check for file, if the check method requires it | |
6626 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
6627 | case $deplibs_check_method in | |
6628 | file_magic*) | |
6629 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
6630 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
6631 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
6632 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6634 | else | |
6635 | case $MAGIC_CMD in | |
6636 | [\\/*] | ?:[\\/]*) | |
6637 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6638 | ;; | |
6639 | *) | |
6640 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6641 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6642 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6643 | for ac_dir in $ac_dummy; do | |
6644 | IFS="$lt_save_ifs" | |
6645 | test -z "$ac_dir" && ac_dir=. | |
6646 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
6647 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
6648 | if test -n "$file_magic_test_file"; then | |
6649 | case $deplibs_check_method in | |
6650 | "file_magic "*) | |
6651 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6652 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6653 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6654 | $EGREP "$file_magic_regex" > /dev/null; then | |
6655 | : | |
6656 | else | |
6657 | cat <<_LT_EOF 1>&2 | |
6658 | ||
6659 | *** Warning: the command libtool uses to detect shared libraries, | |
6660 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6661 | *** The result is that libtool may fail to recognize shared libraries | |
6662 | *** as such. This will affect the creation of libtool libraries that | |
6663 | *** depend on shared libraries, but programs linked with such libtool | |
6664 | *** libraries will work regardless of this problem. Nevertheless, you | |
6665 | *** may want to report the problem to your system manager and/or to | |
6666 | *** bug-libtool@gnu.org | |
6667 | ||
6668 | _LT_EOF | |
6669 | fi ;; | |
6670 | esac | |
6671 | fi | |
6672 | break | |
6673 | fi | |
6674 | done | |
6675 | IFS="$lt_save_ifs" | |
6676 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6677 | ;; | |
6678 | esac | |
6679 | fi | |
6680 | ||
6681 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6682 | if test -n "$MAGIC_CMD"; then | |
6683 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6684 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6685 | else | |
6686 | echo "$as_me:$LINENO: result: no" >&5 | |
6687 | echo "${ECHO_T}no" >&6 | |
6688 | fi | |
6689 | ||
6690 | ||
6691 | ||
6692 | ||
6693 | ||
6694 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
6695 | if test -n "$ac_tool_prefix"; then | |
6696 | echo "$as_me:$LINENO: checking for file" >&5 | |
6697 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
6698 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
6699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6700 | else | |
6701 | case $MAGIC_CMD in | |
6702 | [\\/*] | ?:[\\/]*) | |
6703 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
6704 | ;; | |
6705 | *) | |
6706 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
6707 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6708 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
6709 | for ac_dir in $ac_dummy; do | |
6710 | IFS="$lt_save_ifs" | |
6711 | test -z "$ac_dir" && ac_dir=. | |
6712 | if test -f $ac_dir/file; then | |
6713 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
6714 | if test -n "$file_magic_test_file"; then | |
6715 | case $deplibs_check_method in | |
6716 | "file_magic "*) | |
6717 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
6718 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6719 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
6720 | $EGREP "$file_magic_regex" > /dev/null; then | |
6721 | : | |
6722 | else | |
6723 | cat <<_LT_EOF 1>&2 | |
6724 | ||
6725 | *** Warning: the command libtool uses to detect shared libraries, | |
6726 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
6727 | *** The result is that libtool may fail to recognize shared libraries | |
6728 | *** as such. This will affect the creation of libtool libraries that | |
6729 | *** depend on shared libraries, but programs linked with such libtool | |
6730 | *** libraries will work regardless of this problem. Nevertheless, you | |
6731 | *** may want to report the problem to your system manager and/or to | |
6732 | *** bug-libtool@gnu.org | |
6733 | ||
6734 | _LT_EOF | |
6735 | fi ;; | |
6736 | esac | |
6737 | fi | |
6738 | break | |
6739 | fi | |
6740 | done | |
6741 | IFS="$lt_save_ifs" | |
6742 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
6743 | ;; | |
6744 | esac | |
6745 | fi | |
6746 | ||
6747 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
6748 | if test -n "$MAGIC_CMD"; then | |
6749 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
6750 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
6751 | else | |
6752 | echo "$as_me:$LINENO: result: no" >&5 | |
6753 | echo "${ECHO_T}no" >&6 | |
6754 | fi | |
6755 | ||
6756 | ||
6757 | else | |
6758 | MAGIC_CMD=: | |
6759 | fi | |
6760 | fi | |
6761 | ||
6762 | fi | |
6763 | ;; | |
6764 | esac | |
6765 | ||
6766 | # Use C for the default configuration in the libtool script | |
6767 | ||
6768 | lt_save_CC="$CC" | |
6769 | ac_ext=c | |
6770 | ac_cpp='$CPP $CPPFLAGS' | |
6771 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6772 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6773 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6774 | ||
6775 | ||
6776 | # Source file extension for C test sources. | |
6777 | ac_ext=c | |
6778 | ||
6779 | # Object file extension for compiled C test sources. | |
6780 | objext=o | |
6781 | objext=$objext | |
6782 | ||
6783 | # Code to be used in simple compile tests | |
6784 | lt_simple_compile_test_code="int some_variable = 0;" | |
6785 | ||
6786 | # Code to be used in simple link tests | |
6787 | lt_simple_link_test_code='int main(){return(0);}' | |
6788 | ||
6789 | ||
6790 | ||
6791 | ||
6792 | ||
6793 | ||
6794 | ||
6795 | # If no C compiler was specified, use CC. | |
6796 | LTCC=${LTCC-"$CC"} | |
6797 | ||
6798 | # If no C compiler flags were specified, use CFLAGS. | |
6799 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6800 | ||
6801 | # Allow CC to be a program name with arguments. | |
6802 | compiler=$CC | |
6803 | ||
6804 | # Save the default compiler, since it gets overwritten when the other | |
6805 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
6806 | compiler_DEFAULT=$CC | |
6807 | ||
6808 | # save warnings/boilerplate of simple test code | |
6809 | ac_outfile=conftest.$ac_objext | |
6810 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
6811 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6812 | _lt_compiler_boilerplate=`cat conftest.err` | |
6813 | $RM conftest* | |
6814 | ||
6815 | ac_outfile=conftest.$ac_objext | |
6816 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
6817 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
6818 | _lt_linker_boilerplate=`cat conftest.err` | |
6819 | $RM conftest* | |
6820 | ||
6821 | ||
6822 | ## CAVEAT EMPTOR: | |
6823 | ## There is no encapsulation within the following macros, do not change | |
6824 | ## the running order or otherwise move them around unless you know exactly | |
6825 | ## what you are doing... | |
6826 | if test -n "$compiler"; then | |
6827 | ||
6828 | lt_prog_compiler_no_builtin_flag= | |
6829 | ||
6830 | if test "$GCC" = yes; then | |
6831 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
6832 | ||
6833 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
6834 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
6835 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
6836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6837 | else | |
6838 | lt_cv_prog_compiler_rtti_exceptions=no | |
6839 | ac_outfile=conftest.$ac_objext | |
6840 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
6841 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
6842 | # Insert the option either (1) after the last *FLAGS variable, or | |
6843 | # (2) before a word containing "conftest.", or (3) at the end. | |
6844 | # Note that $ac_compile itself does not contain backslashes and begins | |
6845 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
6846 | # The option is referenced via a variable to avoid confusing sed. | |
6847 | lt_compile=`echo "$ac_compile" | $SED \ | |
6848 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
6849 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
6850 | -e 's:$: $lt_compiler_flag:'` | |
6194aaab | 6851 | (eval echo "\"\$as_me:6851: $lt_compile\"" >&5) |
d7040cdb SE |
6852 | (eval "$lt_compile" 2>conftest.err) |
6853 | ac_status=$? | |
6854 | cat conftest.err >&5 | |
6194aaab | 6855 | echo "$as_me:6855: \$? = $ac_status" >&5 |
d7040cdb SE |
6856 | if (exit $ac_status) && test -s "$ac_outfile"; then |
6857 | # The compiler can only warn and ignore the option if not recognized | |
6858 | # So say no if there are warnings other than the usual output. | |
6859 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
6860 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
6861 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
6862 | lt_cv_prog_compiler_rtti_exceptions=yes | |
6863 | fi | |
6864 | fi | |
6865 | $RM conftest* | |
6866 | ||
6867 | fi | |
6868 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
6869 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
6870 | ||
6871 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
6872 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
6873 | else | |
6874 | : | |
6875 | fi | |
6876 | ||
6877 | fi | |
6878 | ||
6879 | ||
6880 | ||
6881 | ||
6882 | ||
6883 | ||
6884 | lt_prog_compiler_wl= | |
6885 | lt_prog_compiler_pic= | |
6886 | lt_prog_compiler_static= | |
6887 | ||
6888 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
6889 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
6890 | ||
6891 | if test "$GCC" = yes; then | |
6892 | lt_prog_compiler_wl='-Wl,' | |
6893 | lt_prog_compiler_static='-static' | |
6894 | ||
6895 | case $host_os in | |
6896 | aix*) | |
6897 | # All AIX code is PIC. | |
6898 | if test "$host_cpu" = ia64; then | |
6899 | # AIX 5 now supports IA64 processor | |
6900 | lt_prog_compiler_static='-Bstatic' | |
6901 | fi | |
6902 | ;; | |
6903 | ||
6904 | amigaos*) | |
6905 | if test "$host_cpu" = m68k; then | |
6906 | # FIXME: we need at least 68020 code to build shared libraries, but | |
6907 | # adding the `-m68020' flag to GCC prevents building anything better, | |
6908 | # like `-m68040'. | |
6909 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
6910 | fi | |
6911 | ;; | |
6912 | ||
6913 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
6914 | # PIC is the default for these OSes. | |
6915 | ;; | |
6916 | ||
6917 | mingw* | cygwin* | pw32* | os2*) | |
6918 | # This hack is so that the source file can tell whether it is being | |
6919 | # built for inclusion in a dll (and should export symbols for example). | |
6920 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
6921 | # (--disable-auto-import) libraries | |
6922 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6923 | ;; | |
6924 | ||
6925 | darwin* | rhapsody*) | |
6926 | # PIC is the default on this platform | |
6927 | # Common symbols not allowed in MH_DYLIB files | |
6928 | lt_prog_compiler_pic='-fno-common' | |
6929 | ;; | |
6930 | ||
6931 | hpux*) | |
6932 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
6933 | # not for PA HP-UX. | |
6934 | case $host_cpu in | |
6935 | hppa*64*|ia64*) | |
6936 | # +Z the default | |
6937 | ;; | |
6938 | *) | |
6939 | lt_prog_compiler_pic='-fPIC' | |
6940 | ;; | |
6941 | esac | |
6942 | ;; | |
6943 | ||
6944 | interix[3-9]*) | |
6945 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
6946 | # Instead, we relocate shared libraries at runtime. | |
6947 | ;; | |
6948 | ||
6949 | msdosdjgpp*) | |
6950 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
6951 | # on systems that don't support them. | |
6952 | lt_prog_compiler_can_build_shared=no | |
6953 | enable_shared=no | |
6954 | ;; | |
6955 | ||
6956 | *nto* | *qnx*) | |
6957 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
6958 | # it will coredump. | |
6959 | lt_prog_compiler_pic='-fPIC -shared' | |
6960 | ;; | |
6961 | ||
6962 | sysv4*MP*) | |
6963 | if test -d /usr/nec; then | |
6964 | lt_prog_compiler_pic=-Kconform_pic | |
6965 | fi | |
6966 | ;; | |
6967 | ||
6968 | *) | |
6969 | lt_prog_compiler_pic='-fPIC' | |
6970 | ;; | |
6971 | esac | |
6972 | else | |
6973 | # PORTME Check for flag to pass linker flags through the system compiler. | |
6974 | case $host_os in | |
6975 | aix*) | |
6976 | lt_prog_compiler_wl='-Wl,' | |
6977 | if test "$host_cpu" = ia64; then | |
6978 | # AIX 5 now supports IA64 processor | |
6979 | lt_prog_compiler_static='-Bstatic' | |
6980 | else | |
6981 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
6982 | fi | |
6983 | ;; | |
6984 | darwin*) | |
6985 | # PIC is the default on this platform | |
6986 | # Common symbols not allowed in MH_DYLIB files | |
6987 | case $cc_basename in | |
6988 | xlc*) | |
6989 | lt_prog_compiler_pic='-qnocommon' | |
6990 | lt_prog_compiler_wl='-Wl,' | |
6991 | ;; | |
6992 | esac | |
6993 | ;; | |
6994 | ||
6995 | mingw* | cygwin* | pw32* | os2*) | |
6996 | # This hack is so that the source file can tell whether it is being | |
6997 | # built for inclusion in a dll (and should export symbols for example). | |
6998 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
6999 | ;; | |
7000 | ||
7001 | hpux9* | hpux10* | hpux11*) | |
7002 | lt_prog_compiler_wl='-Wl,' | |
7003 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
7004 | # not for PA HP-UX. | |
7005 | case $host_cpu in | |
7006 | hppa*64*|ia64*) | |
7007 | # +Z the default | |
7008 | ;; | |
7009 | *) | |
7010 | lt_prog_compiler_pic='+Z' | |
7011 | ;; | |
7012 | esac | |
7013 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
7014 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
7015 | ;; | |
7016 | ||
7017 | irix5* | irix6* | nonstopux*) | |
7018 | lt_prog_compiler_wl='-Wl,' | |
7019 | # PIC (with -KPIC) is the default. | |
7020 | lt_prog_compiler_static='-non_shared' | |
7021 | ;; | |
7022 | ||
7023 | linux* | k*bsd*-gnu) | |
7024 | case $cc_basename in | |
7025 | icc* | ecc*) | |
7026 | lt_prog_compiler_wl='-Wl,' | |
7027 | lt_prog_compiler_pic='-KPIC' | |
7028 | lt_prog_compiler_static='-static' | |
7029 | ;; | |
7030 | pgcc* | pgf77* | pgf90* | pgf95*) | |
7031 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
7032 | # which looks to be a dead project) | |
7033 | lt_prog_compiler_wl='-Wl,' | |
7034 | lt_prog_compiler_pic='-fpic' | |
7035 | lt_prog_compiler_static='-Bstatic' | |
7036 | ;; | |
7037 | ccc*) | |
7038 | lt_prog_compiler_wl='-Wl,' | |
7039 | # All Alpha code is PIC. | |
7040 | lt_prog_compiler_static='-non_shared' | |
7041 | ;; | |
7042 | *) | |
7043 | case `$CC -V 2>&1 | sed 5q` in | |
7044 | *Sun\ C*) | |
7045 | # Sun C 5.9 | |
7046 | lt_prog_compiler_pic='-KPIC' | |
7047 | lt_prog_compiler_static='-Bstatic' | |
7048 | lt_prog_compiler_wl='-Wl,' | |
7049 | ;; | |
7050 | *Sun\ F*) | |
7051 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
7052 | lt_prog_compiler_pic='-KPIC' | |
7053 | lt_prog_compiler_static='-Bstatic' | |
7054 | lt_prog_compiler_wl='' | |
7055 | ;; | |
7056 | esac | |
7057 | ;; | |
7058 | esac | |
7059 | ;; | |
7060 | ||
7061 | newsos6) | |
7062 | lt_prog_compiler_pic='-KPIC' | |
7063 | lt_prog_compiler_static='-Bstatic' | |
7064 | ;; | |
7065 | ||
7066 | *nto* | *qnx*) | |
7067 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
7068 | # it will coredump. | |
7069 | lt_prog_compiler_pic='-fPIC -shared' | |
7070 | ;; | |
7071 | ||
7072 | osf3* | osf4* | osf5*) | |
7073 | lt_prog_compiler_wl='-Wl,' | |
7074 | # All OSF/1 code is PIC. | |
7075 | lt_prog_compiler_static='-non_shared' | |
7076 | ;; | |
7077 | ||
7078 | rdos*) | |
7079 | lt_prog_compiler_static='-non_shared' | |
7080 | ;; | |
7081 | ||
7082 | solaris*) | |
7083 | lt_prog_compiler_pic='-KPIC' | |
7084 | lt_prog_compiler_static='-Bstatic' | |
7085 | case $cc_basename in | |
7086 | f77* | f90* | f95*) | |
7087 | lt_prog_compiler_wl='-Qoption ld ';; | |
7088 | *) | |
7089 | lt_prog_compiler_wl='-Wl,';; | |
7090 | esac | |
7091 | ;; | |
7092 | ||
7093 | sunos4*) | |
7094 | lt_prog_compiler_wl='-Qoption ld ' | |
7095 | lt_prog_compiler_pic='-PIC' | |
7096 | lt_prog_compiler_static='-Bstatic' | |
7097 | ;; | |
7098 | ||
7099 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
7100 | lt_prog_compiler_wl='-Wl,' | |
7101 | lt_prog_compiler_pic='-KPIC' | |
7102 | lt_prog_compiler_static='-Bstatic' | |
7103 | ;; | |
7104 | ||
7105 | sysv4*MP*) | |
7106 | if test -d /usr/nec ;then | |
7107 | lt_prog_compiler_pic='-Kconform_pic' | |
7108 | lt_prog_compiler_static='-Bstatic' | |
7109 | fi | |
7110 | ;; | |
7111 | ||
7112 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
7113 | lt_prog_compiler_wl='-Wl,' | |
7114 | lt_prog_compiler_pic='-KPIC' | |
7115 | lt_prog_compiler_static='-Bstatic' | |
7116 | ;; | |
7117 | ||
7118 | unicos*) | |
7119 | lt_prog_compiler_wl='-Wl,' | |
7120 | lt_prog_compiler_can_build_shared=no | |
7121 | ;; | |
7122 | ||
7123 | uts4*) | |
7124 | lt_prog_compiler_pic='-pic' | |
7125 | lt_prog_compiler_static='-Bstatic' | |
7126 | ;; | |
7127 | ||
7128 | *) | |
7129 | lt_prog_compiler_can_build_shared=no | |
7130 | ;; | |
7131 | esac | |
7132 | fi | |
7133 | ||
7134 | case $host_os in | |
7135 | # For platforms which do not support PIC, -DPIC is meaningless: | |
7136 | *djgpp*) | |
7137 | lt_prog_compiler_pic= | |
7138 | ;; | |
7139 | *) | |
7140 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
7141 | ;; | |
7142 | esac | |
7143 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
7144 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | |
7145 | ||
7146 | ||
7147 | ||
7148 | ||
7149 | ||
7150 | ||
7151 | # | |
7152 | # Check to make sure the PIC flag actually works. | |
7153 | # | |
7154 | if test -n "$lt_prog_compiler_pic"; then | |
7155 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
7156 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | |
7157 | if test "${lt_prog_compiler_pic_works+set}" = set; then | |
7158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7159 | else | |
7160 | lt_prog_compiler_pic_works=no | |
7161 | ac_outfile=conftest.$ac_objext | |
7162 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7163 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
7164 | # Insert the option either (1) after the last *FLAGS variable, or | |
7165 | # (2) before a word containing "conftest.", or (3) at the end. | |
7166 | # Note that $ac_compile itself does not contain backslashes and begins | |
7167 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7168 | # The option is referenced via a variable to avoid confusing sed. | |
7169 | lt_compile=`echo "$ac_compile" | $SED \ | |
7170 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7171 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7172 | -e 's:$: $lt_compiler_flag:'` | |
6194aaab | 7173 | (eval echo "\"\$as_me:7173: $lt_compile\"" >&5) |
d7040cdb SE |
7174 | (eval "$lt_compile" 2>conftest.err) |
7175 | ac_status=$? | |
7176 | cat conftest.err >&5 | |
6194aaab | 7177 | echo "$as_me:7177: \$? = $ac_status" >&5 |
d7040cdb SE |
7178 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7179 | # The compiler can only warn and ignore the option if not recognized | |
7180 | # So say no if there are warnings other than the usual output. | |
7181 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
7182 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7183 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
7184 | lt_prog_compiler_pic_works=yes | |
7185 | fi | |
7186 | fi | |
7187 | $RM conftest* | |
7188 | ||
7189 | fi | |
7190 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | |
7191 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | |
7192 | ||
7193 | if test x"$lt_prog_compiler_pic_works" = xyes; then | |
7194 | case $lt_prog_compiler_pic in | |
7195 | "" | " "*) ;; | |
7196 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
7197 | esac | |
7198 | else | |
7199 | lt_prog_compiler_pic= | |
7200 | lt_prog_compiler_can_build_shared=no | |
7201 | fi | |
7202 | ||
7203 | fi | |
7204 | ||
7205 | ||
7206 | ||
7207 | ||
7208 | ||
7209 | ||
7210 | # | |
7211 | # Check to make sure the static flag actually works. | |
7212 | # | |
7213 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
7214 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
7215 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
7216 | if test "${lt_prog_compiler_static_works+set}" = set; then | |
7217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7218 | else | |
7219 | lt_prog_compiler_static_works=no | |
7220 | save_LDFLAGS="$LDFLAGS" | |
7221 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
7222 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
7223 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
7224 | # The linker can only warn and ignore the option if not recognized | |
7225 | # So say no if there are warnings | |
7226 | if test -s conftest.err; then | |
7227 | # Append any errors to the config.log. | |
7228 | cat conftest.err 1>&5 | |
7229 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
7230 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
7231 | if diff conftest.exp conftest.er2 >/dev/null; then | |
7232 | lt_prog_compiler_static_works=yes | |
7233 | fi | |
7234 | else | |
7235 | lt_prog_compiler_static_works=yes | |
7236 | fi | |
7237 | fi | |
7238 | $RM conftest* | |
7239 | LDFLAGS="$save_LDFLAGS" | |
7240 | ||
7241 | fi | |
7242 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | |
7243 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | |
7244 | ||
7245 | if test x"$lt_prog_compiler_static_works" = xyes; then | |
7246 | : | |
7247 | else | |
7248 | lt_prog_compiler_static= | |
7249 | fi | |
7250 | ||
7251 | ||
7252 | ||
7253 | ||
7254 | ||
7255 | ||
7256 | ||
7257 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7258 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
7259 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7260 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7261 | else | |
7262 | lt_cv_prog_compiler_c_o=no | |
7263 | $RM -r conftest 2>/dev/null | |
7264 | mkdir conftest | |
7265 | cd conftest | |
7266 | mkdir out | |
7267 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7268 | ||
7269 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7270 | # Insert the option either (1) after the last *FLAGS variable, or | |
7271 | # (2) before a word containing "conftest.", or (3) at the end. | |
7272 | # Note that $ac_compile itself does not contain backslashes and begins | |
7273 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7274 | lt_compile=`echo "$ac_compile" | $SED \ | |
7275 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7276 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7277 | -e 's:$: $lt_compiler_flag:'` | |
6194aaab | 7278 | (eval echo "\"\$as_me:7278: $lt_compile\"" >&5) |
d7040cdb SE |
7279 | (eval "$lt_compile" 2>out/conftest.err) |
7280 | ac_status=$? | |
7281 | cat out/conftest.err >&5 | |
6194aaab | 7282 | echo "$as_me:7282: \$? = $ac_status" >&5 |
d7040cdb SE |
7283 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7284 | then | |
7285 | # The compiler can only warn and ignore the option if not recognized | |
7286 | # So say no if there are warnings | |
7287 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7288 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7289 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7290 | lt_cv_prog_compiler_c_o=yes | |
7291 | fi | |
7292 | fi | |
7293 | chmod u+w . 2>&5 | |
7294 | $RM conftest* | |
7295 | # SGI C++ compiler will create directory out/ii_files/ for | |
7296 | # template instantiation | |
7297 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7298 | $RM out/* && rmdir out | |
7299 | cd .. | |
7300 | $RM -r conftest | |
7301 | $RM conftest* | |
7302 | ||
7303 | fi | |
7304 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
7305 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
7306 | ||
7307 | ||
7308 | ||
7309 | ||
7310 | ||
7311 | ||
7312 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
7313 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
7314 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
7315 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7316 | else | |
7317 | lt_cv_prog_compiler_c_o=no | |
7318 | $RM -r conftest 2>/dev/null | |
7319 | mkdir conftest | |
7320 | cd conftest | |
7321 | mkdir out | |
7322 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
7323 | ||
7324 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
7325 | # Insert the option either (1) after the last *FLAGS variable, or | |
7326 | # (2) before a word containing "conftest.", or (3) at the end. | |
7327 | # Note that $ac_compile itself does not contain backslashes and begins | |
7328 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
7329 | lt_compile=`echo "$ac_compile" | $SED \ | |
7330 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
7331 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
7332 | -e 's:$: $lt_compiler_flag:'` | |
6194aaab | 7333 | (eval echo "\"\$as_me:7333: $lt_compile\"" >&5) |
d7040cdb SE |
7334 | (eval "$lt_compile" 2>out/conftest.err) |
7335 | ac_status=$? | |
7336 | cat out/conftest.err >&5 | |
6194aaab | 7337 | echo "$as_me:7337: \$? = $ac_status" >&5 |
d7040cdb SE |
7338 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7339 | then | |
7340 | # The compiler can only warn and ignore the option if not recognized | |
7341 | # So say no if there are warnings | |
7342 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
7343 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
7344 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
7345 | lt_cv_prog_compiler_c_o=yes | |
7346 | fi | |
7347 | fi | |
7348 | chmod u+w . 2>&5 | |
7349 | $RM conftest* | |
7350 | # SGI C++ compiler will create directory out/ii_files/ for | |
7351 | # template instantiation | |
7352 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
7353 | $RM out/* && rmdir out | |
7354 | cd .. | |
7355 | $RM -r conftest | |
7356 | $RM conftest* | |
7357 | ||
7358 | fi | |
7359 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
7360 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
7361 | ||
7362 | ||
7363 | ||
7364 | ||
7365 | hard_links="nottested" | |
7366 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
7367 | # do not overwrite the value of need_locks provided by the user | |
7368 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
7369 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
7370 | hard_links=yes | |
7371 | $RM conftest* | |
7372 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7373 | touch conftest.a | |
7374 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
7375 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
7376 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
7377 | echo "${ECHO_T}$hard_links" >&6 | |
7378 | if test "$hard_links" = no; then | |
7379 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
7380 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
7381 | need_locks=warn | |
7382 | fi | |
7383 | else | |
7384 | need_locks=no | |
7385 | fi | |
7386 | ||
7387 | ||
7388 | ||
7389 | ||
7390 | ||
7391 | ||
7392 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
7393 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
7394 | ||
7395 | runpath_var= | |
7396 | allow_undefined_flag= | |
7397 | always_export_symbols=no | |
7398 | archive_cmds= | |
7399 | archive_expsym_cmds= | |
7400 | compiler_needs_object=no | |
7401 | enable_shared_with_static_runtimes=no | |
7402 | export_dynamic_flag_spec= | |
7403 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
7404 | hardcode_automatic=no | |
7405 | hardcode_direct=no | |
7406 | hardcode_direct_absolute=no | |
7407 | hardcode_libdir_flag_spec= | |
7408 | hardcode_libdir_flag_spec_ld= | |
7409 | hardcode_libdir_separator= | |
7410 | hardcode_minus_L=no | |
7411 | hardcode_shlibpath_var=unsupported | |
7412 | inherit_rpath=no | |
7413 | link_all_deplibs=unknown | |
7414 | module_cmds= | |
7415 | module_expsym_cmds= | |
7416 | old_archive_from_new_cmds= | |
7417 | old_archive_from_expsyms_cmds= | |
7418 | thread_safe_flag_spec= | |
7419 | whole_archive_flag_spec= | |
7420 | # include_expsyms should be a list of space-separated symbols to be *always* | |
7421 | # included in the symbol list | |
7422 | include_expsyms= | |
7423 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
7424 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
7425 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
7426 | # as well as any symbol that contains `d'. | |
7427 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
7428 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
7429 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
7430 | # the symbol is explicitly referenced. Since portable code cannot | |
7431 | # rely on this symbol name, it's probably fine to never include it in | |
7432 | # preloaded symbol tables. | |
7433 | extract_expsyms_cmds= | |
7434 | ||
7435 | case $host_os in | |
7436 | cygwin* | mingw* | pw32*) | |
7437 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
7438 | # When not using gcc, we currently assume that we are using | |
7439 | # Microsoft Visual C++. | |
7440 | if test "$GCC" != yes; then | |
7441 | with_gnu_ld=no | |
7442 | fi | |
7443 | ;; | |
7444 | interix*) | |
7445 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
7446 | with_gnu_ld=yes | |
7447 | ;; | |
7448 | openbsd*) | |
7449 | with_gnu_ld=no | |
7450 | ;; | |
7451 | esac | |
7452 | ||
7453 | ld_shlibs=yes | |
7454 | if test "$with_gnu_ld" = yes; then | |
7455 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
7456 | wlarc='${wl}' | |
7457 | ||
7458 | # Set some defaults for GNU ld with shared library support. These | |
7459 | # are reset later if shared libraries are not supported. Putting them | |
7460 | # here allows them to be overridden if necessary. | |
7461 | runpath_var=LD_RUN_PATH | |
7462 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7463 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
7464 | # ancient GNU ld didn't support --whole-archive et. al. | |
7465 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
7466 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
7467 | else | |
7468 | whole_archive_flag_spec= | |
7469 | fi | |
7470 | supports_anon_versioning=no | |
7471 | case `$LD -v 2>&1` in | |
7472 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
7473 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
7474 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
7475 | *\ 2.11.*) ;; # other 2.11 versions | |
7476 | *) supports_anon_versioning=yes ;; | |
7477 | esac | |
7478 | ||
7479 | # See if GNU ld supports shared libraries. | |
7480 | case $host_os in | |
e81819a5 | 7481 | aix[3-9]*) |
d7040cdb SE |
7482 | # On AIX/PPC, the GNU linker is very broken |
7483 | if test "$host_cpu" != ia64; then | |
7484 | ld_shlibs=no | |
7485 | cat <<_LT_EOF 1>&2 | |
7486 | ||
7487 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
7488 | *** to be unable to reliably create shared libraries on AIX. | |
7489 | *** Therefore, libtool is disabling shared libraries support. If you | |
7490 | *** really care for shared libraries, you may want to modify your PATH | |
7491 | *** so that a non-GNU linker is found, and then restart. | |
7492 | ||
7493 | _LT_EOF | |
7494 | fi | |
7495 | ;; | |
7496 | ||
7497 | amigaos*) | |
7498 | if test "$host_cpu" = m68k; then | |
7499 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
7500 | hardcode_libdir_flag_spec='-L$libdir' | |
7501 | hardcode_minus_L=yes | |
7502 | fi | |
7503 | ||
7504 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
7505 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
7506 | # to version 4, is to share data among multiple programs linked | |
7507 | # with the same dynamic library. Since this doesn't match the | |
7508 | # behavior of shared libraries on other platforms, we can't use | |
7509 | # them. | |
7510 | ld_shlibs=no | |
7511 | ;; | |
7512 | ||
7513 | beos*) | |
7514 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7515 | allow_undefined_flag=unsupported | |
7516 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
7517 | # support --undefined. This deserves some investigation. FIXME | |
7518 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7519 | else | |
7520 | ld_shlibs=no | |
7521 | fi | |
7522 | ;; | |
7523 | ||
7524 | cygwin* | mingw* | pw32*) | |
7525 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
7526 | # as there is no search path for DLLs. | |
7527 | hardcode_libdir_flag_spec='-L$libdir' | |
7528 | allow_undefined_flag=unsupported | |
7529 | always_export_symbols=no | |
7530 | enable_shared_with_static_runtimes=yes | |
7531 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
7532 | ||
7533 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
7534 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7535 | # If the export-symbols file already is a .def file (1st line | |
7536 | # is EXPORTS), use it as is; otherwise, prepend... | |
7537 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
7538 | cp $export_symbols $output_objdir/$soname.def; | |
7539 | else | |
7540 | echo EXPORTS > $output_objdir/$soname.def; | |
7541 | cat $export_symbols >> $output_objdir/$soname.def; | |
7542 | fi~ | |
7543 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
7544 | else | |
7545 | ld_shlibs=no | |
7546 | fi | |
7547 | ;; | |
7548 | ||
7549 | interix[3-9]*) | |
7550 | hardcode_direct=no | |
7551 | hardcode_shlibpath_var=no | |
7552 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
7553 | export_dynamic_flag_spec='${wl}-E' | |
7554 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
7555 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
7556 | # default) and relocated if they conflict, which is a slow very memory | |
7557 | # consuming and fragmenting process. To avoid this, we pick a random, | |
7558 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
7559 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
7560 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7561 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
7562 | ;; | |
7563 | ||
7564 | gnu* | linux* | tpf* | k*bsd*-gnu) | |
7565 | tmp_diet=no | |
7566 | if test "$host_os" = linux-dietlibc; then | |
7567 | case $cc_basename in | |
7568 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
7569 | esac | |
7570 | fi | |
7571 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
7572 | && test "$tmp_diet" = no | |
7573 | then | |
7574 | tmp_addflag= | |
7575 | case $cc_basename,$host_cpu in | |
7576 | pgcc*) # Portland Group C compiler | |
7577 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
7578 | tmp_addflag=' $pic_flag' | |
7579 | ;; | |
7580 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
7581 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
7582 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
7583 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
7584 | tmp_addflag=' -i_dynamic' ;; | |
7585 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
7586 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
7587 | ifc* | ifort*) # Intel Fortran compiler | |
7588 | tmp_addflag=' -nofor_main' ;; | |
7589 | esac | |
7590 | case `$CC -V 2>&1 | sed 5q` in | |
7591 | *Sun\ C*) # Sun C 5.9 | |
7592 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' | |
7593 | compiler_needs_object=yes | |
7594 | tmp_sharedflag='-G' ;; | |
7595 | *Sun\ F*) # Sun Fortran 8.3 | |
7596 | tmp_sharedflag='-G' ;; | |
7597 | *) | |
7598 | tmp_sharedflag='-shared' ;; | |
7599 | esac | |
7600 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7601 | ||
7602 | if test "x$supports_anon_versioning" = xyes; then | |
7603 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
7604 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
7605 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
7606 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
7607 | fi | |
7608 | else | |
7609 | ld_shlibs=no | |
7610 | fi | |
7611 | ;; | |
7612 | ||
7613 | netbsd*) | |
7614 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
7615 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
7616 | wlarc= | |
7617 | else | |
7618 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7619 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7620 | fi | |
7621 | ;; | |
7622 | ||
7623 | solaris*) | |
7624 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
7625 | ld_shlibs=no | |
7626 | cat <<_LT_EOF 1>&2 | |
7627 | ||
7628 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
7629 | *** create shared libraries on Solaris systems. Therefore, libtool | |
7630 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7631 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
7632 | *** your PATH or compiler configuration so that the native linker is | |
7633 | *** used, and then restart. | |
7634 | ||
7635 | _LT_EOF | |
7636 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7637 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7638 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7639 | else | |
7640 | ld_shlibs=no | |
7641 | fi | |
7642 | ;; | |
7643 | ||
7644 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
7645 | case `$LD -v 2>&1` in | |
7646 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
7647 | ld_shlibs=no | |
7648 | cat <<_LT_EOF 1>&2 | |
7649 | ||
7650 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
7651 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
7652 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
7653 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
7654 | *** your PATH or compiler configuration so that the native linker is | |
7655 | *** used, and then restart. | |
7656 | ||
7657 | _LT_EOF | |
7658 | ;; | |
7659 | *) | |
7660 | # For security reasons, it is highly recommended that you always | |
7661 | # use absolute paths for naming shared libraries, and exclude the | |
7662 | # DT_RUNPATH tag from executables and libraries. But doing so | |
7663 | # requires that you compile everything twice, which is a pain. | |
7664 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7665 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
7666 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7667 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7668 | else | |
7669 | ld_shlibs=no | |
7670 | fi | |
7671 | ;; | |
7672 | esac | |
7673 | ;; | |
7674 | ||
7675 | sunos4*) | |
7676 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
7677 | wlarc= | |
7678 | hardcode_direct=yes | |
7679 | hardcode_shlibpath_var=no | |
7680 | ;; | |
7681 | ||
7682 | *) | |
7683 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
7684 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
7685 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
7686 | else | |
7687 | ld_shlibs=no | |
7688 | fi | |
7689 | ;; | |
7690 | esac | |
7691 | ||
7692 | if test "$ld_shlibs" = no; then | |
7693 | runpath_var= | |
7694 | hardcode_libdir_flag_spec= | |
7695 | export_dynamic_flag_spec= | |
7696 | whole_archive_flag_spec= | |
7697 | fi | |
7698 | else | |
7699 | # PORTME fill in a description of your system's linker (not GNU ld) | |
7700 | case $host_os in | |
7701 | aix3*) | |
7702 | allow_undefined_flag=unsupported | |
7703 | always_export_symbols=yes | |
7704 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | |
7705 | # Note: this linker hardcodes the directories in LIBPATH if there | |
7706 | # are no directories specified by -L. | |
7707 | hardcode_minus_L=yes | |
7708 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
7709 | # Neither direct hardcoding nor static linking is supported with a | |
7710 | # broken collect2. | |
7711 | hardcode_direct=unsupported | |
7712 | fi | |
7713 | ;; | |
7714 | ||
e81819a5 | 7715 | aix[4-9]*) |
d7040cdb SE |
7716 | if test "$host_cpu" = ia64; then |
7717 | # On IA64, the linker does run time linking by default, so we don't | |
7718 | # have to do anything special. | |
7719 | aix_use_runtimelinking=no | |
7720 | exp_sym_flag='-Bexport' | |
7721 | no_entry_flag="" | |
7722 | else | |
7723 | # If we're using GNU nm, then we don't want the "-C" option. | |
7724 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
7725 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
7726 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
7727 | else | |
7728 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
7729 | fi | |
7730 | aix_use_runtimelinking=no | |
7731 | ||
7732 | # Test if we are trying to use run time linking or normal | |
7733 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
7734 | # need to do runtime linking. | |
e81819a5 | 7735 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
d7040cdb SE |
7736 | for ld_flag in $LDFLAGS; do |
7737 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
7738 | aix_use_runtimelinking=yes | |
7739 | break | |
7740 | fi | |
7741 | done | |
7742 | ;; | |
7743 | esac | |
7744 | ||
7745 | exp_sym_flag='-bexport' | |
7746 | no_entry_flag='-bnoentry' | |
7747 | fi | |
7748 | ||
7749 | # When large executables or shared objects are built, AIX ld can | |
7750 | # have problems creating the table of contents. If linking a library | |
7751 | # or program results in "error TOC overflow" add -mminimal-toc to | |
7752 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
7753 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
7754 | ||
7755 | archive_cmds='' | |
7756 | hardcode_direct=yes | |
7757 | hardcode_direct_absolute=yes | |
7758 | hardcode_libdir_separator=':' | |
7759 | link_all_deplibs=yes | |
7760 | file_list_spec='${wl}-f,' | |
7761 | ||
7762 | if test "$GCC" = yes; then | |
7763 | case $host_os in aix4.[012]|aix4.[012].*) | |
7764 | # We only want to do this on AIX 4.2 and lower, the check | |
7765 | # below for broken collect2 doesn't work under 4.3+ | |
7766 | collect2name=`${CC} -print-prog-name=collect2` | |
7767 | if test -f "$collect2name" && | |
7768 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
7769 | then | |
7770 | # We have reworked collect2 | |
7771 | : | |
7772 | else | |
7773 | # We have old collect2 | |
7774 | hardcode_direct=unsupported | |
7775 | # It fails to find uninstalled libraries when the uninstalled | |
7776 | # path is not listed in the libpath. Setting hardcode_minus_L | |
7777 | # to unsupported forces relinking | |
7778 | hardcode_minus_L=yes | |
7779 | hardcode_libdir_flag_spec='-L$libdir' | |
7780 | hardcode_libdir_separator= | |
7781 | fi | |
7782 | ;; | |
7783 | esac | |
7784 | shared_flag='-shared' | |
7785 | if test "$aix_use_runtimelinking" = yes; then | |
7786 | shared_flag="$shared_flag "'${wl}-G' | |
7787 | fi | |
7788 | else | |
7789 | # not using gcc | |
7790 | if test "$host_cpu" = ia64; then | |
7791 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
7792 | # chokes on -Wl,-G. The following line is correct: | |
7793 | shared_flag='-G' | |
7794 | else | |
7795 | if test "$aix_use_runtimelinking" = yes; then | |
7796 | shared_flag='${wl}-G' | |
7797 | else | |
7798 | shared_flag='${wl}-bM:SRE' | |
7799 | fi | |
7800 | fi | |
7801 | fi | |
7802 | ||
7803 | # It seems that -bexpall does not export symbols beginning with | |
7804 | # underscore (_), so it is better to generate a list of symbols to export. | |
7805 | always_export_symbols=yes | |
7806 | if test "$aix_use_runtimelinking" = yes; then | |
7807 | # Warning - without using the other runtime loading flags (-brtl), | |
7808 | # -berok will link without error, but may produce a broken library. | |
7809 | allow_undefined_flag='-berok' | |
7810 | # Determine the default libpath from the value encoded in an | |
7811 | # empty executable. | |
7812 | cat >conftest.$ac_ext <<_ACEOF | |
7813 | /* confdefs.h. */ | |
7814 | _ACEOF | |
7815 | cat confdefs.h >>conftest.$ac_ext | |
7816 | cat >>conftest.$ac_ext <<_ACEOF | |
7817 | /* end confdefs.h. */ | |
7818 | ||
7819 | int | |
7820 | main () | |
7821 | { | |
7822 | ||
7823 | ; | |
7824 | return 0; | |
7825 | } | |
7826 | _ACEOF | |
7827 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7829 | (eval $ac_link) 2>conftest.er1 | |
7830 | ac_status=$? | |
7831 | grep -v '^ *+' conftest.er1 >conftest.err | |
7832 | rm -f conftest.er1 | |
7833 | cat conftest.err >&5 | |
7834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7835 | (exit $ac_status); } && | |
7836 | { ac_try='test -z "$ac_c_werror_flag" | |
7837 | || test ! -s conftest.err' | |
7838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7839 | (eval $ac_try) 2>&5 | |
7840 | ac_status=$? | |
7841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7842 | (exit $ac_status); }; } && | |
7843 | { ac_try='test -s conftest$ac_exeext' | |
7844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7845 | (eval $ac_try) 2>&5 | |
7846 | ac_status=$? | |
7847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7848 | (exit $ac_status); }; }; then | |
7849 | ||
7850 | lt_aix_libpath_sed=' | |
7851 | /Import File Strings/,/^$/ { | |
7852 | /^0/ { | |
7853 | s/^0 *\(.*\)$/\1/ | |
7854 | p | |
7855 | } | |
7856 | }' | |
7857 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7858 | # Check for a 64-bit object if we didn't find anything. | |
7859 | if test -z "$aix_libpath"; then | |
7860 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7861 | fi | |
7862 | else | |
7863 | echo "$as_me: failed program was:" >&5 | |
7864 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7865 | ||
7866 | fi | |
7867 | rm -f conftest.err conftest.$ac_objext \ | |
7868 | conftest$ac_exeext conftest.$ac_ext | |
7869 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7870 | ||
7871 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7872 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
7873 | else | |
7874 | if test "$host_cpu" = ia64; then | |
7875 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
7876 | allow_undefined_flag="-z nodefs" | |
7877 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
7878 | else | |
7879 | # Determine the default libpath from the value encoded in an | |
7880 | # empty executable. | |
7881 | cat >conftest.$ac_ext <<_ACEOF | |
7882 | /* confdefs.h. */ | |
7883 | _ACEOF | |
7884 | cat confdefs.h >>conftest.$ac_ext | |
7885 | cat >>conftest.$ac_ext <<_ACEOF | |
7886 | /* end confdefs.h. */ | |
7887 | ||
7888 | int | |
7889 | main () | |
7890 | { | |
7891 | ||
7892 | ; | |
7893 | return 0; | |
7894 | } | |
7895 | _ACEOF | |
7896 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7897 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7898 | (eval $ac_link) 2>conftest.er1 | |
7899 | ac_status=$? | |
7900 | grep -v '^ *+' conftest.er1 >conftest.err | |
7901 | rm -f conftest.er1 | |
7902 | cat conftest.err >&5 | |
7903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7904 | (exit $ac_status); } && | |
7905 | { ac_try='test -z "$ac_c_werror_flag" | |
7906 | || test ! -s conftest.err' | |
7907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7908 | (eval $ac_try) 2>&5 | |
7909 | ac_status=$? | |
7910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7911 | (exit $ac_status); }; } && | |
7912 | { ac_try='test -s conftest$ac_exeext' | |
7913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7914 | (eval $ac_try) 2>&5 | |
7915 | ac_status=$? | |
7916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7917 | (exit $ac_status); }; }; then | |
7918 | ||
7919 | lt_aix_libpath_sed=' | |
7920 | /Import File Strings/,/^$/ { | |
7921 | /^0/ { | |
7922 | s/^0 *\(.*\)$/\1/ | |
7923 | p | |
7924 | } | |
7925 | }' | |
7926 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7927 | # Check for a 64-bit object if we didn't find anything. | |
7928 | if test -z "$aix_libpath"; then | |
7929 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
7930 | fi | |
7931 | else | |
7932 | echo "$as_me: failed program was:" >&5 | |
7933 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7934 | ||
7935 | fi | |
7936 | rm -f conftest.err conftest.$ac_objext \ | |
7937 | conftest$ac_exeext conftest.$ac_ext | |
7938 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
7939 | ||
7940 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
7941 | # Warning - without using the other run time loading flags, | |
7942 | # -berok will link without error, but may produce a broken library. | |
7943 | no_undefined_flag=' ${wl}-bernotok' | |
7944 | allow_undefined_flag=' ${wl}-berok' | |
7945 | # Exported symbols can be pulled into shared objects from archives | |
7946 | whole_archive_flag_spec='$convenience' | |
7947 | archive_cmds_need_lc=yes | |
7948 | # This is similar to how AIX traditionally builds its shared libraries. | |
7949 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
7950 | fi | |
7951 | fi | |
7952 | ;; | |
7953 | ||
7954 | amigaos*) | |
7955 | if test "$host_cpu" = m68k; then | |
7956 | archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | |
7957 | hardcode_libdir_flag_spec='-L$libdir' | |
7958 | hardcode_minus_L=yes | |
7959 | fi | |
7960 | # see comment about different semantics on the GNU ld section | |
7961 | ld_shlibs=no | |
7962 | ;; | |
7963 | ||
7964 | bsdi[45]*) | |
7965 | export_dynamic_flag_spec=-rdynamic | |
7966 | ;; | |
7967 | ||
7968 | cygwin* | mingw* | pw32*) | |
7969 | # When not using gcc, we currently assume that we are using | |
7970 | # Microsoft Visual C++. | |
7971 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
7972 | # no search path for DLLs. | |
7973 | hardcode_libdir_flag_spec=' ' | |
7974 | allow_undefined_flag=unsupported | |
7975 | # Tell ltmain to make .lib files, not .a files. | |
7976 | libext=lib | |
7977 | # Tell ltmain to make .dll files, not .so files. | |
7978 | shrext_cmds=".dll" | |
7979 | # FIXME: Setting linknames here is a bad hack. | |
7980 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
7981 | # The linker will automatically build a .lib file if we build a DLL. | |
7982 | old_archive_from_new_cmds='true' | |
7983 | # FIXME: Should let the user specify the lib program. | |
7984 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
7985 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
7986 | enable_shared_with_static_runtimes=yes | |
7987 | ;; | |
7988 | ||
7989 | darwin* | rhapsody*) | |
7990 | case $host_os in | |
7991 | rhapsody* | darwin1.[012]) | |
7992 | allow_undefined_flag='${wl}-undefined ${wl}suppress' | |
7993 | ;; | |
7994 | *) # Darwin 1.3 on | |
7995 | case ${MACOSX_DEPLOYMENT_TARGET-10.0} in | |
7996 | 10.[012]) | |
7997 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
7998 | ;; | |
7999 | 10.*) | |
8000 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | |
8001 | ;; | |
8002 | esac | |
8003 | ;; | |
8004 | esac | |
8005 | archive_cmds_need_lc=no | |
8006 | hardcode_direct=no | |
8007 | hardcode_automatic=yes | |
8008 | hardcode_shlibpath_var=unsupported | |
8009 | whole_archive_flag_spec='' | |
8010 | link_all_deplibs=yes | |
8011 | if test "$GCC" = yes ; then | |
8012 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
8013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8014 | else | |
8015 | lt_cv_apple_cc_single_mod=no | |
8016 | if test -z "${LT_MULTI_MODULE}"; then | |
8017 | # By default we will add the -single_module flag. You can override | |
8018 | # by either setting the environment variable LT_MULTI_MODULE | |
8019 | # non-empty at configure time, or by adding -multi-module to the | |
8020 | # link flags. | |
8021 | echo "int foo(void){return 1;}" > conftest.c | |
8022 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
8023 | -dynamiclib ${wl}-single_module conftest.c | |
8024 | if test -f libconftest.dylib; then | |
8025 | lt_cv_apple_cc_single_mod=yes | |
8026 | rm libconftest.dylib | |
8027 | fi | |
8028 | rm conftest.$ac_ext | |
8029 | fi | |
8030 | fi | |
8031 | ||
8032 | output_verbose_link_cmd=echo | |
8033 | if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then | |
8034 | archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
8035 | archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8036 | else | |
8037 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
8038 | archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8039 | fi | |
8040 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
8041 | module_expsym_cmds='sed -e "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8042 | else | |
8043 | case $cc_basename in | |
8044 | xlc*) | |
8045 | output_verbose_link_cmd=echo | |
8046 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring' | |
8047 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
8048 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
8049 | archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8050 | module_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
8051 | ;; | |
8052 | *) | |
8053 | ld_shlibs=no | |
8054 | ;; | |
8055 | esac | |
8056 | fi | |
8057 | ;; | |
8058 | ||
8059 | dgux*) | |
8060 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8061 | hardcode_libdir_flag_spec='-L$libdir' | |
8062 | hardcode_shlibpath_var=no | |
8063 | ;; | |
8064 | ||
8065 | freebsd1*) | |
8066 | ld_shlibs=no | |
8067 | ;; | |
8068 | ||
8069 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
8070 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
8071 | # does not break anything, and helps significantly (at the cost of a little | |
8072 | # extra space). | |
8073 | freebsd2.2*) | |
8074 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
8075 | hardcode_libdir_flag_spec='-R$libdir' | |
8076 | hardcode_direct=yes | |
8077 | hardcode_shlibpath_var=no | |
8078 | ;; | |
8079 | ||
8080 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
8081 | freebsd2*) | |
8082 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8083 | hardcode_direct=yes | |
8084 | hardcode_minus_L=yes | |
8085 | hardcode_shlibpath_var=no | |
8086 | ;; | |
8087 | ||
8088 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
8089 | freebsd* | dragonfly*) | |
8090 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
8091 | hardcode_libdir_flag_spec='-R$libdir' | |
8092 | hardcode_direct=yes | |
8093 | hardcode_shlibpath_var=no | |
8094 | ;; | |
8095 | ||
8096 | hpux9*) | |
8097 | if test "$GCC" = yes; then | |
8098 | archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
8099 | else | |
8100 | archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
8101 | fi | |
8102 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8103 | hardcode_libdir_separator=: | |
8104 | hardcode_direct=yes | |
8105 | ||
8106 | # hardcode_minus_L: Not really in the search PATH, | |
8107 | # but as the default location of the library. | |
8108 | hardcode_minus_L=yes | |
8109 | export_dynamic_flag_spec='${wl}-E' | |
8110 | ;; | |
8111 | ||
8112 | hpux10*) | |
8113 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8114 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8115 | else | |
8116 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
8117 | fi | |
8118 | if test "$with_gnu_ld" = no; then | |
8119 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8120 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
8121 | hardcode_libdir_separator=: | |
8122 | hardcode_direct=yes | |
8123 | hardcode_direct_absolute=yes | |
8124 | export_dynamic_flag_spec='${wl}-E' | |
8125 | # hardcode_minus_L: Not really in the search PATH, | |
8126 | # but as the default location of the library. | |
8127 | hardcode_minus_L=yes | |
8128 | fi | |
8129 | ;; | |
8130 | ||
8131 | hpux11*) | |
8132 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
8133 | case $host_cpu in | |
8134 | hppa*64*) | |
8135 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8136 | ;; | |
8137 | ia64*) | |
8138 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8139 | ;; | |
8140 | *) | |
8141 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8142 | ;; | |
8143 | esac | |
8144 | else | |
8145 | case $host_cpu in | |
8146 | hppa*64*) | |
8147 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8148 | ;; | |
8149 | ia64*) | |
8150 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
8151 | ;; | |
8152 | *) | |
8153 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
8154 | ;; | |
8155 | esac | |
8156 | fi | |
8157 | if test "$with_gnu_ld" = no; then | |
8158 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
8159 | hardcode_libdir_separator=: | |
8160 | ||
8161 | case $host_cpu in | |
8162 | hppa*64*|ia64*) | |
8163 | hardcode_direct=no | |
8164 | hardcode_shlibpath_var=no | |
8165 | ;; | |
8166 | *) | |
8167 | hardcode_direct=yes | |
8168 | hardcode_direct_absolute=yes | |
8169 | export_dynamic_flag_spec='${wl}-E' | |
8170 | ||
8171 | # hardcode_minus_L: Not really in the search PATH, | |
8172 | # but as the default location of the library. | |
8173 | hardcode_minus_L=yes | |
8174 | ;; | |
8175 | esac | |
8176 | fi | |
8177 | ;; | |
8178 | ||
8179 | irix5* | irix6* | nonstopux*) | |
8180 | if test "$GCC" = yes; then | |
8181 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8182 | # Try to use the -exported_symbol ld option, if it does not | |
8183 | # work, assume that -exports_file does not work either and | |
8184 | # implicitly export all symbols. | |
8185 | save_LDFLAGS="$LDFLAGS" | |
8186 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
8187 | cat >conftest.$ac_ext <<_ACEOF | |
8188 | int foo(void) {} | |
8189 | _ACEOF | |
8190 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8191 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8192 | (eval $ac_link) 2>conftest.er1 | |
8193 | ac_status=$? | |
8194 | grep -v '^ *+' conftest.er1 >conftest.err | |
8195 | rm -f conftest.er1 | |
8196 | cat conftest.err >&5 | |
8197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8198 | (exit $ac_status); } && | |
8199 | { ac_try='test -z "$ac_c_werror_flag" | |
8200 | || test ! -s conftest.err' | |
8201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8202 | (eval $ac_try) 2>&5 | |
8203 | ac_status=$? | |
8204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8205 | (exit $ac_status); }; } && | |
8206 | { ac_try='test -s conftest$ac_exeext' | |
8207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8208 | (eval $ac_try) 2>&5 | |
8209 | ac_status=$? | |
8210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8211 | (exit $ac_status); }; }; then | |
8212 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
8213 | ||
8214 | else | |
8215 | echo "$as_me: failed program was:" >&5 | |
8216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8217 | ||
8218 | fi | |
8219 | rm -f conftest.err conftest.$ac_objext \ | |
8220 | conftest$ac_exeext conftest.$ac_ext | |
8221 | LDFLAGS="$save_LDFLAGS" | |
8222 | else | |
8223 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8224 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
8225 | fi | |
8226 | archive_cmds_need_lc='no' | |
8227 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8228 | hardcode_libdir_separator=: | |
8229 | inherit_rpath=yes | |
8230 | link_all_deplibs=yes | |
8231 | ;; | |
8232 | ||
8233 | netbsd*) | |
8234 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8235 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
8236 | else | |
8237 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
8238 | fi | |
8239 | hardcode_libdir_flag_spec='-R$libdir' | |
8240 | hardcode_direct=yes | |
8241 | hardcode_shlibpath_var=no | |
8242 | ;; | |
8243 | ||
8244 | newsos6) | |
8245 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8246 | hardcode_direct=yes | |
8247 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8248 | hardcode_libdir_separator=: | |
8249 | hardcode_shlibpath_var=no | |
8250 | ;; | |
8251 | ||
8252 | *nto* | *qnx*) | |
8253 | ;; | |
8254 | ||
8255 | openbsd*) | |
8256 | hardcode_direct=yes | |
8257 | hardcode_shlibpath_var=no | |
8258 | hardcode_direct_absolute=yes | |
8259 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
8260 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8261 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
8262 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8263 | export_dynamic_flag_spec='${wl}-E' | |
8264 | else | |
8265 | case $host_os in | |
8266 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
8267 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8268 | hardcode_libdir_flag_spec='-R$libdir' | |
8269 | ;; | |
8270 | *) | |
8271 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
8272 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8273 | ;; | |
8274 | esac | |
8275 | fi | |
8276 | ;; | |
8277 | ||
8278 | os2*) | |
8279 | hardcode_libdir_flag_spec='-L$libdir' | |
8280 | hardcode_minus_L=yes | |
8281 | allow_undefined_flag=unsupported | |
8282 | archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | |
8283 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
8284 | ;; | |
8285 | ||
8286 | osf3*) | |
8287 | if test "$GCC" = yes; then | |
8288 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8289 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8290 | else | |
8291 | allow_undefined_flag=' -expect_unresolved \*' | |
8292 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8293 | fi | |
8294 | archive_cmds_need_lc='no' | |
8295 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8296 | hardcode_libdir_separator=: | |
8297 | ;; | |
8298 | ||
8299 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
8300 | if test "$GCC" = yes; then | |
8301 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
8302 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | |
8303 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8304 | else | |
8305 | allow_undefined_flag=' -expect_unresolved \*' | |
8306 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' | |
8307 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ | |
8308 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' | |
8309 | ||
8310 | # Both c and cxx compiler support -rpath directly | |
8311 | hardcode_libdir_flag_spec='-rpath $libdir' | |
8312 | fi | |
8313 | archive_cmds_need_lc='no' | |
8314 | hardcode_libdir_separator=: | |
8315 | ;; | |
8316 | ||
8317 | solaris*) | |
8318 | no_undefined_flag=' -z defs' | |
8319 | if test "$GCC" = yes; then | |
8320 | wlarc='${wl}' | |
8321 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8322 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8323 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8324 | else | |
8325 | case `$CC -V 2>&1` in | |
8326 | *"Compilers 5.0"*) | |
8327 | wlarc='' | |
8328 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8329 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8330 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
8331 | ;; | |
8332 | *) | |
8333 | wlarc='${wl}' | |
8334 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8335 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
8336 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
8337 | ;; | |
8338 | esac | |
8339 | fi | |
8340 | hardcode_libdir_flag_spec='-R$libdir' | |
8341 | hardcode_shlibpath_var=no | |
8342 | case $host_os in | |
8343 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
8344 | *) | |
8345 | # The compiler driver will combine and reorder linker options, | |
8346 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
8347 | # but is careful enough not to reorder. | |
8348 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
8349 | if test "$GCC" = yes; then | |
8350 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
8351 | else | |
8352 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
8353 | fi | |
8354 | ;; | |
8355 | esac | |
8356 | link_all_deplibs=yes | |
8357 | ;; | |
8358 | ||
8359 | sunos4*) | |
8360 | if test "x$host_vendor" = xsequent; then | |
8361 | # Use $CC to link under sequent, because it throws in some extra .o | |
8362 | # files that make .init and .fini sections work. | |
8363 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
8364 | else | |
8365 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
8366 | fi | |
8367 | hardcode_libdir_flag_spec='-L$libdir' | |
8368 | hardcode_direct=yes | |
8369 | hardcode_minus_L=yes | |
8370 | hardcode_shlibpath_var=no | |
8371 | ;; | |
8372 | ||
8373 | sysv4) | |
8374 | case $host_vendor in | |
8375 | sni) | |
8376 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8377 | hardcode_direct=yes # is this really true??? | |
8378 | ;; | |
8379 | siemens) | |
8380 | ## LD is ld it makes a PLAMLIB | |
8381 | ## CC just makes a GrossModule. | |
8382 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
8383 | reload_cmds='$CC -r -o $output$reload_objs' | |
8384 | hardcode_direct=no | |
8385 | ;; | |
8386 | motorola) | |
8387 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8388 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
8389 | ;; | |
8390 | esac | |
8391 | runpath_var='LD_RUN_PATH' | |
8392 | hardcode_shlibpath_var=no | |
8393 | ;; | |
8394 | ||
8395 | sysv4.3*) | |
8396 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8397 | hardcode_shlibpath_var=no | |
8398 | export_dynamic_flag_spec='-Bexport' | |
8399 | ;; | |
8400 | ||
8401 | sysv4*MP*) | |
8402 | if test -d /usr/nec; then | |
8403 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8404 | hardcode_shlibpath_var=no | |
8405 | runpath_var=LD_RUN_PATH | |
8406 | hardcode_runpath_var=yes | |
8407 | ld_shlibs=yes | |
8408 | fi | |
8409 | ;; | |
8410 | ||
8411 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
8412 | no_undefined_flag='${wl}-z,text' | |
8413 | archive_cmds_need_lc=no | |
8414 | hardcode_shlibpath_var=no | |
8415 | runpath_var='LD_RUN_PATH' | |
8416 | ||
8417 | if test "$GCC" = yes; then | |
8418 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8419 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8420 | else | |
8421 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8422 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8423 | fi | |
8424 | ;; | |
8425 | ||
8426 | sysv5* | sco3.2v5* | sco5v6*) | |
8427 | # Note: We can NOT use -z defs as we might desire, because we do not | |
8428 | # link with -lc, and that would cause any symbols used from libc to | |
8429 | # always be unresolved, which means just about no library would | |
8430 | # ever link correctly. If we're not using GNU ld we use -z text | |
8431 | # though, which does catch some bad symbols but isn't as heavy-handed | |
8432 | # as -z defs. | |
8433 | no_undefined_flag='${wl}-z,text' | |
8434 | allow_undefined_flag='${wl}-z,nodefs' | |
8435 | archive_cmds_need_lc=no | |
8436 | hardcode_shlibpath_var=no | |
8437 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
8438 | hardcode_libdir_separator=':' | |
8439 | link_all_deplibs=yes | |
8440 | export_dynamic_flag_spec='${wl}-Bexport' | |
8441 | runpath_var='LD_RUN_PATH' | |
8442 | ||
8443 | if test "$GCC" = yes; then | |
8444 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8445 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8446 | else | |
8447 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8448 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
8449 | fi | |
8450 | ;; | |
8451 | ||
8452 | uts4*) | |
8453 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
8454 | hardcode_libdir_flag_spec='-L$libdir' | |
8455 | hardcode_shlibpath_var=no | |
8456 | ;; | |
8457 | ||
8458 | *) | |
8459 | ld_shlibs=no | |
8460 | ;; | |
8461 | esac | |
8462 | ||
8463 | if test x$host_vendor = xsni; then | |
8464 | case $host in | |
8465 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
8466 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
8467 | ;; | |
8468 | esac | |
8469 | fi | |
8470 | fi | |
8471 | ||
8472 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
8473 | echo "${ECHO_T}$ld_shlibs" >&6 | |
8474 | test "$ld_shlibs" = no && can_build_shared=no | |
8475 | ||
8476 | with_gnu_ld=$with_gnu_ld | |
8477 | ||
8478 | ||
8479 | ||
8480 | ||
8481 | ||
8482 | ||
8483 | ||
8484 | ||
8485 | ||
8486 | ||
8487 | ||
8488 | ||
8489 | ||
8490 | ||
8491 | ||
8492 | # | |
8493 | # Do we need to explicitly link libc? | |
8494 | # | |
8495 | case "x$archive_cmds_need_lc" in | |
8496 | x|xyes) | |
8497 | # Assume -lc should be added | |
8498 | archive_cmds_need_lc=yes | |
8499 | ||
8500 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
8501 | case $archive_cmds in | |
8502 | *'~'*) | |
8503 | # FIXME: we may have to deal with multi-command sequences. | |
8504 | ;; | |
8505 | '$CC '*) | |
8506 | # Test whether the compiler implicitly links with -lc since on some | |
8507 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
8508 | # to ld, don't add -lc before -lgcc. | |
8509 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
8510 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
8511 | $RM conftest* | |
8512 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8513 | ||
8514 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8515 | (eval $ac_compile) 2>&5 | |
8516 | ac_status=$? | |
8517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8518 | (exit $ac_status); } 2>conftest.err; then | |
8519 | soname=conftest | |
8520 | lib=conftest | |
8521 | libobjs=conftest.$ac_objext | |
8522 | deplibs= | |
8523 | wl=$lt_prog_compiler_wl | |
8524 | pic_flag=$lt_prog_compiler_pic | |
8525 | compiler_flags=-v | |
8526 | linker_flags=-v | |
8527 | verstring= | |
8528 | output_objdir=. | |
8529 | libname=conftest | |
8530 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
8531 | allow_undefined_flag= | |
8532 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
8533 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
8534 | ac_status=$? | |
8535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8536 | (exit $ac_status); } | |
8537 | then | |
8538 | archive_cmds_need_lc=no | |
8539 | else | |
8540 | archive_cmds_need_lc=yes | |
8541 | fi | |
8542 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
8543 | else | |
8544 | cat conftest.err 1>&5 | |
8545 | fi | |
8546 | $RM conftest* | |
8547 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
8548 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 | |
8549 | ;; | |
8550 | esac | |
8551 | fi | |
8552 | ;; | |
8553 | esac | |
8554 | ||
8555 | ||
8556 | ||
8557 | ||
8558 | ||
8559 | ||
8560 | ||
8561 | ||
8562 | ||
8563 | ||
8564 | ||
8565 | ||
8566 | ||
8567 | ||
8568 | ||
8569 | ||
8570 | ||
8571 | ||
8572 | ||
8573 | ||
8574 | ||
8575 | ||
8576 | ||
8577 | ||
8578 | ||
8579 | ||
8580 | ||
8581 | ||
8582 | ||
8583 | ||
8584 | ||
8585 | ||
8586 | ||
8587 | ||
8588 | ||
8589 | ||
8590 | ||
8591 | ||
8592 | ||
8593 | ||
8594 | ||
8595 | ||
8596 | ||
8597 | ||
8598 | ||
8599 | ||
8600 | ||
8601 | ||
8602 | ||
8603 | ||
8604 | ||
8605 | ||
8606 | ||
8607 | ||
8608 | ||
8609 | ||
8610 | ||
8611 | ||
8612 | ||
8613 | ||
8614 | ||
8615 | ||
8616 | ||
8617 | ||
8618 | ||
8619 | ||
8620 | ||
8621 | ||
8622 | ||
8623 | ||
8624 | ||
8625 | ||
8626 | ||
8627 | ||
8628 | ||
8629 | ||
8630 | ||
8631 | ||
8632 | ||
8633 | ||
8634 | ||
8635 | ||
8636 | ||
8637 | ||
8638 | ||
8639 | ||
8640 | ||
8641 | ||
8642 | ||
8643 | ||
8644 | ||
8645 | ||
8646 | ||
8647 | ||
8648 | ||
8649 | ||
8650 | ||
8651 | ||
8652 | ||
8653 | ||
8654 | ||
8655 | ||
8656 | ||
8657 | ||
8658 | ||
8659 | ||
8660 | ||
8661 | ||
8662 | ||
8663 | ||
8664 | ||
8665 | ||
8666 | ||
8667 | ||
8668 | ||
8669 | ||
8670 | ||
8671 | ||
8672 | ||
8673 | ||
8674 | ||
8675 | ||
8676 | ||
8677 | ||
8678 | ||
8679 | ||
8680 | ||
8681 | ||
8682 | ||
8683 | ||
8684 | ||
8685 | ||
8686 | ||
8687 | ||
8688 | ||
8689 | ||
8690 | ||
8691 | ||
8692 | ||
8693 | ||
8694 | ||
8695 | ||
8696 | ||
8697 | ||
8698 | ||
8699 | ||
8700 | ||
8701 | ||
8702 | ||
8703 | ||
8704 | ||
8705 | ||
8706 | ||
8707 | ||
8708 | ||
8709 | ||
8710 | ||
8711 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
8712 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
8713 | withGCC=$GCC | |
8714 | if test "$withGCC" = yes; then | |
8715 | case $host_os in | |
8716 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
8717 | *) lt_awk_arg="/^libraries:/" ;; | |
8718 | esac | |
8719 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8720 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
8721 | # if the path contains ";" then we assume it to be the separator | |
8722 | # otherwise default to the standard path separator (i.e. ":") - it is | |
8723 | # assumed that no part of a normal pathname contains ";" but that should | |
8724 | # okay in the real world where ";" in dirpaths is itself problematic. | |
8725 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
8726 | else | |
8727 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8728 | fi | |
8729 | # Ok, now we have the path, separated by spaces, we can step through it | |
8730 | # and add multilib dir if necessary. | |
8731 | lt_tmp_lt_search_path_spec= | |
8732 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
8733 | for lt_sys_path in $lt_search_path_spec; do | |
8734 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
8735 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
8736 | else | |
8737 | test -d "$lt_sys_path" && \ | |
8738 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
8739 | fi | |
8740 | done | |
8741 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
8742 | BEGIN {RS=" "; FS="/|\n";} { | |
8743 | lt_foo=""; | |
8744 | lt_count=0; | |
8745 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
8746 | if ($lt_i != "" && $lt_i != ".") { | |
8747 | if ($lt_i == "..") { | |
8748 | lt_count++; | |
8749 | } else { | |
8750 | if (lt_count == 0) { | |
8751 | lt_foo="/" $lt_i lt_foo; | |
8752 | } else { | |
8753 | lt_count--; | |
8754 | } | |
8755 | } | |
8756 | } | |
8757 | } | |
8758 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
8759 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
8760 | }'` | |
8761 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
8762 | else | |
8763 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
8764 | fi | |
8765 | library_names_spec= | |
8766 | libname_spec='lib$name' | |
8767 | soname_spec= | |
8768 | shrext_cmds=".so" | |
8769 | postinstall_cmds= | |
8770 | postuninstall_cmds= | |
8771 | finish_cmds= | |
8772 | finish_eval= | |
8773 | shlibpath_var= | |
8774 | shlibpath_overrides_runpath=unknown | |
8775 | version_type=none | |
8776 | dynamic_linker="$host_os ld.so" | |
8777 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
8778 | need_lib_prefix=unknown | |
8779 | hardcode_into_libs=no | |
8780 | ||
8781 | # when you set need_version to no, make sure it does not cause -set_version | |
8782 | # flags to be left without arguments | |
8783 | need_version=unknown | |
8784 | ||
8785 | case $host_os in | |
8786 | aix3*) | |
8787 | version_type=linux | |
8788 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
8789 | shlibpath_var=LIBPATH | |
8790 | ||
8791 | # AIX 3 has no versioning support, so we append a major version to the name. | |
8792 | soname_spec='${libname}${release}${shared_ext}$major' | |
8793 | ;; | |
8794 | ||
e81819a5 | 8795 | aix[4-9]*) |
d7040cdb SE |
8796 | version_type=linux |
8797 | need_lib_prefix=no | |
8798 | need_version=no | |
8799 | hardcode_into_libs=yes | |
8800 | if test "$host_cpu" = ia64; then | |
8801 | # AIX 5 supports IA64 | |
8802 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
8803 | shlibpath_var=LD_LIBRARY_PATH | |
8804 | else | |
8805 | # With GCC up to 2.95.x, collect2 would create an import file | |
8806 | # for dependence libraries. The import file would start with | |
8807 | # the line `#! .'. This would cause the generated library to | |
8808 | # depend on `.', always an invalid library. This was fixed in | |
8809 | # development snapshots of GCC prior to 3.0. | |
8810 | case $host_os in | |
8811 | aix4 | aix4.[01] | aix4.[01].*) | |
8812 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
8813 | echo ' yes ' | |
8814 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
8815 | : | |
8816 | else | |
8817 | can_build_shared=no | |
8818 | fi | |
8819 | ;; | |
8820 | esac | |
8821 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
8822 | # soname into executable. Probably we can add versioning support to | |
8823 | # collect2, so additional links can be useful in future. | |
8824 | if test "$aix_use_runtimelinking" = yes; then | |
8825 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
8826 | # instead of lib<name>.a to let people know that these are not | |
8827 | # typical AIX shared libraries. | |
8828 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8829 | else | |
8830 | # We preserve .a as extension for shared libraries through AIX4.2 | |
8831 | # and later when we are not doing run time linking. | |
8832 | library_names_spec='${libname}${release}.a $libname.a' | |
8833 | soname_spec='${libname}${release}${shared_ext}$major' | |
8834 | fi | |
8835 | shlibpath_var=LIBPATH | |
8836 | fi | |
8837 | ;; | |
8838 | ||
8839 | amigaos*) | |
8840 | if test "$host_cpu" = m68k; then | |
8841 | library_names_spec='$libname.ixlibrary $libname.a' | |
8842 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
8843 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | |
8844 | else | |
8845 | dynamic_linker=no | |
8846 | fi | |
8847 | ;; | |
8848 | ||
8849 | beos*) | |
8850 | library_names_spec='${libname}${shared_ext}' | |
8851 | dynamic_linker="$host_os ld.so" | |
8852 | shlibpath_var=LIBRARY_PATH | |
8853 | ;; | |
8854 | ||
8855 | bsdi[45]*) | |
8856 | version_type=linux | |
8857 | need_version=no | |
8858 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
8859 | soname_spec='${libname}${release}${shared_ext}$major' | |
8860 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
8861 | shlibpath_var=LD_LIBRARY_PATH | |
8862 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
8863 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
8864 | # the default ld.so.conf also contains /usr/contrib/lib and | |
8865 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
8866 | # libtool to hard-code these into programs | |
8867 | ;; | |
8868 | ||
8869 | cygwin* | mingw* | pw32*) | |
8870 | version_type=windows | |
8871 | shrext_cmds=".dll" | |
8872 | need_version=no | |
8873 | need_lib_prefix=no | |
8874 | ||
8875 | case $withGCC,$host_os in | |
8876 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
8877 | library_names_spec='$libname.dll.a' | |
8878 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
8879 | postinstall_cmds='base_file=`basename \${file}`~ | |
8880 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
8881 | dldir=$destdir/`dirname \$dlpath`~ | |
8882 | test -d \$dldir || mkdir -p \$dldir~ | |
8883 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
8884 | chmod a+x \$dldir/$dlname~ | |
8885 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
8886 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
8887 | fi' | |
8888 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
8889 | dlpath=$dir/\$dldll~ | |
8890 | $RM \$dlpath' | |
8891 | shlibpath_overrides_runpath=yes | |
8892 | ||
8893 | case $host_os in | |
8894 | cygwin*) | |
8895 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
8896 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8897 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
8898 | ;; | |
8899 | mingw*) | |
8900 | # MinGW DLLs use traditional 'lib' prefix | |
8901 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8902 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
8903 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
8904 | # It is most probably a Windows format PATH printed by | |
8905 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
8906 | # path with ; separators, and with drive letters. We can handle the | |
8907 | # drive letters (cygwin fileutils understands them), so leave them, | |
8908 | # especially as we might pass files found there to a mingw objdump, | |
8909 | # which wouldn't understand a cygwinified path. Ahh. | |
8910 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
8911 | else | |
8912 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
8913 | fi | |
8914 | ;; | |
8915 | pw32*) | |
8916 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
8917 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
8918 | ;; | |
8919 | esac | |
8920 | ;; | |
8921 | ||
8922 | *) | |
8923 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
8924 | ;; | |
8925 | esac | |
8926 | dynamic_linker='Win32 ld.exe' | |
8927 | # FIXME: first we should search . and the directory the executable is in | |
8928 | shlibpath_var=PATH | |
8929 | ;; | |
8930 | ||
8931 | darwin* | rhapsody*) | |
8932 | dynamic_linker="$host_os dyld" | |
8933 | version_type=darwin | |
8934 | need_lib_prefix=no | |
8935 | need_version=no | |
8936 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
8937 | soname_spec='${libname}${release}${major}$shared_ext' | |
8938 | shlibpath_overrides_runpath=yes | |
8939 | shlibpath_var=DYLD_LIBRARY_PATH | |
8940 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
8941 | ||
8942 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
8943 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
8944 | ;; | |
8945 | ||
8946 | dgux*) | |
8947 | version_type=linux | |
8948 | need_lib_prefix=no | |
8949 | need_version=no | |
8950 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
8951 | soname_spec='${libname}${release}${shared_ext}$major' | |
8952 | shlibpath_var=LD_LIBRARY_PATH | |
8953 | ;; | |
8954 | ||
8955 | freebsd1*) | |
8956 | dynamic_linker=no | |
8957 | ;; | |
8958 | ||
8959 | freebsd* | dragonfly*) | |
8960 | # DragonFly does not have aout. When/if they implement a new | |
8961 | # versioning mechanism, adjust this. | |
8962 | if test -x /usr/bin/objformat; then | |
8963 | objformat=`/usr/bin/objformat` | |
8964 | else | |
8965 | case $host_os in | |
8966 | freebsd[123]*) objformat=aout ;; | |
8967 | *) objformat=elf ;; | |
8968 | esac | |
8969 | fi | |
8970 | version_type=freebsd-$objformat | |
8971 | case $version_type in | |
8972 | freebsd-elf*) | |
8973 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
8974 | need_version=no | |
8975 | need_lib_prefix=no | |
8976 | ;; | |
8977 | freebsd-*) | |
8978 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
8979 | need_version=yes | |
8980 | ;; | |
8981 | esac | |
8982 | shlibpath_var=LD_LIBRARY_PATH | |
8983 | case $host_os in | |
8984 | freebsd2*) | |
8985 | shlibpath_overrides_runpath=yes | |
8986 | ;; | |
8987 | freebsd3.[01]* | freebsdelf3.[01]*) | |
8988 | shlibpath_overrides_runpath=yes | |
8989 | hardcode_into_libs=yes | |
8990 | ;; | |
8991 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
8992 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
8993 | shlibpath_overrides_runpath=no | |
8994 | hardcode_into_libs=yes | |
8995 | ;; | |
8996 | *) # from 4.6 on, and DragonFly | |
8997 | shlibpath_overrides_runpath=yes | |
8998 | hardcode_into_libs=yes | |
8999 | ;; | |
9000 | esac | |
9001 | ;; | |
9002 | ||
9003 | gnu*) | |
9004 | version_type=linux | |
9005 | need_lib_prefix=no | |
9006 | need_version=no | |
9007 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
9008 | soname_spec='${libname}${release}${shared_ext}$major' | |
9009 | shlibpath_var=LD_LIBRARY_PATH | |
9010 | hardcode_into_libs=yes | |
9011 | ;; | |
9012 | ||
9013 | hpux9* | hpux10* | hpux11*) | |
9014 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
9015 | # link against other versions. | |
9016 | version_type=sunos | |
9017 | need_lib_prefix=no | |
9018 | need_version=no | |
9019 | case $host_cpu in | |
9020 | ia64*) | |
9021 | shrext_cmds='.so' | |
9022 | hardcode_into_libs=yes | |
9023 | dynamic_linker="$host_os dld.so" | |
9024 | shlibpath_var=LD_LIBRARY_PATH | |
9025 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9026 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9027 | soname_spec='${libname}${release}${shared_ext}$major' | |
9028 | if test "X$HPUX_IA64_MODE" = X32; then | |
9029 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
9030 | else | |
9031 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
9032 | fi | |
9033 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9034 | ;; | |
9035 | hppa*64*) | |
9036 | shrext_cmds='.sl' | |
9037 | hardcode_into_libs=yes | |
9038 | dynamic_linker="$host_os dld.sl" | |
9039 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
9040 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
9041 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9042 | soname_spec='${libname}${release}${shared_ext}$major' | |
9043 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
9044 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
9045 | ;; | |
9046 | *) | |
9047 | shrext_cmds='.sl' | |
9048 | dynamic_linker="$host_os dld.sl" | |
9049 | shlibpath_var=SHLIB_PATH | |
9050 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
9051 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9052 | soname_spec='${libname}${release}${shared_ext}$major' | |
9053 | ;; | |
9054 | esac | |
9055 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
9056 | postinstall_cmds='chmod 555 $lib' | |
9057 | ;; | |
9058 | ||
9059 | interix[3-9]*) | |
9060 | version_type=linux | |
9061 | need_lib_prefix=no | |
9062 | need_version=no | |
9063 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9064 | soname_spec='${libname}${release}${shared_ext}$major' | |
9065 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
9066 | shlibpath_var=LD_LIBRARY_PATH | |
9067 | shlibpath_overrides_runpath=no | |
9068 | hardcode_into_libs=yes | |
9069 | ;; | |
9070 | ||
9071 | irix5* | irix6* | nonstopux*) | |
9072 | case $host_os in | |
9073 | nonstopux*) version_type=nonstopux ;; | |
9074 | *) | |
9075 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
9076 | version_type=linux | |
9077 | else | |
9078 | version_type=irix | |
9079 | fi ;; | |
9080 | esac | |
9081 | need_lib_prefix=no | |
9082 | need_version=no | |
9083 | soname_spec='${libname}${release}${shared_ext}$major' | |
9084 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9085 | case $host_os in | |
9086 | irix5* | nonstopux*) | |
9087 | libsuff= shlibsuff= | |
9088 | ;; | |
9089 | *) | |
9090 | case $LD in # libtool.m4 will add one of these switches to LD | |
9091 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
9092 | libsuff= shlibsuff= libmagic=32-bit;; | |
9093 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
9094 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
9095 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
9096 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
9097 | *) libsuff= shlibsuff= libmagic=never-match;; | |
9098 | esac | |
9099 | ;; | |
9100 | esac | |
9101 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
9102 | shlibpath_overrides_runpath=no | |
9103 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
9104 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
9105 | hardcode_into_libs=yes | |
9106 | ;; | |
9107 | ||
9108 | # No shared lib support for Linux oldld, aout, or coff. | |
9109 | linux*oldld* | linux*aout* | linux*coff*) | |
9110 | dynamic_linker=no | |
9111 | ;; | |
9112 | ||
9113 | # This must be Linux ELF. | |
9114 | linux* | k*bsd*-gnu) | |
9115 | version_type=linux | |
9116 | need_lib_prefix=no | |
9117 | need_version=no | |
9118 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9119 | soname_spec='${libname}${release}${shared_ext}$major' | |
9120 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
9121 | shlibpath_var=LD_LIBRARY_PATH | |
9122 | shlibpath_overrides_runpath=no | |
9123 | # Some binutils ld are patched to set DT_RUNPATH | |
9124 | save_LDFLAGS=$LDFLAGS | |
9125 | save_libdir=$libdir | |
9126 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
9127 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
9128 | cat >conftest.$ac_ext <<_ACEOF | |
9129 | /* confdefs.h. */ | |
9130 | _ACEOF | |
9131 | cat confdefs.h >>conftest.$ac_ext | |
9132 | cat >>conftest.$ac_ext <<_ACEOF | |
9133 | /* end confdefs.h. */ | |
9134 | ||
9135 | int | |
9136 | main () | |
9137 | { | |
9138 | ||
9139 | ; | |
9140 | return 0; | |
9141 | } | |
9142 | _ACEOF | |
9143 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9144 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9145 | (eval $ac_link) 2>conftest.er1 | |
9146 | ac_status=$? | |
9147 | grep -v '^ *+' conftest.er1 >conftest.err | |
9148 | rm -f conftest.er1 | |
9149 | cat conftest.err >&5 | |
9150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9151 | (exit $ac_status); } && | |
9152 | { ac_try='test -z "$ac_c_werror_flag" | |
9153 | || test ! -s conftest.err' | |
9154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9155 | (eval $ac_try) 2>&5 | |
9156 | ac_status=$? | |
9157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9158 | (exit $ac_status); }; } && | |
9159 | { ac_try='test -s conftest$ac_exeext' | |
9160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9161 | (eval $ac_try) 2>&5 | |
9162 | ac_status=$? | |
9163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9164 | (exit $ac_status); }; }; then | |
9165 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then | |
9166 | shlibpath_overrides_runpath=yes | |
9167 | fi | |
9168 | ||
9169 | else | |
9170 | echo "$as_me: failed program was:" >&5 | |
9171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9172 | ||
9173 | fi | |
9174 | rm -f conftest.err conftest.$ac_objext \ | |
9175 | conftest$ac_exeext conftest.$ac_ext | |
9176 | LDFLAGS=$save_LDFLAGS | |
9177 | libdir=$save_libdir | |
9178 | ||
9179 | # This implies no fast_install, which is unacceptable. | |
9180 | # Some rework will be needed to allow for fast_install | |
9181 | # before this can be enabled. | |
9182 | hardcode_into_libs=yes | |
9183 | ||
9184 | # Append ld.so.conf contents to the search path | |
9185 | if test -f /etc/ld.so.conf; then | |
9186 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
9187 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
9188 | fi | |
9189 | ||
9190 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
9191 | # powerpc, because MkLinux only supported shared libraries with the | |
9192 | # GNU dynamic linker. Since this was broken with cross compilers, | |
9193 | # most powerpc-linux boxes support dynamic linking these days and | |
9194 | # people can always --disable-shared, the test was removed, and we | |
9195 | # assume the GNU/Linux dynamic linker is in use. | |
9196 | dynamic_linker='GNU/Linux ld.so' | |
9197 | ;; | |
9198 | ||
9199 | netbsd*) | |
9200 | version_type=sunos | |
9201 | need_lib_prefix=no | |
9202 | need_version=no | |
9203 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9204 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9205 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9206 | dynamic_linker='NetBSD (a.out) ld.so' | |
9207 | else | |
9208 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
9209 | soname_spec='${libname}${release}${shared_ext}$major' | |
9210 | dynamic_linker='NetBSD ld.elf_so' | |
9211 | fi | |
9212 | shlibpath_var=LD_LIBRARY_PATH | |
9213 | shlibpath_overrides_runpath=yes | |
9214 | hardcode_into_libs=yes | |
9215 | ;; | |
9216 | ||
9217 | newsos6) | |
9218 | version_type=linux | |
9219 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9220 | shlibpath_var=LD_LIBRARY_PATH | |
9221 | shlibpath_overrides_runpath=yes | |
9222 | ;; | |
9223 | ||
9224 | *nto* | *qnx*) | |
9225 | version_type=qnx | |
9226 | need_lib_prefix=no | |
9227 | need_version=no | |
9228 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9229 | soname_spec='${libname}${release}${shared_ext}$major' | |
9230 | shlibpath_var=LD_LIBRARY_PATH | |
9231 | shlibpath_overrides_runpath=no | |
9232 | hardcode_into_libs=yes | |
9233 | dynamic_linker='ldqnx.so' | |
9234 | ;; | |
9235 | ||
9236 | openbsd*) | |
9237 | version_type=sunos | |
9238 | sys_lib_dlsearch_path_spec="/usr/lib" | |
9239 | need_lib_prefix=no | |
9240 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
9241 | case $host_os in | |
9242 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
9243 | *) need_version=no ;; | |
9244 | esac | |
9245 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9246 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
9247 | shlibpath_var=LD_LIBRARY_PATH | |
9248 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9249 | case $host_os in | |
9250 | openbsd2.[89] | openbsd2.[89].*) | |
9251 | shlibpath_overrides_runpath=no | |
9252 | ;; | |
9253 | *) | |
9254 | shlibpath_overrides_runpath=yes | |
9255 | ;; | |
9256 | esac | |
9257 | else | |
9258 | shlibpath_overrides_runpath=yes | |
9259 | fi | |
9260 | ;; | |
9261 | ||
9262 | os2*) | |
9263 | libname_spec='$name' | |
9264 | shrext_cmds=".dll" | |
9265 | need_lib_prefix=no | |
9266 | library_names_spec='$libname${shared_ext} $libname.a' | |
9267 | dynamic_linker='OS/2 ld.exe' | |
9268 | shlibpath_var=LIBPATH | |
9269 | ;; | |
9270 | ||
9271 | osf3* | osf4* | osf5*) | |
9272 | version_type=osf | |
9273 | need_lib_prefix=no | |
9274 | need_version=no | |
9275 | soname_spec='${libname}${release}${shared_ext}$major' | |
9276 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9277 | shlibpath_var=LD_LIBRARY_PATH | |
9278 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
9279 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
9280 | ;; | |
9281 | ||
9282 | rdos*) | |
9283 | dynamic_linker=no | |
9284 | ;; | |
9285 | ||
9286 | solaris*) | |
9287 | version_type=linux | |
9288 | need_lib_prefix=no | |
9289 | need_version=no | |
9290 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9291 | soname_spec='${libname}${release}${shared_ext}$major' | |
9292 | shlibpath_var=LD_LIBRARY_PATH | |
9293 | shlibpath_overrides_runpath=yes | |
9294 | hardcode_into_libs=yes | |
9295 | # ldd complains unless libraries are executable | |
9296 | postinstall_cmds='chmod +x $lib' | |
9297 | ;; | |
9298 | ||
9299 | sunos4*) | |
9300 | version_type=sunos | |
9301 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
9302 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
9303 | shlibpath_var=LD_LIBRARY_PATH | |
9304 | shlibpath_overrides_runpath=yes | |
9305 | if test "$with_gnu_ld" = yes; then | |
9306 | need_lib_prefix=no | |
9307 | fi | |
9308 | need_version=yes | |
9309 | ;; | |
9310 | ||
9311 | sysv4 | sysv4.3*) | |
9312 | version_type=linux | |
9313 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9314 | soname_spec='${libname}${release}${shared_ext}$major' | |
9315 | shlibpath_var=LD_LIBRARY_PATH | |
9316 | case $host_vendor in | |
9317 | sni) | |
9318 | shlibpath_overrides_runpath=no | |
9319 | need_lib_prefix=no | |
9320 | runpath_var=LD_RUN_PATH | |
9321 | ;; | |
9322 | siemens) | |
9323 | need_lib_prefix=no | |
9324 | ;; | |
9325 | motorola) | |
9326 | need_lib_prefix=no | |
9327 | need_version=no | |
9328 | shlibpath_overrides_runpath=no | |
9329 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
9330 | ;; | |
9331 | esac | |
9332 | ;; | |
9333 | ||
9334 | sysv4*MP*) | |
9335 | if test -d /usr/nec ;then | |
9336 | version_type=linux | |
9337 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
9338 | soname_spec='$libname${shared_ext}.$major' | |
9339 | shlibpath_var=LD_LIBRARY_PATH | |
9340 | fi | |
9341 | ;; | |
9342 | ||
9343 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
9344 | version_type=freebsd-elf | |
9345 | need_lib_prefix=no | |
9346 | need_version=no | |
9347 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
9348 | soname_spec='${libname}${release}${shared_ext}$major' | |
9349 | shlibpath_var=LD_LIBRARY_PATH | |
9350 | shlibpath_overrides_runpath=yes | |
9351 | hardcode_into_libs=yes | |
9352 | if test "$with_gnu_ld" = yes; then | |
9353 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
9354 | else | |
9355 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
9356 | case $host_os in | |
9357 | sco3.2v5*) | |
9358 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
9359 | ;; | |
9360 | esac | |
9361 | fi | |
9362 | sys_lib_dlsearch_path_spec='/usr/lib' | |
9363 | ;; | |
9364 | ||
9365 | tpf*) | |
9366 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
9367 | version_type=linux | |
9368 | need_lib_prefix=no | |
9369 | need_version=no | |
9370 | library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9371 | shlibpath_var=LD_LIBRARY_PATH | |
9372 | shlibpath_overrides_runpath=no | |
9373 | hardcode_into_libs=yes | |
9374 | ;; | |
9375 | ||
9376 | uts4*) | |
9377 | version_type=linux | |
9378 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
9379 | soname_spec='${libname}${release}${shared_ext}$major' | |
9380 | shlibpath_var=LD_LIBRARY_PATH | |
9381 | ;; | |
9382 | ||
9383 | *) | |
9384 | dynamic_linker=no | |
9385 | ;; | |
9386 | esac | |
9387 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
9388 | echo "${ECHO_T}$dynamic_linker" >&6 | |
9389 | test "$dynamic_linker" = no && can_build_shared=no | |
9390 | ||
9391 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
9392 | if test "$GCC" = yes; then | |
9393 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
9394 | fi | |
9395 | ||
9396 | ||
9397 | ||
9398 | ||
9399 | ||
9400 | ||
9401 | ||
9402 | ||
9403 | ||
9404 | ||
9405 | ||
9406 | ||
9407 | ||
9408 | ||
9409 | ||
9410 | ||
9411 | ||
9412 | ||
9413 | ||
9414 | ||
9415 | ||
9416 | ||
9417 | ||
9418 | ||
9419 | ||
9420 | ||
9421 | ||
9422 | ||
9423 | ||
9424 | ||
9425 | ||
9426 | ||
9427 | ||
9428 | ||
9429 | ||
9430 | ||
9431 | ||
9432 | ||
9433 | ||
9434 | ||
9435 | ||
9436 | ||
9437 | ||
9438 | ||
9439 | ||
9440 | ||
9441 | ||
9442 | ||
9443 | ||
9444 | ||
9445 | ||
9446 | ||
9447 | ||
9448 | ||
9449 | ||
9450 | ||
9451 | ||
9452 | ||
9453 | ||
9454 | ||
9455 | ||
9456 | ||
9457 | ||
9458 | ||
9459 | ||
9460 | ||
9461 | ||
9462 | ||
9463 | ||
9464 | ||
9465 | ||
9466 | ||
9467 | ||
9468 | ||
9469 | ||
9470 | ||
9471 | ||
9472 | ||
9473 | ||
9474 | ||
9475 | ||
9476 | ||
9477 | ||
9478 | ||
9479 | ||
9480 | ||
9481 | ||
9482 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
9483 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
9484 | hardcode_action= | |
9485 | if test -n "$hardcode_libdir_flag_spec" || | |
9486 | test -n "$runpath_var" || | |
9487 | test "X$hardcode_automatic" = "Xyes" ; then | |
9488 | ||
9489 | # We can hardcode non-existent directories. | |
9490 | if test "$hardcode_direct" != no && | |
9491 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
9492 | # have to relink, otherwise we might link with an installed library | |
9493 | # when we should be linking with a yet-to-be-installed one | |
9494 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
9495 | test "$hardcode_minus_L" != no; then | |
9496 | # Linking always hardcodes the temporary library directory. | |
9497 | hardcode_action=relink | |
9498 | else | |
9499 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
9500 | hardcode_action=immediate | |
9501 | fi | |
9502 | else | |
9503 | # We cannot hardcode anything, or else we can only hardcode existing | |
9504 | # directories. | |
9505 | hardcode_action=unsupported | |
9506 | fi | |
9507 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
9508 | echo "${ECHO_T}$hardcode_action" >&6 | |
9509 | ||
9510 | if test "$hardcode_action" = relink || | |
9511 | test "$inherit_rpath" = yes; then | |
9512 | # Fast installation is not supported | |
9513 | enable_fast_install=no | |
9514 | elif test "$shlibpath_overrides_runpath" = yes || | |
9515 | test "$enable_shared" = no; then | |
9516 | # Fast installation is not necessary | |
9517 | enable_fast_install=needless | |
9518 | fi | |
9519 | ||
9520 | ||
9521 | ||
9522 | ||
9523 | ||
9524 | ||
9525 | if test "x$enable_dlopen" != xyes; then | |
9526 | enable_dlopen=unknown | |
9527 | enable_dlopen_self=unknown | |
9528 | enable_dlopen_self_static=unknown | |
9529 | else | |
9530 | lt_cv_dlopen=no | |
9531 | lt_cv_dlopen_libs= | |
9532 | ||
9533 | case $host_os in | |
9534 | beos*) | |
9535 | lt_cv_dlopen="load_add_on" | |
9536 | lt_cv_dlopen_libs= | |
9537 | lt_cv_dlopen_self=yes | |
9538 | ;; | |
9539 | ||
9540 | mingw* | pw32*) | |
9541 | lt_cv_dlopen="LoadLibrary" | |
9542 | lt_cv_dlopen_libs= | |
9543 | ;; | |
9544 | ||
9545 | cygwin*) | |
9546 | lt_cv_dlopen="dlopen" | |
9547 | lt_cv_dlopen_libs= | |
9548 | ;; | |
9549 | ||
9550 | darwin*) | |
9551 | # if libdl is installed we need to link against it | |
9552 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
9553 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
9554 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
9555 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9556 | else | |
9557 | ac_check_lib_save_LIBS=$LIBS | |
9558 | LIBS="-ldl $LIBS" | |
9559 | cat >conftest.$ac_ext <<_ACEOF | |
9560 | /* confdefs.h. */ | |
9561 | _ACEOF | |
9562 | cat confdefs.h >>conftest.$ac_ext | |
9563 | cat >>conftest.$ac_ext <<_ACEOF | |
9564 | /* end confdefs.h. */ | |
9565 | ||
9566 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9567 | #ifdef __cplusplus | |
9568 | extern "C" | |
9569 | #endif | |
9570 | /* We use char because int might match the return type of a gcc2 | |
9571 | builtin and then its argument prototype would still apply. */ | |
9572 | char dlopen (); | |
9573 | int | |
9574 | main () | |
9575 | { | |
9576 | dlopen (); | |
9577 | ; | |
9578 | return 0; | |
9579 | } | |
9580 | _ACEOF | |
9581 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9582 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9583 | (eval $ac_link) 2>conftest.er1 | |
9584 | ac_status=$? | |
9585 | grep -v '^ *+' conftest.er1 >conftest.err | |
9586 | rm -f conftest.er1 | |
9587 | cat conftest.err >&5 | |
9588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9589 | (exit $ac_status); } && | |
9590 | { ac_try='test -z "$ac_c_werror_flag" | |
9591 | || test ! -s conftest.err' | |
9592 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9593 | (eval $ac_try) 2>&5 | |
9594 | ac_status=$? | |
9595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9596 | (exit $ac_status); }; } && | |
9597 | { ac_try='test -s conftest$ac_exeext' | |
9598 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9599 | (eval $ac_try) 2>&5 | |
9600 | ac_status=$? | |
9601 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9602 | (exit $ac_status); }; }; then | |
9603 | ac_cv_lib_dl_dlopen=yes | |
9604 | else | |
9605 | echo "$as_me: failed program was:" >&5 | |
9606 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9607 | ||
9608 | ac_cv_lib_dl_dlopen=no | |
9609 | fi | |
9610 | rm -f conftest.err conftest.$ac_objext \ | |
9611 | conftest$ac_exeext conftest.$ac_ext | |
9612 | LIBS=$ac_check_lib_save_LIBS | |
9613 | fi | |
9614 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
9615 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
9616 | if test $ac_cv_lib_dl_dlopen = yes; then | |
9617 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9618 | else | |
9619 | ||
9620 | lt_cv_dlopen="dyld" | |
9621 | lt_cv_dlopen_libs= | |
9622 | lt_cv_dlopen_self=yes | |
9623 | ||
9624 | fi | |
9625 | ||
9626 | ;; | |
9627 | ||
9628 | *) | |
9629 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
9630 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
9631 | if test "${ac_cv_func_shl_load+set}" = set; then | |
9632 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9633 | else | |
9634 | cat >conftest.$ac_ext <<_ACEOF | |
9635 | /* confdefs.h. */ | |
9636 | _ACEOF | |
9637 | cat confdefs.h >>conftest.$ac_ext | |
9638 | cat >>conftest.$ac_ext <<_ACEOF | |
9639 | /* end confdefs.h. */ | |
9640 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
9641 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9642 | #define shl_load innocuous_shl_load | |
9643 | ||
9644 | /* System header to define __stub macros and hopefully few prototypes, | |
9645 | which can conflict with char shl_load (); below. | |
9646 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9647 | <limits.h> exists even on freestanding compilers. */ | |
9648 | ||
9649 | #ifdef __STDC__ | |
9650 | # include <limits.h> | |
9651 | #else | |
9652 | # include <assert.h> | |
9653 | #endif | |
9654 | ||
9655 | #undef shl_load | |
9656 | ||
9657 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9658 | #ifdef __cplusplus | |
9659 | extern "C" | |
9660 | { | |
9661 | #endif | |
9662 | /* We use char because int might match the return type of a gcc2 | |
9663 | builtin and then its argument prototype would still apply. */ | |
9664 | char shl_load (); | |
9665 | /* The GNU C library defines this for functions which it implements | |
9666 | to always fail with ENOSYS. Some functions are actually named | |
9667 | something starting with __ and the normal name is an alias. */ | |
9668 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
9669 | choke me | |
9670 | #else | |
9671 | char (*f) () = shl_load; | |
9672 | #endif | |
9673 | #ifdef __cplusplus | |
9674 | } | |
9675 | #endif | |
9676 | ||
9677 | int | |
9678 | main () | |
9679 | { | |
9680 | return f != shl_load; | |
9681 | ; | |
9682 | return 0; | |
9683 | } | |
9684 | _ACEOF | |
9685 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9686 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9687 | (eval $ac_link) 2>conftest.er1 | |
9688 | ac_status=$? | |
9689 | grep -v '^ *+' conftest.er1 >conftest.err | |
9690 | rm -f conftest.er1 | |
9691 | cat conftest.err >&5 | |
9692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9693 | (exit $ac_status); } && | |
9694 | { ac_try='test -z "$ac_c_werror_flag" | |
9695 | || test ! -s conftest.err' | |
9696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9697 | (eval $ac_try) 2>&5 | |
9698 | ac_status=$? | |
9699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9700 | (exit $ac_status); }; } && | |
9701 | { ac_try='test -s conftest$ac_exeext' | |
9702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9703 | (eval $ac_try) 2>&5 | |
9704 | ac_status=$? | |
9705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9706 | (exit $ac_status); }; }; then | |
9707 | ac_cv_func_shl_load=yes | |
9708 | else | |
9709 | echo "$as_me: failed program was:" >&5 | |
9710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9711 | ||
9712 | ac_cv_func_shl_load=no | |
9713 | fi | |
9714 | rm -f conftest.err conftest.$ac_objext \ | |
9715 | conftest$ac_exeext conftest.$ac_ext | |
9716 | fi | |
9717 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
9718 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
9719 | if test $ac_cv_func_shl_load = yes; then | |
9720 | lt_cv_dlopen="shl_load" | |
9721 | else | |
9722 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
9723 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
9724 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
9725 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9726 | else | |
9727 | ac_check_lib_save_LIBS=$LIBS | |
9728 | LIBS="-ldld $LIBS" | |
9729 | cat >conftest.$ac_ext <<_ACEOF | |
9730 | /* confdefs.h. */ | |
9731 | _ACEOF | |
9732 | cat confdefs.h >>conftest.$ac_ext | |
9733 | cat >>conftest.$ac_ext <<_ACEOF | |
9734 | /* end confdefs.h. */ | |
9735 | ||
9736 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9737 | #ifdef __cplusplus | |
9738 | extern "C" | |
9739 | #endif | |
9740 | /* We use char because int might match the return type of a gcc2 | |
9741 | builtin and then its argument prototype would still apply. */ | |
9742 | char shl_load (); | |
9743 | int | |
9744 | main () | |
9745 | { | |
9746 | shl_load (); | |
9747 | ; | |
9748 | return 0; | |
9749 | } | |
9750 | _ACEOF | |
9751 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9752 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9753 | (eval $ac_link) 2>conftest.er1 | |
9754 | ac_status=$? | |
9755 | grep -v '^ *+' conftest.er1 >conftest.err | |
9756 | rm -f conftest.er1 | |
9757 | cat conftest.err >&5 | |
9758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9759 | (exit $ac_status); } && | |
9760 | { ac_try='test -z "$ac_c_werror_flag" | |
9761 | || test ! -s conftest.err' | |
9762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9763 | (eval $ac_try) 2>&5 | |
9764 | ac_status=$? | |
9765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9766 | (exit $ac_status); }; } && | |
9767 | { ac_try='test -s conftest$ac_exeext' | |
9768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9769 | (eval $ac_try) 2>&5 | |
9770 | ac_status=$? | |
9771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9772 | (exit $ac_status); }; }; then | |
9773 | ac_cv_lib_dld_shl_load=yes | |
9774 | else | |
9775 | echo "$as_me: failed program was:" >&5 | |
9776 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9777 | ||
9778 | ac_cv_lib_dld_shl_load=no | |
9779 | fi | |
9780 | rm -f conftest.err conftest.$ac_objext \ | |
9781 | conftest$ac_exeext conftest.$ac_ext | |
9782 | LIBS=$ac_check_lib_save_LIBS | |
9783 | fi | |
9784 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
9785 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
9786 | if test $ac_cv_lib_dld_shl_load = yes; then | |
9787 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
9788 | else | |
9789 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
9790 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
9791 | if test "${ac_cv_func_dlopen+set}" = set; then | |
9792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9793 | else | |
9794 | cat >conftest.$ac_ext <<_ACEOF | |
9795 | /* confdefs.h. */ | |
9796 | _ACEOF | |
9797 | cat confdefs.h >>conftest.$ac_ext | |
9798 | cat >>conftest.$ac_ext <<_ACEOF | |
9799 | /* end confdefs.h. */ | |
9800 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
9801 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
9802 | #define dlopen innocuous_dlopen | |
9803 | ||
9804 | /* System header to define __stub macros and hopefully few prototypes, | |
9805 | which can conflict with char dlopen (); below. | |
9806 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
9807 | <limits.h> exists even on freestanding compilers. */ | |
9808 | ||
9809 | #ifdef __STDC__ | |
9810 | # include <limits.h> | |
9811 | #else | |
9812 | # include <assert.h> | |
9813 | #endif | |
9814 | ||
9815 | #undef dlopen | |
9816 | ||
9817 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9818 | #ifdef __cplusplus | |
9819 | extern "C" | |
9820 | { | |
9821 | #endif | |
9822 | /* We use char because int might match the return type of a gcc2 | |
9823 | builtin and then its argument prototype would still apply. */ | |
9824 | char dlopen (); | |
9825 | /* The GNU C library defines this for functions which it implements | |
9826 | to always fail with ENOSYS. Some functions are actually named | |
9827 | something starting with __ and the normal name is an alias. */ | |
9828 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
9829 | choke me | |
9830 | #else | |
9831 | char (*f) () = dlopen; | |
9832 | #endif | |
9833 | #ifdef __cplusplus | |
9834 | } | |
9835 | #endif | |
9836 | ||
9837 | int | |
9838 | main () | |
9839 | { | |
9840 | return f != dlopen; | |
9841 | ; | |
9842 | return 0; | |
9843 | } | |
9844 | _ACEOF | |
9845 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9846 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9847 | (eval $ac_link) 2>conftest.er1 | |
9848 | ac_status=$? | |
9849 | grep -v '^ *+' conftest.er1 >conftest.err | |
9850 | rm -f conftest.er1 | |
9851 | cat conftest.err >&5 | |
9852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9853 | (exit $ac_status); } && | |
9854 | { ac_try='test -z "$ac_c_werror_flag" | |
9855 | || test ! -s conftest.err' | |
9856 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9857 | (eval $ac_try) 2>&5 | |
9858 | ac_status=$? | |
9859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9860 | (exit $ac_status); }; } && | |
9861 | { ac_try='test -s conftest$ac_exeext' | |
9862 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9863 | (eval $ac_try) 2>&5 | |
9864 | ac_status=$? | |
9865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9866 | (exit $ac_status); }; }; then | |
9867 | ac_cv_func_dlopen=yes | |
9868 | else | |
9869 | echo "$as_me: failed program was:" >&5 | |
9870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9871 | ||
9872 | ac_cv_func_dlopen=no | |
9873 | fi | |
9874 | rm -f conftest.err conftest.$ac_objext \ | |
9875 | conftest$ac_exeext conftest.$ac_ext | |
9876 | fi | |
9877 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
9878 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
9879 | if test $ac_cv_func_dlopen = yes; then | |
9880 | lt_cv_dlopen="dlopen" | |
9881 | else | |
9882 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
9883 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
9884 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
9885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9886 | else | |
9887 | ac_check_lib_save_LIBS=$LIBS | |
9888 | LIBS="-ldl $LIBS" | |
9889 | cat >conftest.$ac_ext <<_ACEOF | |
9890 | /* confdefs.h. */ | |
9891 | _ACEOF | |
9892 | cat confdefs.h >>conftest.$ac_ext | |
9893 | cat >>conftest.$ac_ext <<_ACEOF | |
9894 | /* end confdefs.h. */ | |
9895 | ||
9896 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9897 | #ifdef __cplusplus | |
9898 | extern "C" | |
9899 | #endif | |
9900 | /* We use char because int might match the return type of a gcc2 | |
9901 | builtin and then its argument prototype would still apply. */ | |
9902 | char dlopen (); | |
9903 | int | |
9904 | main () | |
9905 | { | |
9906 | dlopen (); | |
9907 | ; | |
9908 | return 0; | |
9909 | } | |
9910 | _ACEOF | |
9911 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9912 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9913 | (eval $ac_link) 2>conftest.er1 | |
9914 | ac_status=$? | |
9915 | grep -v '^ *+' conftest.er1 >conftest.err | |
9916 | rm -f conftest.er1 | |
9917 | cat conftest.err >&5 | |
9918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9919 | (exit $ac_status); } && | |
9920 | { ac_try='test -z "$ac_c_werror_flag" | |
9921 | || test ! -s conftest.err' | |
9922 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9923 | (eval $ac_try) 2>&5 | |
9924 | ac_status=$? | |
9925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9926 | (exit $ac_status); }; } && | |
9927 | { ac_try='test -s conftest$ac_exeext' | |
9928 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9929 | (eval $ac_try) 2>&5 | |
9930 | ac_status=$? | |
9931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9932 | (exit $ac_status); }; }; then | |
9933 | ac_cv_lib_dl_dlopen=yes | |
9934 | else | |
9935 | echo "$as_me: failed program was:" >&5 | |
9936 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9937 | ||
9938 | ac_cv_lib_dl_dlopen=no | |
9939 | fi | |
9940 | rm -f conftest.err conftest.$ac_objext \ | |
9941 | conftest$ac_exeext conftest.$ac_ext | |
9942 | LIBS=$ac_check_lib_save_LIBS | |
9943 | fi | |
9944 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
9945 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
9946 | if test $ac_cv_lib_dl_dlopen = yes; then | |
9947 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
9948 | else | |
9949 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
9950 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
9951 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
9952 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9953 | else | |
9954 | ac_check_lib_save_LIBS=$LIBS | |
9955 | LIBS="-lsvld $LIBS" | |
9956 | cat >conftest.$ac_ext <<_ACEOF | |
9957 | /* confdefs.h. */ | |
9958 | _ACEOF | |
9959 | cat confdefs.h >>conftest.$ac_ext | |
9960 | cat >>conftest.$ac_ext <<_ACEOF | |
9961 | /* end confdefs.h. */ | |
9962 | ||
9963 | /* Override any gcc2 internal prototype to avoid an error. */ | |
9964 | #ifdef __cplusplus | |
9965 | extern "C" | |
9966 | #endif | |
9967 | /* We use char because int might match the return type of a gcc2 | |
9968 | builtin and then its argument prototype would still apply. */ | |
9969 | char dlopen (); | |
9970 | int | |
9971 | main () | |
9972 | { | |
9973 | dlopen (); | |
9974 | ; | |
9975 | return 0; | |
9976 | } | |
9977 | _ACEOF | |
9978 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9979 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9980 | (eval $ac_link) 2>conftest.er1 | |
9981 | ac_status=$? | |
9982 | grep -v '^ *+' conftest.er1 >conftest.err | |
9983 | rm -f conftest.er1 | |
9984 | cat conftest.err >&5 | |
9985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9986 | (exit $ac_status); } && | |
9987 | { ac_try='test -z "$ac_c_werror_flag" | |
9988 | || test ! -s conftest.err' | |
9989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9990 | (eval $ac_try) 2>&5 | |
9991 | ac_status=$? | |
9992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9993 | (exit $ac_status); }; } && | |
9994 | { ac_try='test -s conftest$ac_exeext' | |
9995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9996 | (eval $ac_try) 2>&5 | |
9997 | ac_status=$? | |
9998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9999 | (exit $ac_status); }; }; then | |
10000 | ac_cv_lib_svld_dlopen=yes | |
10001 | else | |
10002 | echo "$as_me: failed program was:" >&5 | |
10003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10004 | ||
10005 | ac_cv_lib_svld_dlopen=no | |
10006 | fi | |
10007 | rm -f conftest.err conftest.$ac_objext \ | |
10008 | conftest$ac_exeext conftest.$ac_ext | |
10009 | LIBS=$ac_check_lib_save_LIBS | |
10010 | fi | |
10011 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
10012 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
10013 | if test $ac_cv_lib_svld_dlopen = yes; then | |
10014 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
10015 | else | |
10016 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
10017 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
10018 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
10019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10020 | else | |
10021 | ac_check_lib_save_LIBS=$LIBS | |
10022 | LIBS="-ldld $LIBS" | |
10023 | cat >conftest.$ac_ext <<_ACEOF | |
10024 | /* confdefs.h. */ | |
10025 | _ACEOF | |
10026 | cat confdefs.h >>conftest.$ac_ext | |
10027 | cat >>conftest.$ac_ext <<_ACEOF | |
10028 | /* end confdefs.h. */ | |
10029 | ||
10030 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10031 | #ifdef __cplusplus | |
10032 | extern "C" | |
10033 | #endif | |
10034 | /* We use char because int might match the return type of a gcc2 | |
10035 | builtin and then its argument prototype would still apply. */ | |
10036 | char dld_link (); | |
10037 | int | |
10038 | main () | |
10039 | { | |
10040 | dld_link (); | |
10041 | ; | |
10042 | return 0; | |
10043 | } | |
10044 | _ACEOF | |
10045 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10046 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10047 | (eval $ac_link) 2>conftest.er1 | |
10048 | ac_status=$? | |
10049 | grep -v '^ *+' conftest.er1 >conftest.err | |
10050 | rm -f conftest.er1 | |
10051 | cat conftest.err >&5 | |
10052 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10053 | (exit $ac_status); } && | |
10054 | { ac_try='test -z "$ac_c_werror_flag" | |
10055 | || test ! -s conftest.err' | |
10056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10057 | (eval $ac_try) 2>&5 | |
10058 | ac_status=$? | |
10059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10060 | (exit $ac_status); }; } && | |
10061 | { ac_try='test -s conftest$ac_exeext' | |
10062 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10063 | (eval $ac_try) 2>&5 | |
10064 | ac_status=$? | |
10065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10066 | (exit $ac_status); }; }; then | |
10067 | ac_cv_lib_dld_dld_link=yes | |
10068 | else | |
10069 | echo "$as_me: failed program was:" >&5 | |
10070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10071 | ||
10072 | ac_cv_lib_dld_dld_link=no | |
10073 | fi | |
10074 | rm -f conftest.err conftest.$ac_objext \ | |
10075 | conftest$ac_exeext conftest.$ac_ext | |
10076 | LIBS=$ac_check_lib_save_LIBS | |
10077 | fi | |
10078 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
10079 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
10080 | if test $ac_cv_lib_dld_dld_link = yes; then | |
10081 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
10082 | fi | |
10083 | ||
10084 | ||
10085 | fi | |
10086 | ||
10087 | ||
10088 | fi | |
10089 | ||
10090 | ||
10091 | fi | |
10092 | ||
10093 | ||
10094 | fi | |
10095 | ||
10096 | ||
10097 | fi | |
10098 | ||
10099 | ;; | |
10100 | esac | |
10101 | ||
10102 | if test "x$lt_cv_dlopen" != xno; then | |
10103 | enable_dlopen=yes | |
20e95c23 | 10104 | else |
d7040cdb | 10105 | enable_dlopen=no |
252b5132 | 10106 | fi |
5464f5a1 | 10107 | |
d7040cdb SE |
10108 | case $lt_cv_dlopen in |
10109 | dlopen) | |
10110 | save_CPPFLAGS="$CPPFLAGS" | |
10111 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
10112 | ||
10113 | save_LDFLAGS="$LDFLAGS" | |
10114 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
10115 | ||
10116 | save_LIBS="$LIBS" | |
10117 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
10118 | ||
10119 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
10120 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
10121 | if test "${lt_cv_dlopen_self+set}" = set; then | |
10122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20e95c23 | 10123 | else |
d7040cdb SE |
10124 | if test "$cross_compiling" = yes; then : |
10125 | lt_cv_dlopen_self=cross | |
10126 | else | |
10127 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10128 | lt_status=$lt_dlunknown | |
10129 | cat > conftest.$ac_ext <<_LT_EOF | |
6194aaab | 10130 | #line 10130 "configure" |
d7040cdb SE |
10131 | #include "confdefs.h" |
10132 | ||
10133 | #if HAVE_DLFCN_H | |
10134 | #include <dlfcn.h> | |
10135 | #endif | |
10136 | ||
10137 | #include <stdio.h> | |
10138 | ||
10139 | #ifdef RTLD_GLOBAL | |
10140 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10141 | #else | |
10142 | # ifdef DL_GLOBAL | |
10143 | # define LT_DLGLOBAL DL_GLOBAL | |
10144 | # else | |
10145 | # define LT_DLGLOBAL 0 | |
10146 | # endif | |
10147 | #endif | |
10148 | ||
10149 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10150 | find out it does not work in some platform. */ | |
10151 | #ifndef LT_DLLAZY_OR_NOW | |
10152 | # ifdef RTLD_LAZY | |
10153 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10154 | # else | |
10155 | # ifdef DL_LAZY | |
10156 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10157 | # else | |
10158 | # ifdef RTLD_NOW | |
10159 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10160 | # else | |
10161 | # ifdef DL_NOW | |
10162 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10163 | # else | |
10164 | # define LT_DLLAZY_OR_NOW 0 | |
10165 | # endif | |
10166 | # endif | |
10167 | # endif | |
10168 | # endif | |
10169 | #endif | |
10170 | ||
10171 | #ifdef __cplusplus | |
10172 | extern "C" void exit (int); | |
10173 | #endif | |
10174 | ||
10175 | void fnord() { int i=42;} | |
10176 | int main () | |
10177 | { | |
10178 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10179 | int status = $lt_dlunknown; | |
10180 | ||
10181 | if (self) | |
10182 | { | |
10183 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10184 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10185 | /* dlclose (self); */ | |
10186 | } | |
10187 | else | |
10188 | puts (dlerror ()); | |
10189 | ||
10190 | exit (status); | |
10191 | } | |
10192 | _LT_EOF | |
10193 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10194 | (eval $ac_link) 2>&5 | |
10195 | ac_status=$? | |
10196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10197 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10198 | (./conftest; exit; ) >&5 2>/dev/null | |
10199 | lt_status=$? | |
10200 | case x$lt_status in | |
10201 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
10202 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
10203 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
10204 | esac | |
10205 | else : | |
10206 | # compilation failed | |
10207 | lt_cv_dlopen_self=no | |
10208 | fi | |
252b5132 | 10209 | fi |
d7040cdb | 10210 | rm -fr conftest* |
20e95c23 | 10211 | |
d7040cdb SE |
10212 | |
10213 | fi | |
10214 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
10215 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
10216 | ||
10217 | if test "x$lt_cv_dlopen_self" = xyes; then | |
10218 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
10219 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
10220 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
10221 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
20e95c23 DJ |
10222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10223 | else | |
d7040cdb SE |
10224 | if test "$cross_compiling" = yes; then : |
10225 | lt_cv_dlopen_self_static=cross | |
10226 | else | |
10227 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
10228 | lt_status=$lt_dlunknown | |
10229 | cat > conftest.$ac_ext <<_LT_EOF | |
6194aaab | 10230 | #line 10230 "configure" |
d7040cdb SE |
10231 | #include "confdefs.h" |
10232 | ||
10233 | #if HAVE_DLFCN_H | |
10234 | #include <dlfcn.h> | |
10235 | #endif | |
10236 | ||
10237 | #include <stdio.h> | |
10238 | ||
10239 | #ifdef RTLD_GLOBAL | |
10240 | # define LT_DLGLOBAL RTLD_GLOBAL | |
10241 | #else | |
10242 | # ifdef DL_GLOBAL | |
10243 | # define LT_DLGLOBAL DL_GLOBAL | |
10244 | # else | |
10245 | # define LT_DLGLOBAL 0 | |
10246 | # endif | |
10247 | #endif | |
10248 | ||
10249 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
10250 | find out it does not work in some platform. */ | |
10251 | #ifndef LT_DLLAZY_OR_NOW | |
10252 | # ifdef RTLD_LAZY | |
10253 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
10254 | # else | |
10255 | # ifdef DL_LAZY | |
10256 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
10257 | # else | |
10258 | # ifdef RTLD_NOW | |
10259 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
10260 | # else | |
10261 | # ifdef DL_NOW | |
10262 | # define LT_DLLAZY_OR_NOW DL_NOW | |
10263 | # else | |
10264 | # define LT_DLLAZY_OR_NOW 0 | |
10265 | # endif | |
10266 | # endif | |
10267 | # endif | |
10268 | # endif | |
10269 | #endif | |
10270 | ||
10271 | #ifdef __cplusplus | |
10272 | extern "C" void exit (int); | |
10273 | #endif | |
10274 | ||
10275 | void fnord() { int i=42;} | |
10276 | int main () | |
10277 | { | |
10278 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
10279 | int status = $lt_dlunknown; | |
10280 | ||
10281 | if (self) | |
10282 | { | |
10283 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
10284 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
10285 | /* dlclose (self); */ | |
10286 | } | |
10287 | else | |
10288 | puts (dlerror ()); | |
10289 | ||
10290 | exit (status); | |
10291 | } | |
10292 | _LT_EOF | |
10293 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10294 | (eval $ac_link) 2>&5 | |
10295 | ac_status=$? | |
10296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10297 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
10298 | (./conftest; exit; ) >&5 2>/dev/null | |
10299 | lt_status=$? | |
10300 | case x$lt_status in | |
10301 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
10302 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
10303 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
10304 | esac | |
10305 | else : | |
10306 | # compilation failed | |
10307 | lt_cv_dlopen_self_static=no | |
10308 | fi | |
10309 | fi | |
10310 | rm -fr conftest* | |
10311 | ||
10312 | ||
10313 | fi | |
10314 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
10315 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
10316 | fi | |
10317 | ||
10318 | CPPFLAGS="$save_CPPFLAGS" | |
10319 | LDFLAGS="$save_LDFLAGS" | |
10320 | LIBS="$save_LIBS" | |
10321 | ;; | |
10322 | esac | |
10323 | ||
10324 | case $lt_cv_dlopen_self in | |
10325 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
10326 | *) enable_dlopen_self=unknown ;; | |
10327 | esac | |
10328 | ||
10329 | case $lt_cv_dlopen_self_static in | |
10330 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
10331 | *) enable_dlopen_self_static=unknown ;; | |
10332 | esac | |
10333 | fi | |
10334 | ||
10335 | ||
10336 | ||
10337 | ||
10338 | ||
10339 | ||
10340 | ||
10341 | ||
10342 | ||
10343 | ||
10344 | ||
10345 | ||
10346 | ||
10347 | ||
10348 | ||
10349 | ||
10350 | ||
10351 | striplib= | |
10352 | old_striplib= | |
10353 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
10354 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
10355 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
10356 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
10357 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
10358 | echo "$as_me:$LINENO: result: yes" >&5 | |
10359 | echo "${ECHO_T}yes" >&6 | |
10360 | else | |
10361 | # FIXME - insert some real tests, host_os isn't really good enough | |
10362 | case $host_os in | |
10363 | darwin*) | |
10364 | if test -n "$STRIP" ; then | |
10365 | striplib="$STRIP -x" | |
10366 | old_striplib="$STRIP -S" | |
10367 | echo "$as_me:$LINENO: result: yes" >&5 | |
10368 | echo "${ECHO_T}yes" >&6 | |
10369 | else | |
10370 | echo "$as_me:$LINENO: result: no" >&5 | |
10371 | echo "${ECHO_T}no" >&6 | |
10372 | fi | |
20e95c23 DJ |
10373 | ;; |
10374 | *) | |
d7040cdb SE |
10375 | echo "$as_me:$LINENO: result: no" >&5 |
10376 | echo "${ECHO_T}no" >&6 | |
10377 | ;; | |
10378 | esac | |
10379 | fi | |
10380 | ||
10381 | ||
10382 | ||
10383 | ||
10384 | ||
10385 | ||
10386 | ||
10387 | ||
10388 | ||
10389 | ||
10390 | ||
10391 | ||
10392 | # Report which library types will actually be built | |
10393 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
10394 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
10395 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
10396 | echo "${ECHO_T}$can_build_shared" >&6 | |
10397 | ||
10398 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
10399 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
10400 | test "$can_build_shared" = "no" && enable_shared=no | |
10401 | ||
10402 | # On AIX, shared libraries and static libraries use the same namespace, and | |
10403 | # are all built from PIC. | |
10404 | case $host_os in | |
10405 | aix3*) | |
10406 | test "$enable_shared" = yes && enable_static=no | |
10407 | if test -n "$RANLIB"; then | |
10408 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
10409 | postinstall_cmds='$RANLIB $lib' | |
10410 | fi | |
10411 | ;; | |
10412 | ||
e81819a5 | 10413 | aix[4-9]*) |
d7040cdb SE |
10414 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
10415 | test "$enable_shared" = yes && enable_static=no | |
10416 | fi | |
20e95c23 | 10417 | ;; |
d7040cdb SE |
10418 | esac |
10419 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
10420 | echo "${ECHO_T}$enable_shared" >&6 | |
10421 | ||
10422 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
10423 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
10424 | # Make sure either enable_shared or enable_static is yes. | |
10425 | test "$enable_shared" = yes || enable_static=yes | |
10426 | echo "$as_me:$LINENO: result: $enable_static" >&5 | |
10427 | echo "${ECHO_T}$enable_static" >&6 | |
10428 | ||
10429 | ||
10430 | ||
10431 | ||
10432 | fi | |
10433 | ac_ext=c | |
10434 | ac_cpp='$CPP $CPPFLAGS' | |
10435 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
10436 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
10437 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
10438 | ||
10439 | CC="$lt_save_CC" | |
10440 | ||
10441 | ||
10442 | ||
10443 | ||
10444 | ||
10445 | ||
10446 | ||
10447 | ||
10448 | ||
10449 | ||
10450 | ||
10451 | ||
10452 | ||
10453 | ac_config_commands="$ac_config_commands libtool" | |
10454 | ||
10455 | ||
10456 | ||
10457 | ||
10458 | # Only expand once: | |
10459 | ||
10460 | ||
10461 | ||
10462 | # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. | |
10463 | if test "${enable_64_bit_bfd+set}" = set; then | |
10464 | enableval="$enable_64_bit_bfd" | |
10465 | case "${enableval}" in | |
10466 | yes) want64=true ;; | |
10467 | no) want64=false ;; | |
10468 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5 | |
10469 | echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;} | |
10470 | { (exit 1); exit 1; }; } ;; | |
10471 | esac | |
10472 | else | |
10473 | want64=false | |
504b7d20 NC |
10474 | fi; |
10475 | # Check whether --enable-targets or --disable-targets was given. | |
d7040cdb SE |
10476 | if test "${enable_targets+set}" = set; then |
10477 | enableval="$enable_targets" | |
10478 | case "${enableval}" in | |
10479 | yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 | |
10480 | echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} | |
10481 | { (exit 1); exit 1; }; } | |
10482 | ;; | |
10483 | no) enable_targets= ;; | |
10484 | *) enable_targets=$enableval ;; | |
10485 | esac | |
504b7d20 NC |
10486 | fi; |
10487 | # Check whether --enable-commonbfdlib or --disable-commonbfdlib was given. | |
d7040cdb SE |
10488 | if test "${enable_commonbfdlib+set}" = set; then |
10489 | enableval="$enable_commonbfdlib" | |
10490 | case "${enableval}" in | |
10491 | yes) commonbfdlib=true ;; | |
10492 | no) commonbfdlib=false ;; | |
10493 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for BFD commonbfdlib option" >&5 | |
10494 | echo "$as_me: error: bad value ${enableval} for BFD commonbfdlib option" >&2;} | |
10495 | { (exit 1); exit 1; }; } ;; | |
10496 | esac | |
10497 | fi; | |
504b7d20 | 10498 | |
d7040cdb SE |
10499 | # Check whether --with-mmap or --without-mmap was given. |
10500 | if test "${with_mmap+set}" = set; then | |
10501 | withval="$with_mmap" | |
10502 | case "${withval}" in | |
10503 | yes) want_mmap=true ;; | |
10504 | no) want_mmap=false ;; | |
10505 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5 | |
10506 | echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;} | |
10507 | { (exit 1); exit 1; }; } ;; | |
20e95c23 | 10508 | esac |
252b5132 | 10509 | else |
d7040cdb SE |
10510 | want_mmap=false |
10511 | fi; | |
10512 | # Check whether --enable-secureplt or --disable-secureplt was given. | |
10513 | if test "${enable_secureplt+set}" = set; then | |
10514 | enableval="$enable_secureplt" | |
10515 | case "${enableval}" in | |
10516 | yes) use_secureplt=true ;; | |
10517 | no) use_secureplt=false ;; | |
10518 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5 | |
10519 | echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;} | |
10520 | { (exit 1); exit 1; }; } ;; | |
10521 | esac | |
252b5132 | 10522 | else |
d7040cdb SE |
10523 | use_secureplt=false |
10524 | fi; if test $use_secureplt = true; then | |
10525 | ||
10526 | cat >>confdefs.h <<\_ACEOF | |
10527 | #define USE_SECUREPLT 1 | |
10528 | _ACEOF | |
5464f5a1 | 10529 | |
252b5132 | 10530 | fi |
20e95c23 | 10531 | |
0d4a1476 AS |
10532 | DEBUGDIR=${libdir}/debug |
10533 | ||
0d4a1476 AS |
10534 | # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given. |
10535 | if test "${with_separate_debug_dir+set}" = set; then | |
10536 | withval="$with_separate_debug_dir" | |
10537 | DEBUGDIR="${withval}" | |
10538 | fi; | |
10539 | ||
10540 | ||
504b7d20 NC |
10541 | # Check to see if we should allow the generation of |
10542 | # symbols with the ELF standard's STT_COMMON type. | |
10543 | # Check whether --enable-elf-stt-common or --disable-elf-stt-common was given. | |
10544 | if test "${enable_elf_stt_common+set}" = set; then | |
10545 | enableval="$enable_elf_stt_common" | |
10546 | case "${enableval}" in | |
10547 | yes) want_elf_stt_common=true ;; | |
10548 | no) want_elf_stt_common=false ;; | |
10549 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5 | |
10550 | echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;} | |
10551 | { (exit 1); exit 1; }; } ;; | |
10552 | esac | |
10553 | else | |
10554 | # We have to choose a default behaviour. For native builds we could | |
8bc9c892 NC |
10555 | # test whether the loader supports the STT_COMMON type, but that would |
10556 | # mean that built binaries could not be exported to older systems where | |
10557 | # the loader does not support it. So by default we always choose to | |
10558 | # disable this feature. | |
504b7d20 | 10559 | want_elf_stt_common=false |
504b7d20 NC |
10560 | fi; if test $want_elf_stt_common = true; then |
10561 | ||
10562 | cat >>confdefs.h <<\_ACEOF | |
10563 | #define USE_STT_COMMON 1 | |
10564 | _ACEOF | |
10565 | ||
10566 | fi | |
10567 | ||
10568 | ||
d7040cdb | 10569 | |
d7040cdb SE |
10570 | # Check whether --with-pkgversion or --without-pkgversion was given. |
10571 | if test "${with_pkgversion+set}" = set; then | |
10572 | withval="$with_pkgversion" | |
10573 | case "$withval" in | |
10574 | yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5 | |
10575 | echo "$as_me: error: package version not specified" >&2;} | |
10576 | { (exit 1); exit 1; }; } ;; | |
10577 | no) PKGVERSION= ;; | |
10578 | *) PKGVERSION="($withval) " ;; | |
10579 | esac | |
252b5132 | 10580 | else |
d7040cdb | 10581 | PKGVERSION="(GNU Binutils) " |
252b5132 | 10582 | |
d7040cdb | 10583 | fi; |
20e95c23 DJ |
10584 | |
10585 | ||
5464f5a1 | 10586 | |
20e95c23 | 10587 | |
d7040cdb SE |
10588 | # Check whether --with-bugurl or --without-bugurl was given. |
10589 | if test "${with_bugurl+set}" = set; then | |
10590 | withval="$with_bugurl" | |
10591 | case "$withval" in | |
10592 | yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5 | |
10593 | echo "$as_me: error: bug URL not specified" >&2;} | |
10594 | { (exit 1); exit 1; }; } ;; | |
10595 | no) BUGURL= | |
10596 | ;; | |
10597 | *) BUGURL="$withval" | |
10598 | ;; | |
10599 | esac | |
252b5132 | 10600 | else |
d7040cdb SE |
10601 | BUGURL="http://www.sourceware.org/bugzilla/" |
10602 | ||
10603 | fi; | |
10604 | case ${BUGURL} in | |
10605 | "") | |
10606 | REPORT_BUGS_TO= | |
10607 | REPORT_BUGS_TEXI= | |
20e95c23 DJ |
10608 | ;; |
10609 | *) | |
d7040cdb SE |
10610 | REPORT_BUGS_TO="<$BUGURL>" |
10611 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
20e95c23 | 10612 | ;; |
d7040cdb SE |
10613 | esac; |
10614 | ||
10615 | ||
10616 | ||
10617 | ||
10618 | ||
10619 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" | |
10620 | ||
10621 | # Check whether --enable-werror or --disable-werror was given. | |
10622 | if test "${enable_werror+set}" = set; then | |
10623 | enableval="$enable_werror" | |
10624 | case "${enableval}" in | |
10625 | yes | y) ERROR_ON_WARNING="yes" ;; | |
10626 | no | n) ERROR_ON_WARNING="no" ;; | |
10627 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 | |
10628 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
10629 | { (exit 1); exit 1; }; } ;; | |
10630 | esac | |
10631 | fi; | |
10632 | ||
bb8541b9 L |
10633 | # Enable -Wno-format by default when using gcc on mingw |
10634 | case "${host}" in | |
10635 | *-*-mingw32*) | |
10636 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
10637 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
10638 | fi | |
10639 | ;; | |
10640 | *) ;; | |
10641 | esac | |
10642 | ||
d7040cdb SE |
10643 | # Enable -Werror by default when using gcc |
10644 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
10645 | ERROR_ON_WARNING=yes | |
10646 | fi | |
10647 | ||
10648 | NO_WERROR= | |
10649 | if test "${ERROR_ON_WARNING}" = yes ; then | |
10650 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" | |
10651 | NO_WERROR="-Wno-error" | |
10652 | fi | |
10653 | ||
10654 | if test "${GCC}" = yes ; then | |
10655 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
10656 | fi | |
10657 | ||
10658 | # Check whether --enable-build-warnings or --disable-build-warnings was given. | |
10659 | if test "${enable_build_warnings+set}" = set; then | |
10660 | enableval="$enable_build_warnings" | |
10661 | case "${enableval}" in | |
10662 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; | |
10663 | no) if test "${GCC}" = yes ; then | |
10664 | WARN_CFLAGS="-w" | |
10665 | fi;; | |
10666 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
10667 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; | |
10668 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
10669 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; | |
10670 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
20e95c23 | 10671 | esac |
d7040cdb SE |
10672 | fi; |
10673 | ||
10674 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then | |
10675 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
20e95c23 | 10676 | fi |
d7040cdb SE |
10677 | |
10678 | ||
10679 | ||
10680 | ||
10681 | ||
10682 | ac_config_headers="$ac_config_headers config.h:config.in" | |
10683 | ||
10684 | ||
10685 | if test -z "$target" ; then | |
10686 | { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5 | |
10687 | echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;} | |
10688 | { (exit 1); exit 1; }; } | |
20e95c23 DJ |
10689 | fi |
10690 | ||
d7040cdb SE |
10691 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
10692 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
10693 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
10694 | if test "${enable_maintainer_mode+set}" = set; then | |
10695 | enableval="$enable_maintainer_mode" | |
10696 | USE_MAINTAINER_MODE=$enableval | |
10697 | else | |
10698 | USE_MAINTAINER_MODE=no | |
10699 | fi; | |
10700 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
10701 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
20e95c23 DJ |
10702 | |
10703 | ||
d7040cdb SE |
10704 | if test $USE_MAINTAINER_MODE = yes; then |
10705 | MAINTAINER_MODE_TRUE= | |
10706 | MAINTAINER_MODE_FALSE='#' | |
10707 | else | |
10708 | MAINTAINER_MODE_TRUE='#' | |
10709 | MAINTAINER_MODE_FALSE= | |
6be7c12c | 10710 | fi |
5464f5a1 | 10711 | |
d7040cdb SE |
10712 | MAINT=$MAINTAINER_MODE_TRUE |
10713 | ||
10714 | ||
10715 | ||
10716 | ||
10717 | if false; then | |
10718 | GENINSRC_NEVER_TRUE= | |
10719 | GENINSRC_NEVER_FALSE='#' | |
20e95c23 | 10720 | else |
d7040cdb SE |
10721 | GENINSRC_NEVER_TRUE='#' |
10722 | GENINSRC_NEVER_FALSE= | |
5464f5a1 | 10723 | fi |
5464f5a1 | 10724 | |
d7040cdb SE |
10725 | case ${build_alias} in |
10726 | "") build_noncanonical=${build} ;; | |
10727 | *) build_noncanonical=${build_alias} ;; | |
20e95c23 | 10728 | esac |
d7040cdb SE |
10729 | |
10730 | case ${host_alias} in | |
10731 | "") host_noncanonical=${build_noncanonical} ;; | |
10732 | *) host_noncanonical=${host_alias} ;; | |
10733 | esac | |
10734 | ||
10735 | case ${target_alias} in | |
10736 | "") target_noncanonical=${host_noncanonical} ;; | |
10737 | *) target_noncanonical=${target_alias} ;; | |
10738 | esac | |
10739 | ||
10740 | echo "$as_me:$LINENO: checking whether to install libbfd" >&5 | |
10741 | echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6 | |
10742 | # Check whether --enable-install-libbfd or --disable-install-libbfd was given. | |
10743 | if test "${enable_install_libbfd+set}" = set; then | |
10744 | enableval="$enable_install_libbfd" | |
10745 | install_libbfd_p=$enableval | |
252b5132 | 10746 | else |
d7040cdb SE |
10747 | if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then |
10748 | install_libbfd_p=yes | |
10749 | else | |
10750 | install_libbfd_p=no | |
10751 | fi | |
10752 | fi; | |
10753 | echo "$as_me:$LINENO: result: $install_libbfd_p" >&5 | |
10754 | echo "${ECHO_T}$install_libbfd_p" >&6 | |
10755 | ||
10756 | ||
10757 | if test $install_libbfd_p = yes; then | |
10758 | INSTALL_LIBBFD_TRUE= | |
10759 | INSTALL_LIBBFD_FALSE='#' | |
10760 | else | |
10761 | INSTALL_LIBBFD_TRUE='#' | |
10762 | INSTALL_LIBBFD_FALSE= | |
5464f5a1 | 10763 | fi |
5464f5a1 | 10764 | |
d7040cdb | 10765 | # Need _noncanonical variables for this. |
5464f5a1 | 10766 | |
5464f5a1 | 10767 | |
d7040cdb SE |
10768 | |
10769 | ||
10770 | # libbfd.a is a host library containing target dependent code | |
10771 | bfdlibdir='$(libdir)' | |
10772 | bfdincludedir='$(includedir)' | |
10773 | if test "${host}" != "${target}"; then | |
10774 | bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib' | |
10775 | bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include' | |
20e95c23 | 10776 | fi |
6be7c12c | 10777 | |
5464f5a1 | 10778 | |
5464f5a1 NN |
10779 | |
10780 | ||
5464f5a1 | 10781 | |
ac48eca1 | 10782 | |
d7040cdb SE |
10783 | host64=false |
10784 | target64=false | |
10785 | bfd_default_target_size=32 | |
252b5132 | 10786 | |
d7040cdb | 10787 | # host stuff: |
20e95c23 | 10788 | |
041a1845 | 10789 | ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi" |
d7040cdb SE |
10790 | # If we haven't got the data from the intl directory, |
10791 | # assume NLS is disabled. | |
10792 | USE_NLS=no | |
10793 | LIBINTL= | |
10794 | LIBINTL_DEP= | |
10795 | INCINTL= | |
10796 | XGETTEXT= | |
10797 | GMSGFMT= | |
10798 | POSUB= | |
10799 | ||
10800 | if test -f ../intl/config.intl; then | |
10801 | . ../intl/config.intl | |
252b5132 | 10802 | fi |
d7040cdb SE |
10803 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
10804 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
10805 | if test x"$USE_NLS" != xyes; then | |
10806 | echo "$as_me:$LINENO: result: no" >&5 | |
10807 | echo "${ECHO_T}no" >&6 | |
10808 | else | |
10809 | echo "$as_me:$LINENO: result: yes" >&5 | |
10810 | echo "${ECHO_T}yes" >&6 | |
5464f5a1 | 10811 | |
d7040cdb SE |
10812 | cat >>confdefs.h <<\_ACEOF |
10813 | #define ENABLE_NLS 1 | |
10814 | _ACEOF | |
252b5132 | 10815 | |
6be7c12c | 10816 | |
d7040cdb SE |
10817 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
10818 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
10819 | # Look for .po and .gmo files in the source directory. | |
10820 | CATALOGS= | |
10821 | XLINGUAS= | |
10822 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
10823 | # If there aren't any .gmo files the shell will give us the | |
10824 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
10825 | # weeded out. | |
10826 | case "$cat" in *\**) | |
10827 | continue;; | |
10828 | esac | |
10829 | # The quadruple backslash is collapsed to a double backslash | |
10830 | # by the backticks, then collapsed again by the double quotes, | |
10831 | # leaving us with one backslash in the sed expression (right | |
10832 | # before the dot that mustn't act as a wildcard). | |
10833 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
10834 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
10835 | # The user is allowed to set LINGUAS to a list of languages to | |
10836 | # install catalogs for. If it's empty that means "all of them." | |
10837 | if test "x$LINGUAS" = x; then | |
10838 | CATALOGS="$CATALOGS $cat" | |
10839 | XLINGUAS="$XLINGUAS $lang" | |
10840 | else | |
10841 | case "$LINGUAS" in *$lang*) | |
10842 | CATALOGS="$CATALOGS $cat" | |
10843 | XLINGUAS="$XLINGUAS $lang" | |
10844 | ;; | |
10845 | esac | |
10846 | fi | |
10847 | done | |
10848 | LINGUAS="$XLINGUAS" | |
10849 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
10850 | echo "${ECHO_T}$LINGUAS" >&6 | |
10851 | ||
252b5132 | 10852 | |
d7040cdb | 10853 | DATADIRNAME=share |
252b5132 | 10854 | |
d7040cdb | 10855 | INSTOBJEXT=.mo |
5464f5a1 | 10856 | |
d7040cdb | 10857 | GENCAT=gencat |
20e95c23 | 10858 | |
d7040cdb | 10859 | CATOBJEXT=.gmo |
5464f5a1 | 10860 | |
20e95c23 | 10861 | fi |
5464f5a1 | 10862 | |
d7040cdb SE |
10863 | MKINSTALLDIRS= |
10864 | if test -n "$ac_aux_dir"; then | |
10865 | case "$ac_aux_dir" in | |
10866 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
10867 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
10868 | esac | |
10869 | fi | |
10870 | if test -z "$MKINSTALLDIRS"; then | |
10871 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
5464f5a1 | 10872 | fi |
5464f5a1 | 10873 | |
5464f5a1 | 10874 | |
d7040cdb SE |
10875 | |
10876 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
10877 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
10878 | # Check whether --enable-nls or --disable-nls was given. | |
10879 | if test "${enable_nls+set}" = set; then | |
10880 | enableval="$enable_nls" | |
10881 | USE_NLS=$enableval | |
252b5132 | 10882 | else |
d7040cdb SE |
10883 | USE_NLS=yes |
10884 | fi; | |
10885 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
10886 | echo "${ECHO_T}$USE_NLS" >&6 | |
5464f5a1 | 10887 | |
252b5132 | 10888 | |
5464f5a1 | 10889 | |
252b5132 | 10890 | |
d7040cdb SE |
10891 | |
10892 | ||
10893 | # Prepare PATH_SEPARATOR. | |
10894 | # The user is always right. | |
10895 | if test "${PATH_SEPARATOR+set}" != set; then | |
10896 | echo "#! /bin/sh" >conf$$.sh | |
10897 | echo "exit 0" >>conf$$.sh | |
10898 | chmod +x conf$$.sh | |
10899 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
10900 | PATH_SEPARATOR=';' | |
20e95c23 | 10901 | else |
d7040cdb | 10902 | PATH_SEPARATOR=: |
20e95c23 | 10903 | fi |
d7040cdb SE |
10904 | rm -f conf$$.sh |
10905 | fi | |
10906 | ||
10907 | # Find out how to test for executable files. Don't use a zero-byte file, | |
10908 | # as systems may use methods other than mode bits to determine executability. | |
10909 | cat >conf$$.file <<_ASEOF | |
10910 | #! /bin/sh | |
10911 | exit 0 | |
10912 | _ASEOF | |
10913 | chmod +x conf$$.file | |
10914 | if test -x conf$$.file >/dev/null 2>&1; then | |
10915 | ac_executable_p="test -x" | |
20e95c23 | 10916 | else |
d7040cdb | 10917 | ac_executable_p="test -f" |
20e95c23 | 10918 | fi |
d7040cdb | 10919 | rm -f conf$$.file |
5464f5a1 | 10920 | |
d7040cdb SE |
10921 | # Extract the first word of "msgfmt", so it can be a program name with args. |
10922 | set dummy msgfmt; ac_word=$2 | |
10923 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10924 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10925 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
10926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10927 | else | |
10928 | case "$MSGFMT" in | |
10929 | [\\/]* | ?:[\\/]*) | |
10930 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
10931 | ;; | |
10932 | *) | |
10933 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
10934 | for ac_dir in $PATH; do | |
10935 | IFS="$ac_save_IFS" | |
10936 | test -z "$ac_dir" && ac_dir=. | |
10937 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10938 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
10939 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
10940 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
10941 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
10942 | break 2 | |
10943 | fi | |
10944 | fi | |
10945 | done | |
10946 | done | |
10947 | IFS="$ac_save_IFS" | |
10948 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
10949 | ;; | |
10950 | esac | |
5464f5a1 | 10951 | fi |
d7040cdb SE |
10952 | MSGFMT="$ac_cv_path_MSGFMT" |
10953 | if test "$MSGFMT" != ":"; then | |
10954 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
10955 | echo "${ECHO_T}$MSGFMT" >&6 | |
20e95c23 | 10956 | else |
d7040cdb SE |
10957 | echo "$as_me:$LINENO: result: no" >&5 |
10958 | echo "${ECHO_T}no" >&6 | |
252b5132 | 10959 | fi |
d7040cdb SE |
10960 | |
10961 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
10962 | set dummy gmsgfmt; ac_word=$2 | |
10963 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
10964 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
10965 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
10966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 10967 | else |
d7040cdb SE |
10968 | case $GMSGFMT in |
10969 | [\\/]* | ?:[\\/]*) | |
10970 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
10971 | ;; | |
10972 | *) | |
10973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
10974 | for as_dir in $PATH | |
10975 | do | |
10976 | IFS=$as_save_IFS | |
10977 | test -z "$as_dir" && as_dir=. | |
10978 | for ac_exec_ext in '' $ac_executable_extensions; do | |
10979 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
10980 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
10981 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
10982 | break 2 | |
10983 | fi | |
10984 | done | |
10985 | done | |
5464f5a1 | 10986 | |
d7040cdb SE |
10987 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
10988 | ;; | |
10989 | esac | |
252b5132 | 10990 | fi |
d7040cdb | 10991 | GMSGFMT=$ac_cv_path_GMSGFMT |
5464f5a1 | 10992 | |
d7040cdb SE |
10993 | if test -n "$GMSGFMT"; then |
10994 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 | |
10995 | echo "${ECHO_T}$GMSGFMT" >&6 | |
252b5132 | 10996 | else |
d7040cdb SE |
10997 | echo "$as_me:$LINENO: result: no" >&5 |
10998 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
10999 | fi |
11000 | ||
20e95c23 DJ |
11001 | |
11002 | ||
d7040cdb SE |
11003 | # Prepare PATH_SEPARATOR. |
11004 | # The user is always right. | |
11005 | if test "${PATH_SEPARATOR+set}" != set; then | |
11006 | echo "#! /bin/sh" >conf$$.sh | |
11007 | echo "exit 0" >>conf$$.sh | |
11008 | chmod +x conf$$.sh | |
11009 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11010 | PATH_SEPARATOR=';' | |
11011 | else | |
11012 | PATH_SEPARATOR=: | |
11013 | fi | |
11014 | rm -f conf$$.sh | |
252b5132 | 11015 | fi |
20e95c23 | 11016 | |
d7040cdb SE |
11017 | # Find out how to test for executable files. Don't use a zero-byte file, |
11018 | # as systems may use methods other than mode bits to determine executability. | |
11019 | cat >conf$$.file <<_ASEOF | |
11020 | #! /bin/sh | |
11021 | exit 0 | |
11022 | _ASEOF | |
11023 | chmod +x conf$$.file | |
11024 | if test -x conf$$.file >/dev/null 2>&1; then | |
11025 | ac_executable_p="test -x" | |
11026 | else | |
11027 | ac_executable_p="test -f" | |
11028 | fi | |
11029 | rm -f conf$$.file | |
252b5132 | 11030 | |
d7040cdb SE |
11031 | # Extract the first word of "xgettext", so it can be a program name with args. |
11032 | set dummy xgettext; ac_word=$2 | |
11033 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11034 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11035 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
20e95c23 DJ |
11036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11037 | else | |
d7040cdb SE |
11038 | case "$XGETTEXT" in |
11039 | [\\/]* | ?:[\\/]*) | |
11040 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
11041 | ;; | |
11042 | *) | |
11043 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
11044 | for ac_dir in $PATH; do | |
11045 | IFS="$ac_save_IFS" | |
11046 | test -z "$ac_dir" && ac_dir=. | |
11047 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11048 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
11049 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
11050 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
11051 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
11052 | break 2 | |
11053 | fi | |
11054 | fi | |
11055 | done | |
11056 | done | |
11057 | IFS="$ac_save_IFS" | |
11058 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
11059 | ;; | |
11060 | esac | |
11061 | fi | |
11062 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
11063 | if test "$XGETTEXT" != ":"; then | |
11064 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 | |
11065 | echo "${ECHO_T}$XGETTEXT" >&6 | |
252b5132 | 11066 | else |
d7040cdb SE |
11067 | echo "$as_me:$LINENO: result: no" >&5 |
11068 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
11069 | fi |
11070 | ||
d7040cdb | 11071 | rm -f messages.po |
5464f5a1 | 11072 | |
252b5132 | 11073 | |
d7040cdb SE |
11074 | # Prepare PATH_SEPARATOR. |
11075 | # The user is always right. | |
11076 | if test "${PATH_SEPARATOR+set}" != set; then | |
11077 | echo "#! /bin/sh" >conf$$.sh | |
11078 | echo "exit 0" >>conf$$.sh | |
11079 | chmod +x conf$$.sh | |
11080 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
11081 | PATH_SEPARATOR=';' | |
11082 | else | |
11083 | PATH_SEPARATOR=: | |
11084 | fi | |
11085 | rm -f conf$$.sh | |
252b5132 RH |
11086 | fi |
11087 | ||
d7040cdb SE |
11088 | # Find out how to test for executable files. Don't use a zero-byte file, |
11089 | # as systems may use methods other than mode bits to determine executability. | |
11090 | cat >conf$$.file <<_ASEOF | |
11091 | #! /bin/sh | |
11092 | exit 0 | |
11093 | _ASEOF | |
11094 | chmod +x conf$$.file | |
11095 | if test -x conf$$.file >/dev/null 2>&1; then | |
11096 | ac_executable_p="test -x" | |
5464f5a1 | 11097 | else |
d7040cdb | 11098 | ac_executable_p="test -f" |
20e95c23 | 11099 | fi |
d7040cdb | 11100 | rm -f conf$$.file |
5464f5a1 | 11101 | |
d7040cdb SE |
11102 | # Extract the first word of "msgmerge", so it can be a program name with args. |
11103 | set dummy msgmerge; ac_word=$2 | |
11104 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
11105 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
11106 | if test "${ac_cv_path_MSGMERGE+set}" = set; then | |
11107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11108 | else | |
11109 | case "$MSGMERGE" in | |
11110 | [\\/]* | ?:[\\/]*) | |
11111 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
11112 | ;; | |
11113 | *) | |
11114 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
11115 | for ac_dir in $PATH; do | |
11116 | IFS="$ac_save_IFS" | |
11117 | test -z "$ac_dir" && ac_dir=. | |
11118 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11119 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
11120 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
11121 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
11122 | break 2 | |
11123 | fi | |
11124 | fi | |
11125 | done | |
11126 | done | |
11127 | IFS="$ac_save_IFS" | |
11128 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
11129 | ;; | |
11130 | esac | |
5464f5a1 | 11131 | fi |
d7040cdb SE |
11132 | MSGMERGE="$ac_cv_path_MSGMERGE" |
11133 | if test "$MSGMERGE" != ":"; then | |
11134 | echo "$as_me:$LINENO: result: $MSGMERGE" >&5 | |
11135 | echo "${ECHO_T}$MSGMERGE" >&6 | |
20e95c23 | 11136 | else |
d7040cdb SE |
11137 | echo "$as_me:$LINENO: result: no" >&5 |
11138 | echo "${ECHO_T}no" >&6 | |
11139 | fi | |
20e95c23 | 11140 | |
5464f5a1 | 11141 | |
d7040cdb SE |
11142 | if test "$GMSGFMT" != ":"; then |
11143 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
11144 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
11145 | : ; | |
11146 | else | |
11147 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
11148 | echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 | |
11149 | echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 | |
11150 | GMSGFMT=":" | |
11151 | fi | |
11152 | fi | |
252b5132 | 11153 | |
d7040cdb SE |
11154 | if test "$XGETTEXT" != ":"; then |
11155 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
11156 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
11157 | : ; | |
11158 | else | |
11159 | echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 | |
11160 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 | |
11161 | XGETTEXT=":" | |
11162 | fi | |
11163 | rm -f messages.po | |
11164 | fi | |
6be7c12c | 11165 | |
d7040cdb | 11166 | ac_config_commands="$ac_config_commands default-1" |
5464f5a1 | 11167 | |
252b5132 | 11168 | |
5464f5a1 | 11169 | |
d7040cdb SE |
11170 | # Permit host specific settings. |
11171 | . ${srcdir}/configure.host | |
11172 | ||
11173 | ||
11174 | # Find a good install program. We prefer a C program (faster), | |
11175 | # so one script is as good as another. But avoid the broken or | |
11176 | # incompatible versions: | |
11177 | # SysV /etc/install, /usr/sbin/install | |
11178 | # SunOS /usr/etc/install | |
11179 | # IRIX /sbin/install | |
11180 | # AIX /bin/install | |
11181 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
11182 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
11183 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
11184 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
11185 | # OS/2's system install, which has a completely different semantic | |
11186 | # ./install, which can be erroneously created by make from ./install.sh. | |
58c85be7 | 11187 | # Reject install programs that cannot install multiple files. |
d7040cdb SE |
11188 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
11189 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
11190 | if test -z "$INSTALL"; then | |
11191 | if test "${ac_cv_path_install+set}" = set; then | |
11192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11193 | else | |
11194 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
11195 | for as_dir in $PATH | |
11196 | do | |
11197 | IFS=$as_save_IFS | |
11198 | test -z "$as_dir" && as_dir=. | |
11199 | # Account for people who put trailing slashes in PATH elements. | |
11200 | case $as_dir/ in | |
11201 | ./ | .// | /cC/* | \ | |
11202 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
11203 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
11204 | /usr/ucb/* ) ;; | |
11205 | *) | |
11206 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
11207 | # Don't use installbsd from OSF since it installs stuff as root | |
11208 | # by default. | |
11209 | for ac_prog in ginstall scoinst install; do | |
11210 | for ac_exec_ext in '' $ac_executable_extensions; do | |
11211 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
11212 | if test $ac_prog = install && | |
11213 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11214 | # AIX install. It has an incompatible calling convention. | |
11215 | : | |
11216 | elif test $ac_prog = install && | |
11217 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
11218 | # program-specific install script used by HP pwplus--don't use. | |
11219 | : | |
11220 | else | |
58c85be7 RW |
11221 | rm -rf conftest.one conftest.two conftest.dir |
11222 | echo one > conftest.one | |
11223 | echo two > conftest.two | |
11224 | mkdir conftest.dir | |
11225 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
11226 | test -s conftest.one && test -s conftest.two && | |
11227 | test -s conftest.dir/conftest.one && | |
11228 | test -s conftest.dir/conftest.two | |
11229 | then | |
11230 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
11231 | break 3 | |
11232 | fi | |
d7040cdb SE |
11233 | fi |
11234 | fi | |
11235 | done | |
11236 | done | |
11237 | ;; | |
11238 | esac | |
11239 | done | |
11240 | ||
58c85be7 | 11241 | rm -rf conftest.one conftest.two conftest.dir |
252b5132 | 11242 | |
d7040cdb SE |
11243 | fi |
11244 | if test "${ac_cv_path_install+set}" = set; then | |
11245 | INSTALL=$ac_cv_path_install | |
11246 | else | |
58c85be7 RW |
11247 | # As a last resort, use the slow shell script. Don't cache a |
11248 | # value for INSTALL within a source directory, because that will | |
d7040cdb | 11249 | # break other packages using the cache if that directory is |
58c85be7 | 11250 | # removed, or if the value is a relative name. |
d7040cdb SE |
11251 | INSTALL=$ac_install_sh |
11252 | fi | |
11253 | fi | |
11254 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
11255 | echo "${ECHO_T}$INSTALL" >&6 | |
5464f5a1 | 11256 | |
d7040cdb SE |
11257 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
11258 | # It thinks the first close brace ends the variable substitution. | |
11259 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
252b5132 | 11260 | |
d7040cdb | 11261 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
5464f5a1 | 11262 | |
d7040cdb | 11263 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
252b5132 | 11264 | |
252b5132 | 11265 | |
d7040cdb | 11266 | BFD_HOST_64BIT_LONG=0 |
d2df793a | 11267 | BFD_HOST_64BIT_LONG_LONG=0 |
d7040cdb SE |
11268 | BFD_HOST_64_BIT_DEFINED=0 |
11269 | BFD_HOST_64_BIT= | |
11270 | BFD_HOST_U_64_BIT= | |
d2df793a | 11271 | BFD_HOSTPTR_T="unsigned long" |
6be7c12c | 11272 | |
d7040cdb SE |
11273 | echo "$as_me:$LINENO: checking for long long" >&5 |
11274 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
2ba49b59 | 11275 | if test "${ac_cv_type_long_long+set}" = set; then |
5464f5a1 | 11276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6726e1ea | 11277 | else |
5464f5a1 NN |
11278 | cat >conftest.$ac_ext <<_ACEOF |
11279 | /* confdefs.h. */ | |
11280 | _ACEOF | |
11281 | cat confdefs.h >>conftest.$ac_ext | |
11282 | cat >>conftest.$ac_ext <<_ACEOF | |
11283 | /* end confdefs.h. */ | |
2ba49b59 | 11284 | $ac_includes_default |
5464f5a1 NN |
11285 | int |
11286 | main () | |
11287 | { | |
2ba49b59 KC |
11288 | if ((long long *) 0) |
11289 | return 0; | |
11290 | if (sizeof (long long)) | |
11291 | return 0; | |
5464f5a1 NN |
11292 | ; |
11293 | return 0; | |
11294 | } | |
11295 | _ACEOF | |
11296 | rm -f conftest.$ac_objext | |
11297 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11298 | (eval $ac_compile) 2>conftest.er1 | |
11299 | ac_status=$? | |
11300 | grep -v '^ *+' conftest.er1 >conftest.err | |
11301 | rm -f conftest.er1 | |
11302 | cat conftest.err >&5 | |
11303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11304 | (exit $ac_status); } && | |
49c96104 SE |
11305 | { ac_try='test -z "$ac_c_werror_flag" |
11306 | || test ! -s conftest.err' | |
5464f5a1 NN |
11307 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11308 | (eval $ac_try) 2>&5 | |
11309 | ac_status=$? | |
11310 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11311 | (exit $ac_status); }; } && | |
11312 | { ac_try='test -s conftest.$ac_objext' | |
11313 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11314 | (eval $ac_try) 2>&5 | |
11315 | ac_status=$? | |
11316 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11317 | (exit $ac_status); }; }; then | |
2ba49b59 | 11318 | ac_cv_type_long_long=yes |
6726e1ea | 11319 | else |
5464f5a1 NN |
11320 | echo "$as_me: failed program was:" >&5 |
11321 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11322 | ||
2ba49b59 | 11323 | ac_cv_type_long_long=no |
6726e1ea | 11324 | fi |
5464f5a1 | 11325 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6726e1ea | 11326 | fi |
2ba49b59 KC |
11327 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
11328 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
6726e1ea | 11329 | |
2ba49b59 KC |
11330 | echo "$as_me:$LINENO: checking size of long long" >&5 |
11331 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
11332 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
5464f5a1 | 11333 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6726e1ea | 11334 | else |
2ba49b59 KC |
11335 | if test "$ac_cv_type_long_long" = yes; then |
11336 | # The cast to unsigned long works around a bug in the HP C Compiler | |
11337 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
11338 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
11339 | # This bug is HP SR number 8606223364. | |
11340 | if test "$cross_compiling" = yes; then | |
11341 | # Depending upon the size, compute the lo and hi bounds. | |
11342 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
11343 | /* confdefs.h. */ |
11344 | _ACEOF | |
11345 | cat confdefs.h >>conftest.$ac_ext | |
11346 | cat >>conftest.$ac_ext <<_ACEOF | |
11347 | /* end confdefs.h. */ | |
2ba49b59 KC |
11348 | $ac_includes_default |
11349 | int | |
11350 | main () | |
11351 | { | |
11352 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
11353 | test_array [0] = 0 | |
6726e1ea | 11354 | |
2ba49b59 KC |
11355 | ; |
11356 | return 0; | |
11357 | } | |
11358 | _ACEOF | |
11359 | rm -f conftest.$ac_objext | |
11360 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11361 | (eval $ac_compile) 2>conftest.er1 | |
11362 | ac_status=$? | |
11363 | grep -v '^ *+' conftest.er1 >conftest.err | |
11364 | rm -f conftest.er1 | |
11365 | cat conftest.err >&5 | |
11366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11367 | (exit $ac_status); } && | |
49c96104 SE |
11368 | { ac_try='test -z "$ac_c_werror_flag" |
11369 | || test ! -s conftest.err' | |
2ba49b59 KC |
11370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11371 | (eval $ac_try) 2>&5 | |
11372 | ac_status=$? | |
11373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11374 | (exit $ac_status); }; } && | |
11375 | { ac_try='test -s conftest.$ac_objext' | |
11376 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11377 | (eval $ac_try) 2>&5 | |
11378 | ac_status=$? | |
11379 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11380 | (exit $ac_status); }; }; then | |
11381 | ac_lo=0 ac_mid=0 | |
11382 | while :; do | |
11383 | cat >conftest.$ac_ext <<_ACEOF | |
11384 | /* confdefs.h. */ | |
11385 | _ACEOF | |
11386 | cat confdefs.h >>conftest.$ac_ext | |
11387 | cat >>conftest.$ac_ext <<_ACEOF | |
11388 | /* end confdefs.h. */ | |
11389 | $ac_includes_default | |
5464f5a1 NN |
11390 | int |
11391 | main () | |
11392 | { | |
2ba49b59 KC |
11393 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
11394 | test_array [0] = 0 | |
11395 | ||
5464f5a1 NN |
11396 | ; |
11397 | return 0; | |
11398 | } | |
11399 | _ACEOF | |
11400 | rm -f conftest.$ac_objext | |
11401 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11402 | (eval $ac_compile) 2>conftest.er1 | |
11403 | ac_status=$? | |
11404 | grep -v '^ *+' conftest.er1 >conftest.err | |
11405 | rm -f conftest.er1 | |
11406 | cat conftest.err >&5 | |
11407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11408 | (exit $ac_status); } && | |
49c96104 SE |
11409 | { ac_try='test -z "$ac_c_werror_flag" |
11410 | || test ! -s conftest.err' | |
5464f5a1 NN |
11411 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11412 | (eval $ac_try) 2>&5 | |
11413 | ac_status=$? | |
11414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11415 | (exit $ac_status); }; } && | |
11416 | { ac_try='test -s conftest.$ac_objext' | |
11417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11418 | (eval $ac_try) 2>&5 | |
11419 | ac_status=$? | |
11420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11421 | (exit $ac_status); }; }; then | |
2ba49b59 | 11422 | ac_hi=$ac_mid; break |
6726e1ea | 11423 | else |
5464f5a1 NN |
11424 | echo "$as_me: failed program was:" >&5 |
11425 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11426 | ||
2ba49b59 KC |
11427 | ac_lo=`expr $ac_mid + 1` |
11428 | if test $ac_lo -le $ac_mid; then | |
11429 | ac_lo= ac_hi= | |
11430 | break | |
11431 | fi | |
11432 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
6726e1ea | 11433 | fi |
5464f5a1 | 11434 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2ba49b59 | 11435 | done |
252b5132 | 11436 | else |
2ba49b59 KC |
11437 | echo "$as_me: failed program was:" >&5 |
11438 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5464f5a1 | 11439 | |
5464f5a1 NN |
11440 | cat >conftest.$ac_ext <<_ACEOF |
11441 | /* confdefs.h. */ | |
11442 | _ACEOF | |
11443 | cat confdefs.h >>conftest.$ac_ext | |
11444 | cat >>conftest.$ac_ext <<_ACEOF | |
11445 | /* end confdefs.h. */ | |
11446 | $ac_includes_default | |
2ba49b59 KC |
11447 | int |
11448 | main () | |
11449 | { | |
11450 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
11451 | test_array [0] = 0 | |
11452 | ||
11453 | ; | |
11454 | return 0; | |
11455 | } | |
5464f5a1 NN |
11456 | _ACEOF |
11457 | rm -f conftest.$ac_objext | |
11458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11459 | (eval $ac_compile) 2>conftest.er1 | |
11460 | ac_status=$? | |
11461 | grep -v '^ *+' conftest.er1 >conftest.err | |
11462 | rm -f conftest.er1 | |
11463 | cat conftest.err >&5 | |
11464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11465 | (exit $ac_status); } && | |
49c96104 SE |
11466 | { ac_try='test -z "$ac_c_werror_flag" |
11467 | || test ! -s conftest.err' | |
5464f5a1 NN |
11468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11469 | (eval $ac_try) 2>&5 | |
11470 | ac_status=$? | |
11471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11472 | (exit $ac_status); }; } && | |
11473 | { ac_try='test -s conftest.$ac_objext' | |
11474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11475 | (eval $ac_try) 2>&5 | |
11476 | ac_status=$? | |
11477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11478 | (exit $ac_status); }; }; then | |
2ba49b59 KC |
11479 | ac_hi=-1 ac_mid=-1 |
11480 | while :; do | |
11481 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
11482 | /* confdefs.h. */ |
11483 | _ACEOF | |
11484 | cat confdefs.h >>conftest.$ac_ext | |
11485 | cat >>conftest.$ac_ext <<_ACEOF | |
11486 | /* end confdefs.h. */ | |
2ba49b59 KC |
11487 | $ac_includes_default |
11488 | int | |
11489 | main () | |
11490 | { | |
11491 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
11492 | test_array [0] = 0 | |
11493 | ||
11494 | ; | |
11495 | return 0; | |
11496 | } | |
5464f5a1 | 11497 | _ACEOF |
2ba49b59 KC |
11498 | rm -f conftest.$ac_objext |
11499 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11500 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
11501 | ac_status=$? |
11502 | grep -v '^ *+' conftest.er1 >conftest.err | |
11503 | rm -f conftest.er1 | |
11504 | cat conftest.err >&5 | |
11505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2ba49b59 | 11506 | (exit $ac_status); } && |
49c96104 SE |
11507 | { ac_try='test -z "$ac_c_werror_flag" |
11508 | || test ! -s conftest.err' | |
2ba49b59 KC |
11509 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11510 | (eval $ac_try) 2>&5 | |
11511 | ac_status=$? | |
11512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11513 | (exit $ac_status); }; } && | |
11514 | { ac_try='test -s conftest.$ac_objext' | |
11515 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11516 | (eval $ac_try) 2>&5 | |
11517 | ac_status=$? | |
11518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11519 | (exit $ac_status); }; }; then | |
11520 | ac_lo=$ac_mid; break | |
252b5132 | 11521 | else |
2ba49b59 KC |
11522 | echo "$as_me: failed program was:" >&5 |
11523 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11524 | ||
11525 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
11526 | if test $ac_mid -le $ac_hi; then | |
11527 | ac_lo= ac_hi= | |
11528 | break | |
11529 | fi | |
11530 | ac_mid=`expr 2 '*' $ac_mid` | |
252b5132 | 11531 | fi |
2ba49b59 KC |
11532 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11533 | done | |
5464f5a1 NN |
11534 | else |
11535 | echo "$as_me: failed program was:" >&5 | |
11536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11537 | ||
2ba49b59 | 11538 | ac_lo= ac_hi= |
252b5132 | 11539 | fi |
2ba49b59 KC |
11540 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
11541 | fi | |
11542 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11543 | # Binary search between lo and hi bounds. | |
11544 | while test "x$ac_lo" != "x$ac_hi"; do | |
11545 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
11546 | cat >conftest.$ac_ext <<_ACEOF | |
11547 | /* confdefs.h. */ | |
11548 | _ACEOF | |
11549 | cat confdefs.h >>conftest.$ac_ext | |
11550 | cat >>conftest.$ac_ext <<_ACEOF | |
11551 | /* end confdefs.h. */ | |
11552 | $ac_includes_default | |
11553 | int | |
11554 | main () | |
11555 | { | |
11556 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
11557 | test_array [0] = 0 | |
5464f5a1 | 11558 | |
2ba49b59 KC |
11559 | ; |
11560 | return 0; | |
11561 | } | |
5464f5a1 NN |
11562 | _ACEOF |
11563 | rm -f conftest.$ac_objext | |
11564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11565 | (eval $ac_compile) 2>conftest.er1 | |
11566 | ac_status=$? | |
11567 | grep -v '^ *+' conftest.er1 >conftest.err | |
11568 | rm -f conftest.er1 | |
11569 | cat conftest.err >&5 | |
11570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11571 | (exit $ac_status); } && | |
49c96104 SE |
11572 | { ac_try='test -z "$ac_c_werror_flag" |
11573 | || test ! -s conftest.err' | |
5464f5a1 NN |
11574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11575 | (eval $ac_try) 2>&5 | |
11576 | ac_status=$? | |
11577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11578 | (exit $ac_status); }; } && | |
11579 | { ac_try='test -s conftest.$ac_objext' | |
11580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11581 | (eval $ac_try) 2>&5 | |
11582 | ac_status=$? | |
11583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11584 | (exit $ac_status); }; }; then | |
2ba49b59 | 11585 | ac_hi=$ac_mid |
5464f5a1 NN |
11586 | else |
11587 | echo "$as_me: failed program was:" >&5 | |
11588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11589 | ||
2ba49b59 | 11590 | ac_lo=`expr '(' $ac_mid ')' + 1` |
5464f5a1 NN |
11591 | fi |
11592 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2ba49b59 KC |
11593 | done |
11594 | case $ac_lo in | |
11595 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
11596 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
11597 | See \`config.log' for more details." >&5 | |
11598 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
11599 | See \`config.log' for more details." >&2;} | |
11600 | { (exit 1); exit 1; }; } ;; | |
11601 | esac | |
11602 | else | |
11603 | if test "$cross_compiling" = yes; then | |
49c96104 SE |
11604 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
11605 | See \`config.log' for more details." >&5 | |
11606 | echo "$as_me: error: cannot run test program while cross compiling | |
11607 | See \`config.log' for more details." >&2;} | |
2ba49b59 KC |
11608 | { (exit 1); exit 1; }; } |
11609 | else | |
11610 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
11611 | /* confdefs.h. */ |
11612 | _ACEOF | |
11613 | cat confdefs.h >>conftest.$ac_ext | |
11614 | cat >>conftest.$ac_ext <<_ACEOF | |
11615 | /* end confdefs.h. */ | |
2ba49b59 KC |
11616 | $ac_includes_default |
11617 | long longval () { return (long) (sizeof (long long)); } | |
11618 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
11619 | #include <stdio.h> | |
11620 | #include <stdlib.h> | |
11621 | int | |
11622 | main () | |
11623 | { | |
11624 | ||
11625 | FILE *f = fopen ("conftest.val", "w"); | |
11626 | if (! f) | |
11627 | exit (1); | |
11628 | if (((long) (sizeof (long long))) < 0) | |
11629 | { | |
11630 | long i = longval (); | |
11631 | if (i != ((long) (sizeof (long long)))) | |
11632 | exit (1); | |
11633 | fprintf (f, "%ld\n", i); | |
11634 | } | |
11635 | else | |
11636 | { | |
11637 | unsigned long i = ulongval (); | |
11638 | if (i != ((long) (sizeof (long long)))) | |
11639 | exit (1); | |
11640 | fprintf (f, "%lu\n", i); | |
11641 | } | |
11642 | exit (ferror (f) || fclose (f) != 0); | |
11643 | ||
11644 | ; | |
11645 | return 0; | |
11646 | } | |
5464f5a1 | 11647 | _ACEOF |
2ba49b59 KC |
11648 | rm -f conftest$ac_exeext |
11649 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11650 | (eval $ac_link) 2>&5 | |
5464f5a1 | 11651 | ac_status=$? |
5464f5a1 | 11652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2ba49b59 KC |
11653 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
11654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11655 | (eval $ac_try) 2>&5 | |
11656 | ac_status=$? | |
11657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11658 | (exit $ac_status); }; }; then | |
11659 | ac_cv_sizeof_long_long=`cat conftest.val` | |
5464f5a1 | 11660 | else |
2ba49b59 KC |
11661 | echo "$as_me: program exited with status $ac_status" >&5 |
11662 | echo "$as_me: failed program was:" >&5 | |
5464f5a1 NN |
11663 | sed 's/^/| /' conftest.$ac_ext >&5 |
11664 | ||
2ba49b59 KC |
11665 | ( exit $ac_status ) |
11666 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
11667 | See \`config.log' for more details." >&5 | |
11668 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
11669 | See \`config.log' for more details." >&2;} | |
11670 | { (exit 1); exit 1; }; } | |
252b5132 | 11671 | fi |
2ba49b59 KC |
11672 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
11673 | fi | |
11674 | fi | |
11675 | rm -f conftest.val | |
6be7c12c | 11676 | else |
2ba49b59 | 11677 | ac_cv_sizeof_long_long=0 |
5464f5a1 | 11678 | fi |
5464f5a1 | 11679 | fi |
2ba49b59 KC |
11680 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
11681 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
11682 | cat >>confdefs.h <<_ACEOF | |
11683 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
5464f5a1 NN |
11684 | _ACEOF |
11685 | ||
5464f5a1 | 11686 | |
d2df793a NC |
11687 | echo "$as_me:$LINENO: checking for void *" >&5 |
11688 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
11689 | if test "${ac_cv_type_void_p+set}" = set; then | |
11690 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11691 | else | |
11692 | cat >conftest.$ac_ext <<_ACEOF | |
11693 | /* confdefs.h. */ | |
11694 | _ACEOF | |
11695 | cat confdefs.h >>conftest.$ac_ext | |
11696 | cat >>conftest.$ac_ext <<_ACEOF | |
11697 | /* end confdefs.h. */ | |
11698 | $ac_includes_default | |
11699 | int | |
11700 | main () | |
11701 | { | |
11702 | if ((void * *) 0) | |
11703 | return 0; | |
11704 | if (sizeof (void *)) | |
11705 | return 0; | |
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); } && | |
11719 | { ac_try='test -z "$ac_c_werror_flag" | |
11720 | || test ! -s conftest.err' | |
11721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11722 | (eval $ac_try) 2>&5 | |
11723 | ac_status=$? | |
11724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11725 | (exit $ac_status); }; } && | |
11726 | { ac_try='test -s conftest.$ac_objext' | |
11727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11728 | (eval $ac_try) 2>&5 | |
11729 | ac_status=$? | |
11730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11731 | (exit $ac_status); }; }; then | |
11732 | ac_cv_type_void_p=yes | |
11733 | else | |
11734 | echo "$as_me: failed program was:" >&5 | |
11735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11736 | ||
11737 | ac_cv_type_void_p=no | |
11738 | fi | |
11739 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11740 | fi | |
11741 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
11742 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
11743 | ||
11744 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
11745 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
11746 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
11747 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11748 | else | |
11749 | if test "$ac_cv_type_void_p" = yes; then | |
11750 | # The cast to unsigned long works around a bug in the HP C Compiler | |
11751 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
11752 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
11753 | # This bug is HP SR number 8606223364. | |
11754 | if test "$cross_compiling" = yes; then | |
11755 | # Depending upon the size, compute the lo and hi bounds. | |
11756 | cat >conftest.$ac_ext <<_ACEOF | |
11757 | /* confdefs.h. */ | |
11758 | _ACEOF | |
11759 | cat confdefs.h >>conftest.$ac_ext | |
11760 | cat >>conftest.$ac_ext <<_ACEOF | |
11761 | /* end confdefs.h. */ | |
11762 | $ac_includes_default | |
11763 | int | |
11764 | main () | |
11765 | { | |
11766 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
11767 | test_array [0] = 0 | |
11768 | ||
11769 | ; | |
11770 | return 0; | |
11771 | } | |
11772 | _ACEOF | |
11773 | rm -f conftest.$ac_objext | |
11774 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11775 | (eval $ac_compile) 2>conftest.er1 | |
11776 | ac_status=$? | |
11777 | grep -v '^ *+' conftest.er1 >conftest.err | |
11778 | rm -f conftest.er1 | |
11779 | cat conftest.err >&5 | |
11780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11781 | (exit $ac_status); } && | |
11782 | { ac_try='test -z "$ac_c_werror_flag" | |
11783 | || test ! -s conftest.err' | |
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 | |
11795 | ac_lo=0 ac_mid=0 | |
11796 | while :; do | |
11797 | cat >conftest.$ac_ext <<_ACEOF | |
11798 | /* confdefs.h. */ | |
11799 | _ACEOF | |
11800 | cat confdefs.h >>conftest.$ac_ext | |
11801 | cat >>conftest.$ac_ext <<_ACEOF | |
11802 | /* end confdefs.h. */ | |
11803 | $ac_includes_default | |
11804 | int | |
11805 | main () | |
11806 | { | |
11807 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
11808 | test_array [0] = 0 | |
11809 | ||
11810 | ; | |
11811 | return 0; | |
11812 | } | |
11813 | _ACEOF | |
11814 | rm -f conftest.$ac_objext | |
11815 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11816 | (eval $ac_compile) 2>conftest.er1 | |
11817 | ac_status=$? | |
11818 | grep -v '^ *+' conftest.er1 >conftest.err | |
11819 | rm -f conftest.er1 | |
11820 | cat conftest.err >&5 | |
11821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11822 | (exit $ac_status); } && | |
11823 | { ac_try='test -z "$ac_c_werror_flag" | |
11824 | || test ! -s conftest.err' | |
11825 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11826 | (eval $ac_try) 2>&5 | |
11827 | ac_status=$? | |
11828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11829 | (exit $ac_status); }; } && | |
11830 | { ac_try='test -s conftest.$ac_objext' | |
11831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11832 | (eval $ac_try) 2>&5 | |
11833 | ac_status=$? | |
11834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11835 | (exit $ac_status); }; }; then | |
11836 | ac_hi=$ac_mid; break | |
11837 | else | |
11838 | echo "$as_me: failed program was:" >&5 | |
11839 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11840 | ||
11841 | ac_lo=`expr $ac_mid + 1` | |
11842 | if test $ac_lo -le $ac_mid; then | |
11843 | ac_lo= ac_hi= | |
11844 | break | |
11845 | fi | |
11846 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
11847 | fi | |
11848 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11849 | done | |
11850 | else | |
11851 | echo "$as_me: failed program was:" >&5 | |
11852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11853 | ||
11854 | cat >conftest.$ac_ext <<_ACEOF | |
11855 | /* confdefs.h. */ | |
11856 | _ACEOF | |
11857 | cat confdefs.h >>conftest.$ac_ext | |
11858 | cat >>conftest.$ac_ext <<_ACEOF | |
11859 | /* end confdefs.h. */ | |
11860 | $ac_includes_default | |
11861 | int | |
11862 | main () | |
11863 | { | |
11864 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
11865 | test_array [0] = 0 | |
11866 | ||
11867 | ; | |
11868 | return 0; | |
11869 | } | |
11870 | _ACEOF | |
11871 | rm -f conftest.$ac_objext | |
11872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11873 | (eval $ac_compile) 2>conftest.er1 | |
11874 | ac_status=$? | |
11875 | grep -v '^ *+' conftest.er1 >conftest.err | |
11876 | rm -f conftest.er1 | |
11877 | cat conftest.err >&5 | |
11878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11879 | (exit $ac_status); } && | |
11880 | { ac_try='test -z "$ac_c_werror_flag" | |
11881 | || test ! -s conftest.err' | |
11882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11883 | (eval $ac_try) 2>&5 | |
11884 | ac_status=$? | |
11885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11886 | (exit $ac_status); }; } && | |
11887 | { ac_try='test -s conftest.$ac_objext' | |
11888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11889 | (eval $ac_try) 2>&5 | |
11890 | ac_status=$? | |
11891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11892 | (exit $ac_status); }; }; then | |
11893 | ac_hi=-1 ac_mid=-1 | |
11894 | while :; do | |
11895 | cat >conftest.$ac_ext <<_ACEOF | |
11896 | /* confdefs.h. */ | |
11897 | _ACEOF | |
11898 | cat confdefs.h >>conftest.$ac_ext | |
11899 | cat >>conftest.$ac_ext <<_ACEOF | |
11900 | /* end confdefs.h. */ | |
11901 | $ac_includes_default | |
11902 | int | |
11903 | main () | |
11904 | { | |
11905 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
11906 | test_array [0] = 0 | |
11907 | ||
11908 | ; | |
11909 | return 0; | |
11910 | } | |
11911 | _ACEOF | |
11912 | rm -f conftest.$ac_objext | |
11913 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11914 | (eval $ac_compile) 2>conftest.er1 | |
11915 | ac_status=$? | |
11916 | grep -v '^ *+' conftest.er1 >conftest.err | |
11917 | rm -f conftest.er1 | |
11918 | cat conftest.err >&5 | |
11919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11920 | (exit $ac_status); } && | |
11921 | { ac_try='test -z "$ac_c_werror_flag" | |
11922 | || test ! -s conftest.err' | |
11923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11924 | (eval $ac_try) 2>&5 | |
11925 | ac_status=$? | |
11926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11927 | (exit $ac_status); }; } && | |
11928 | { ac_try='test -s conftest.$ac_objext' | |
11929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11930 | (eval $ac_try) 2>&5 | |
11931 | ac_status=$? | |
11932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11933 | (exit $ac_status); }; }; then | |
11934 | ac_lo=$ac_mid; break | |
11935 | else | |
11936 | echo "$as_me: failed program was:" >&5 | |
11937 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11938 | ||
11939 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
11940 | if test $ac_mid -le $ac_hi; then | |
11941 | ac_lo= ac_hi= | |
11942 | break | |
11943 | fi | |
11944 | ac_mid=`expr 2 '*' $ac_mid` | |
11945 | fi | |
11946 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11947 | done | |
11948 | else | |
11949 | echo "$as_me: failed program was:" >&5 | |
11950 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11951 | ||
11952 | ac_lo= ac_hi= | |
11953 | fi | |
11954 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11955 | fi | |
11956 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
11957 | # Binary search between lo and hi bounds. | |
11958 | while test "x$ac_lo" != "x$ac_hi"; do | |
11959 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
11960 | cat >conftest.$ac_ext <<_ACEOF | |
11961 | /* confdefs.h. */ | |
11962 | _ACEOF | |
11963 | cat confdefs.h >>conftest.$ac_ext | |
11964 | cat >>conftest.$ac_ext <<_ACEOF | |
11965 | /* end confdefs.h. */ | |
11966 | $ac_includes_default | |
11967 | int | |
11968 | main () | |
11969 | { | |
11970 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
11971 | test_array [0] = 0 | |
11972 | ||
11973 | ; | |
11974 | return 0; | |
11975 | } | |
11976 | _ACEOF | |
11977 | rm -f conftest.$ac_objext | |
11978 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
11979 | (eval $ac_compile) 2>conftest.er1 | |
11980 | ac_status=$? | |
11981 | grep -v '^ *+' conftest.er1 >conftest.err | |
11982 | rm -f conftest.er1 | |
11983 | cat conftest.err >&5 | |
11984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11985 | (exit $ac_status); } && | |
11986 | { ac_try='test -z "$ac_c_werror_flag" | |
11987 | || test ! -s conftest.err' | |
11988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11989 | (eval $ac_try) 2>&5 | |
11990 | ac_status=$? | |
11991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11992 | (exit $ac_status); }; } && | |
11993 | { ac_try='test -s conftest.$ac_objext' | |
11994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11995 | (eval $ac_try) 2>&5 | |
11996 | ac_status=$? | |
11997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11998 | (exit $ac_status); }; }; then | |
11999 | ac_hi=$ac_mid | |
12000 | else | |
12001 | echo "$as_me: failed program was:" >&5 | |
12002 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12003 | ||
12004 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
12005 | fi | |
12006 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12007 | done | |
12008 | case $ac_lo in | |
12009 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
12010 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
12011 | See \`config.log' for more details." >&5 | |
12012 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
12013 | See \`config.log' for more details." >&2;} | |
12014 | { (exit 1); exit 1; }; } ;; | |
12015 | esac | |
12016 | else | |
12017 | if test "$cross_compiling" = yes; then | |
12018 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
12019 | See \`config.log' for more details." >&5 | |
12020 | echo "$as_me: error: cannot run test program while cross compiling | |
12021 | See \`config.log' for more details." >&2;} | |
12022 | { (exit 1); exit 1; }; } | |
12023 | else | |
12024 | cat >conftest.$ac_ext <<_ACEOF | |
12025 | /* confdefs.h. */ | |
12026 | _ACEOF | |
12027 | cat confdefs.h >>conftest.$ac_ext | |
12028 | cat >>conftest.$ac_ext <<_ACEOF | |
12029 | /* end confdefs.h. */ | |
12030 | $ac_includes_default | |
12031 | long longval () { return (long) (sizeof (void *)); } | |
12032 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
12033 | #include <stdio.h> | |
12034 | #include <stdlib.h> | |
12035 | int | |
12036 | main () | |
12037 | { | |
12038 | ||
12039 | FILE *f = fopen ("conftest.val", "w"); | |
12040 | if (! f) | |
12041 | exit (1); | |
12042 | if (((long) (sizeof (void *))) < 0) | |
12043 | { | |
12044 | long i = longval (); | |
12045 | if (i != ((long) (sizeof (void *)))) | |
12046 | exit (1); | |
12047 | fprintf (f, "%ld\n", i); | |
12048 | } | |
12049 | else | |
12050 | { | |
12051 | unsigned long i = ulongval (); | |
12052 | if (i != ((long) (sizeof (void *)))) | |
12053 | exit (1); | |
12054 | fprintf (f, "%lu\n", i); | |
12055 | } | |
12056 | exit (ferror (f) || fclose (f) != 0); | |
12057 | ||
12058 | ; | |
12059 | return 0; | |
12060 | } | |
12061 | _ACEOF | |
12062 | rm -f conftest$ac_exeext | |
12063 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12064 | (eval $ac_link) 2>&5 | |
12065 | ac_status=$? | |
12066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12067 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
12068 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12069 | (eval $ac_try) 2>&5 | |
12070 | ac_status=$? | |
12071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12072 | (exit $ac_status); }; }; then | |
12073 | ac_cv_sizeof_void_p=`cat conftest.val` | |
12074 | else | |
12075 | echo "$as_me: program exited with status $ac_status" >&5 | |
12076 | echo "$as_me: failed program was:" >&5 | |
12077 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12078 | ||
12079 | ( exit $ac_status ) | |
12080 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
12081 | See \`config.log' for more details." >&5 | |
12082 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
12083 | See \`config.log' for more details." >&2;} | |
12084 | { (exit 1); exit 1; }; } | |
12085 | fi | |
12086 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
12087 | fi | |
12088 | fi | |
12089 | rm -f conftest.val | |
12090 | else | |
12091 | ac_cv_sizeof_void_p=0 | |
12092 | fi | |
12093 | fi | |
12094 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
12095 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
12096 | cat >>confdefs.h <<_ACEOF | |
12097 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
12098 | _ACEOF | |
12099 | ||
12100 | ||
2ba49b59 KC |
12101 | echo "$as_me:$LINENO: checking for long" >&5 |
12102 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
12103 | if test "${ac_cv_type_long+set}" = set; then | |
5464f5a1 NN |
12104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12105 | else | |
12106 | cat >conftest.$ac_ext <<_ACEOF | |
12107 | /* confdefs.h. */ | |
12108 | _ACEOF | |
12109 | cat confdefs.h >>conftest.$ac_ext | |
12110 | cat >>conftest.$ac_ext <<_ACEOF | |
12111 | /* end confdefs.h. */ | |
2ba49b59 | 12112 | $ac_includes_default |
5464f5a1 NN |
12113 | int |
12114 | main () | |
12115 | { | |
2ba49b59 KC |
12116 | if ((long *) 0) |
12117 | return 0; | |
12118 | if (sizeof (long)) | |
12119 | return 0; | |
5464f5a1 NN |
12120 | ; |
12121 | return 0; | |
12122 | } | |
12123 | _ACEOF | |
12124 | rm -f conftest.$ac_objext | |
12125 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12126 | (eval $ac_compile) 2>conftest.er1 | |
12127 | ac_status=$? | |
12128 | grep -v '^ *+' conftest.er1 >conftest.err | |
12129 | rm -f conftest.er1 | |
12130 | cat conftest.err >&5 | |
12131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12132 | (exit $ac_status); } && | |
49c96104 SE |
12133 | { ac_try='test -z "$ac_c_werror_flag" |
12134 | || test ! -s conftest.err' | |
5464f5a1 NN |
12135 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12136 | (eval $ac_try) 2>&5 | |
12137 | ac_status=$? | |
12138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12139 | (exit $ac_status); }; } && | |
12140 | { ac_try='test -s conftest.$ac_objext' | |
12141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12142 | (eval $ac_try) 2>&5 | |
12143 | ac_status=$? | |
12144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12145 | (exit $ac_status); }; }; then | |
2ba49b59 | 12146 | ac_cv_type_long=yes |
252b5132 | 12147 | else |
5464f5a1 NN |
12148 | echo "$as_me: failed program was:" >&5 |
12149 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12150 | ||
2ba49b59 | 12151 | ac_cv_type_long=no |
252b5132 | 12152 | fi |
5464f5a1 | 12153 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 12154 | fi |
2ba49b59 KC |
12155 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
12156 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
5464f5a1 | 12157 | |
2ba49b59 KC |
12158 | echo "$as_me:$LINENO: checking size of long" >&5 |
12159 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
12160 | if test "${ac_cv_sizeof_long+set}" = set; then | |
5464f5a1 NN |
12161 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12162 | else | |
2ba49b59 KC |
12163 | if test "$ac_cv_type_long" = yes; then |
12164 | # The cast to unsigned long works around a bug in the HP C Compiler | |
12165 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12166 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12167 | # This bug is HP SR number 8606223364. | |
12168 | if test "$cross_compiling" = yes; then | |
12169 | # Depending upon the size, compute the lo and hi bounds. | |
12170 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
12171 | /* confdefs.h. */ |
12172 | _ACEOF | |
12173 | cat confdefs.h >>conftest.$ac_ext | |
12174 | cat >>conftest.$ac_ext <<_ACEOF | |
12175 | /* end confdefs.h. */ | |
2ba49b59 | 12176 | $ac_includes_default |
5464f5a1 NN |
12177 | int |
12178 | main () | |
12179 | { | |
2ba49b59 KC |
12180 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
12181 | test_array [0] = 0 | |
12182 | ||
5464f5a1 NN |
12183 | ; |
12184 | return 0; | |
12185 | } | |
12186 | _ACEOF | |
12187 | rm -f conftest.$ac_objext | |
12188 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12189 | (eval $ac_compile) 2>conftest.er1 | |
12190 | ac_status=$? | |
12191 | grep -v '^ *+' conftest.er1 >conftest.err | |
12192 | rm -f conftest.er1 | |
12193 | cat conftest.err >&5 | |
12194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12195 | (exit $ac_status); } && | |
49c96104 SE |
12196 | { ac_try='test -z "$ac_c_werror_flag" |
12197 | || test ! -s conftest.err' | |
5464f5a1 NN |
12198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12199 | (eval $ac_try) 2>&5 | |
12200 | ac_status=$? | |
12201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12202 | (exit $ac_status); }; } && | |
12203 | { ac_try='test -s conftest.$ac_objext' | |
12204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12205 | (eval $ac_try) 2>&5 | |
12206 | ac_status=$? | |
12207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12208 | (exit $ac_status); }; }; then | |
2ba49b59 KC |
12209 | ac_lo=0 ac_mid=0 |
12210 | while :; do | |
12211 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
12212 | /* confdefs.h. */ |
12213 | _ACEOF | |
12214 | cat confdefs.h >>conftest.$ac_ext | |
12215 | cat >>conftest.$ac_ext <<_ACEOF | |
12216 | /* end confdefs.h. */ | |
2ba49b59 | 12217 | $ac_includes_default |
5464f5a1 NN |
12218 | int |
12219 | main () | |
12220 | { | |
2ba49b59 KC |
12221 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
12222 | test_array [0] = 0 | |
12223 | ||
5464f5a1 NN |
12224 | ; |
12225 | return 0; | |
12226 | } | |
12227 | _ACEOF | |
2ba49b59 KC |
12228 | rm -f conftest.$ac_objext |
12229 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12230 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
12231 | ac_status=$? |
12232 | grep -v '^ *+' conftest.er1 >conftest.err | |
12233 | rm -f conftest.er1 | |
12234 | cat conftest.err >&5 | |
12235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12236 | (exit $ac_status); } && | |
49c96104 SE |
12237 | { ac_try='test -z "$ac_c_werror_flag" |
12238 | || test ! -s conftest.err' | |
5464f5a1 NN |
12239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12240 | (eval $ac_try) 2>&5 | |
12241 | ac_status=$? | |
12242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12243 | (exit $ac_status); }; } && | |
2ba49b59 | 12244 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
12245 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12246 | (eval $ac_try) 2>&5 | |
12247 | ac_status=$? | |
12248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12249 | (exit $ac_status); }; }; then | |
2ba49b59 | 12250 | ac_hi=$ac_mid; break |
5464f5a1 NN |
12251 | else |
12252 | echo "$as_me: failed program was:" >&5 | |
12253 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12254 | ||
2ba49b59 KC |
12255 | ac_lo=`expr $ac_mid + 1` |
12256 | if test $ac_lo -le $ac_mid; then | |
12257 | ac_lo= ac_hi= | |
12258 | break | |
12259 | fi | |
12260 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
5464f5a1 | 12261 | fi |
2ba49b59 KC |
12262 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12263 | done | |
12264 | else | |
12265 | echo "$as_me: failed program was:" >&5 | |
12266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12267 | ||
12268 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
12269 | /* confdefs.h. */ |
12270 | _ACEOF | |
12271 | cat confdefs.h >>conftest.$ac_ext | |
12272 | cat >>conftest.$ac_ext <<_ACEOF | |
12273 | /* end confdefs.h. */ | |
2ba49b59 | 12274 | $ac_includes_default |
5464f5a1 NN |
12275 | int |
12276 | main () | |
12277 | { | |
2ba49b59 KC |
12278 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
12279 | test_array [0] = 0 | |
12280 | ||
5464f5a1 NN |
12281 | ; |
12282 | return 0; | |
12283 | } | |
12284 | _ACEOF | |
2ba49b59 KC |
12285 | rm -f conftest.$ac_objext |
12286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12287 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
12288 | ac_status=$? |
12289 | grep -v '^ *+' conftest.er1 >conftest.err | |
12290 | rm -f conftest.er1 | |
12291 | cat conftest.err >&5 | |
12292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12293 | (exit $ac_status); } && | |
49c96104 SE |
12294 | { ac_try='test -z "$ac_c_werror_flag" |
12295 | || test ! -s conftest.err' | |
5464f5a1 NN |
12296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12297 | (eval $ac_try) 2>&5 | |
12298 | ac_status=$? | |
12299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12300 | (exit $ac_status); }; } && | |
2ba49b59 | 12301 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
12302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12303 | (eval $ac_try) 2>&5 | |
12304 | ac_status=$? | |
12305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12306 | (exit $ac_status); }; }; then | |
2ba49b59 KC |
12307 | ac_hi=-1 ac_mid=-1 |
12308 | while :; do | |
12309 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
12310 | /* confdefs.h. */ |
12311 | _ACEOF | |
12312 | cat confdefs.h >>conftest.$ac_ext | |
12313 | cat >>conftest.$ac_ext <<_ACEOF | |
12314 | /* end confdefs.h. */ | |
2ba49b59 | 12315 | $ac_includes_default |
5464f5a1 NN |
12316 | int |
12317 | main () | |
12318 | { | |
2ba49b59 KC |
12319 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
12320 | test_array [0] = 0 | |
12321 | ||
5464f5a1 NN |
12322 | ; |
12323 | return 0; | |
12324 | } | |
12325 | _ACEOF | |
2ba49b59 KC |
12326 | rm -f conftest.$ac_objext |
12327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12328 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
12329 | ac_status=$? |
12330 | grep -v '^ *+' conftest.er1 >conftest.err | |
12331 | rm -f conftest.er1 | |
12332 | cat conftest.err >&5 | |
12333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12334 | (exit $ac_status); } && | |
49c96104 SE |
12335 | { ac_try='test -z "$ac_c_werror_flag" |
12336 | || test ! -s conftest.err' | |
5464f5a1 NN |
12337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12338 | (eval $ac_try) 2>&5 | |
12339 | ac_status=$? | |
12340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12341 | (exit $ac_status); }; } && | |
2ba49b59 | 12342 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
12343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12344 | (eval $ac_try) 2>&5 | |
12345 | ac_status=$? | |
12346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12347 | (exit $ac_status); }; }; then | |
2ba49b59 | 12348 | ac_lo=$ac_mid; break |
5464f5a1 NN |
12349 | else |
12350 | echo "$as_me: failed program was:" >&5 | |
12351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12352 | ||
2ba49b59 KC |
12353 | ac_hi=`expr '(' $ac_mid ')' - 1` |
12354 | if test $ac_mid -le $ac_hi; then | |
12355 | ac_lo= ac_hi= | |
12356 | break | |
12357 | fi | |
12358 | ac_mid=`expr 2 '*' $ac_mid` | |
5464f5a1 | 12359 | fi |
2ba49b59 KC |
12360 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12361 | done | |
12362 | else | |
12363 | echo "$as_me: failed program was:" >&5 | |
12364 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12365 | ||
12366 | ac_lo= ac_hi= | |
12367 | fi | |
12368 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12369 | fi | |
12370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12371 | # Binary search between lo and hi bounds. | |
12372 | while test "x$ac_lo" != "x$ac_hi"; do | |
12373 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
12374 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
12375 | /* confdefs.h. */ |
12376 | _ACEOF | |
12377 | cat confdefs.h >>conftest.$ac_ext | |
12378 | cat >>conftest.$ac_ext <<_ACEOF | |
12379 | /* end confdefs.h. */ | |
2ba49b59 | 12380 | $ac_includes_default |
5464f5a1 NN |
12381 | int |
12382 | main () | |
12383 | { | |
2ba49b59 KC |
12384 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
12385 | test_array [0] = 0 | |
12386 | ||
5464f5a1 NN |
12387 | ; |
12388 | return 0; | |
12389 | } | |
12390 | _ACEOF | |
2ba49b59 KC |
12391 | rm -f conftest.$ac_objext |
12392 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12393 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
12394 | ac_status=$? |
12395 | grep -v '^ *+' conftest.er1 >conftest.err | |
12396 | rm -f conftest.er1 | |
12397 | cat conftest.err >&5 | |
12398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12399 | (exit $ac_status); } && | |
49c96104 SE |
12400 | { ac_try='test -z "$ac_c_werror_flag" |
12401 | || test ! -s conftest.err' | |
5464f5a1 NN |
12402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12403 | (eval $ac_try) 2>&5 | |
12404 | ac_status=$? | |
12405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12406 | (exit $ac_status); }; } && | |
2ba49b59 | 12407 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
12408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12409 | (eval $ac_try) 2>&5 | |
12410 | ac_status=$? | |
12411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12412 | (exit $ac_status); }; }; then | |
2ba49b59 | 12413 | ac_hi=$ac_mid |
5464f5a1 NN |
12414 | else |
12415 | echo "$as_me: failed program was:" >&5 | |
12416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12417 | ||
2ba49b59 | 12418 | ac_lo=`expr '(' $ac_mid ')' + 1` |
5464f5a1 | 12419 | fi |
2ba49b59 KC |
12420 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12421 | done | |
12422 | case $ac_lo in | |
12423 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
12424 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
12425 | See \`config.log' for more details." >&5 | |
12426 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
12427 | See \`config.log' for more details." >&2;} | |
12428 | { (exit 1); exit 1; }; } ;; | |
12429 | esac | |
12430 | else | |
12431 | if test "$cross_compiling" = yes; then | |
49c96104 SE |
12432 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
12433 | See \`config.log' for more details." >&5 | |
12434 | echo "$as_me: error: cannot run test program while cross compiling | |
12435 | See \`config.log' for more details." >&2;} | |
2ba49b59 | 12436 | { (exit 1); exit 1; }; } |
2e0fbf77 JW |
12437 | else |
12438 | cat >conftest.$ac_ext <<_ACEOF | |
12439 | /* confdefs.h. */ | |
12440 | _ACEOF | |
12441 | cat confdefs.h >>conftest.$ac_ext | |
12442 | cat >>conftest.$ac_ext <<_ACEOF | |
12443 | /* end confdefs.h. */ | |
2ba49b59 KC |
12444 | $ac_includes_default |
12445 | long longval () { return (long) (sizeof (long)); } | |
12446 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
12447 | #include <stdio.h> | |
12448 | #include <stdlib.h> | |
2e0fbf77 JW |
12449 | int |
12450 | main () | |
12451 | { | |
12452 | ||
2ba49b59 KC |
12453 | FILE *f = fopen ("conftest.val", "w"); |
12454 | if (! f) | |
12455 | exit (1); | |
12456 | if (((long) (sizeof (long))) < 0) | |
12457 | { | |
12458 | long i = longval (); | |
12459 | if (i != ((long) (sizeof (long)))) | |
12460 | exit (1); | |
12461 | fprintf (f, "%ld\n", i); | |
12462 | } | |
12463 | else | |
12464 | { | |
12465 | unsigned long i = ulongval (); | |
12466 | if (i != ((long) (sizeof (long)))) | |
12467 | exit (1); | |
12468 | fprintf (f, "%lu\n", i); | |
12469 | } | |
12470 | exit (ferror (f) || fclose (f) != 0); | |
12471 | ||
2e0fbf77 JW |
12472 | ; |
12473 | return 0; | |
12474 | } | |
12475 | _ACEOF | |
2ba49b59 KC |
12476 | rm -f conftest$ac_exeext |
12477 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12478 | (eval $ac_link) 2>&5 | |
2e0fbf77 JW |
12479 | ac_status=$? |
12480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2ba49b59 | 12481 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
2e0fbf77 JW |
12482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12483 | (eval $ac_try) 2>&5 | |
12484 | ac_status=$? | |
12485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12486 | (exit $ac_status); }; }; then | |
2ba49b59 | 12487 | ac_cv_sizeof_long=`cat conftest.val` |
2e0fbf77 | 12488 | else |
2ba49b59 KC |
12489 | echo "$as_me: program exited with status $ac_status" >&5 |
12490 | echo "$as_me: failed program was:" >&5 | |
2e0fbf77 JW |
12491 | sed 's/^/| /' conftest.$ac_ext >&5 |
12492 | ||
2ba49b59 KC |
12493 | ( exit $ac_status ) |
12494 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
12495 | See \`config.log' for more details." >&5 | |
12496 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
12497 | See \`config.log' for more details." >&2;} | |
12498 | { (exit 1); exit 1; }; } | |
2e0fbf77 | 12499 | fi |
2ba49b59 | 12500 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
2e0fbf77 | 12501 | fi |
2ba49b59 KC |
12502 | fi |
12503 | rm -f conftest.val | |
12504 | else | |
12505 | ac_cv_sizeof_long=0 | |
12506 | fi | |
12507 | fi | |
12508 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
12509 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
12510 | cat >>confdefs.h <<_ACEOF | |
12511 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
12512 | _ACEOF | |
12513 | ||
12514 | ||
d2df793a NC |
12515 | |
12516 | if test "x${ac_cv_sizeof_void_p}" = "x8"; then | |
2ba49b59 | 12517 | host64=true |
bce5e5c9 AM |
12518 | fi |
12519 | ||
12520 | if test "x${ac_cv_sizeof_long}" = "x8"; then | |
2ba49b59 KC |
12521 | BFD_HOST_64BIT_LONG=1 |
12522 | test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long" | |
12523 | test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long" | |
12524 | elif test "x${ac_cv_sizeof_long_long}" = "x8"; then | |
bce5e5c9 | 12525 | BFD_HOST_64BIT_LONG_LONG=1 |
2ba49b59 KC |
12526 | test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long" |
12527 | test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long" | |
bce5e5c9 AM |
12528 | if test "x${ac_cv_sizeof_void_p}" = "x8"; then |
12529 | BFD_HOSTPTR_T="unsigned long long" | |
12530 | fi | |
2ba49b59 KC |
12531 | fi |
12532 | ||
12533 | if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then | |
12534 | BFD_HOST_64_BIT_DEFINED=1 | |
12535 | BFD_HOST_64_BIT="${HOST_64BIT_TYPE}" | |
12536 | BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}" | |
12537 | fi | |
12538 | ||
12539 | ||
12540 | ||
12541 | ||
12542 | ||
12543 | ||
12544 | ||
d2df793a | 12545 | |
2ba49b59 KC |
12546 | # Put a plausible default for CC_FOR_BUILD in Makefile. |
12547 | if test -z "$CC_FOR_BUILD"; then | |
12548 | if test "x$cross_compiling" = "xno"; then | |
12549 | CC_FOR_BUILD='$(CC)' | |
12550 | else | |
12551 | CC_FOR_BUILD=gcc | |
12552 | fi | |
12553 | fi | |
12554 | ||
12555 | # Also set EXEEXT_FOR_BUILD. | |
12556 | if test "x$cross_compiling" = "xno"; then | |
12557 | EXEEXT_FOR_BUILD='$(EXEEXT)' | |
12558 | else | |
12559 | echo "$as_me:$LINENO: checking for build system executable suffix" >&5 | |
12560 | echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6 | |
12561 | if test "${bfd_cv_build_exeext+set}" = set; then | |
12562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12563 | else | |
12564 | rm -f conftest* | |
12565 | echo 'int main () { return 0; }' > conftest.c | |
12566 | bfd_cv_build_exeext= | |
12567 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 | |
12568 | for file in conftest.*; do | |
12569 | case $file in | |
12570 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
12571 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; | |
12572 | esac | |
12573 | done | |
12574 | rm -f conftest* | |
12575 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no | |
12576 | fi | |
12577 | echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5 | |
12578 | echo "${ECHO_T}$bfd_cv_build_exeext" >&6 | |
12579 | EXEEXT_FOR_BUILD="" | |
12580 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} | |
12581 | fi | |
12582 | ||
12583 | ||
12584 | ||
12585 | ||
12586 | ||
12587 | ||
12588 | ||
12589 | ||
8bc9c892 NC |
12590 | |
12591 | for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h | |
2ba49b59 KC |
12592 | do |
12593 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12594 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12595 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12596 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12597 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12598 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12599 | fi | |
12600 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12601 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12602 | else | |
12603 | # Is the header compilable? | |
12604 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12605 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12606 | cat >conftest.$ac_ext <<_ACEOF | |
12607 | /* confdefs.h. */ | |
12608 | _ACEOF | |
12609 | cat confdefs.h >>conftest.$ac_ext | |
12610 | cat >>conftest.$ac_ext <<_ACEOF | |
12611 | /* end confdefs.h. */ | |
12612 | $ac_includes_default | |
12613 | #include <$ac_header> | |
12614 | _ACEOF | |
12615 | rm -f conftest.$ac_objext | |
12616 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12617 | (eval $ac_compile) 2>conftest.er1 | |
12618 | ac_status=$? | |
12619 | grep -v '^ *+' conftest.er1 >conftest.err | |
12620 | rm -f conftest.er1 | |
12621 | cat conftest.err >&5 | |
12622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12623 | (exit $ac_status); } && | |
49c96104 SE |
12624 | { ac_try='test -z "$ac_c_werror_flag" |
12625 | || test ! -s conftest.err' | |
2ba49b59 KC |
12626 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12627 | (eval $ac_try) 2>&5 | |
12628 | ac_status=$? | |
12629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12630 | (exit $ac_status); }; } && | |
12631 | { ac_try='test -s conftest.$ac_objext' | |
12632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12633 | (eval $ac_try) 2>&5 | |
12634 | ac_status=$? | |
12635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12636 | (exit $ac_status); }; }; then | |
12637 | ac_header_compiler=yes | |
12638 | else | |
12639 | echo "$as_me: failed program was:" >&5 | |
12640 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12641 | ||
12642 | ac_header_compiler=no | |
12643 | fi | |
12644 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12645 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12646 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12647 | ||
12648 | # Is the header present? | |
12649 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12650 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12651 | cat >conftest.$ac_ext <<_ACEOF | |
12652 | /* confdefs.h. */ | |
12653 | _ACEOF | |
12654 | cat confdefs.h >>conftest.$ac_ext | |
12655 | cat >>conftest.$ac_ext <<_ACEOF | |
12656 | /* end confdefs.h. */ | |
12657 | #include <$ac_header> | |
12658 | _ACEOF | |
12659 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12660 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12661 | ac_status=$? | |
12662 | grep -v '^ *+' conftest.er1 >conftest.err | |
12663 | rm -f conftest.er1 | |
12664 | cat conftest.err >&5 | |
12665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12666 | (exit $ac_status); } >/dev/null; then | |
12667 | if test -s conftest.err; then | |
12668 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12669 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12670 | else | |
12671 | ac_cpp_err= | |
12672 | fi | |
12673 | else | |
12674 | ac_cpp_err=yes | |
12675 | fi | |
12676 | if test -z "$ac_cpp_err"; then | |
12677 | ac_header_preproc=yes | |
12678 | else | |
12679 | echo "$as_me: failed program was:" >&5 | |
12680 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12681 | ||
12682 | ac_header_preproc=no | |
12683 | fi | |
12684 | rm -f conftest.err conftest.$ac_ext | |
12685 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12686 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12687 | ||
12688 | # So? What about this header? | |
12689 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12690 | yes:no: ) | |
12691 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12692 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12693 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12694 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12695 | ac_header_preproc=yes | |
12696 | ;; | |
12697 | no:yes:* ) | |
12698 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12699 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12700 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12701 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12702 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12703 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12704 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12705 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12706 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12707 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12708 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12709 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12710 | ( | |
12711 | cat <<\_ASBOX | |
12712 | ## ------------------------------------------ ## | |
12713 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12714 | ## ------------------------------------------ ## | |
12715 | _ASBOX | |
12716 | ) | | |
12717 | sed "s/^/$as_me: WARNING: /" >&2 | |
12718 | ;; | |
12719 | esac | |
12720 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12721 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12722 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12723 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12724 | else | |
12725 | eval "$as_ac_Header=\$ac_header_preproc" | |
12726 | fi | |
12727 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12728 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12729 | ||
12730 | fi | |
12731 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12732 | cat >>confdefs.h <<_ACEOF | |
12733 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12734 | _ACEOF | |
12735 | ||
12736 | fi | |
12737 | ||
12738 | done | |
12739 | ||
12740 | ||
12741 | ||
12742 | ||
12743 | for ac_header in fcntl.h sys/file.h sys/time.h | |
12744 | do | |
12745 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
12746 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12747 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12748 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12749 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12750 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12751 | fi | |
12752 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12753 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12754 | else | |
12755 | # Is the header compilable? | |
12756 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
12757 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
12758 | cat >conftest.$ac_ext <<_ACEOF | |
12759 | /* confdefs.h. */ | |
12760 | _ACEOF | |
12761 | cat confdefs.h >>conftest.$ac_ext | |
12762 | cat >>conftest.$ac_ext <<_ACEOF | |
12763 | /* end confdefs.h. */ | |
12764 | $ac_includes_default | |
12765 | #include <$ac_header> | |
12766 | _ACEOF | |
12767 | rm -f conftest.$ac_objext | |
12768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12769 | (eval $ac_compile) 2>conftest.er1 | |
12770 | ac_status=$? | |
12771 | grep -v '^ *+' conftest.er1 >conftest.err | |
12772 | rm -f conftest.er1 | |
12773 | cat conftest.err >&5 | |
12774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12775 | (exit $ac_status); } && | |
49c96104 SE |
12776 | { ac_try='test -z "$ac_c_werror_flag" |
12777 | || test ! -s conftest.err' | |
2ba49b59 KC |
12778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12779 | (eval $ac_try) 2>&5 | |
12780 | ac_status=$? | |
12781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12782 | (exit $ac_status); }; } && | |
12783 | { ac_try='test -s conftest.$ac_objext' | |
12784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12785 | (eval $ac_try) 2>&5 | |
12786 | ac_status=$? | |
12787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12788 | (exit $ac_status); }; }; then | |
12789 | ac_header_compiler=yes | |
12790 | else | |
12791 | echo "$as_me: failed program was:" >&5 | |
12792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12793 | ||
12794 | ac_header_compiler=no | |
12795 | fi | |
12796 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12797 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
12798 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
12799 | ||
12800 | # Is the header present? | |
12801 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
12802 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
12803 | cat >conftest.$ac_ext <<_ACEOF | |
12804 | /* confdefs.h. */ | |
12805 | _ACEOF | |
12806 | cat confdefs.h >>conftest.$ac_ext | |
12807 | cat >>conftest.$ac_ext <<_ACEOF | |
12808 | /* end confdefs.h. */ | |
12809 | #include <$ac_header> | |
12810 | _ACEOF | |
12811 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
12812 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
12813 | ac_status=$? | |
12814 | grep -v '^ *+' conftest.er1 >conftest.err | |
12815 | rm -f conftest.er1 | |
12816 | cat conftest.err >&5 | |
12817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12818 | (exit $ac_status); } >/dev/null; then | |
12819 | if test -s conftest.err; then | |
12820 | ac_cpp_err=$ac_c_preproc_warn_flag | |
12821 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
12822 | else | |
12823 | ac_cpp_err= | |
12824 | fi | |
12825 | else | |
12826 | ac_cpp_err=yes | |
12827 | fi | |
12828 | if test -z "$ac_cpp_err"; then | |
12829 | ac_header_preproc=yes | |
12830 | else | |
12831 | echo "$as_me: failed program was:" >&5 | |
12832 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12833 | ||
12834 | ac_header_preproc=no | |
12835 | fi | |
12836 | rm -f conftest.err conftest.$ac_ext | |
12837 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
12838 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
12839 | ||
12840 | # So? What about this header? | |
12841 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
12842 | yes:no: ) | |
12843 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
12844 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
12845 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
12846 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
12847 | ac_header_preproc=yes | |
12848 | ;; | |
12849 | no:yes:* ) | |
12850 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
12851 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
12852 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
12853 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
12854 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
12855 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
12856 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
12857 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
12858 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
12859 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
12860 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
12861 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
12862 | ( | |
12863 | cat <<\_ASBOX | |
12864 | ## ------------------------------------------ ## | |
12865 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
12866 | ## ------------------------------------------ ## | |
12867 | _ASBOX | |
12868 | ) | | |
12869 | sed "s/^/$as_me: WARNING: /" >&2 | |
12870 | ;; | |
12871 | esac | |
12872 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
12873 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
12874 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
12875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12876 | else | |
12877 | eval "$as_ac_Header=\$ac_header_preproc" | |
12878 | fi | |
12879 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
12880 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
12881 | ||
12882 | fi | |
12883 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
12884 | cat >>confdefs.h <<_ACEOF | |
12885 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
12886 | _ACEOF | |
12887 | ||
12888 | fi | |
12889 | ||
12890 | done | |
12891 | ||
d5efd9fc AM |
12892 | |
12893 | ||
12894 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` | |
12895 | ||
12896 | acx_cv_header_stdint=stddef.h | |
12897 | acx_cv_header_stdint_kind="(already complete)" | |
12898 | for i in stdint.h $inttype_headers; do | |
12899 | unset ac_cv_type_uintptr_t | |
12900 | unset ac_cv_type_uintmax_t | |
12901 | unset ac_cv_type_int_least32_t | |
12902 | unset ac_cv_type_int_fast32_t | |
12903 | unset ac_cv_type_uint64_t | |
12904 | echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6 | |
12905 | echo "$as_me:$LINENO: checking for uintmax_t" >&5 | |
12906 | echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6 | |
12907 | if test "${ac_cv_type_uintmax_t+set}" = set; then | |
12908 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12909 | else | |
12910 | cat >conftest.$ac_ext <<_ACEOF | |
12911 | /* confdefs.h. */ | |
12912 | _ACEOF | |
12913 | cat confdefs.h >>conftest.$ac_ext | |
12914 | cat >>conftest.$ac_ext <<_ACEOF | |
12915 | /* end confdefs.h. */ | |
12916 | #include <sys/types.h> | |
12917 | #include <$i> | |
12918 | ||
12919 | int | |
12920 | main () | |
12921 | { | |
12922 | if ((uintmax_t *) 0) | |
12923 | return 0; | |
12924 | if (sizeof (uintmax_t)) | |
12925 | return 0; | |
12926 | ; | |
12927 | return 0; | |
12928 | } | |
12929 | _ACEOF | |
12930 | rm -f conftest.$ac_objext | |
12931 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12932 | (eval $ac_compile) 2>conftest.er1 | |
12933 | ac_status=$? | |
12934 | grep -v '^ *+' conftest.er1 >conftest.err | |
12935 | rm -f conftest.er1 | |
12936 | cat conftest.err >&5 | |
12937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12938 | (exit $ac_status); } && | |
12939 | { ac_try='test -z "$ac_c_werror_flag" | |
12940 | || test ! -s conftest.err' | |
12941 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12942 | (eval $ac_try) 2>&5 | |
12943 | ac_status=$? | |
12944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12945 | (exit $ac_status); }; } && | |
12946 | { ac_try='test -s conftest.$ac_objext' | |
12947 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12948 | (eval $ac_try) 2>&5 | |
12949 | ac_status=$? | |
12950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12951 | (exit $ac_status); }; }; then | |
12952 | ac_cv_type_uintmax_t=yes | |
12953 | else | |
12954 | echo "$as_me: failed program was:" >&5 | |
12955 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12956 | ||
12957 | ac_cv_type_uintmax_t=no | |
12958 | fi | |
12959 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12960 | fi | |
12961 | echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 | |
12962 | echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6 | |
12963 | if test $ac_cv_type_uintmax_t = yes; then | |
12964 | acx_cv_header_stdint=$i | |
12965 | else | |
12966 | continue | |
12967 | fi | |
12968 | ||
12969 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 | |
12970 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
12971 | if test "${ac_cv_type_uintptr_t+set}" = set; then | |
12972 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12973 | else | |
12974 | cat >conftest.$ac_ext <<_ACEOF | |
12975 | /* confdefs.h. */ | |
12976 | _ACEOF | |
12977 | cat confdefs.h >>conftest.$ac_ext | |
12978 | cat >>conftest.$ac_ext <<_ACEOF | |
12979 | /* end confdefs.h. */ | |
12980 | #include <sys/types.h> | |
12981 | #include <$i> | |
12982 | ||
12983 | int | |
12984 | main () | |
12985 | { | |
12986 | if ((uintptr_t *) 0) | |
12987 | return 0; | |
12988 | if (sizeof (uintptr_t)) | |
12989 | return 0; | |
12990 | ; | |
12991 | return 0; | |
12992 | } | |
12993 | _ACEOF | |
12994 | rm -f conftest.$ac_objext | |
12995 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12996 | (eval $ac_compile) 2>conftest.er1 | |
12997 | ac_status=$? | |
12998 | grep -v '^ *+' conftest.er1 >conftest.err | |
12999 | rm -f conftest.er1 | |
13000 | cat conftest.err >&5 | |
13001 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13002 | (exit $ac_status); } && | |
13003 | { ac_try='test -z "$ac_c_werror_flag" | |
13004 | || test ! -s conftest.err' | |
13005 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13006 | (eval $ac_try) 2>&5 | |
13007 | ac_status=$? | |
13008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13009 | (exit $ac_status); }; } && | |
13010 | { ac_try='test -s conftest.$ac_objext' | |
13011 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13012 | (eval $ac_try) 2>&5 | |
13013 | ac_status=$? | |
13014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13015 | (exit $ac_status); }; }; then | |
13016 | ac_cv_type_uintptr_t=yes | |
13017 | else | |
13018 | echo "$as_me: failed program was:" >&5 | |
13019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13020 | ||
13021 | ac_cv_type_uintptr_t=no | |
13022 | fi | |
13023 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13024 | fi | |
13025 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 | |
13026 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
13027 | if test $ac_cv_type_uintptr_t = yes; then | |
13028 | : | |
13029 | else | |
13030 | acx_cv_header_stdint_kind="(mostly complete)" | |
13031 | fi | |
13032 | ||
13033 | echo "$as_me:$LINENO: checking for int_least32_t" >&5 | |
13034 | echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6 | |
13035 | if test "${ac_cv_type_int_least32_t+set}" = set; then | |
13036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13037 | else | |
13038 | cat >conftest.$ac_ext <<_ACEOF | |
13039 | /* confdefs.h. */ | |
13040 | _ACEOF | |
13041 | cat confdefs.h >>conftest.$ac_ext | |
13042 | cat >>conftest.$ac_ext <<_ACEOF | |
13043 | /* end confdefs.h. */ | |
13044 | #include <sys/types.h> | |
13045 | #include <$i> | |
13046 | ||
13047 | int | |
13048 | main () | |
13049 | { | |
13050 | if ((int_least32_t *) 0) | |
13051 | return 0; | |
13052 | if (sizeof (int_least32_t)) | |
13053 | return 0; | |
13054 | ; | |
13055 | return 0; | |
13056 | } | |
13057 | _ACEOF | |
13058 | rm -f conftest.$ac_objext | |
13059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13060 | (eval $ac_compile) 2>conftest.er1 | |
13061 | ac_status=$? | |
13062 | grep -v '^ *+' conftest.er1 >conftest.err | |
13063 | rm -f conftest.er1 | |
13064 | cat conftest.err >&5 | |
13065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13066 | (exit $ac_status); } && | |
13067 | { ac_try='test -z "$ac_c_werror_flag" | |
13068 | || test ! -s conftest.err' | |
13069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13070 | (eval $ac_try) 2>&5 | |
13071 | ac_status=$? | |
13072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13073 | (exit $ac_status); }; } && | |
13074 | { ac_try='test -s conftest.$ac_objext' | |
13075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13076 | (eval $ac_try) 2>&5 | |
13077 | ac_status=$? | |
13078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13079 | (exit $ac_status); }; }; then | |
13080 | ac_cv_type_int_least32_t=yes | |
13081 | else | |
13082 | echo "$as_me: failed program was:" >&5 | |
13083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13084 | ||
13085 | ac_cv_type_int_least32_t=no | |
13086 | fi | |
13087 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13088 | fi | |
13089 | echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5 | |
13090 | echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6 | |
13091 | if test $ac_cv_type_int_least32_t = yes; then | |
13092 | : | |
13093 | else | |
13094 | acx_cv_header_stdint_kind="(mostly complete)" | |
13095 | fi | |
13096 | ||
13097 | echo "$as_me:$LINENO: checking for int_fast32_t" >&5 | |
13098 | echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6 | |
13099 | if test "${ac_cv_type_int_fast32_t+set}" = set; then | |
13100 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13101 | else | |
13102 | cat >conftest.$ac_ext <<_ACEOF | |
13103 | /* confdefs.h. */ | |
13104 | _ACEOF | |
13105 | cat confdefs.h >>conftest.$ac_ext | |
13106 | cat >>conftest.$ac_ext <<_ACEOF | |
13107 | /* end confdefs.h. */ | |
13108 | #include <sys/types.h> | |
13109 | #include <$i> | |
13110 | ||
13111 | int | |
13112 | main () | |
13113 | { | |
13114 | if ((int_fast32_t *) 0) | |
13115 | return 0; | |
13116 | if (sizeof (int_fast32_t)) | |
13117 | return 0; | |
13118 | ; | |
13119 | return 0; | |
13120 | } | |
13121 | _ACEOF | |
13122 | rm -f conftest.$ac_objext | |
13123 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13124 | (eval $ac_compile) 2>conftest.er1 | |
13125 | ac_status=$? | |
13126 | grep -v '^ *+' conftest.er1 >conftest.err | |
13127 | rm -f conftest.er1 | |
13128 | cat conftest.err >&5 | |
13129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13130 | (exit $ac_status); } && | |
13131 | { ac_try='test -z "$ac_c_werror_flag" | |
13132 | || test ! -s conftest.err' | |
13133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13134 | (eval $ac_try) 2>&5 | |
13135 | ac_status=$? | |
13136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13137 | (exit $ac_status); }; } && | |
13138 | { ac_try='test -s conftest.$ac_objext' | |
13139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13140 | (eval $ac_try) 2>&5 | |
13141 | ac_status=$? | |
13142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13143 | (exit $ac_status); }; }; then | |
13144 | ac_cv_type_int_fast32_t=yes | |
13145 | else | |
13146 | echo "$as_me: failed program was:" >&5 | |
13147 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13148 | ||
13149 | ac_cv_type_int_fast32_t=no | |
13150 | fi | |
13151 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13152 | fi | |
13153 | echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5 | |
13154 | echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6 | |
13155 | if test $ac_cv_type_int_fast32_t = yes; then | |
13156 | : | |
13157 | else | |
13158 | acx_cv_header_stdint_kind="(mostly complete)" | |
13159 | fi | |
13160 | ||
13161 | echo "$as_me:$LINENO: checking for uint64_t" >&5 | |
13162 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
13163 | if test "${ac_cv_type_uint64_t+set}" = set; then | |
13164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13165 | else | |
13166 | cat >conftest.$ac_ext <<_ACEOF | |
13167 | /* confdefs.h. */ | |
13168 | _ACEOF | |
13169 | cat confdefs.h >>conftest.$ac_ext | |
13170 | cat >>conftest.$ac_ext <<_ACEOF | |
13171 | /* end confdefs.h. */ | |
13172 | #include <sys/types.h> | |
13173 | #include <$i> | |
13174 | ||
13175 | int | |
13176 | main () | |
13177 | { | |
13178 | if ((uint64_t *) 0) | |
13179 | return 0; | |
13180 | if (sizeof (uint64_t)) | |
13181 | return 0; | |
13182 | ; | |
13183 | return 0; | |
13184 | } | |
13185 | _ACEOF | |
13186 | rm -f conftest.$ac_objext | |
13187 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13188 | (eval $ac_compile) 2>conftest.er1 | |
13189 | ac_status=$? | |
13190 | grep -v '^ *+' conftest.er1 >conftest.err | |
13191 | rm -f conftest.er1 | |
13192 | cat conftest.err >&5 | |
13193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13194 | (exit $ac_status); } && | |
13195 | { ac_try='test -z "$ac_c_werror_flag" | |
13196 | || test ! -s conftest.err' | |
13197 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13198 | (eval $ac_try) 2>&5 | |
13199 | ac_status=$? | |
13200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13201 | (exit $ac_status); }; } && | |
13202 | { ac_try='test -s conftest.$ac_objext' | |
13203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13204 | (eval $ac_try) 2>&5 | |
13205 | ac_status=$? | |
13206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13207 | (exit $ac_status); }; }; then | |
13208 | ac_cv_type_uint64_t=yes | |
13209 | else | |
13210 | echo "$as_me: failed program was:" >&5 | |
13211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13212 | ||
13213 | ac_cv_type_uint64_t=no | |
13214 | fi | |
13215 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13216 | fi | |
13217 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | |
13218 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
13219 | if test $ac_cv_type_uint64_t = yes; then | |
13220 | : | |
13221 | else | |
13222 | acx_cv_header_stdint_kind="(lacks uint64_t)" | |
13223 | fi | |
13224 | ||
13225 | break | |
13226 | done | |
13227 | if test "$acx_cv_header_stdint" = stddef.h; then | |
13228 | acx_cv_header_stdint_kind="(lacks uintmax_t)" | |
13229 | for i in stdint.h $inttype_headers; do | |
13230 | unset ac_cv_type_uintptr_t | |
13231 | unset ac_cv_type_uint32_t | |
13232 | unset ac_cv_type_uint64_t | |
13233 | echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6 | |
13234 | echo "$as_me:$LINENO: checking for uint32_t" >&5 | |
13235 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 | |
13236 | if test "${ac_cv_type_uint32_t+set}" = set; then | |
13237 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13238 | else | |
13239 | cat >conftest.$ac_ext <<_ACEOF | |
13240 | /* confdefs.h. */ | |
13241 | _ACEOF | |
13242 | cat confdefs.h >>conftest.$ac_ext | |
13243 | cat >>conftest.$ac_ext <<_ACEOF | |
13244 | /* end confdefs.h. */ | |
13245 | #include <sys/types.h> | |
13246 | #include <$i> | |
13247 | ||
13248 | int | |
13249 | main () | |
13250 | { | |
13251 | if ((uint32_t *) 0) | |
13252 | return 0; | |
13253 | if (sizeof (uint32_t)) | |
13254 | return 0; | |
13255 | ; | |
13256 | return 0; | |
13257 | } | |
13258 | _ACEOF | |
13259 | rm -f conftest.$ac_objext | |
13260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13261 | (eval $ac_compile) 2>conftest.er1 | |
13262 | ac_status=$? | |
13263 | grep -v '^ *+' conftest.er1 >conftest.err | |
13264 | rm -f conftest.er1 | |
13265 | cat conftest.err >&5 | |
13266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13267 | (exit $ac_status); } && | |
13268 | { ac_try='test -z "$ac_c_werror_flag" | |
13269 | || test ! -s conftest.err' | |
13270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13271 | (eval $ac_try) 2>&5 | |
13272 | ac_status=$? | |
13273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13274 | (exit $ac_status); }; } && | |
13275 | { ac_try='test -s conftest.$ac_objext' | |
13276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13277 | (eval $ac_try) 2>&5 | |
13278 | ac_status=$? | |
13279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13280 | (exit $ac_status); }; }; then | |
13281 | ac_cv_type_uint32_t=yes | |
13282 | else | |
13283 | echo "$as_me: failed program was:" >&5 | |
13284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13285 | ||
13286 | ac_cv_type_uint32_t=no | |
13287 | fi | |
13288 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13289 | fi | |
13290 | echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 | |
13291 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 | |
13292 | if test $ac_cv_type_uint32_t = yes; then | |
13293 | acx_cv_header_stdint=$i | |
13294 | else | |
13295 | continue | |
13296 | fi | |
13297 | ||
13298 | echo "$as_me:$LINENO: checking for uint64_t" >&5 | |
13299 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
13300 | if test "${ac_cv_type_uint64_t+set}" = set; then | |
13301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13302 | else | |
13303 | cat >conftest.$ac_ext <<_ACEOF | |
13304 | /* confdefs.h. */ | |
13305 | _ACEOF | |
13306 | cat confdefs.h >>conftest.$ac_ext | |
13307 | cat >>conftest.$ac_ext <<_ACEOF | |
13308 | /* end confdefs.h. */ | |
13309 | #include <sys/types.h> | |
13310 | #include <$i> | |
13311 | ||
13312 | int | |
13313 | main () | |
13314 | { | |
13315 | if ((uint64_t *) 0) | |
13316 | return 0; | |
13317 | if (sizeof (uint64_t)) | |
13318 | return 0; | |
13319 | ; | |
13320 | return 0; | |
13321 | } | |
13322 | _ACEOF | |
13323 | rm -f conftest.$ac_objext | |
13324 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13325 | (eval $ac_compile) 2>conftest.er1 | |
13326 | ac_status=$? | |
13327 | grep -v '^ *+' conftest.er1 >conftest.err | |
13328 | rm -f conftest.er1 | |
13329 | cat conftest.err >&5 | |
13330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13331 | (exit $ac_status); } && | |
13332 | { ac_try='test -z "$ac_c_werror_flag" | |
13333 | || test ! -s conftest.err' | |
13334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13335 | (eval $ac_try) 2>&5 | |
13336 | ac_status=$? | |
13337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13338 | (exit $ac_status); }; } && | |
13339 | { ac_try='test -s conftest.$ac_objext' | |
13340 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13341 | (eval $ac_try) 2>&5 | |
13342 | ac_status=$? | |
13343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13344 | (exit $ac_status); }; }; then | |
13345 | ac_cv_type_uint64_t=yes | |
13346 | else | |
13347 | echo "$as_me: failed program was:" >&5 | |
13348 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13349 | ||
13350 | ac_cv_type_uint64_t=no | |
13351 | fi | |
13352 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13353 | fi | |
13354 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | |
13355 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
13356 | ||
13357 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 | |
13358 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
13359 | if test "${ac_cv_type_uintptr_t+set}" = set; then | |
13360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13361 | else | |
13362 | cat >conftest.$ac_ext <<_ACEOF | |
13363 | /* confdefs.h. */ | |
13364 | _ACEOF | |
13365 | cat confdefs.h >>conftest.$ac_ext | |
13366 | cat >>conftest.$ac_ext <<_ACEOF | |
13367 | /* end confdefs.h. */ | |
13368 | #include <sys/types.h> | |
13369 | #include <$i> | |
13370 | ||
13371 | int | |
13372 | main () | |
13373 | { | |
13374 | if ((uintptr_t *) 0) | |
13375 | return 0; | |
13376 | if (sizeof (uintptr_t)) | |
13377 | return 0; | |
13378 | ; | |
13379 | return 0; | |
13380 | } | |
13381 | _ACEOF | |
13382 | rm -f conftest.$ac_objext | |
13383 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13384 | (eval $ac_compile) 2>conftest.er1 | |
13385 | ac_status=$? | |
13386 | grep -v '^ *+' conftest.er1 >conftest.err | |
13387 | rm -f conftest.er1 | |
13388 | cat conftest.err >&5 | |
13389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13390 | (exit $ac_status); } && | |
13391 | { ac_try='test -z "$ac_c_werror_flag" | |
13392 | || test ! -s conftest.err' | |
13393 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13394 | (eval $ac_try) 2>&5 | |
13395 | ac_status=$? | |
13396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13397 | (exit $ac_status); }; } && | |
13398 | { ac_try='test -s conftest.$ac_objext' | |
13399 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13400 | (eval $ac_try) 2>&5 | |
13401 | ac_status=$? | |
13402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13403 | (exit $ac_status); }; }; then | |
13404 | ac_cv_type_uintptr_t=yes | |
13405 | else | |
13406 | echo "$as_me: failed program was:" >&5 | |
13407 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13408 | ||
13409 | ac_cv_type_uintptr_t=no | |
13410 | fi | |
13411 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13412 | fi | |
13413 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 | |
13414 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
13415 | ||
13416 | break | |
13417 | done | |
13418 | fi | |
13419 | if test "$acx_cv_header_stdint" = stddef.h; then | |
13420 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
13421 | for i in sys/types.h $inttype_headers; do | |
13422 | unset ac_cv_type_u_int32_t | |
13423 | unset ac_cv_type_u_int64_t | |
13424 | echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6 | |
13425 | echo "$as_me:$LINENO: checking for u_int32_t" >&5 | |
13426 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 | |
13427 | if test "${ac_cv_type_u_int32_t+set}" = set; then | |
13428 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13429 | else | |
13430 | cat >conftest.$ac_ext <<_ACEOF | |
13431 | /* confdefs.h. */ | |
13432 | _ACEOF | |
13433 | cat confdefs.h >>conftest.$ac_ext | |
13434 | cat >>conftest.$ac_ext <<_ACEOF | |
13435 | /* end confdefs.h. */ | |
13436 | #include <sys/types.h> | |
13437 | #include <$i> | |
13438 | ||
13439 | int | |
13440 | main () | |
13441 | { | |
13442 | if ((u_int32_t *) 0) | |
13443 | return 0; | |
13444 | if (sizeof (u_int32_t)) | |
13445 | return 0; | |
13446 | ; | |
13447 | return 0; | |
13448 | } | |
13449 | _ACEOF | |
13450 | rm -f conftest.$ac_objext | |
13451 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13452 | (eval $ac_compile) 2>conftest.er1 | |
13453 | ac_status=$? | |
13454 | grep -v '^ *+' conftest.er1 >conftest.err | |
13455 | rm -f conftest.er1 | |
13456 | cat conftest.err >&5 | |
13457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13458 | (exit $ac_status); } && | |
13459 | { ac_try='test -z "$ac_c_werror_flag" | |
13460 | || test ! -s conftest.err' | |
13461 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13462 | (eval $ac_try) 2>&5 | |
13463 | ac_status=$? | |
13464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13465 | (exit $ac_status); }; } && | |
13466 | { ac_try='test -s conftest.$ac_objext' | |
13467 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13468 | (eval $ac_try) 2>&5 | |
13469 | ac_status=$? | |
13470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13471 | (exit $ac_status); }; }; then | |
13472 | ac_cv_type_u_int32_t=yes | |
13473 | else | |
13474 | echo "$as_me: failed program was:" >&5 | |
13475 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13476 | ||
13477 | ac_cv_type_u_int32_t=no | |
13478 | fi | |
13479 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13480 | fi | |
13481 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 | |
13482 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 | |
13483 | if test $ac_cv_type_u_int32_t = yes; then | |
13484 | acx_cv_header_stdint=$i | |
13485 | else | |
13486 | continue | |
13487 | fi | |
13488 | ||
13489 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 | |
13490 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 | |
13491 | if test "${ac_cv_type_u_int64_t+set}" = set; then | |
13492 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13493 | else | |
13494 | cat >conftest.$ac_ext <<_ACEOF | |
13495 | /* confdefs.h. */ | |
13496 | _ACEOF | |
13497 | cat confdefs.h >>conftest.$ac_ext | |
13498 | cat >>conftest.$ac_ext <<_ACEOF | |
13499 | /* end confdefs.h. */ | |
13500 | #include <sys/types.h> | |
13501 | #include <$i> | |
13502 | ||
13503 | int | |
13504 | main () | |
13505 | { | |
13506 | if ((u_int64_t *) 0) | |
13507 | return 0; | |
13508 | if (sizeof (u_int64_t)) | |
13509 | return 0; | |
13510 | ; | |
13511 | return 0; | |
13512 | } | |
13513 | _ACEOF | |
13514 | rm -f conftest.$ac_objext | |
13515 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13516 | (eval $ac_compile) 2>conftest.er1 | |
13517 | ac_status=$? | |
13518 | grep -v '^ *+' conftest.er1 >conftest.err | |
13519 | rm -f conftest.er1 | |
13520 | cat conftest.err >&5 | |
13521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13522 | (exit $ac_status); } && | |
13523 | { ac_try='test -z "$ac_c_werror_flag" | |
13524 | || test ! -s conftest.err' | |
13525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13526 | (eval $ac_try) 2>&5 | |
13527 | ac_status=$? | |
13528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13529 | (exit $ac_status); }; } && | |
13530 | { ac_try='test -s conftest.$ac_objext' | |
13531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13532 | (eval $ac_try) 2>&5 | |
13533 | ac_status=$? | |
13534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13535 | (exit $ac_status); }; }; then | |
13536 | ac_cv_type_u_int64_t=yes | |
13537 | else | |
13538 | echo "$as_me: failed program was:" >&5 | |
13539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13540 | ||
13541 | ac_cv_type_u_int64_t=no | |
13542 | fi | |
13543 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13544 | fi | |
13545 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 | |
13546 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 | |
13547 | ||
13548 | break | |
13549 | done | |
13550 | fi | |
13551 | if test "$acx_cv_header_stdint" = stddef.h; then | |
13552 | acx_cv_header_stdint_kind="(using manual detection)" | |
13553 | fi | |
13554 | ||
13555 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no | |
13556 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
13557 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
13558 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
13559 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
13560 | ||
13561 | # ----------------- Summarize what we found so far | |
13562 | ||
13563 | echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5 | |
13564 | echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6 | |
13565 | ||
13566 | case `$as_basename bfd_stdint.h || | |
13567 | $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
13568 | Xbfd_stdint.h : 'X\(//\)$' \| \ | |
13569 | Xbfd_stdint.h : 'X\(/\)$' \| \ | |
13570 | . : '\(.\)' 2>/dev/null || | |
13571 | echo X/bfd_stdint.h | | |
13572 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
13573 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
13574 | /^X\/\(\/\).*/{ s//\1/; q; } | |
13575 | s/.*/./; q'` in | |
13576 | stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 | |
13577 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
13578 | inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 | |
13579 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
13580 | *) ;; | |
13581 | esac | |
13582 | ||
13583 | echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 | |
13584 | echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6 | |
13585 | ||
13586 | # ----------------- done included file, check C basic types -------- | |
13587 | ||
13588 | # Lacking an uintptr_t? Test size of void * | |
13589 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
13590 | stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5 | |
13591 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
13592 | if test "${ac_cv_type_void_p+set}" = set; then | |
13593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13594 | else | |
13595 | cat >conftest.$ac_ext <<_ACEOF | |
13596 | /* confdefs.h. */ | |
13597 | _ACEOF | |
13598 | cat confdefs.h >>conftest.$ac_ext | |
13599 | cat >>conftest.$ac_ext <<_ACEOF | |
13600 | /* end confdefs.h. */ | |
13601 | $ac_includes_default | |
13602 | int | |
13603 | main () | |
13604 | { | |
13605 | if ((void * *) 0) | |
13606 | return 0; | |
13607 | if (sizeof (void *)) | |
13608 | return 0; | |
13609 | ; | |
13610 | return 0; | |
13611 | } | |
13612 | _ACEOF | |
13613 | rm -f conftest.$ac_objext | |
13614 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13615 | (eval $ac_compile) 2>conftest.er1 | |
13616 | ac_status=$? | |
13617 | grep -v '^ *+' conftest.er1 >conftest.err | |
13618 | rm -f conftest.er1 | |
13619 | cat conftest.err >&5 | |
13620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13621 | (exit $ac_status); } && | |
13622 | { ac_try='test -z "$ac_c_werror_flag" | |
13623 | || test ! -s conftest.err' | |
13624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13625 | (eval $ac_try) 2>&5 | |
13626 | ac_status=$? | |
13627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13628 | (exit $ac_status); }; } && | |
13629 | { ac_try='test -s conftest.$ac_objext' | |
13630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13631 | (eval $ac_try) 2>&5 | |
13632 | ac_status=$? | |
13633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13634 | (exit $ac_status); }; }; then | |
13635 | ac_cv_type_void_p=yes | |
13636 | else | |
13637 | echo "$as_me: failed program was:" >&5 | |
13638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13639 | ||
13640 | ac_cv_type_void_p=no | |
13641 | fi | |
13642 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13643 | fi | |
13644 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
13645 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
13646 | ||
13647 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
13648 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
13649 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
13650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13651 | else | |
13652 | if test "$ac_cv_type_void_p" = yes; then | |
13653 | # The cast to unsigned long works around a bug in the HP C Compiler | |
13654 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13655 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13656 | # This bug is HP SR number 8606223364. | |
13657 | if test "$cross_compiling" = yes; then | |
13658 | # Depending upon the size, compute the lo and hi bounds. | |
13659 | cat >conftest.$ac_ext <<_ACEOF | |
13660 | /* confdefs.h. */ | |
13661 | _ACEOF | |
13662 | cat confdefs.h >>conftest.$ac_ext | |
13663 | cat >>conftest.$ac_ext <<_ACEOF | |
13664 | /* end confdefs.h. */ | |
13665 | $ac_includes_default | |
13666 | int | |
13667 | main () | |
13668 | { | |
13669 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
13670 | test_array [0] = 0 | |
13671 | ||
13672 | ; | |
13673 | return 0; | |
13674 | } | |
13675 | _ACEOF | |
13676 | rm -f conftest.$ac_objext | |
13677 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13678 | (eval $ac_compile) 2>conftest.er1 | |
13679 | ac_status=$? | |
13680 | grep -v '^ *+' conftest.er1 >conftest.err | |
13681 | rm -f conftest.er1 | |
13682 | cat conftest.err >&5 | |
13683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13684 | (exit $ac_status); } && | |
13685 | { ac_try='test -z "$ac_c_werror_flag" | |
13686 | || test ! -s conftest.err' | |
13687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13688 | (eval $ac_try) 2>&5 | |
13689 | ac_status=$? | |
13690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13691 | (exit $ac_status); }; } && | |
13692 | { ac_try='test -s conftest.$ac_objext' | |
13693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13694 | (eval $ac_try) 2>&5 | |
13695 | ac_status=$? | |
13696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13697 | (exit $ac_status); }; }; then | |
13698 | ac_lo=0 ac_mid=0 | |
13699 | while :; do | |
13700 | cat >conftest.$ac_ext <<_ACEOF | |
13701 | /* confdefs.h. */ | |
13702 | _ACEOF | |
13703 | cat confdefs.h >>conftest.$ac_ext | |
13704 | cat >>conftest.$ac_ext <<_ACEOF | |
13705 | /* end confdefs.h. */ | |
13706 | $ac_includes_default | |
13707 | int | |
13708 | main () | |
13709 | { | |
13710 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
13711 | test_array [0] = 0 | |
13712 | ||
13713 | ; | |
13714 | return 0; | |
13715 | } | |
13716 | _ACEOF | |
13717 | rm -f conftest.$ac_objext | |
13718 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13719 | (eval $ac_compile) 2>conftest.er1 | |
13720 | ac_status=$? | |
13721 | grep -v '^ *+' conftest.er1 >conftest.err | |
13722 | rm -f conftest.er1 | |
13723 | cat conftest.err >&5 | |
13724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13725 | (exit $ac_status); } && | |
13726 | { ac_try='test -z "$ac_c_werror_flag" | |
13727 | || test ! -s conftest.err' | |
13728 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13729 | (eval $ac_try) 2>&5 | |
13730 | ac_status=$? | |
13731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13732 | (exit $ac_status); }; } && | |
13733 | { ac_try='test -s conftest.$ac_objext' | |
13734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13735 | (eval $ac_try) 2>&5 | |
13736 | ac_status=$? | |
13737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13738 | (exit $ac_status); }; }; then | |
13739 | ac_hi=$ac_mid; break | |
13740 | else | |
13741 | echo "$as_me: failed program was:" >&5 | |
13742 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13743 | ||
13744 | ac_lo=`expr $ac_mid + 1` | |
13745 | if test $ac_lo -le $ac_mid; then | |
13746 | ac_lo= ac_hi= | |
13747 | break | |
13748 | fi | |
13749 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
13750 | fi | |
13751 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13752 | done | |
13753 | else | |
13754 | echo "$as_me: failed program was:" >&5 | |
13755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13756 | ||
13757 | cat >conftest.$ac_ext <<_ACEOF | |
13758 | /* confdefs.h. */ | |
13759 | _ACEOF | |
13760 | cat confdefs.h >>conftest.$ac_ext | |
13761 | cat >>conftest.$ac_ext <<_ACEOF | |
13762 | /* end confdefs.h. */ | |
13763 | $ac_includes_default | |
13764 | int | |
13765 | main () | |
13766 | { | |
13767 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
13768 | test_array [0] = 0 | |
13769 | ||
13770 | ; | |
13771 | return 0; | |
13772 | } | |
13773 | _ACEOF | |
13774 | rm -f conftest.$ac_objext | |
13775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13776 | (eval $ac_compile) 2>conftest.er1 | |
13777 | ac_status=$? | |
13778 | grep -v '^ *+' conftest.er1 >conftest.err | |
13779 | rm -f conftest.er1 | |
13780 | cat conftest.err >&5 | |
13781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13782 | (exit $ac_status); } && | |
13783 | { ac_try='test -z "$ac_c_werror_flag" | |
13784 | || test ! -s conftest.err' | |
13785 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13786 | (eval $ac_try) 2>&5 | |
13787 | ac_status=$? | |
13788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13789 | (exit $ac_status); }; } && | |
13790 | { ac_try='test -s conftest.$ac_objext' | |
13791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13792 | (eval $ac_try) 2>&5 | |
13793 | ac_status=$? | |
13794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13795 | (exit $ac_status); }; }; then | |
13796 | ac_hi=-1 ac_mid=-1 | |
13797 | while :; do | |
13798 | cat >conftest.$ac_ext <<_ACEOF | |
13799 | /* confdefs.h. */ | |
13800 | _ACEOF | |
13801 | cat confdefs.h >>conftest.$ac_ext | |
13802 | cat >>conftest.$ac_ext <<_ACEOF | |
13803 | /* end confdefs.h. */ | |
13804 | $ac_includes_default | |
13805 | int | |
13806 | main () | |
13807 | { | |
13808 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
13809 | test_array [0] = 0 | |
13810 | ||
13811 | ; | |
13812 | return 0; | |
13813 | } | |
13814 | _ACEOF | |
13815 | rm -f conftest.$ac_objext | |
13816 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13817 | (eval $ac_compile) 2>conftest.er1 | |
13818 | ac_status=$? | |
13819 | grep -v '^ *+' conftest.er1 >conftest.err | |
13820 | rm -f conftest.er1 | |
13821 | cat conftest.err >&5 | |
13822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13823 | (exit $ac_status); } && | |
13824 | { ac_try='test -z "$ac_c_werror_flag" | |
13825 | || test ! -s conftest.err' | |
13826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13827 | (eval $ac_try) 2>&5 | |
13828 | ac_status=$? | |
13829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13830 | (exit $ac_status); }; } && | |
13831 | { ac_try='test -s conftest.$ac_objext' | |
13832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13833 | (eval $ac_try) 2>&5 | |
13834 | ac_status=$? | |
13835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13836 | (exit $ac_status); }; }; then | |
13837 | ac_lo=$ac_mid; break | |
13838 | else | |
13839 | echo "$as_me: failed program was:" >&5 | |
13840 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13841 | ||
13842 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
13843 | if test $ac_mid -le $ac_hi; then | |
13844 | ac_lo= ac_hi= | |
13845 | break | |
13846 | fi | |
13847 | ac_mid=`expr 2 '*' $ac_mid` | |
13848 | fi | |
13849 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13850 | done | |
13851 | else | |
13852 | echo "$as_me: failed program was:" >&5 | |
13853 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13854 | ||
13855 | ac_lo= ac_hi= | |
13856 | fi | |
13857 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13858 | fi | |
13859 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13860 | # Binary search between lo and hi bounds. | |
13861 | while test "x$ac_lo" != "x$ac_hi"; do | |
13862 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13863 | cat >conftest.$ac_ext <<_ACEOF | |
13864 | /* confdefs.h. */ | |
13865 | _ACEOF | |
13866 | cat confdefs.h >>conftest.$ac_ext | |
13867 | cat >>conftest.$ac_ext <<_ACEOF | |
13868 | /* end confdefs.h. */ | |
13869 | $ac_includes_default | |
13870 | int | |
13871 | main () | |
13872 | { | |
13873 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
13874 | test_array [0] = 0 | |
13875 | ||
13876 | ; | |
13877 | return 0; | |
13878 | } | |
13879 | _ACEOF | |
13880 | rm -f conftest.$ac_objext | |
13881 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13882 | (eval $ac_compile) 2>conftest.er1 | |
13883 | ac_status=$? | |
13884 | grep -v '^ *+' conftest.er1 >conftest.err | |
13885 | rm -f conftest.er1 | |
13886 | cat conftest.err >&5 | |
13887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13888 | (exit $ac_status); } && | |
13889 | { ac_try='test -z "$ac_c_werror_flag" | |
13890 | || test ! -s conftest.err' | |
13891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13892 | (eval $ac_try) 2>&5 | |
13893 | ac_status=$? | |
13894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13895 | (exit $ac_status); }; } && | |
13896 | { ac_try='test -s conftest.$ac_objext' | |
13897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13898 | (eval $ac_try) 2>&5 | |
13899 | ac_status=$? | |
13900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13901 | (exit $ac_status); }; }; then | |
13902 | ac_hi=$ac_mid | |
13903 | else | |
13904 | echo "$as_me: failed program was:" >&5 | |
13905 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13906 | ||
13907 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
13908 | fi | |
13909 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13910 | done | |
13911 | case $ac_lo in | |
13912 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
13913 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
13914 | See \`config.log' for more details." >&5 | |
13915 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
13916 | See \`config.log' for more details." >&2;} | |
13917 | { (exit 1); exit 1; }; } ;; | |
13918 | esac | |
13919 | else | |
13920 | if test "$cross_compiling" = yes; then | |
13921 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
13922 | See \`config.log' for more details." >&5 | |
13923 | echo "$as_me: error: cannot run test program while cross compiling | |
13924 | See \`config.log' for more details." >&2;} | |
13925 | { (exit 1); exit 1; }; } | |
13926 | else | |
13927 | cat >conftest.$ac_ext <<_ACEOF | |
13928 | /* confdefs.h. */ | |
13929 | _ACEOF | |
13930 | cat confdefs.h >>conftest.$ac_ext | |
13931 | cat >>conftest.$ac_ext <<_ACEOF | |
13932 | /* end confdefs.h. */ | |
13933 | $ac_includes_default | |
13934 | long longval () { return (long) (sizeof (void *)); } | |
13935 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
13936 | #include <stdio.h> | |
13937 | #include <stdlib.h> | |
13938 | int | |
13939 | main () | |
13940 | { | |
13941 | ||
13942 | FILE *f = fopen ("conftest.val", "w"); | |
13943 | if (! f) | |
13944 | exit (1); | |
13945 | if (((long) (sizeof (void *))) < 0) | |
13946 | { | |
13947 | long i = longval (); | |
13948 | if (i != ((long) (sizeof (void *)))) | |
13949 | exit (1); | |
13950 | fprintf (f, "%ld\n", i); | |
13951 | } | |
13952 | else | |
13953 | { | |
13954 | unsigned long i = ulongval (); | |
13955 | if (i != ((long) (sizeof (void *)))) | |
13956 | exit (1); | |
13957 | fprintf (f, "%lu\n", i); | |
13958 | } | |
13959 | exit (ferror (f) || fclose (f) != 0); | |
13960 | ||
13961 | ; | |
13962 | return 0; | |
13963 | } | |
13964 | _ACEOF | |
13965 | rm -f conftest$ac_exeext | |
13966 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13967 | (eval $ac_link) 2>&5 | |
13968 | ac_status=$? | |
13969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13970 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13972 | (eval $ac_try) 2>&5 | |
13973 | ac_status=$? | |
13974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13975 | (exit $ac_status); }; }; then | |
13976 | ac_cv_sizeof_void_p=`cat conftest.val` | |
13977 | else | |
13978 | echo "$as_me: program exited with status $ac_status" >&5 | |
13979 | echo "$as_me: failed program was:" >&5 | |
13980 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13981 | ||
13982 | ( exit $ac_status ) | |
13983 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
13984 | See \`config.log' for more details." >&5 | |
13985 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
13986 | See \`config.log' for more details." >&2;} | |
13987 | { (exit 1); exit 1; }; } | |
13988 | fi | |
13989 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
13990 | fi | |
13991 | fi | |
13992 | rm -f conftest.val | |
13993 | else | |
13994 | ac_cv_sizeof_void_p=0 | |
13995 | fi | |
13996 | fi | |
13997 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
13998 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
13999 | cat >>confdefs.h <<_ACEOF | |
14000 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
14001 | _ACEOF | |
14002 | ||
14003 | ;; | |
14004 | esac | |
14005 | ||
14006 | # Lacking an uint64_t? Test size of long | |
14007 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
14008 | stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5 | |
14009 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
14010 | if test "${ac_cv_type_long+set}" = set; then | |
14011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14012 | else | |
14013 | cat >conftest.$ac_ext <<_ACEOF | |
14014 | /* confdefs.h. */ | |
14015 | _ACEOF | |
14016 | cat confdefs.h >>conftest.$ac_ext | |
14017 | cat >>conftest.$ac_ext <<_ACEOF | |
14018 | /* end confdefs.h. */ | |
14019 | $ac_includes_default | |
14020 | int | |
14021 | main () | |
14022 | { | |
14023 | if ((long *) 0) | |
14024 | return 0; | |
14025 | if (sizeof (long)) | |
14026 | return 0; | |
14027 | ; | |
14028 | return 0; | |
14029 | } | |
14030 | _ACEOF | |
14031 | rm -f conftest.$ac_objext | |
14032 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14033 | (eval $ac_compile) 2>conftest.er1 | |
14034 | ac_status=$? | |
14035 | grep -v '^ *+' conftest.er1 >conftest.err | |
14036 | rm -f conftest.er1 | |
14037 | cat conftest.err >&5 | |
14038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14039 | (exit $ac_status); } && | |
14040 | { ac_try='test -z "$ac_c_werror_flag" | |
14041 | || test ! -s conftest.err' | |
14042 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14043 | (eval $ac_try) 2>&5 | |
14044 | ac_status=$? | |
14045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14046 | (exit $ac_status); }; } && | |
14047 | { ac_try='test -s conftest.$ac_objext' | |
14048 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14049 | (eval $ac_try) 2>&5 | |
14050 | ac_status=$? | |
14051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14052 | (exit $ac_status); }; }; then | |
14053 | ac_cv_type_long=yes | |
14054 | else | |
14055 | echo "$as_me: failed program was:" >&5 | |
14056 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14057 | ||
14058 | ac_cv_type_long=no | |
14059 | fi | |
14060 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14061 | fi | |
14062 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
14063 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
14064 | ||
14065 | echo "$as_me:$LINENO: checking size of long" >&5 | |
14066 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
14067 | if test "${ac_cv_sizeof_long+set}" = set; then | |
14068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14069 | else | |
14070 | if test "$ac_cv_type_long" = yes; then | |
14071 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14072 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14073 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14074 | # This bug is HP SR number 8606223364. | |
14075 | if test "$cross_compiling" = yes; then | |
14076 | # Depending upon the size, compute the lo and hi bounds. | |
14077 | cat >conftest.$ac_ext <<_ACEOF | |
14078 | /* confdefs.h. */ | |
14079 | _ACEOF | |
14080 | cat confdefs.h >>conftest.$ac_ext | |
14081 | cat >>conftest.$ac_ext <<_ACEOF | |
14082 | /* end confdefs.h. */ | |
14083 | $ac_includes_default | |
14084 | int | |
14085 | main () | |
14086 | { | |
14087 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
14088 | test_array [0] = 0 | |
14089 | ||
14090 | ; | |
14091 | return 0; | |
14092 | } | |
14093 | _ACEOF | |
14094 | rm -f conftest.$ac_objext | |
14095 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14096 | (eval $ac_compile) 2>conftest.er1 | |
14097 | ac_status=$? | |
14098 | grep -v '^ *+' conftest.er1 >conftest.err | |
14099 | rm -f conftest.er1 | |
14100 | cat conftest.err >&5 | |
14101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14102 | (exit $ac_status); } && | |
14103 | { ac_try='test -z "$ac_c_werror_flag" | |
14104 | || test ! -s conftest.err' | |
14105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14106 | (eval $ac_try) 2>&5 | |
14107 | ac_status=$? | |
14108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14109 | (exit $ac_status); }; } && | |
14110 | { ac_try='test -s conftest.$ac_objext' | |
14111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14112 | (eval $ac_try) 2>&5 | |
14113 | ac_status=$? | |
14114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14115 | (exit $ac_status); }; }; then | |
14116 | ac_lo=0 ac_mid=0 | |
14117 | while :; do | |
14118 | cat >conftest.$ac_ext <<_ACEOF | |
14119 | /* confdefs.h. */ | |
14120 | _ACEOF | |
14121 | cat confdefs.h >>conftest.$ac_ext | |
14122 | cat >>conftest.$ac_ext <<_ACEOF | |
14123 | /* end confdefs.h. */ | |
14124 | $ac_includes_default | |
14125 | int | |
14126 | main () | |
14127 | { | |
14128 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
14129 | test_array [0] = 0 | |
14130 | ||
14131 | ; | |
14132 | return 0; | |
14133 | } | |
14134 | _ACEOF | |
14135 | rm -f conftest.$ac_objext | |
14136 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14137 | (eval $ac_compile) 2>conftest.er1 | |
14138 | ac_status=$? | |
14139 | grep -v '^ *+' conftest.er1 >conftest.err | |
14140 | rm -f conftest.er1 | |
14141 | cat conftest.err >&5 | |
14142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14143 | (exit $ac_status); } && | |
14144 | { ac_try='test -z "$ac_c_werror_flag" | |
14145 | || test ! -s conftest.err' | |
14146 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14147 | (eval $ac_try) 2>&5 | |
14148 | ac_status=$? | |
14149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14150 | (exit $ac_status); }; } && | |
14151 | { ac_try='test -s conftest.$ac_objext' | |
14152 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14153 | (eval $ac_try) 2>&5 | |
14154 | ac_status=$? | |
14155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14156 | (exit $ac_status); }; }; then | |
14157 | ac_hi=$ac_mid; break | |
14158 | else | |
14159 | echo "$as_me: failed program was:" >&5 | |
14160 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14161 | ||
14162 | ac_lo=`expr $ac_mid + 1` | |
14163 | if test $ac_lo -le $ac_mid; then | |
14164 | ac_lo= ac_hi= | |
14165 | break | |
14166 | fi | |
14167 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
14168 | fi | |
14169 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14170 | done | |
14171 | else | |
14172 | echo "$as_me: failed program was:" >&5 | |
14173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14174 | ||
14175 | cat >conftest.$ac_ext <<_ACEOF | |
14176 | /* confdefs.h. */ | |
14177 | _ACEOF | |
14178 | cat confdefs.h >>conftest.$ac_ext | |
14179 | cat >>conftest.$ac_ext <<_ACEOF | |
14180 | /* end confdefs.h. */ | |
14181 | $ac_includes_default | |
14182 | int | |
14183 | main () | |
14184 | { | |
14185 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
14186 | test_array [0] = 0 | |
14187 | ||
14188 | ; | |
14189 | return 0; | |
14190 | } | |
14191 | _ACEOF | |
14192 | rm -f conftest.$ac_objext | |
14193 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14194 | (eval $ac_compile) 2>conftest.er1 | |
14195 | ac_status=$? | |
14196 | grep -v '^ *+' conftest.er1 >conftest.err | |
14197 | rm -f conftest.er1 | |
14198 | cat conftest.err >&5 | |
14199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14200 | (exit $ac_status); } && | |
14201 | { ac_try='test -z "$ac_c_werror_flag" | |
14202 | || test ! -s conftest.err' | |
14203 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14204 | (eval $ac_try) 2>&5 | |
14205 | ac_status=$? | |
14206 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14207 | (exit $ac_status); }; } && | |
14208 | { ac_try='test -s conftest.$ac_objext' | |
14209 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14210 | (eval $ac_try) 2>&5 | |
14211 | ac_status=$? | |
14212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14213 | (exit $ac_status); }; }; then | |
14214 | ac_hi=-1 ac_mid=-1 | |
14215 | while :; do | |
14216 | cat >conftest.$ac_ext <<_ACEOF | |
14217 | /* confdefs.h. */ | |
14218 | _ACEOF | |
14219 | cat confdefs.h >>conftest.$ac_ext | |
14220 | cat >>conftest.$ac_ext <<_ACEOF | |
14221 | /* end confdefs.h. */ | |
14222 | $ac_includes_default | |
14223 | int | |
14224 | main () | |
14225 | { | |
14226 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
14227 | test_array [0] = 0 | |
14228 | ||
14229 | ; | |
14230 | return 0; | |
14231 | } | |
14232 | _ACEOF | |
14233 | rm -f conftest.$ac_objext | |
14234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14235 | (eval $ac_compile) 2>conftest.er1 | |
14236 | ac_status=$? | |
14237 | grep -v '^ *+' conftest.er1 >conftest.err | |
14238 | rm -f conftest.er1 | |
14239 | cat conftest.err >&5 | |
14240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14241 | (exit $ac_status); } && | |
14242 | { ac_try='test -z "$ac_c_werror_flag" | |
14243 | || test ! -s conftest.err' | |
14244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14245 | (eval $ac_try) 2>&5 | |
14246 | ac_status=$? | |
14247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14248 | (exit $ac_status); }; } && | |
14249 | { ac_try='test -s conftest.$ac_objext' | |
14250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14251 | (eval $ac_try) 2>&5 | |
14252 | ac_status=$? | |
14253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14254 | (exit $ac_status); }; }; then | |
14255 | ac_lo=$ac_mid; break | |
14256 | else | |
14257 | echo "$as_me: failed program was:" >&5 | |
14258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14259 | ||
14260 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14261 | if test $ac_mid -le $ac_hi; then | |
14262 | ac_lo= ac_hi= | |
14263 | break | |
14264 | fi | |
14265 | ac_mid=`expr 2 '*' $ac_mid` | |
14266 | fi | |
14267 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14268 | done | |
14269 | else | |
14270 | echo "$as_me: failed program was:" >&5 | |
14271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14272 | ||
14273 | ac_lo= ac_hi= | |
14274 | fi | |
14275 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14276 | fi | |
14277 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14278 | # Binary search between lo and hi bounds. | |
14279 | while test "x$ac_lo" != "x$ac_hi"; do | |
14280 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14281 | cat >conftest.$ac_ext <<_ACEOF | |
14282 | /* confdefs.h. */ | |
14283 | _ACEOF | |
14284 | cat confdefs.h >>conftest.$ac_ext | |
14285 | cat >>conftest.$ac_ext <<_ACEOF | |
14286 | /* end confdefs.h. */ | |
14287 | $ac_includes_default | |
14288 | int | |
14289 | main () | |
14290 | { | |
14291 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
14292 | test_array [0] = 0 | |
14293 | ||
14294 | ; | |
14295 | return 0; | |
14296 | } | |
14297 | _ACEOF | |
14298 | rm -f conftest.$ac_objext | |
14299 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14300 | (eval $ac_compile) 2>conftest.er1 | |
14301 | ac_status=$? | |
14302 | grep -v '^ *+' conftest.er1 >conftest.err | |
14303 | rm -f conftest.er1 | |
14304 | cat conftest.err >&5 | |
14305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14306 | (exit $ac_status); } && | |
14307 | { ac_try='test -z "$ac_c_werror_flag" | |
14308 | || test ! -s conftest.err' | |
14309 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14310 | (eval $ac_try) 2>&5 | |
14311 | ac_status=$? | |
14312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14313 | (exit $ac_status); }; } && | |
14314 | { ac_try='test -s conftest.$ac_objext' | |
14315 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14316 | (eval $ac_try) 2>&5 | |
14317 | ac_status=$? | |
14318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14319 | (exit $ac_status); }; }; then | |
14320 | ac_hi=$ac_mid | |
14321 | else | |
14322 | echo "$as_me: failed program was:" >&5 | |
14323 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14324 | ||
14325 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14326 | fi | |
14327 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14328 | done | |
14329 | case $ac_lo in | |
14330 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
14331 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
14332 | See \`config.log' for more details." >&5 | |
14333 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
14334 | See \`config.log' for more details." >&2;} | |
14335 | { (exit 1); exit 1; }; } ;; | |
14336 | esac | |
14337 | else | |
14338 | if test "$cross_compiling" = yes; then | |
14339 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14340 | See \`config.log' for more details." >&5 | |
14341 | echo "$as_me: error: cannot run test program while cross compiling | |
14342 | See \`config.log' for more details." >&2;} | |
14343 | { (exit 1); exit 1; }; } | |
14344 | else | |
14345 | cat >conftest.$ac_ext <<_ACEOF | |
14346 | /* confdefs.h. */ | |
14347 | _ACEOF | |
14348 | cat confdefs.h >>conftest.$ac_ext | |
14349 | cat >>conftest.$ac_ext <<_ACEOF | |
14350 | /* end confdefs.h. */ | |
14351 | $ac_includes_default | |
14352 | long longval () { return (long) (sizeof (long)); } | |
14353 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
14354 | #include <stdio.h> | |
14355 | #include <stdlib.h> | |
14356 | int | |
14357 | main () | |
14358 | { | |
14359 | ||
14360 | FILE *f = fopen ("conftest.val", "w"); | |
14361 | if (! f) | |
14362 | exit (1); | |
14363 | if (((long) (sizeof (long))) < 0) | |
14364 | { | |
14365 | long i = longval (); | |
14366 | if (i != ((long) (sizeof (long)))) | |
14367 | exit (1); | |
14368 | fprintf (f, "%ld\n", i); | |
14369 | } | |
14370 | else | |
14371 | { | |
14372 | unsigned long i = ulongval (); | |
14373 | if (i != ((long) (sizeof (long)))) | |
14374 | exit (1); | |
14375 | fprintf (f, "%lu\n", i); | |
14376 | } | |
14377 | exit (ferror (f) || fclose (f) != 0); | |
14378 | ||
14379 | ; | |
14380 | return 0; | |
14381 | } | |
14382 | _ACEOF | |
14383 | rm -f conftest$ac_exeext | |
14384 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14385 | (eval $ac_link) 2>&5 | |
14386 | ac_status=$? | |
14387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14388 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14390 | (eval $ac_try) 2>&5 | |
14391 | ac_status=$? | |
14392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14393 | (exit $ac_status); }; }; then | |
14394 | ac_cv_sizeof_long=`cat conftest.val` | |
14395 | else | |
14396 | echo "$as_me: program exited with status $ac_status" >&5 | |
14397 | echo "$as_me: failed program was:" >&5 | |
14398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14399 | ||
14400 | ( exit $ac_status ) | |
14401 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
14402 | See \`config.log' for more details." >&5 | |
14403 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
14404 | See \`config.log' for more details." >&2;} | |
14405 | { (exit 1); exit 1; }; } | |
14406 | fi | |
14407 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14408 | fi | |
14409 | fi | |
14410 | rm -f conftest.val | |
14411 | else | |
14412 | ac_cv_sizeof_long=0 | |
14413 | fi | |
14414 | fi | |
14415 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
14416 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
14417 | cat >>confdefs.h <<_ACEOF | |
14418 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
14419 | _ACEOF | |
14420 | ||
14421 | ;; | |
14422 | esac | |
14423 | ||
14424 | if test $acx_cv_header_stdint = stddef.h; then | |
14425 | # Lacking a good header? Test size of everything and deduce all types. | |
14426 | echo "$as_me:$LINENO: checking for int" >&5 | |
14427 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
14428 | if test "${ac_cv_type_int+set}" = set; then | |
14429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14430 | else | |
14431 | cat >conftest.$ac_ext <<_ACEOF | |
14432 | /* confdefs.h. */ | |
14433 | _ACEOF | |
14434 | cat confdefs.h >>conftest.$ac_ext | |
14435 | cat >>conftest.$ac_ext <<_ACEOF | |
14436 | /* end confdefs.h. */ | |
14437 | $ac_includes_default | |
14438 | int | |
14439 | main () | |
14440 | { | |
14441 | if ((int *) 0) | |
14442 | return 0; | |
14443 | if (sizeof (int)) | |
14444 | return 0; | |
14445 | ; | |
14446 | return 0; | |
14447 | } | |
14448 | _ACEOF | |
14449 | rm -f conftest.$ac_objext | |
14450 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14451 | (eval $ac_compile) 2>conftest.er1 | |
14452 | ac_status=$? | |
14453 | grep -v '^ *+' conftest.er1 >conftest.err | |
14454 | rm -f conftest.er1 | |
14455 | cat conftest.err >&5 | |
14456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14457 | (exit $ac_status); } && | |
14458 | { ac_try='test -z "$ac_c_werror_flag" | |
14459 | || test ! -s conftest.err' | |
14460 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14461 | (eval $ac_try) 2>&5 | |
14462 | ac_status=$? | |
14463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14464 | (exit $ac_status); }; } && | |
14465 | { ac_try='test -s conftest.$ac_objext' | |
14466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14467 | (eval $ac_try) 2>&5 | |
14468 | ac_status=$? | |
14469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14470 | (exit $ac_status); }; }; then | |
14471 | ac_cv_type_int=yes | |
14472 | else | |
14473 | echo "$as_me: failed program was:" >&5 | |
14474 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14475 | ||
14476 | ac_cv_type_int=no | |
14477 | fi | |
14478 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14479 | fi | |
14480 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
14481 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
14482 | ||
14483 | echo "$as_me:$LINENO: checking size of int" >&5 | |
14484 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
14485 | if test "${ac_cv_sizeof_int+set}" = set; then | |
14486 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14487 | else | |
14488 | if test "$ac_cv_type_int" = yes; then | |
14489 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14490 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14491 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14492 | # This bug is HP SR number 8606223364. | |
14493 | if test "$cross_compiling" = yes; then | |
14494 | # Depending upon the size, compute the lo and hi bounds. | |
14495 | cat >conftest.$ac_ext <<_ACEOF | |
14496 | /* confdefs.h. */ | |
14497 | _ACEOF | |
14498 | cat confdefs.h >>conftest.$ac_ext | |
14499 | cat >>conftest.$ac_ext <<_ACEOF | |
14500 | /* end confdefs.h. */ | |
14501 | $ac_includes_default | |
14502 | int | |
14503 | main () | |
14504 | { | |
14505 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
14506 | test_array [0] = 0 | |
14507 | ||
14508 | ; | |
14509 | return 0; | |
14510 | } | |
14511 | _ACEOF | |
14512 | rm -f conftest.$ac_objext | |
14513 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14514 | (eval $ac_compile) 2>conftest.er1 | |
14515 | ac_status=$? | |
14516 | grep -v '^ *+' conftest.er1 >conftest.err | |
14517 | rm -f conftest.er1 | |
14518 | cat conftest.err >&5 | |
14519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14520 | (exit $ac_status); } && | |
14521 | { ac_try='test -z "$ac_c_werror_flag" | |
14522 | || test ! -s conftest.err' | |
14523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14524 | (eval $ac_try) 2>&5 | |
14525 | ac_status=$? | |
14526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14527 | (exit $ac_status); }; } && | |
14528 | { ac_try='test -s conftest.$ac_objext' | |
14529 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14530 | (eval $ac_try) 2>&5 | |
14531 | ac_status=$? | |
14532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14533 | (exit $ac_status); }; }; then | |
14534 | ac_lo=0 ac_mid=0 | |
14535 | while :; do | |
14536 | cat >conftest.$ac_ext <<_ACEOF | |
14537 | /* confdefs.h. */ | |
14538 | _ACEOF | |
14539 | cat confdefs.h >>conftest.$ac_ext | |
14540 | cat >>conftest.$ac_ext <<_ACEOF | |
14541 | /* end confdefs.h. */ | |
14542 | $ac_includes_default | |
14543 | int | |
14544 | main () | |
14545 | { | |
14546 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
14547 | test_array [0] = 0 | |
14548 | ||
14549 | ; | |
14550 | return 0; | |
14551 | } | |
14552 | _ACEOF | |
14553 | rm -f conftest.$ac_objext | |
14554 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14555 | (eval $ac_compile) 2>conftest.er1 | |
14556 | ac_status=$? | |
14557 | grep -v '^ *+' conftest.er1 >conftest.err | |
14558 | rm -f conftest.er1 | |
14559 | cat conftest.err >&5 | |
14560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14561 | (exit $ac_status); } && | |
14562 | { ac_try='test -z "$ac_c_werror_flag" | |
14563 | || test ! -s conftest.err' | |
14564 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14565 | (eval $ac_try) 2>&5 | |
14566 | ac_status=$? | |
14567 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14568 | (exit $ac_status); }; } && | |
14569 | { ac_try='test -s conftest.$ac_objext' | |
14570 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14571 | (eval $ac_try) 2>&5 | |
14572 | ac_status=$? | |
14573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14574 | (exit $ac_status); }; }; then | |
14575 | ac_hi=$ac_mid; break | |
14576 | else | |
14577 | echo "$as_me: failed program was:" >&5 | |
14578 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14579 | ||
14580 | ac_lo=`expr $ac_mid + 1` | |
14581 | if test $ac_lo -le $ac_mid; then | |
14582 | ac_lo= ac_hi= | |
14583 | break | |
14584 | fi | |
14585 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
14586 | fi | |
14587 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14588 | done | |
14589 | else | |
14590 | echo "$as_me: failed program was:" >&5 | |
14591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14592 | ||
14593 | cat >conftest.$ac_ext <<_ACEOF | |
14594 | /* confdefs.h. */ | |
14595 | _ACEOF | |
14596 | cat confdefs.h >>conftest.$ac_ext | |
14597 | cat >>conftest.$ac_ext <<_ACEOF | |
14598 | /* end confdefs.h. */ | |
14599 | $ac_includes_default | |
14600 | int | |
14601 | main () | |
14602 | { | |
14603 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
14604 | test_array [0] = 0 | |
14605 | ||
14606 | ; | |
14607 | return 0; | |
14608 | } | |
14609 | _ACEOF | |
14610 | rm -f conftest.$ac_objext | |
14611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14612 | (eval $ac_compile) 2>conftest.er1 | |
14613 | ac_status=$? | |
14614 | grep -v '^ *+' conftest.er1 >conftest.err | |
14615 | rm -f conftest.er1 | |
14616 | cat conftest.err >&5 | |
14617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14618 | (exit $ac_status); } && | |
14619 | { ac_try='test -z "$ac_c_werror_flag" | |
14620 | || test ! -s conftest.err' | |
14621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14622 | (eval $ac_try) 2>&5 | |
14623 | ac_status=$? | |
14624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14625 | (exit $ac_status); }; } && | |
14626 | { ac_try='test -s conftest.$ac_objext' | |
14627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14628 | (eval $ac_try) 2>&5 | |
14629 | ac_status=$? | |
14630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14631 | (exit $ac_status); }; }; then | |
14632 | ac_hi=-1 ac_mid=-1 | |
14633 | while :; do | |
14634 | cat >conftest.$ac_ext <<_ACEOF | |
14635 | /* confdefs.h. */ | |
14636 | _ACEOF | |
14637 | cat confdefs.h >>conftest.$ac_ext | |
14638 | cat >>conftest.$ac_ext <<_ACEOF | |
14639 | /* end confdefs.h. */ | |
14640 | $ac_includes_default | |
14641 | int | |
14642 | main () | |
14643 | { | |
14644 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
14645 | test_array [0] = 0 | |
14646 | ||
14647 | ; | |
14648 | return 0; | |
14649 | } | |
14650 | _ACEOF | |
14651 | rm -f conftest.$ac_objext | |
14652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14653 | (eval $ac_compile) 2>conftest.er1 | |
14654 | ac_status=$? | |
14655 | grep -v '^ *+' conftest.er1 >conftest.err | |
14656 | rm -f conftest.er1 | |
14657 | cat conftest.err >&5 | |
14658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14659 | (exit $ac_status); } && | |
14660 | { ac_try='test -z "$ac_c_werror_flag" | |
14661 | || test ! -s conftest.err' | |
14662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14663 | (eval $ac_try) 2>&5 | |
14664 | ac_status=$? | |
14665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14666 | (exit $ac_status); }; } && | |
14667 | { ac_try='test -s conftest.$ac_objext' | |
14668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14669 | (eval $ac_try) 2>&5 | |
14670 | ac_status=$? | |
14671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14672 | (exit $ac_status); }; }; then | |
14673 | ac_lo=$ac_mid; break | |
14674 | else | |
14675 | echo "$as_me: failed program was:" >&5 | |
14676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14677 | ||
14678 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
14679 | if test $ac_mid -le $ac_hi; then | |
14680 | ac_lo= ac_hi= | |
14681 | break | |
14682 | fi | |
14683 | ac_mid=`expr 2 '*' $ac_mid` | |
14684 | fi | |
14685 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14686 | done | |
14687 | else | |
14688 | echo "$as_me: failed program was:" >&5 | |
14689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14690 | ||
14691 | ac_lo= ac_hi= | |
14692 | fi | |
14693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14694 | fi | |
14695 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14696 | # Binary search between lo and hi bounds. | |
14697 | while test "x$ac_lo" != "x$ac_hi"; do | |
14698 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
14699 | cat >conftest.$ac_ext <<_ACEOF | |
14700 | /* confdefs.h. */ | |
14701 | _ACEOF | |
14702 | cat confdefs.h >>conftest.$ac_ext | |
14703 | cat >>conftest.$ac_ext <<_ACEOF | |
14704 | /* end confdefs.h. */ | |
14705 | $ac_includes_default | |
14706 | int | |
14707 | main () | |
14708 | { | |
14709 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
14710 | test_array [0] = 0 | |
14711 | ||
14712 | ; | |
14713 | return 0; | |
14714 | } | |
14715 | _ACEOF | |
14716 | rm -f conftest.$ac_objext | |
14717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14718 | (eval $ac_compile) 2>conftest.er1 | |
14719 | ac_status=$? | |
14720 | grep -v '^ *+' conftest.er1 >conftest.err | |
14721 | rm -f conftest.er1 | |
14722 | cat conftest.err >&5 | |
14723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14724 | (exit $ac_status); } && | |
14725 | { ac_try='test -z "$ac_c_werror_flag" | |
14726 | || test ! -s conftest.err' | |
14727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14728 | (eval $ac_try) 2>&5 | |
14729 | ac_status=$? | |
14730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14731 | (exit $ac_status); }; } && | |
14732 | { ac_try='test -s conftest.$ac_objext' | |
14733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14734 | (eval $ac_try) 2>&5 | |
14735 | ac_status=$? | |
14736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14737 | (exit $ac_status); }; }; then | |
14738 | ac_hi=$ac_mid | |
14739 | else | |
14740 | echo "$as_me: failed program was:" >&5 | |
14741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14742 | ||
14743 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
14744 | fi | |
14745 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14746 | done | |
14747 | case $ac_lo in | |
14748 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
14749 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
14750 | See \`config.log' for more details." >&5 | |
14751 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
14752 | See \`config.log' for more details." >&2;} | |
14753 | { (exit 1); exit 1; }; } ;; | |
14754 | esac | |
14755 | else | |
14756 | if test "$cross_compiling" = yes; then | |
14757 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
14758 | See \`config.log' for more details." >&5 | |
14759 | echo "$as_me: error: cannot run test program while cross compiling | |
14760 | See \`config.log' for more details." >&2;} | |
14761 | { (exit 1); exit 1; }; } | |
14762 | else | |
14763 | cat >conftest.$ac_ext <<_ACEOF | |
14764 | /* confdefs.h. */ | |
14765 | _ACEOF | |
14766 | cat confdefs.h >>conftest.$ac_ext | |
14767 | cat >>conftest.$ac_ext <<_ACEOF | |
14768 | /* end confdefs.h. */ | |
14769 | $ac_includes_default | |
14770 | long longval () { return (long) (sizeof (int)); } | |
14771 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
14772 | #include <stdio.h> | |
14773 | #include <stdlib.h> | |
14774 | int | |
14775 | main () | |
14776 | { | |
14777 | ||
14778 | FILE *f = fopen ("conftest.val", "w"); | |
14779 | if (! f) | |
14780 | exit (1); | |
14781 | if (((long) (sizeof (int))) < 0) | |
14782 | { | |
14783 | long i = longval (); | |
14784 | if (i != ((long) (sizeof (int)))) | |
14785 | exit (1); | |
14786 | fprintf (f, "%ld\n", i); | |
14787 | } | |
14788 | else | |
14789 | { | |
14790 | unsigned long i = ulongval (); | |
14791 | if (i != ((long) (sizeof (int)))) | |
14792 | exit (1); | |
14793 | fprintf (f, "%lu\n", i); | |
14794 | } | |
14795 | exit (ferror (f) || fclose (f) != 0); | |
14796 | ||
14797 | ; | |
14798 | return 0; | |
14799 | } | |
14800 | _ACEOF | |
14801 | rm -f conftest$ac_exeext | |
14802 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
14803 | (eval $ac_link) 2>&5 | |
14804 | ac_status=$? | |
14805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14806 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
14807 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14808 | (eval $ac_try) 2>&5 | |
14809 | ac_status=$? | |
14810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14811 | (exit $ac_status); }; }; then | |
14812 | ac_cv_sizeof_int=`cat conftest.val` | |
14813 | else | |
14814 | echo "$as_me: program exited with status $ac_status" >&5 | |
14815 | echo "$as_me: failed program was:" >&5 | |
14816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14817 | ||
14818 | ( exit $ac_status ) | |
14819 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
14820 | See \`config.log' for more details." >&5 | |
14821 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
14822 | See \`config.log' for more details." >&2;} | |
14823 | { (exit 1); exit 1; }; } | |
14824 | fi | |
14825 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
14826 | fi | |
14827 | fi | |
14828 | rm -f conftest.val | |
14829 | else | |
14830 | ac_cv_sizeof_int=0 | |
14831 | fi | |
14832 | fi | |
14833 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
14834 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
14835 | cat >>confdefs.h <<_ACEOF | |
14836 | #define SIZEOF_INT $ac_cv_sizeof_int | |
14837 | _ACEOF | |
14838 | ||
14839 | ||
14840 | echo "$as_me:$LINENO: checking for short" >&5 | |
14841 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
14842 | if test "${ac_cv_type_short+set}" = set; then | |
14843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14844 | else | |
14845 | cat >conftest.$ac_ext <<_ACEOF | |
14846 | /* confdefs.h. */ | |
14847 | _ACEOF | |
14848 | cat confdefs.h >>conftest.$ac_ext | |
14849 | cat >>conftest.$ac_ext <<_ACEOF | |
14850 | /* end confdefs.h. */ | |
14851 | $ac_includes_default | |
14852 | int | |
14853 | main () | |
14854 | { | |
14855 | if ((short *) 0) | |
14856 | return 0; | |
14857 | if (sizeof (short)) | |
14858 | return 0; | |
14859 | ; | |
14860 | return 0; | |
14861 | } | |
14862 | _ACEOF | |
14863 | rm -f conftest.$ac_objext | |
14864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14865 | (eval $ac_compile) 2>conftest.er1 | |
14866 | ac_status=$? | |
14867 | grep -v '^ *+' conftest.er1 >conftest.err | |
14868 | rm -f conftest.er1 | |
14869 | cat conftest.err >&5 | |
14870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14871 | (exit $ac_status); } && | |
14872 | { ac_try='test -z "$ac_c_werror_flag" | |
14873 | || test ! -s conftest.err' | |
14874 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14875 | (eval $ac_try) 2>&5 | |
14876 | ac_status=$? | |
14877 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14878 | (exit $ac_status); }; } && | |
14879 | { ac_try='test -s conftest.$ac_objext' | |
14880 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14881 | (eval $ac_try) 2>&5 | |
14882 | ac_status=$? | |
14883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14884 | (exit $ac_status); }; }; then | |
14885 | ac_cv_type_short=yes | |
14886 | else | |
14887 | echo "$as_me: failed program was:" >&5 | |
14888 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14889 | ||
14890 | ac_cv_type_short=no | |
14891 | fi | |
14892 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14893 | fi | |
14894 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
14895 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
14896 | ||
14897 | echo "$as_me:$LINENO: checking size of short" >&5 | |
14898 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
14899 | if test "${ac_cv_sizeof_short+set}" = set; then | |
14900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14901 | else | |
14902 | if test "$ac_cv_type_short" = yes; then | |
14903 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14904 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14905 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14906 | # This bug is HP SR number 8606223364. | |
14907 | if test "$cross_compiling" = yes; then | |
14908 | # Depending upon the size, compute the lo and hi bounds. | |
14909 | cat >conftest.$ac_ext <<_ACEOF | |
14910 | /* confdefs.h. */ | |
14911 | _ACEOF | |
14912 | cat confdefs.h >>conftest.$ac_ext | |
14913 | cat >>conftest.$ac_ext <<_ACEOF | |
14914 | /* end confdefs.h. */ | |
14915 | $ac_includes_default | |
14916 | int | |
14917 | main () | |
14918 | { | |
14919 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
14920 | test_array [0] = 0 | |
14921 | ||
14922 | ; | |
14923 | return 0; | |
14924 | } | |
14925 | _ACEOF | |
14926 | rm -f conftest.$ac_objext | |
14927 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14928 | (eval $ac_compile) 2>conftest.er1 | |
14929 | ac_status=$? | |
14930 | grep -v '^ *+' conftest.er1 >conftest.err | |
14931 | rm -f conftest.er1 | |
14932 | cat conftest.err >&5 | |
14933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14934 | (exit $ac_status); } && | |
14935 | { ac_try='test -z "$ac_c_werror_flag" | |
14936 | || test ! -s conftest.err' | |
14937 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14938 | (eval $ac_try) 2>&5 | |
14939 | ac_status=$? | |
14940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14941 | (exit $ac_status); }; } && | |
14942 | { ac_try='test -s conftest.$ac_objext' | |
14943 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14944 | (eval $ac_try) 2>&5 | |
14945 | ac_status=$? | |
14946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14947 | (exit $ac_status); }; }; then | |
14948 | ac_lo=0 ac_mid=0 | |
14949 | while :; do | |
14950 | cat >conftest.$ac_ext <<_ACEOF | |
14951 | /* confdefs.h. */ | |
14952 | _ACEOF | |
14953 | cat confdefs.h >>conftest.$ac_ext | |
14954 | cat >>conftest.$ac_ext <<_ACEOF | |
14955 | /* end confdefs.h. */ | |
14956 | $ac_includes_default | |
14957 | int | |
14958 | main () | |
14959 | { | |
14960 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
14961 | test_array [0] = 0 | |
14962 | ||
14963 | ; | |
14964 | return 0; | |
14965 | } | |
14966 | _ACEOF | |
14967 | rm -f conftest.$ac_objext | |
14968 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14969 | (eval $ac_compile) 2>conftest.er1 | |
14970 | ac_status=$? | |
14971 | grep -v '^ *+' conftest.er1 >conftest.err | |
14972 | rm -f conftest.er1 | |
14973 | cat conftest.err >&5 | |
14974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14975 | (exit $ac_status); } && | |
14976 | { ac_try='test -z "$ac_c_werror_flag" | |
14977 | || test ! -s conftest.err' | |
14978 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14979 | (eval $ac_try) 2>&5 | |
14980 | ac_status=$? | |
14981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14982 | (exit $ac_status); }; } && | |
14983 | { ac_try='test -s conftest.$ac_objext' | |
14984 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14985 | (eval $ac_try) 2>&5 | |
14986 | ac_status=$? | |
14987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14988 | (exit $ac_status); }; }; then | |
14989 | ac_hi=$ac_mid; break | |
14990 | else | |
14991 | echo "$as_me: failed program was:" >&5 | |
14992 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14993 | ||
14994 | ac_lo=`expr $ac_mid + 1` | |
14995 | if test $ac_lo -le $ac_mid; then | |
14996 | ac_lo= ac_hi= | |
14997 | break | |
14998 | fi | |
14999 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
15000 | fi | |
15001 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15002 | done | |
15003 | else | |
15004 | echo "$as_me: failed program was:" >&5 | |
15005 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15006 | ||
15007 | cat >conftest.$ac_ext <<_ACEOF | |
15008 | /* confdefs.h. */ | |
15009 | _ACEOF | |
15010 | cat confdefs.h >>conftest.$ac_ext | |
15011 | cat >>conftest.$ac_ext <<_ACEOF | |
15012 | /* end confdefs.h. */ | |
15013 | $ac_includes_default | |
15014 | int | |
15015 | main () | |
15016 | { | |
15017 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
15018 | test_array [0] = 0 | |
15019 | ||
15020 | ; | |
15021 | return 0; | |
15022 | } | |
15023 | _ACEOF | |
15024 | rm -f conftest.$ac_objext | |
15025 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15026 | (eval $ac_compile) 2>conftest.er1 | |
15027 | ac_status=$? | |
15028 | grep -v '^ *+' conftest.er1 >conftest.err | |
15029 | rm -f conftest.er1 | |
15030 | cat conftest.err >&5 | |
15031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15032 | (exit $ac_status); } && | |
15033 | { ac_try='test -z "$ac_c_werror_flag" | |
15034 | || test ! -s conftest.err' | |
15035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15036 | (eval $ac_try) 2>&5 | |
15037 | ac_status=$? | |
15038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15039 | (exit $ac_status); }; } && | |
15040 | { ac_try='test -s conftest.$ac_objext' | |
15041 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15042 | (eval $ac_try) 2>&5 | |
15043 | ac_status=$? | |
15044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15045 | (exit $ac_status); }; }; then | |
15046 | ac_hi=-1 ac_mid=-1 | |
15047 | while :; do | |
15048 | cat >conftest.$ac_ext <<_ACEOF | |
15049 | /* confdefs.h. */ | |
15050 | _ACEOF | |
15051 | cat confdefs.h >>conftest.$ac_ext | |
15052 | cat >>conftest.$ac_ext <<_ACEOF | |
15053 | /* end confdefs.h. */ | |
15054 | $ac_includes_default | |
15055 | int | |
15056 | main () | |
15057 | { | |
15058 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
15059 | test_array [0] = 0 | |
15060 | ||
15061 | ; | |
15062 | return 0; | |
15063 | } | |
15064 | _ACEOF | |
15065 | rm -f conftest.$ac_objext | |
15066 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15067 | (eval $ac_compile) 2>conftest.er1 | |
15068 | ac_status=$? | |
15069 | grep -v '^ *+' conftest.er1 >conftest.err | |
15070 | rm -f conftest.er1 | |
15071 | cat conftest.err >&5 | |
15072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15073 | (exit $ac_status); } && | |
15074 | { ac_try='test -z "$ac_c_werror_flag" | |
15075 | || test ! -s conftest.err' | |
15076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15077 | (eval $ac_try) 2>&5 | |
15078 | ac_status=$? | |
15079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15080 | (exit $ac_status); }; } && | |
15081 | { ac_try='test -s conftest.$ac_objext' | |
15082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15083 | (eval $ac_try) 2>&5 | |
15084 | ac_status=$? | |
15085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15086 | (exit $ac_status); }; }; then | |
15087 | ac_lo=$ac_mid; break | |
15088 | else | |
15089 | echo "$as_me: failed program was:" >&5 | |
15090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15091 | ||
15092 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15093 | if test $ac_mid -le $ac_hi; then | |
15094 | ac_lo= ac_hi= | |
15095 | break | |
15096 | fi | |
15097 | ac_mid=`expr 2 '*' $ac_mid` | |
15098 | fi | |
15099 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15100 | done | |
15101 | else | |
15102 | echo "$as_me: failed program was:" >&5 | |
15103 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15104 | ||
15105 | ac_lo= ac_hi= | |
15106 | fi | |
15107 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15108 | fi | |
15109 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15110 | # Binary search between lo and hi bounds. | |
15111 | while test "x$ac_lo" != "x$ac_hi"; do | |
15112 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15113 | cat >conftest.$ac_ext <<_ACEOF | |
15114 | /* confdefs.h. */ | |
15115 | _ACEOF | |
15116 | cat confdefs.h >>conftest.$ac_ext | |
15117 | cat >>conftest.$ac_ext <<_ACEOF | |
15118 | /* end confdefs.h. */ | |
15119 | $ac_includes_default | |
15120 | int | |
15121 | main () | |
15122 | { | |
15123 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
15124 | test_array [0] = 0 | |
15125 | ||
15126 | ; | |
15127 | return 0; | |
15128 | } | |
15129 | _ACEOF | |
15130 | rm -f conftest.$ac_objext | |
15131 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15132 | (eval $ac_compile) 2>conftest.er1 | |
15133 | ac_status=$? | |
15134 | grep -v '^ *+' conftest.er1 >conftest.err | |
15135 | rm -f conftest.er1 | |
15136 | cat conftest.err >&5 | |
15137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15138 | (exit $ac_status); } && | |
15139 | { ac_try='test -z "$ac_c_werror_flag" | |
15140 | || test ! -s conftest.err' | |
15141 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15142 | (eval $ac_try) 2>&5 | |
15143 | ac_status=$? | |
15144 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15145 | (exit $ac_status); }; } && | |
15146 | { ac_try='test -s conftest.$ac_objext' | |
15147 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15148 | (eval $ac_try) 2>&5 | |
15149 | ac_status=$? | |
15150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15151 | (exit $ac_status); }; }; then | |
15152 | ac_hi=$ac_mid | |
15153 | else | |
15154 | echo "$as_me: failed program was:" >&5 | |
15155 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15156 | ||
15157 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15158 | fi | |
15159 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15160 | done | |
15161 | case $ac_lo in | |
15162 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
15163 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15164 | See \`config.log' for more details." >&5 | |
15165 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15166 | See \`config.log' for more details." >&2;} | |
15167 | { (exit 1); exit 1; }; } ;; | |
15168 | esac | |
15169 | else | |
15170 | if test "$cross_compiling" = yes; then | |
15171 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15172 | See \`config.log' for more details." >&5 | |
15173 | echo "$as_me: error: cannot run test program while cross compiling | |
15174 | See \`config.log' for more details." >&2;} | |
15175 | { (exit 1); exit 1; }; } | |
15176 | else | |
15177 | cat >conftest.$ac_ext <<_ACEOF | |
15178 | /* confdefs.h. */ | |
15179 | _ACEOF | |
15180 | cat confdefs.h >>conftest.$ac_ext | |
15181 | cat >>conftest.$ac_ext <<_ACEOF | |
15182 | /* end confdefs.h. */ | |
15183 | $ac_includes_default | |
15184 | long longval () { return (long) (sizeof (short)); } | |
15185 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
15186 | #include <stdio.h> | |
15187 | #include <stdlib.h> | |
15188 | int | |
15189 | main () | |
15190 | { | |
15191 | ||
15192 | FILE *f = fopen ("conftest.val", "w"); | |
15193 | if (! f) | |
15194 | exit (1); | |
15195 | if (((long) (sizeof (short))) < 0) | |
15196 | { | |
15197 | long i = longval (); | |
15198 | if (i != ((long) (sizeof (short)))) | |
15199 | exit (1); | |
15200 | fprintf (f, "%ld\n", i); | |
15201 | } | |
15202 | else | |
15203 | { | |
15204 | unsigned long i = ulongval (); | |
15205 | if (i != ((long) (sizeof (short)))) | |
15206 | exit (1); | |
15207 | fprintf (f, "%lu\n", i); | |
15208 | } | |
15209 | exit (ferror (f) || fclose (f) != 0); | |
15210 | ||
15211 | ; | |
15212 | return 0; | |
15213 | } | |
15214 | _ACEOF | |
15215 | rm -f conftest$ac_exeext | |
15216 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15217 | (eval $ac_link) 2>&5 | |
15218 | ac_status=$? | |
15219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15220 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15221 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15222 | (eval $ac_try) 2>&5 | |
15223 | ac_status=$? | |
15224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15225 | (exit $ac_status); }; }; then | |
15226 | ac_cv_sizeof_short=`cat conftest.val` | |
15227 | else | |
15228 | echo "$as_me: program exited with status $ac_status" >&5 | |
15229 | echo "$as_me: failed program was:" >&5 | |
15230 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15231 | ||
15232 | ( exit $ac_status ) | |
15233 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
15234 | See \`config.log' for more details." >&5 | |
15235 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
15236 | See \`config.log' for more details." >&2;} | |
15237 | { (exit 1); exit 1; }; } | |
15238 | fi | |
15239 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15240 | fi | |
15241 | fi | |
15242 | rm -f conftest.val | |
15243 | else | |
15244 | ac_cv_sizeof_short=0 | |
15245 | fi | |
15246 | fi | |
15247 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
15248 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
15249 | cat >>confdefs.h <<_ACEOF | |
15250 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
15251 | _ACEOF | |
15252 | ||
15253 | ||
15254 | echo "$as_me:$LINENO: checking for char" >&5 | |
15255 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
15256 | if test "${ac_cv_type_char+set}" = set; then | |
15257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15258 | else | |
15259 | cat >conftest.$ac_ext <<_ACEOF | |
15260 | /* confdefs.h. */ | |
15261 | _ACEOF | |
15262 | cat confdefs.h >>conftest.$ac_ext | |
15263 | cat >>conftest.$ac_ext <<_ACEOF | |
15264 | /* end confdefs.h. */ | |
15265 | $ac_includes_default | |
15266 | int | |
15267 | main () | |
15268 | { | |
15269 | if ((char *) 0) | |
15270 | return 0; | |
15271 | if (sizeof (char)) | |
15272 | return 0; | |
15273 | ; | |
15274 | return 0; | |
15275 | } | |
15276 | _ACEOF | |
15277 | rm -f conftest.$ac_objext | |
15278 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15279 | (eval $ac_compile) 2>conftest.er1 | |
15280 | ac_status=$? | |
15281 | grep -v '^ *+' conftest.er1 >conftest.err | |
15282 | rm -f conftest.er1 | |
15283 | cat conftest.err >&5 | |
15284 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15285 | (exit $ac_status); } && | |
15286 | { ac_try='test -z "$ac_c_werror_flag" | |
15287 | || test ! -s conftest.err' | |
15288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15289 | (eval $ac_try) 2>&5 | |
15290 | ac_status=$? | |
15291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15292 | (exit $ac_status); }; } && | |
15293 | { ac_try='test -s conftest.$ac_objext' | |
15294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15295 | (eval $ac_try) 2>&5 | |
15296 | ac_status=$? | |
15297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15298 | (exit $ac_status); }; }; then | |
15299 | ac_cv_type_char=yes | |
15300 | else | |
15301 | echo "$as_me: failed program was:" >&5 | |
15302 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15303 | ||
15304 | ac_cv_type_char=no | |
15305 | fi | |
15306 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15307 | fi | |
15308 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
15309 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
15310 | ||
15311 | echo "$as_me:$LINENO: checking size of char" >&5 | |
15312 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
15313 | if test "${ac_cv_sizeof_char+set}" = set; then | |
15314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15315 | else | |
15316 | if test "$ac_cv_type_char" = yes; then | |
15317 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15318 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15319 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15320 | # This bug is HP SR number 8606223364. | |
15321 | if test "$cross_compiling" = yes; then | |
15322 | # Depending upon the size, compute the lo and hi bounds. | |
15323 | cat >conftest.$ac_ext <<_ACEOF | |
15324 | /* confdefs.h. */ | |
15325 | _ACEOF | |
15326 | cat confdefs.h >>conftest.$ac_ext | |
15327 | cat >>conftest.$ac_ext <<_ACEOF | |
15328 | /* end confdefs.h. */ | |
15329 | $ac_includes_default | |
15330 | int | |
15331 | main () | |
15332 | { | |
15333 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
15334 | test_array [0] = 0 | |
15335 | ||
15336 | ; | |
15337 | return 0; | |
15338 | } | |
15339 | _ACEOF | |
15340 | rm -f conftest.$ac_objext | |
15341 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15342 | (eval $ac_compile) 2>conftest.er1 | |
15343 | ac_status=$? | |
15344 | grep -v '^ *+' conftest.er1 >conftest.err | |
15345 | rm -f conftest.er1 | |
15346 | cat conftest.err >&5 | |
15347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15348 | (exit $ac_status); } && | |
15349 | { ac_try='test -z "$ac_c_werror_flag" | |
15350 | || test ! -s conftest.err' | |
15351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15352 | (eval $ac_try) 2>&5 | |
15353 | ac_status=$? | |
15354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15355 | (exit $ac_status); }; } && | |
15356 | { ac_try='test -s conftest.$ac_objext' | |
15357 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15358 | (eval $ac_try) 2>&5 | |
15359 | ac_status=$? | |
15360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15361 | (exit $ac_status); }; }; then | |
15362 | ac_lo=0 ac_mid=0 | |
15363 | while :; do | |
15364 | cat >conftest.$ac_ext <<_ACEOF | |
15365 | /* confdefs.h. */ | |
15366 | _ACEOF | |
15367 | cat confdefs.h >>conftest.$ac_ext | |
15368 | cat >>conftest.$ac_ext <<_ACEOF | |
15369 | /* end confdefs.h. */ | |
15370 | $ac_includes_default | |
15371 | int | |
15372 | main () | |
15373 | { | |
15374 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
15375 | test_array [0] = 0 | |
15376 | ||
15377 | ; | |
15378 | return 0; | |
15379 | } | |
15380 | _ACEOF | |
15381 | rm -f conftest.$ac_objext | |
15382 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15383 | (eval $ac_compile) 2>conftest.er1 | |
15384 | ac_status=$? | |
15385 | grep -v '^ *+' conftest.er1 >conftest.err | |
15386 | rm -f conftest.er1 | |
15387 | cat conftest.err >&5 | |
15388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15389 | (exit $ac_status); } && | |
15390 | { ac_try='test -z "$ac_c_werror_flag" | |
15391 | || test ! -s conftest.err' | |
15392 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15393 | (eval $ac_try) 2>&5 | |
15394 | ac_status=$? | |
15395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15396 | (exit $ac_status); }; } && | |
15397 | { ac_try='test -s conftest.$ac_objext' | |
15398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15399 | (eval $ac_try) 2>&5 | |
15400 | ac_status=$? | |
15401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15402 | (exit $ac_status); }; }; then | |
15403 | ac_hi=$ac_mid; break | |
15404 | else | |
15405 | echo "$as_me: failed program was:" >&5 | |
15406 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15407 | ||
15408 | ac_lo=`expr $ac_mid + 1` | |
15409 | if test $ac_lo -le $ac_mid; then | |
15410 | ac_lo= ac_hi= | |
15411 | break | |
15412 | fi | |
15413 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
15414 | fi | |
15415 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15416 | done | |
15417 | else | |
15418 | echo "$as_me: failed program was:" >&5 | |
15419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15420 | ||
15421 | cat >conftest.$ac_ext <<_ACEOF | |
15422 | /* confdefs.h. */ | |
15423 | _ACEOF | |
15424 | cat confdefs.h >>conftest.$ac_ext | |
15425 | cat >>conftest.$ac_ext <<_ACEOF | |
15426 | /* end confdefs.h. */ | |
15427 | $ac_includes_default | |
15428 | int | |
15429 | main () | |
15430 | { | |
15431 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
15432 | test_array [0] = 0 | |
15433 | ||
15434 | ; | |
15435 | return 0; | |
15436 | } | |
15437 | _ACEOF | |
15438 | rm -f conftest.$ac_objext | |
15439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15440 | (eval $ac_compile) 2>conftest.er1 | |
15441 | ac_status=$? | |
15442 | grep -v '^ *+' conftest.er1 >conftest.err | |
15443 | rm -f conftest.er1 | |
15444 | cat conftest.err >&5 | |
15445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15446 | (exit $ac_status); } && | |
15447 | { ac_try='test -z "$ac_c_werror_flag" | |
15448 | || test ! -s conftest.err' | |
15449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15450 | (eval $ac_try) 2>&5 | |
15451 | ac_status=$? | |
15452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15453 | (exit $ac_status); }; } && | |
15454 | { ac_try='test -s conftest.$ac_objext' | |
15455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15456 | (eval $ac_try) 2>&5 | |
15457 | ac_status=$? | |
15458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15459 | (exit $ac_status); }; }; then | |
15460 | ac_hi=-1 ac_mid=-1 | |
15461 | while :; do | |
15462 | cat >conftest.$ac_ext <<_ACEOF | |
15463 | /* confdefs.h. */ | |
15464 | _ACEOF | |
15465 | cat confdefs.h >>conftest.$ac_ext | |
15466 | cat >>conftest.$ac_ext <<_ACEOF | |
15467 | /* end confdefs.h. */ | |
15468 | $ac_includes_default | |
15469 | int | |
15470 | main () | |
15471 | { | |
15472 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
15473 | test_array [0] = 0 | |
15474 | ||
15475 | ; | |
15476 | return 0; | |
15477 | } | |
15478 | _ACEOF | |
15479 | rm -f conftest.$ac_objext | |
15480 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15481 | (eval $ac_compile) 2>conftest.er1 | |
15482 | ac_status=$? | |
15483 | grep -v '^ *+' conftest.er1 >conftest.err | |
15484 | rm -f conftest.er1 | |
15485 | cat conftest.err >&5 | |
15486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15487 | (exit $ac_status); } && | |
15488 | { ac_try='test -z "$ac_c_werror_flag" | |
15489 | || test ! -s conftest.err' | |
15490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15491 | (eval $ac_try) 2>&5 | |
15492 | ac_status=$? | |
15493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15494 | (exit $ac_status); }; } && | |
15495 | { ac_try='test -s conftest.$ac_objext' | |
15496 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15497 | (eval $ac_try) 2>&5 | |
15498 | ac_status=$? | |
15499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15500 | (exit $ac_status); }; }; then | |
15501 | ac_lo=$ac_mid; break | |
15502 | else | |
15503 | echo "$as_me: failed program was:" >&5 | |
15504 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15505 | ||
15506 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15507 | if test $ac_mid -le $ac_hi; then | |
15508 | ac_lo= ac_hi= | |
15509 | break | |
15510 | fi | |
15511 | ac_mid=`expr 2 '*' $ac_mid` | |
15512 | fi | |
15513 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15514 | done | |
15515 | else | |
15516 | echo "$as_me: failed program was:" >&5 | |
15517 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15518 | ||
15519 | ac_lo= ac_hi= | |
15520 | fi | |
15521 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15522 | fi | |
15523 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15524 | # Binary search between lo and hi bounds. | |
15525 | while test "x$ac_lo" != "x$ac_hi"; do | |
15526 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15527 | cat >conftest.$ac_ext <<_ACEOF | |
15528 | /* confdefs.h. */ | |
15529 | _ACEOF | |
15530 | cat confdefs.h >>conftest.$ac_ext | |
15531 | cat >>conftest.$ac_ext <<_ACEOF | |
15532 | /* end confdefs.h. */ | |
15533 | $ac_includes_default | |
15534 | int | |
15535 | main () | |
15536 | { | |
15537 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
15538 | test_array [0] = 0 | |
15539 | ||
15540 | ; | |
15541 | return 0; | |
15542 | } | |
15543 | _ACEOF | |
15544 | rm -f conftest.$ac_objext | |
15545 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15546 | (eval $ac_compile) 2>conftest.er1 | |
15547 | ac_status=$? | |
15548 | grep -v '^ *+' conftest.er1 >conftest.err | |
15549 | rm -f conftest.er1 | |
15550 | cat conftest.err >&5 | |
15551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15552 | (exit $ac_status); } && | |
15553 | { ac_try='test -z "$ac_c_werror_flag" | |
15554 | || test ! -s conftest.err' | |
15555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15556 | (eval $ac_try) 2>&5 | |
15557 | ac_status=$? | |
15558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15559 | (exit $ac_status); }; } && | |
15560 | { ac_try='test -s conftest.$ac_objext' | |
15561 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15562 | (eval $ac_try) 2>&5 | |
15563 | ac_status=$? | |
15564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15565 | (exit $ac_status); }; }; then | |
15566 | ac_hi=$ac_mid | |
15567 | else | |
15568 | echo "$as_me: failed program was:" >&5 | |
15569 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15570 | ||
15571 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15572 | fi | |
15573 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15574 | done | |
15575 | case $ac_lo in | |
15576 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
15577 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
15578 | See \`config.log' for more details." >&5 | |
15579 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
15580 | See \`config.log' for more details." >&2;} | |
15581 | { (exit 1); exit 1; }; } ;; | |
15582 | esac | |
15583 | else | |
15584 | if test "$cross_compiling" = yes; then | |
15585 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15586 | See \`config.log' for more details." >&5 | |
15587 | echo "$as_me: error: cannot run test program while cross compiling | |
15588 | See \`config.log' for more details." >&2;} | |
15589 | { (exit 1); exit 1; }; } | |
15590 | else | |
15591 | cat >conftest.$ac_ext <<_ACEOF | |
15592 | /* confdefs.h. */ | |
15593 | _ACEOF | |
15594 | cat confdefs.h >>conftest.$ac_ext | |
15595 | cat >>conftest.$ac_ext <<_ACEOF | |
15596 | /* end confdefs.h. */ | |
15597 | $ac_includes_default | |
15598 | long longval () { return (long) (sizeof (char)); } | |
15599 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
15600 | #include <stdio.h> | |
15601 | #include <stdlib.h> | |
15602 | int | |
15603 | main () | |
15604 | { | |
15605 | ||
15606 | FILE *f = fopen ("conftest.val", "w"); | |
15607 | if (! f) | |
15608 | exit (1); | |
15609 | if (((long) (sizeof (char))) < 0) | |
15610 | { | |
15611 | long i = longval (); | |
15612 | if (i != ((long) (sizeof (char)))) | |
15613 | exit (1); | |
15614 | fprintf (f, "%ld\n", i); | |
15615 | } | |
15616 | else | |
15617 | { | |
15618 | unsigned long i = ulongval (); | |
15619 | if (i != ((long) (sizeof (char)))) | |
15620 | exit (1); | |
15621 | fprintf (f, "%lu\n", i); | |
15622 | } | |
15623 | exit (ferror (f) || fclose (f) != 0); | |
15624 | ||
15625 | ; | |
15626 | return 0; | |
15627 | } | |
15628 | _ACEOF | |
15629 | rm -f conftest$ac_exeext | |
15630 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15631 | (eval $ac_link) 2>&5 | |
15632 | ac_status=$? | |
15633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15634 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15636 | (eval $ac_try) 2>&5 | |
15637 | ac_status=$? | |
15638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15639 | (exit $ac_status); }; }; then | |
15640 | ac_cv_sizeof_char=`cat conftest.val` | |
15641 | else | |
15642 | echo "$as_me: program exited with status $ac_status" >&5 | |
15643 | echo "$as_me: failed program was:" >&5 | |
15644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15645 | ||
15646 | ( exit $ac_status ) | |
15647 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
15648 | See \`config.log' for more details." >&5 | |
15649 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
15650 | See \`config.log' for more details." >&2;} | |
15651 | { (exit 1); exit 1; }; } | |
15652 | fi | |
15653 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15654 | fi | |
15655 | fi | |
15656 | rm -f conftest.val | |
15657 | else | |
15658 | ac_cv_sizeof_char=0 | |
15659 | fi | |
15660 | fi | |
15661 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
15662 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
15663 | cat >>confdefs.h <<_ACEOF | |
15664 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
15665 | _ACEOF | |
15666 | ||
15667 | ||
15668 | ||
15669 | echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5 | |
15670 | echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6 | |
15671 | case "$ac_cv_sizeof_char" in | |
15672 | 1) acx_cv_type_int8_t=char ;; | |
15673 | *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5 | |
15674 | echo "$as_me: error: no 8-bit type" >&2;} | |
15675 | { (exit please report a bug); exit please report a bug; }; } | |
15676 | esac | |
15677 | echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5 | |
15678 | echo "${ECHO_T}$acx_cv_type_int8_t" >&6 | |
15679 | ||
15680 | echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5 | |
15681 | echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6 | |
15682 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
15683 | 2:*) acx_cv_type_int16_t=int ;; | |
15684 | *:2) acx_cv_type_int16_t=short ;; | |
15685 | *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5 | |
15686 | echo "$as_me: error: no 16-bit type" >&2;} | |
15687 | { (exit please report a bug); exit please report a bug; }; } | |
15688 | esac | |
15689 | echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5 | |
15690 | echo "${ECHO_T}$acx_cv_type_int16_t" >&6 | |
15691 | ||
15692 | echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5 | |
15693 | echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6 | |
15694 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
15695 | 4:*) acx_cv_type_int32_t=int ;; | |
15696 | *:4) acx_cv_type_int32_t=long ;; | |
15697 | *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5 | |
15698 | echo "$as_me: error: no 32-bit type" >&2;} | |
15699 | { (exit please report a bug); exit please report a bug; }; } | |
15700 | esac | |
15701 | echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5 | |
15702 | echo "${ECHO_T}$acx_cv_type_int32_t" >&6 | |
15703 | fi | |
15704 | ||
15705 | # These tests are here to make the output prettier | |
15706 | ||
15707 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then | |
15708 | case "$ac_cv_sizeof_long" in | |
15709 | 8) acx_cv_type_int64_t=long ;; | |
15710 | esac | |
15711 | echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5 | |
15712 | echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6 | |
15713 | echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
15714 | echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6 | |
15715 | fi | |
15716 | ||
15717 | # Now we can use the above types | |
15718 | ||
15719 | if test "$ac_cv_type_uintptr_t" != yes; then | |
15720 | echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5 | |
15721 | echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6 | |
15722 | case $ac_cv_sizeof_void_p in | |
15723 | 2) acx_cv_type_intptr_t=int16_t ;; | |
15724 | 4) acx_cv_type_intptr_t=int32_t ;; | |
15725 | 8) acx_cv_type_intptr_t=int64_t ;; | |
15726 | *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5 | |
15727 | echo "$as_me: error: no equivalent for intptr_t" >&2;} | |
15728 | { (exit please report a bug); exit please report a bug; }; } | |
15729 | esac | |
15730 | echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5 | |
15731 | echo "${ECHO_T}$acx_cv_type_intptr_t" >&6 | |
15732 | fi | |
15733 | ||
15734 | # ----------------- done all checks, emit header ------------- | |
15735 | ac_config_commands="$ac_config_commands bfd_stdint.h" | |
15736 | ||
15737 | ||
15738 | ||
2ba49b59 KC |
15739 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
15740 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
15741 | if test "${ac_cv_header_time+set}" = set; then | |
15742 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15743 | else | |
15744 | cat >conftest.$ac_ext <<_ACEOF | |
15745 | /* confdefs.h. */ | |
15746 | _ACEOF | |
15747 | cat confdefs.h >>conftest.$ac_ext | |
15748 | cat >>conftest.$ac_ext <<_ACEOF | |
15749 | /* end confdefs.h. */ | |
15750 | #include <sys/types.h> | |
15751 | #include <sys/time.h> | |
15752 | #include <time.h> | |
15753 | ||
15754 | int | |
15755 | main () | |
15756 | { | |
15757 | if ((struct tm *) 0) | |
15758 | return 0; | |
15759 | ; | |
15760 | return 0; | |
15761 | } | |
15762 | _ACEOF | |
15763 | rm -f conftest.$ac_objext | |
15764 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15765 | (eval $ac_compile) 2>conftest.er1 | |
15766 | ac_status=$? | |
15767 | grep -v '^ *+' conftest.er1 >conftest.err | |
15768 | rm -f conftest.er1 | |
15769 | cat conftest.err >&5 | |
15770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15771 | (exit $ac_status); } && | |
49c96104 SE |
15772 | { ac_try='test -z "$ac_c_werror_flag" |
15773 | || test ! -s conftest.err' | |
2ba49b59 KC |
15774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15775 | (eval $ac_try) 2>&5 | |
15776 | ac_status=$? | |
15777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15778 | (exit $ac_status); }; } && | |
15779 | { ac_try='test -s conftest.$ac_objext' | |
15780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15781 | (eval $ac_try) 2>&5 | |
15782 | ac_status=$? | |
15783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15784 | (exit $ac_status); }; }; then | |
15785 | ac_cv_header_time=yes | |
15786 | else | |
15787 | echo "$as_me: failed program was:" >&5 | |
15788 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15789 | ||
15790 | ac_cv_header_time=no | |
15791 | fi | |
15792 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15793 | fi | |
15794 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | |
15795 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
15796 | if test $ac_cv_header_time = yes; then | |
15797 | ||
15798 | cat >>confdefs.h <<\_ACEOF | |
15799 | #define TIME_WITH_SYS_TIME 1 | |
15800 | _ACEOF | |
15801 | ||
15802 | fi | |
15803 | ||
15804 | ||
15805 | ||
15806 | ||
15807 | ||
15808 | ||
15809 | ac_header_dirent=no | |
15810 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
15811 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
15812 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
15813 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
15814 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
15815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15816 | else | |
15817 | cat >conftest.$ac_ext <<_ACEOF | |
15818 | /* confdefs.h. */ | |
15819 | _ACEOF | |
15820 | cat confdefs.h >>conftest.$ac_ext | |
15821 | cat >>conftest.$ac_ext <<_ACEOF | |
15822 | /* end confdefs.h. */ | |
15823 | #include <sys/types.h> | |
15824 | #include <$ac_hdr> | |
15825 | ||
15826 | int | |
15827 | main () | |
15828 | { | |
15829 | if ((DIR *) 0) | |
15830 | return 0; | |
15831 | ; | |
15832 | return 0; | |
15833 | } | |
15834 | _ACEOF | |
15835 | rm -f conftest.$ac_objext | |
15836 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15837 | (eval $ac_compile) 2>conftest.er1 | |
15838 | ac_status=$? | |
15839 | grep -v '^ *+' conftest.er1 >conftest.err | |
15840 | rm -f conftest.er1 | |
15841 | cat conftest.err >&5 | |
15842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15843 | (exit $ac_status); } && | |
49c96104 SE |
15844 | { ac_try='test -z "$ac_c_werror_flag" |
15845 | || test ! -s conftest.err' | |
2ba49b59 KC |
15846 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15847 | (eval $ac_try) 2>&5 | |
15848 | ac_status=$? | |
15849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15850 | (exit $ac_status); }; } && | |
15851 | { ac_try='test -s conftest.$ac_objext' | |
15852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15853 | (eval $ac_try) 2>&5 | |
15854 | ac_status=$? | |
15855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15856 | (exit $ac_status); }; }; then | |
15857 | eval "$as_ac_Header=yes" | |
15858 | else | |
15859 | echo "$as_me: failed program was:" >&5 | |
15860 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15861 | ||
15862 | eval "$as_ac_Header=no" | |
15863 | fi | |
15864 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15865 | fi | |
15866 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
15867 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
15868 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
15869 | cat >>confdefs.h <<_ACEOF | |
15870 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
15871 | _ACEOF | |
15872 | ||
15873 | ac_header_dirent=$ac_hdr; break | |
15874 | fi | |
15875 | ||
15876 | done | |
15877 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
15878 | if test $ac_header_dirent = dirent.h; then | |
15879 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 | |
15880 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
15881 | if test "${ac_cv_search_opendir+set}" = set; then | |
15882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15883 | else | |
15884 | ac_func_search_save_LIBS=$LIBS | |
15885 | ac_cv_search_opendir=no | |
15886 | cat >conftest.$ac_ext <<_ACEOF | |
15887 | /* confdefs.h. */ | |
15888 | _ACEOF | |
15889 | cat confdefs.h >>conftest.$ac_ext | |
15890 | cat >>conftest.$ac_ext <<_ACEOF | |
15891 | /* end confdefs.h. */ | |
15892 | ||
15893 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15894 | #ifdef __cplusplus | |
15895 | extern "C" | |
15896 | #endif | |
15897 | /* We use char because int might match the return type of a gcc2 | |
15898 | builtin and then its argument prototype would still apply. */ | |
15899 | char opendir (); | |
15900 | int | |
15901 | main () | |
15902 | { | |
15903 | opendir (); | |
15904 | ; | |
15905 | return 0; | |
15906 | } | |
15907 | _ACEOF | |
15908 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15909 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15910 | (eval $ac_link) 2>conftest.er1 | |
15911 | ac_status=$? | |
15912 | grep -v '^ *+' conftest.er1 >conftest.err | |
15913 | rm -f conftest.er1 | |
15914 | cat conftest.err >&5 | |
15915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15916 | (exit $ac_status); } && | |
49c96104 SE |
15917 | { ac_try='test -z "$ac_c_werror_flag" |
15918 | || test ! -s conftest.err' | |
2ba49b59 KC |
15919 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15920 | (eval $ac_try) 2>&5 | |
15921 | ac_status=$? | |
15922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15923 | (exit $ac_status); }; } && | |
15924 | { ac_try='test -s conftest$ac_exeext' | |
15925 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15926 | (eval $ac_try) 2>&5 | |
15927 | ac_status=$? | |
15928 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15929 | (exit $ac_status); }; }; then | |
15930 | ac_cv_search_opendir="none required" | |
15931 | else | |
15932 | echo "$as_me: failed program was:" >&5 | |
15933 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15934 | ||
15935 | fi | |
15936 | rm -f conftest.err conftest.$ac_objext \ | |
15937 | conftest$ac_exeext conftest.$ac_ext | |
15938 | if test "$ac_cv_search_opendir" = no; then | |
15939 | for ac_lib in dir; do | |
15940 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
15941 | cat >conftest.$ac_ext <<_ACEOF | |
15942 | /* confdefs.h. */ | |
15943 | _ACEOF | |
15944 | cat confdefs.h >>conftest.$ac_ext | |
15945 | cat >>conftest.$ac_ext <<_ACEOF | |
15946 | /* end confdefs.h. */ | |
15947 | ||
15948 | /* Override any gcc2 internal prototype to avoid an error. */ | |
15949 | #ifdef __cplusplus | |
15950 | extern "C" | |
15951 | #endif | |
15952 | /* We use char because int might match the return type of a gcc2 | |
15953 | builtin and then its argument prototype would still apply. */ | |
15954 | char opendir (); | |
15955 | int | |
15956 | main () | |
15957 | { | |
15958 | opendir (); | |
15959 | ; | |
15960 | return 0; | |
15961 | } | |
15962 | _ACEOF | |
15963 | rm -f conftest.$ac_objext conftest$ac_exeext | |
15964 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15965 | (eval $ac_link) 2>conftest.er1 | |
15966 | ac_status=$? | |
15967 | grep -v '^ *+' conftest.er1 >conftest.err | |
15968 | rm -f conftest.er1 | |
15969 | cat conftest.err >&5 | |
15970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15971 | (exit $ac_status); } && | |
49c96104 SE |
15972 | { ac_try='test -z "$ac_c_werror_flag" |
15973 | || test ! -s conftest.err' | |
2ba49b59 KC |
15974 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15975 | (eval $ac_try) 2>&5 | |
15976 | ac_status=$? | |
15977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15978 | (exit $ac_status); }; } && | |
15979 | { ac_try='test -s conftest$ac_exeext' | |
15980 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15981 | (eval $ac_try) 2>&5 | |
15982 | ac_status=$? | |
15983 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15984 | (exit $ac_status); }; }; then | |
15985 | ac_cv_search_opendir="-l$ac_lib" | |
15986 | break | |
15987 | else | |
15988 | echo "$as_me: failed program was:" >&5 | |
15989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15990 | ||
15991 | fi | |
15992 | rm -f conftest.err conftest.$ac_objext \ | |
15993 | conftest$ac_exeext conftest.$ac_ext | |
15994 | done | |
15995 | fi | |
15996 | LIBS=$ac_func_search_save_LIBS | |
15997 | fi | |
15998 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
15999 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
16000 | if test "$ac_cv_search_opendir" != no; then | |
16001 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
16002 | ||
16003 | fi | |
16004 | ||
16005 | else | |
16006 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 | |
16007 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
16008 | if test "${ac_cv_search_opendir+set}" = set; then | |
16009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16010 | else | |
16011 | ac_func_search_save_LIBS=$LIBS | |
16012 | ac_cv_search_opendir=no | |
16013 | cat >conftest.$ac_ext <<_ACEOF | |
16014 | /* confdefs.h. */ | |
16015 | _ACEOF | |
16016 | cat confdefs.h >>conftest.$ac_ext | |
16017 | cat >>conftest.$ac_ext <<_ACEOF | |
16018 | /* end confdefs.h. */ | |
16019 | ||
16020 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16021 | #ifdef __cplusplus | |
16022 | extern "C" | |
16023 | #endif | |
16024 | /* We use char because int might match the return type of a gcc2 | |
16025 | builtin and then its argument prototype would still apply. */ | |
16026 | char opendir (); | |
16027 | int | |
16028 | main () | |
16029 | { | |
16030 | opendir (); | |
16031 | ; | |
16032 | return 0; | |
16033 | } | |
16034 | _ACEOF | |
16035 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16036 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16037 | (eval $ac_link) 2>conftest.er1 | |
16038 | ac_status=$? | |
16039 | grep -v '^ *+' conftest.er1 >conftest.err | |
16040 | rm -f conftest.er1 | |
16041 | cat conftest.err >&5 | |
16042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16043 | (exit $ac_status); } && | |
49c96104 SE |
16044 | { ac_try='test -z "$ac_c_werror_flag" |
16045 | || test ! -s conftest.err' | |
2ba49b59 KC |
16046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16047 | (eval $ac_try) 2>&5 | |
16048 | ac_status=$? | |
16049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16050 | (exit $ac_status); }; } && | |
16051 | { ac_try='test -s conftest$ac_exeext' | |
16052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16053 | (eval $ac_try) 2>&5 | |
16054 | ac_status=$? | |
16055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16056 | (exit $ac_status); }; }; then | |
16057 | ac_cv_search_opendir="none required" | |
16058 | else | |
16059 | echo "$as_me: failed program was:" >&5 | |
16060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16061 | ||
16062 | fi | |
16063 | rm -f conftest.err conftest.$ac_objext \ | |
16064 | conftest$ac_exeext conftest.$ac_ext | |
16065 | if test "$ac_cv_search_opendir" = no; then | |
16066 | for ac_lib in x; do | |
16067 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
16068 | cat >conftest.$ac_ext <<_ACEOF | |
16069 | /* confdefs.h. */ | |
16070 | _ACEOF | |
16071 | cat confdefs.h >>conftest.$ac_ext | |
16072 | cat >>conftest.$ac_ext <<_ACEOF | |
16073 | /* end confdefs.h. */ | |
16074 | ||
16075 | /* Override any gcc2 internal prototype to avoid an error. */ | |
16076 | #ifdef __cplusplus | |
16077 | extern "C" | |
16078 | #endif | |
16079 | /* We use char because int might match the return type of a gcc2 | |
16080 | builtin and then its argument prototype would still apply. */ | |
16081 | char opendir (); | |
16082 | int | |
16083 | main () | |
16084 | { | |
16085 | opendir (); | |
16086 | ; | |
16087 | return 0; | |
16088 | } | |
16089 | _ACEOF | |
16090 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16091 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16092 | (eval $ac_link) 2>conftest.er1 | |
16093 | ac_status=$? | |
16094 | grep -v '^ *+' conftest.er1 >conftest.err | |
16095 | rm -f conftest.er1 | |
16096 | cat conftest.err >&5 | |
16097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16098 | (exit $ac_status); } && | |
49c96104 SE |
16099 | { ac_try='test -z "$ac_c_werror_flag" |
16100 | || test ! -s conftest.err' | |
2ba49b59 KC |
16101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16102 | (eval $ac_try) 2>&5 | |
16103 | ac_status=$? | |
16104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16105 | (exit $ac_status); }; } && | |
16106 | { ac_try='test -s conftest$ac_exeext' | |
16107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16108 | (eval $ac_try) 2>&5 | |
16109 | ac_status=$? | |
16110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16111 | (exit $ac_status); }; }; then | |
16112 | ac_cv_search_opendir="-l$ac_lib" | |
16113 | break | |
16114 | else | |
16115 | echo "$as_me: failed program was:" >&5 | |
16116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16117 | ||
16118 | fi | |
16119 | rm -f conftest.err conftest.$ac_objext \ | |
16120 | conftest$ac_exeext conftest.$ac_ext | |
16121 | done | |
16122 | fi | |
16123 | LIBS=$ac_func_search_save_LIBS | |
16124 | fi | |
16125 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
16126 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
16127 | if test "$ac_cv_search_opendir" != no; then | |
16128 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
16129 | ||
16130 | fi | |
16131 | ||
16132 | fi | |
16133 | ||
16134 | echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5 | |
16135 | echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6 | |
16136 | if test "${gcc_cv_header_string+set}" = set; then | |
16137 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16138 | else | |
16139 | cat >conftest.$ac_ext <<_ACEOF | |
16140 | /* confdefs.h. */ | |
16141 | _ACEOF | |
16142 | cat confdefs.h >>conftest.$ac_ext | |
16143 | cat >>conftest.$ac_ext <<_ACEOF | |
16144 | /* end confdefs.h. */ | |
16145 | #include <string.h> | |
16146 | #include <strings.h> | |
16147 | int | |
16148 | main () | |
16149 | { | |
16150 | ||
16151 | ; | |
16152 | return 0; | |
16153 | } | |
16154 | _ACEOF | |
16155 | rm -f conftest.$ac_objext | |
16156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16157 | (eval $ac_compile) 2>conftest.er1 | |
16158 | ac_status=$? | |
16159 | grep -v '^ *+' conftest.er1 >conftest.err | |
16160 | rm -f conftest.er1 | |
16161 | cat conftest.err >&5 | |
16162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16163 | (exit $ac_status); } && | |
49c96104 SE |
16164 | { ac_try='test -z "$ac_c_werror_flag" |
16165 | || test ! -s conftest.err' | |
2ba49b59 KC |
16166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16167 | (eval $ac_try) 2>&5 | |
16168 | ac_status=$? | |
16169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16170 | (exit $ac_status); }; } && | |
16171 | { ac_try='test -s conftest.$ac_objext' | |
16172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16173 | (eval $ac_try) 2>&5 | |
16174 | ac_status=$? | |
16175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16176 | (exit $ac_status); }; }; then | |
16177 | gcc_cv_header_string=yes | |
16178 | else | |
16179 | echo "$as_me: failed program was:" >&5 | |
16180 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16181 | ||
16182 | gcc_cv_header_string=no | |
16183 | fi | |
16184 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16185 | fi | |
16186 | echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5 | |
16187 | echo "${ECHO_T}$gcc_cv_header_string" >&6 | |
16188 | if test $gcc_cv_header_string = yes; then | |
16189 | ||
16190 | cat >>confdefs.h <<\_ACEOF | |
16191 | #define STRING_WITH_STRINGS 1 | |
16192 | _ACEOF | |
16193 | ||
2e0fbf77 JW |
16194 | fi |
16195 | ||
5464f5a1 NN |
16196 | |
16197 | ||
16198 | ||
16199 | ||
16200 | ||
16201 | ||
16202 | ||
633fd09f | 16203 | for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid |
252b5132 | 16204 | do |
5464f5a1 NN |
16205 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16206 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16207 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16208 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
16209 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16210 | else | |
16211 | cat >conftest.$ac_ext <<_ACEOF | |
16212 | /* confdefs.h. */ | |
16213 | _ACEOF | |
16214 | cat confdefs.h >>conftest.$ac_ext | |
16215 | cat >>conftest.$ac_ext <<_ACEOF | |
16216 | /* end confdefs.h. */ | |
16217 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16218 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16219 | #define $ac_func innocuous_$ac_func | |
16220 | ||
252b5132 | 16221 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
16222 | which can conflict with char $ac_func (); below. |
16223 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16224 | <limits.h> exists even on freestanding compilers. */ | |
16225 | ||
16226 | #ifdef __STDC__ | |
16227 | # include <limits.h> | |
16228 | #else | |
16229 | # include <assert.h> | |
16230 | #endif | |
6be7c12c | 16231 | |
5464f5a1 | 16232 | #undef $ac_func |
252b5132 | 16233 | |
5464f5a1 NN |
16234 | /* Override any gcc2 internal prototype to avoid an error. */ |
16235 | #ifdef __cplusplus | |
16236 | extern "C" | |
16237 | { | |
16238 | #endif | |
16239 | /* We use char because int might match the return type of a gcc2 | |
16240 | builtin and then its argument prototype would still apply. */ | |
16241 | char $ac_func (); | |
252b5132 RH |
16242 | /* The GNU C library defines this for functions which it implements |
16243 | to always fail with ENOSYS. Some functions are actually named | |
16244 | something starting with __ and the normal name is an alias. */ | |
16245 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16246 | choke me | |
16247 | #else | |
5464f5a1 NN |
16248 | char (*f) () = $ac_func; |
16249 | #endif | |
16250 | #ifdef __cplusplus | |
16251 | } | |
252b5132 RH |
16252 | #endif |
16253 | ||
5464f5a1 NN |
16254 | int |
16255 | main () | |
16256 | { | |
16257 | return f != $ac_func; | |
16258 | ; | |
16259 | return 0; | |
16260 | } | |
16261 | _ACEOF | |
16262 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16263 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16264 | (eval $ac_link) 2>conftest.er1 | |
16265 | ac_status=$? | |
16266 | grep -v '^ *+' conftest.er1 >conftest.err | |
16267 | rm -f conftest.er1 | |
16268 | cat conftest.err >&5 | |
16269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16270 | (exit $ac_status); } && | |
49c96104 SE |
16271 | { ac_try='test -z "$ac_c_werror_flag" |
16272 | || test ! -s conftest.err' | |
5464f5a1 NN |
16273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16274 | (eval $ac_try) 2>&5 | |
16275 | ac_status=$? | |
16276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16277 | (exit $ac_status); }; } && | |
16278 | { ac_try='test -s conftest$ac_exeext' | |
16279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16280 | (eval $ac_try) 2>&5 | |
16281 | ac_status=$? | |
16282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16283 | (exit $ac_status); }; }; then | |
16284 | eval "$as_ac_var=yes" | |
16285 | else | |
16286 | echo "$as_me: failed program was:" >&5 | |
16287 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16288 | ||
16289 | eval "$as_ac_var=no" | |
16290 | fi | |
16291 | rm -f conftest.err conftest.$ac_objext \ | |
16292 | conftest$ac_exeext conftest.$ac_ext | |
16293 | fi | |
16294 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
16295 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
16296 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
16297 | cat >>confdefs.h <<_ACEOF | |
16298 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16299 | _ACEOF | |
252b5132 | 16300 | |
252b5132 RH |
16301 | fi |
16302 | done | |
16303 | ||
5464f5a1 | 16304 | |
49c97a80 ILT |
16305 | for ac_func in strtoull |
16306 | do | |
5464f5a1 NN |
16307 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
16308 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
16309 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
16310 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
16311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16312 | else | |
16313 | cat >conftest.$ac_ext <<_ACEOF | |
16314 | /* confdefs.h. */ | |
16315 | _ACEOF | |
16316 | cat confdefs.h >>conftest.$ac_ext | |
16317 | cat >>conftest.$ac_ext <<_ACEOF | |
16318 | /* end confdefs.h. */ | |
16319 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
16320 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
16321 | #define $ac_func innocuous_$ac_func | |
16322 | ||
49c97a80 | 16323 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
16324 | which can conflict with char $ac_func (); below. |
16325 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
16326 | <limits.h> exists even on freestanding compilers. */ | |
16327 | ||
16328 | #ifdef __STDC__ | |
16329 | # include <limits.h> | |
16330 | #else | |
16331 | # include <assert.h> | |
16332 | #endif | |
49c97a80 | 16333 | |
5464f5a1 | 16334 | #undef $ac_func |
49c97a80 | 16335 | |
5464f5a1 NN |
16336 | /* Override any gcc2 internal prototype to avoid an error. */ |
16337 | #ifdef __cplusplus | |
16338 | extern "C" | |
16339 | { | |
16340 | #endif | |
16341 | /* We use char because int might match the return type of a gcc2 | |
16342 | builtin and then its argument prototype would still apply. */ | |
16343 | char $ac_func (); | |
49c97a80 ILT |
16344 | /* The GNU C library defines this for functions which it implements |
16345 | to always fail with ENOSYS. Some functions are actually named | |
16346 | something starting with __ and the normal name is an alias. */ | |
16347 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
16348 | choke me | |
16349 | #else | |
5464f5a1 NN |
16350 | char (*f) () = $ac_func; |
16351 | #endif | |
16352 | #ifdef __cplusplus | |
16353 | } | |
49c97a80 ILT |
16354 | #endif |
16355 | ||
5464f5a1 NN |
16356 | int |
16357 | main () | |
16358 | { | |
16359 | return f != $ac_func; | |
16360 | ; | |
16361 | return 0; | |
16362 | } | |
16363 | _ACEOF | |
16364 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16365 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16366 | (eval $ac_link) 2>conftest.er1 | |
16367 | ac_status=$? | |
16368 | grep -v '^ *+' conftest.er1 >conftest.err | |
16369 | rm -f conftest.er1 | |
16370 | cat conftest.err >&5 | |
16371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16372 | (exit $ac_status); } && | |
49c96104 SE |
16373 | { ac_try='test -z "$ac_c_werror_flag" |
16374 | || test ! -s conftest.err' | |
5464f5a1 NN |
16375 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16376 | (eval $ac_try) 2>&5 | |
16377 | ac_status=$? | |
16378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16379 | (exit $ac_status); }; } && | |
16380 | { ac_try='test -s conftest$ac_exeext' | |
16381 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16382 | (eval $ac_try) 2>&5 | |
16383 | ac_status=$? | |
16384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16385 | (exit $ac_status); }; }; then | |
16386 | eval "$as_ac_var=yes" | |
16387 | else | |
16388 | echo "$as_me: failed program was:" >&5 | |
16389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16390 | ||
16391 | eval "$as_ac_var=no" | |
16392 | fi | |
16393 | rm -f conftest.err conftest.$ac_objext \ | |
16394 | conftest$ac_exeext conftest.$ac_ext | |
16395 | fi | |
16396 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
16397 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
16398 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
16399 | cat >>confdefs.h <<_ACEOF | |
16400 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
16401 | _ACEOF | |
49c97a80 | 16402 | |
49c97a80 ILT |
16403 | fi |
16404 | done | |
16405 | ||
6be7c12c | 16406 | |
2e9ebff5 JG |
16407 | echo "$as_me:$LINENO: checking whether basename is declared" >&5 |
16408 | echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6 | |
16409 | if test "${ac_cv_have_decl_basename+set}" = set; then | |
16410 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16411 | else | |
16412 | cat >conftest.$ac_ext <<_ACEOF | |
16413 | /* confdefs.h. */ | |
16414 | _ACEOF | |
16415 | cat confdefs.h >>conftest.$ac_ext | |
16416 | cat >>conftest.$ac_ext <<_ACEOF | |
16417 | /* end confdefs.h. */ | |
ec7b76fe | 16418 | $ac_includes_default |
2e9ebff5 JG |
16419 | int |
16420 | main () | |
16421 | { | |
16422 | #ifndef basename | |
16423 | char *p = (char *) basename; | |
16424 | #endif | |
16425 | ||
16426 | ; | |
16427 | return 0; | |
16428 | } | |
16429 | _ACEOF | |
16430 | rm -f conftest.$ac_objext | |
16431 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16432 | (eval $ac_compile) 2>conftest.er1 | |
16433 | ac_status=$? | |
16434 | grep -v '^ *+' conftest.er1 >conftest.err | |
16435 | rm -f conftest.er1 | |
16436 | cat conftest.err >&5 | |
16437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16438 | (exit $ac_status); } && | |
49c96104 SE |
16439 | { ac_try='test -z "$ac_c_werror_flag" |
16440 | || test ! -s conftest.err' | |
2e9ebff5 JG |
16441 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16442 | (eval $ac_try) 2>&5 | |
16443 | ac_status=$? | |
16444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16445 | (exit $ac_status); }; } && | |
16446 | { ac_try='test -s conftest.$ac_objext' | |
16447 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16448 | (eval $ac_try) 2>&5 | |
16449 | ac_status=$? | |
16450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16451 | (exit $ac_status); }; }; then | |
16452 | ac_cv_have_decl_basename=yes | |
16453 | else | |
16454 | echo "$as_me: failed program was:" >&5 | |
16455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16456 | ||
16457 | ac_cv_have_decl_basename=no | |
16458 | fi | |
16459 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16460 | fi | |
16461 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5 | |
16462 | echo "${ECHO_T}$ac_cv_have_decl_basename" >&6 | |
16463 | if test $ac_cv_have_decl_basename = yes; then | |
16464 | ||
16465 | cat >>confdefs.h <<_ACEOF | |
16466 | #define HAVE_DECL_BASENAME 1 | |
16467 | _ACEOF | |
16468 | ||
16469 | ||
16470 | else | |
16471 | cat >>confdefs.h <<_ACEOF | |
16472 | #define HAVE_DECL_BASENAME 0 | |
16473 | _ACEOF | |
16474 | ||
16475 | ||
16476 | fi | |
16477 | ||
16478 | ||
ec7b76fe JG |
16479 | echo "$as_me:$LINENO: checking whether ftello is declared" >&5 |
16480 | echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6 | |
16481 | if test "${ac_cv_have_decl_ftello+set}" = set; then | |
16482 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16483 | else | |
16484 | cat >conftest.$ac_ext <<_ACEOF | |
16485 | /* confdefs.h. */ | |
16486 | _ACEOF | |
16487 | cat confdefs.h >>conftest.$ac_ext | |
16488 | cat >>conftest.$ac_ext <<_ACEOF | |
16489 | /* end confdefs.h. */ | |
16490 | $ac_includes_default | |
16491 | int | |
16492 | main () | |
16493 | { | |
16494 | #ifndef ftello | |
16495 | char *p = (char *) ftello; | |
16496 | #endif | |
16497 | ||
16498 | ; | |
16499 | return 0; | |
16500 | } | |
16501 | _ACEOF | |
16502 | rm -f conftest.$ac_objext | |
16503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16504 | (eval $ac_compile) 2>conftest.er1 | |
16505 | ac_status=$? | |
16506 | grep -v '^ *+' conftest.er1 >conftest.err | |
16507 | rm -f conftest.er1 | |
16508 | cat conftest.err >&5 | |
16509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16510 | (exit $ac_status); } && | |
49c96104 SE |
16511 | { ac_try='test -z "$ac_c_werror_flag" |
16512 | || test ! -s conftest.err' | |
ec7b76fe JG |
16513 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16514 | (eval $ac_try) 2>&5 | |
16515 | ac_status=$? | |
16516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16517 | (exit $ac_status); }; } && | |
16518 | { ac_try='test -s conftest.$ac_objext' | |
16519 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16520 | (eval $ac_try) 2>&5 | |
16521 | ac_status=$? | |
16522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16523 | (exit $ac_status); }; }; then | |
16524 | ac_cv_have_decl_ftello=yes | |
16525 | else | |
16526 | echo "$as_me: failed program was:" >&5 | |
16527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16528 | ||
16529 | ac_cv_have_decl_ftello=no | |
16530 | fi | |
16531 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16532 | fi | |
16533 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5 | |
16534 | echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6 | |
16535 | if test $ac_cv_have_decl_ftello = yes; then | |
16536 | ||
16537 | cat >>confdefs.h <<_ACEOF | |
16538 | #define HAVE_DECL_FTELLO 1 | |
16539 | _ACEOF | |
16540 | ||
16541 | ||
16542 | else | |
16543 | cat >>confdefs.h <<_ACEOF | |
16544 | #define HAVE_DECL_FTELLO 0 | |
16545 | _ACEOF | |
16546 | ||
16547 | ||
16548 | fi | |
16549 | ||
16550 | ||
16551 | echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5 | |
16552 | echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6 | |
16553 | if test "${ac_cv_have_decl_ftello64+set}" = set; then | |
16554 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16555 | else | |
16556 | cat >conftest.$ac_ext <<_ACEOF | |
16557 | /* confdefs.h. */ | |
16558 | _ACEOF | |
16559 | cat confdefs.h >>conftest.$ac_ext | |
16560 | cat >>conftest.$ac_ext <<_ACEOF | |
16561 | /* end confdefs.h. */ | |
16562 | $ac_includes_default | |
16563 | int | |
16564 | main () | |
16565 | { | |
16566 | #ifndef ftello64 | |
16567 | char *p = (char *) ftello64; | |
16568 | #endif | |
16569 | ||
16570 | ; | |
16571 | return 0; | |
16572 | } | |
16573 | _ACEOF | |
16574 | rm -f conftest.$ac_objext | |
16575 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16576 | (eval $ac_compile) 2>conftest.er1 | |
16577 | ac_status=$? | |
16578 | grep -v '^ *+' conftest.er1 >conftest.err | |
16579 | rm -f conftest.er1 | |
16580 | cat conftest.err >&5 | |
16581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16582 | (exit $ac_status); } && | |
49c96104 SE |
16583 | { ac_try='test -z "$ac_c_werror_flag" |
16584 | || test ! -s conftest.err' | |
ec7b76fe JG |
16585 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16586 | (eval $ac_try) 2>&5 | |
16587 | ac_status=$? | |
16588 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16589 | (exit $ac_status); }; } && | |
16590 | { ac_try='test -s conftest.$ac_objext' | |
16591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16592 | (eval $ac_try) 2>&5 | |
16593 | ac_status=$? | |
16594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16595 | (exit $ac_status); }; }; then | |
16596 | ac_cv_have_decl_ftello64=yes | |
16597 | else | |
16598 | echo "$as_me: failed program was:" >&5 | |
16599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16600 | ||
16601 | ac_cv_have_decl_ftello64=no | |
16602 | fi | |
16603 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16604 | fi | |
16605 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5 | |
16606 | echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6 | |
16607 | if test $ac_cv_have_decl_ftello64 = yes; then | |
16608 | ||
16609 | cat >>confdefs.h <<_ACEOF | |
16610 | #define HAVE_DECL_FTELLO64 1 | |
16611 | _ACEOF | |
16612 | ||
16613 | ||
16614 | else | |
16615 | cat >>confdefs.h <<_ACEOF | |
16616 | #define HAVE_DECL_FTELLO64 0 | |
16617 | _ACEOF | |
16618 | ||
16619 | ||
16620 | fi | |
16621 | ||
16622 | ||
16623 | echo "$as_me:$LINENO: checking whether fseeko is declared" >&5 | |
16624 | echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6 | |
16625 | if test "${ac_cv_have_decl_fseeko+set}" = set; then | |
16626 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16627 | else | |
16628 | cat >conftest.$ac_ext <<_ACEOF | |
16629 | /* confdefs.h. */ | |
16630 | _ACEOF | |
16631 | cat confdefs.h >>conftest.$ac_ext | |
16632 | cat >>conftest.$ac_ext <<_ACEOF | |
16633 | /* end confdefs.h. */ | |
16634 | $ac_includes_default | |
16635 | int | |
16636 | main () | |
16637 | { | |
16638 | #ifndef fseeko | |
16639 | char *p = (char *) fseeko; | |
16640 | #endif | |
16641 | ||
16642 | ; | |
16643 | return 0; | |
16644 | } | |
16645 | _ACEOF | |
16646 | rm -f conftest.$ac_objext | |
16647 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16648 | (eval $ac_compile) 2>conftest.er1 | |
16649 | ac_status=$? | |
16650 | grep -v '^ *+' conftest.er1 >conftest.err | |
16651 | rm -f conftest.er1 | |
16652 | cat conftest.err >&5 | |
16653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16654 | (exit $ac_status); } && | |
49c96104 SE |
16655 | { ac_try='test -z "$ac_c_werror_flag" |
16656 | || test ! -s conftest.err' | |
ec7b76fe JG |
16657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16658 | (eval $ac_try) 2>&5 | |
16659 | ac_status=$? | |
16660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16661 | (exit $ac_status); }; } && | |
16662 | { ac_try='test -s conftest.$ac_objext' | |
16663 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16664 | (eval $ac_try) 2>&5 | |
16665 | ac_status=$? | |
16666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16667 | (exit $ac_status); }; }; then | |
16668 | ac_cv_have_decl_fseeko=yes | |
16669 | else | |
16670 | echo "$as_me: failed program was:" >&5 | |
16671 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16672 | ||
16673 | ac_cv_have_decl_fseeko=no | |
16674 | fi | |
16675 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16676 | fi | |
16677 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5 | |
16678 | echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6 | |
16679 | if test $ac_cv_have_decl_fseeko = yes; then | |
16680 | ||
16681 | cat >>confdefs.h <<_ACEOF | |
16682 | #define HAVE_DECL_FSEEKO 1 | |
16683 | _ACEOF | |
16684 | ||
16685 | ||
16686 | else | |
16687 | cat >>confdefs.h <<_ACEOF | |
16688 | #define HAVE_DECL_FSEEKO 0 | |
16689 | _ACEOF | |
16690 | ||
16691 | ||
16692 | fi | |
16693 | ||
16694 | ||
16695 | echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5 | |
16696 | echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6 | |
16697 | if test "${ac_cv_have_decl_fseeko64+set}" = set; then | |
16698 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16699 | else | |
16700 | cat >conftest.$ac_ext <<_ACEOF | |
16701 | /* confdefs.h. */ | |
16702 | _ACEOF | |
16703 | cat confdefs.h >>conftest.$ac_ext | |
16704 | cat >>conftest.$ac_ext <<_ACEOF | |
16705 | /* end confdefs.h. */ | |
16706 | $ac_includes_default | |
16707 | int | |
16708 | main () | |
16709 | { | |
16710 | #ifndef fseeko64 | |
16711 | char *p = (char *) fseeko64; | |
16712 | #endif | |
16713 | ||
16714 | ; | |
16715 | return 0; | |
16716 | } | |
16717 | _ACEOF | |
16718 | rm -f conftest.$ac_objext | |
16719 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16720 | (eval $ac_compile) 2>conftest.er1 | |
16721 | ac_status=$? | |
16722 | grep -v '^ *+' conftest.er1 >conftest.err | |
16723 | rm -f conftest.er1 | |
16724 | cat conftest.err >&5 | |
16725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16726 | (exit $ac_status); } && | |
49c96104 SE |
16727 | { ac_try='test -z "$ac_c_werror_flag" |
16728 | || test ! -s conftest.err' | |
ec7b76fe JG |
16729 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16730 | (eval $ac_try) 2>&5 | |
16731 | ac_status=$? | |
16732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16733 | (exit $ac_status); }; } && | |
16734 | { ac_try='test -s conftest.$ac_objext' | |
16735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16736 | (eval $ac_try) 2>&5 | |
16737 | ac_status=$? | |
16738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16739 | (exit $ac_status); }; }; then | |
16740 | ac_cv_have_decl_fseeko64=yes | |
16741 | else | |
16742 | echo "$as_me: failed program was:" >&5 | |
16743 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16744 | ||
16745 | ac_cv_have_decl_fseeko64=no | |
16746 | fi | |
16747 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16748 | fi | |
16749 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5 | |
16750 | echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6 | |
16751 | if test $ac_cv_have_decl_fseeko64 = yes; then | |
16752 | ||
16753 | cat >>confdefs.h <<_ACEOF | |
16754 | #define HAVE_DECL_FSEEKO64 1 | |
16755 | _ACEOF | |
16756 | ||
16757 | ||
16758 | else | |
16759 | cat >>confdefs.h <<_ACEOF | |
16760 | #define HAVE_DECL_FSEEKO64 0 | |
16761 | _ACEOF | |
16762 | ||
16763 | ||
16764 | fi | |
16765 | ||
16766 | ||
2e9ebff5 | 16767 | |
6be7c12c | 16768 | |
252b5132 | 16769 | case "${host}" in |
855b0be7 | 16770 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) |
5464f5a1 NN |
16771 | |
16772 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 16773 | #define USE_BINARY_FOPEN 1 |
5464f5a1 | 16774 | _ACEOF |
252b5132 RH |
16775 | ;; |
16776 | esac | |
16777 | ||
d34a2b1d JG |
16778 | echo "$as_me:$LINENO: checking whether ffs is declared" >&5 |
16779 | echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6 | |
16780 | if test "${ac_cv_have_decl_ffs+set}" = set; then | |
5464f5a1 | 16781 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 16782 | else |
5464f5a1 NN |
16783 | cat >conftest.$ac_ext <<_ACEOF |
16784 | /* confdefs.h. */ | |
16785 | _ACEOF | |
16786 | cat confdefs.h >>conftest.$ac_ext | |
16787 | cat >>conftest.$ac_ext <<_ACEOF | |
16788 | /* end confdefs.h. */ | |
d34a2b1d | 16789 | $ac_includes_default |
5464f5a1 NN |
16790 | int |
16791 | main () | |
16792 | { | |
d34a2b1d JG |
16793 | #ifndef ffs |
16794 | char *p = (char *) ffs; | |
16795 | #endif | |
16796 | ||
5464f5a1 NN |
16797 | ; |
16798 | return 0; | |
16799 | } | |
16800 | _ACEOF | |
16801 | rm -f conftest.$ac_objext | |
16802 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16803 | (eval $ac_compile) 2>conftest.er1 | |
16804 | ac_status=$? | |
16805 | grep -v '^ *+' conftest.er1 >conftest.err | |
16806 | rm -f conftest.er1 | |
16807 | cat conftest.err >&5 | |
16808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16809 | (exit $ac_status); } && | |
49c96104 SE |
16810 | { ac_try='test -z "$ac_c_werror_flag" |
16811 | || test ! -s conftest.err' | |
5464f5a1 NN |
16812 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16813 | (eval $ac_try) 2>&5 | |
16814 | ac_status=$? | |
16815 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16816 | (exit $ac_status); }; } && | |
16817 | { ac_try='test -s conftest.$ac_objext' | |
16818 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16819 | (eval $ac_try) 2>&5 | |
16820 | ac_status=$? | |
16821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16822 | (exit $ac_status); }; }; then | |
d34a2b1d | 16823 | ac_cv_have_decl_ffs=yes |
252b5132 | 16824 | else |
5464f5a1 NN |
16825 | echo "$as_me: failed program was:" >&5 |
16826 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16827 | ||
d34a2b1d | 16828 | ac_cv_have_decl_ffs=no |
252b5132 | 16829 | fi |
5464f5a1 | 16830 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 16831 | fi |
d34a2b1d JG |
16832 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5 |
16833 | echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6 | |
16834 | if test $ac_cv_have_decl_ffs = yes; then | |
252b5132 | 16835 | |
d34a2b1d JG |
16836 | cat >>confdefs.h <<_ACEOF |
16837 | #define HAVE_DECL_FFS 1 | |
16838 | _ACEOF | |
5464f5a1 | 16839 | |
d34a2b1d JG |
16840 | |
16841 | else | |
16842 | cat >>confdefs.h <<_ACEOF | |
16843 | #define HAVE_DECL_FFS 0 | |
5464f5a1 | 16844 | _ACEOF |
252b5132 | 16845 | |
d34a2b1d | 16846 | |
252b5132 RH |
16847 | fi |
16848 | ||
d34a2b1d JG |
16849 | |
16850 | echo "$as_me:$LINENO: checking whether free is declared" >&5 | |
16851 | echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6 | |
16852 | if test "${ac_cv_have_decl_free+set}" = set; then | |
5464f5a1 | 16853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 16854 | else |
5464f5a1 NN |
16855 | cat >conftest.$ac_ext <<_ACEOF |
16856 | /* confdefs.h. */ | |
16857 | _ACEOF | |
16858 | cat confdefs.h >>conftest.$ac_ext | |
16859 | cat >>conftest.$ac_ext <<_ACEOF | |
16860 | /* end confdefs.h. */ | |
d34a2b1d | 16861 | $ac_includes_default |
5464f5a1 NN |
16862 | int |
16863 | main () | |
16864 | { | |
d34a2b1d JG |
16865 | #ifndef free |
16866 | char *p = (char *) free; | |
16867 | #endif | |
16868 | ||
5464f5a1 NN |
16869 | ; |
16870 | return 0; | |
16871 | } | |
16872 | _ACEOF | |
16873 | rm -f conftest.$ac_objext | |
16874 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16875 | (eval $ac_compile) 2>conftest.er1 | |
16876 | ac_status=$? | |
16877 | grep -v '^ *+' conftest.er1 >conftest.err | |
16878 | rm -f conftest.er1 | |
16879 | cat conftest.err >&5 | |
16880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16881 | (exit $ac_status); } && | |
49c96104 SE |
16882 | { ac_try='test -z "$ac_c_werror_flag" |
16883 | || test ! -s conftest.err' | |
5464f5a1 NN |
16884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16885 | (eval $ac_try) 2>&5 | |
16886 | ac_status=$? | |
16887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16888 | (exit $ac_status); }; } && | |
16889 | { ac_try='test -s conftest.$ac_objext' | |
16890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16891 | (eval $ac_try) 2>&5 | |
16892 | ac_status=$? | |
16893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16894 | (exit $ac_status); }; }; then | |
d34a2b1d | 16895 | ac_cv_have_decl_free=yes |
252b5132 | 16896 | else |
5464f5a1 NN |
16897 | echo "$as_me: failed program was:" >&5 |
16898 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16899 | ||
d34a2b1d | 16900 | ac_cv_have_decl_free=no |
252b5132 | 16901 | fi |
5464f5a1 | 16902 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 16903 | fi |
d34a2b1d JG |
16904 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5 |
16905 | echo "${ECHO_T}$ac_cv_have_decl_free" >&6 | |
16906 | if test $ac_cv_have_decl_free = yes; then | |
16907 | ||
16908 | cat >>confdefs.h <<_ACEOF | |
16909 | #define HAVE_DECL_FREE 1 | |
16910 | _ACEOF | |
252b5132 | 16911 | |
5464f5a1 | 16912 | |
d34a2b1d JG |
16913 | else |
16914 | cat >>confdefs.h <<_ACEOF | |
16915 | #define HAVE_DECL_FREE 0 | |
5464f5a1 | 16916 | _ACEOF |
252b5132 | 16917 | |
d34a2b1d | 16918 | |
252b5132 RH |
16919 | fi |
16920 | ||
d34a2b1d JG |
16921 | |
16922 | echo "$as_me:$LINENO: checking whether getenv is declared" >&5 | |
16923 | echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6 | |
16924 | if test "${ac_cv_have_decl_getenv+set}" = set; then | |
5464f5a1 | 16925 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 16926 | else |
5464f5a1 NN |
16927 | cat >conftest.$ac_ext <<_ACEOF |
16928 | /* confdefs.h. */ | |
16929 | _ACEOF | |
16930 | cat confdefs.h >>conftest.$ac_ext | |
16931 | cat >>conftest.$ac_ext <<_ACEOF | |
16932 | /* end confdefs.h. */ | |
d34a2b1d | 16933 | $ac_includes_default |
5464f5a1 NN |
16934 | int |
16935 | main () | |
16936 | { | |
d34a2b1d JG |
16937 | #ifndef getenv |
16938 | char *p = (char *) getenv; | |
16939 | #endif | |
16940 | ||
5464f5a1 NN |
16941 | ; |
16942 | return 0; | |
16943 | } | |
16944 | _ACEOF | |
16945 | rm -f conftest.$ac_objext | |
16946 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16947 | (eval $ac_compile) 2>conftest.er1 | |
16948 | ac_status=$? | |
16949 | grep -v '^ *+' conftest.er1 >conftest.err | |
16950 | rm -f conftest.er1 | |
16951 | cat conftest.err >&5 | |
16952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16953 | (exit $ac_status); } && | |
49c96104 SE |
16954 | { ac_try='test -z "$ac_c_werror_flag" |
16955 | || test ! -s conftest.err' | |
5464f5a1 NN |
16956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16957 | (eval $ac_try) 2>&5 | |
16958 | ac_status=$? | |
16959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16960 | (exit $ac_status); }; } && | |
16961 | { ac_try='test -s conftest.$ac_objext' | |
16962 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16963 | (eval $ac_try) 2>&5 | |
16964 | ac_status=$? | |
16965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16966 | (exit $ac_status); }; }; then | |
d34a2b1d | 16967 | ac_cv_have_decl_getenv=yes |
252b5132 | 16968 | else |
5464f5a1 NN |
16969 | echo "$as_me: failed program was:" >&5 |
16970 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16971 | ||
d34a2b1d | 16972 | ac_cv_have_decl_getenv=no |
252b5132 | 16973 | fi |
5464f5a1 | 16974 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 16975 | fi |
d34a2b1d JG |
16976 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5 |
16977 | echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6 | |
16978 | if test $ac_cv_have_decl_getenv = yes; then | |
252b5132 | 16979 | |
d34a2b1d JG |
16980 | cat >>confdefs.h <<_ACEOF |
16981 | #define HAVE_DECL_GETENV 1 | |
16982 | _ACEOF | |
5464f5a1 | 16983 | |
d34a2b1d JG |
16984 | |
16985 | else | |
16986 | cat >>confdefs.h <<_ACEOF | |
16987 | #define HAVE_DECL_GETENV 0 | |
5464f5a1 | 16988 | _ACEOF |
252b5132 | 16989 | |
d34a2b1d | 16990 | |
252b5132 RH |
16991 | fi |
16992 | ||
d34a2b1d JG |
16993 | |
16994 | echo "$as_me:$LINENO: checking whether malloc is declared" >&5 | |
16995 | echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6 | |
16996 | if test "${ac_cv_have_decl_malloc+set}" = set; then | |
5464f5a1 | 16997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 16998 | else |
5464f5a1 NN |
16999 | cat >conftest.$ac_ext <<_ACEOF |
17000 | /* confdefs.h. */ | |
17001 | _ACEOF | |
17002 | cat confdefs.h >>conftest.$ac_ext | |
17003 | cat >>conftest.$ac_ext <<_ACEOF | |
17004 | /* end confdefs.h. */ | |
d34a2b1d | 17005 | $ac_includes_default |
5464f5a1 NN |
17006 | int |
17007 | main () | |
17008 | { | |
d34a2b1d JG |
17009 | #ifndef malloc |
17010 | char *p = (char *) malloc; | |
17011 | #endif | |
17012 | ||
5464f5a1 NN |
17013 | ; |
17014 | return 0; | |
17015 | } | |
17016 | _ACEOF | |
17017 | rm -f conftest.$ac_objext | |
17018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17019 | (eval $ac_compile) 2>conftest.er1 | |
17020 | ac_status=$? | |
17021 | grep -v '^ *+' conftest.er1 >conftest.err | |
17022 | rm -f conftest.er1 | |
17023 | cat conftest.err >&5 | |
17024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17025 | (exit $ac_status); } && | |
49c96104 SE |
17026 | { ac_try='test -z "$ac_c_werror_flag" |
17027 | || test ! -s conftest.err' | |
5464f5a1 NN |
17028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17029 | (eval $ac_try) 2>&5 | |
17030 | ac_status=$? | |
17031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17032 | (exit $ac_status); }; } && | |
17033 | { ac_try='test -s conftest.$ac_objext' | |
17034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17035 | (eval $ac_try) 2>&5 | |
17036 | ac_status=$? | |
17037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17038 | (exit $ac_status); }; }; then | |
d34a2b1d | 17039 | ac_cv_have_decl_malloc=yes |
252b5132 | 17040 | else |
5464f5a1 NN |
17041 | echo "$as_me: failed program was:" >&5 |
17042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17043 | ||
d34a2b1d | 17044 | ac_cv_have_decl_malloc=no |
252b5132 | 17045 | fi |
5464f5a1 | 17046 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 17047 | fi |
d34a2b1d JG |
17048 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5 |
17049 | echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6 | |
17050 | if test $ac_cv_have_decl_malloc = yes; then | |
252b5132 | 17051 | |
d34a2b1d JG |
17052 | cat >>confdefs.h <<_ACEOF |
17053 | #define HAVE_DECL_MALLOC 1 | |
17054 | _ACEOF | |
5464f5a1 | 17055 | |
d34a2b1d JG |
17056 | |
17057 | else | |
17058 | cat >>confdefs.h <<_ACEOF | |
17059 | #define HAVE_DECL_MALLOC 0 | |
5464f5a1 | 17060 | _ACEOF |
252b5132 | 17061 | |
d34a2b1d | 17062 | |
252b5132 RH |
17063 | fi |
17064 | ||
d34a2b1d JG |
17065 | |
17066 | echo "$as_me:$LINENO: checking whether realloc is declared" >&5 | |
17067 | echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6 | |
17068 | if test "${ac_cv_have_decl_realloc+set}" = set; then | |
5464f5a1 | 17069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 17070 | else |
5464f5a1 NN |
17071 | cat >conftest.$ac_ext <<_ACEOF |
17072 | /* confdefs.h. */ | |
17073 | _ACEOF | |
17074 | cat confdefs.h >>conftest.$ac_ext | |
17075 | cat >>conftest.$ac_ext <<_ACEOF | |
17076 | /* end confdefs.h. */ | |
d34a2b1d | 17077 | $ac_includes_default |
5464f5a1 NN |
17078 | int |
17079 | main () | |
17080 | { | |
d34a2b1d JG |
17081 | #ifndef realloc |
17082 | char *p = (char *) realloc; | |
17083 | #endif | |
17084 | ||
5464f5a1 NN |
17085 | ; |
17086 | return 0; | |
17087 | } | |
17088 | _ACEOF | |
17089 | rm -f conftest.$ac_objext | |
17090 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17091 | (eval $ac_compile) 2>conftest.er1 | |
17092 | ac_status=$? | |
17093 | grep -v '^ *+' conftest.er1 >conftest.err | |
17094 | rm -f conftest.er1 | |
17095 | cat conftest.err >&5 | |
17096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17097 | (exit $ac_status); } && | |
49c96104 SE |
17098 | { ac_try='test -z "$ac_c_werror_flag" |
17099 | || test ! -s conftest.err' | |
5464f5a1 NN |
17100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17101 | (eval $ac_try) 2>&5 | |
17102 | ac_status=$? | |
17103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17104 | (exit $ac_status); }; } && | |
17105 | { ac_try='test -s conftest.$ac_objext' | |
17106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17107 | (eval $ac_try) 2>&5 | |
17108 | ac_status=$? | |
17109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17110 | (exit $ac_status); }; }; then | |
d34a2b1d | 17111 | ac_cv_have_decl_realloc=yes |
252b5132 | 17112 | else |
5464f5a1 NN |
17113 | echo "$as_me: failed program was:" >&5 |
17114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17115 | ||
d34a2b1d | 17116 | ac_cv_have_decl_realloc=no |
252b5132 | 17117 | fi |
5464f5a1 | 17118 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 17119 | fi |
d34a2b1d JG |
17120 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5 |
17121 | echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6 | |
17122 | if test $ac_cv_have_decl_realloc = yes; then | |
17123 | ||
17124 | cat >>confdefs.h <<_ACEOF | |
17125 | #define HAVE_DECL_REALLOC 1 | |
17126 | _ACEOF | |
252b5132 | 17127 | |
5464f5a1 | 17128 | |
d34a2b1d JG |
17129 | else |
17130 | cat >>confdefs.h <<_ACEOF | |
17131 | #define HAVE_DECL_REALLOC 0 | |
efa9bda4 AL |
17132 | _ACEOF |
17133 | ||
d34a2b1d | 17134 | |
efa9bda4 AL |
17135 | fi |
17136 | ||
d34a2b1d | 17137 | |
be5cacdb L |
17138 | echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5 |
17139 | echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6 | |
17140 | if test "${ac_cv_have_decl_stpcpy+set}" = set; then | |
17141 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17142 | else | |
17143 | cat >conftest.$ac_ext <<_ACEOF | |
17144 | /* confdefs.h. */ | |
17145 | _ACEOF | |
17146 | cat confdefs.h >>conftest.$ac_ext | |
17147 | cat >>conftest.$ac_ext <<_ACEOF | |
17148 | /* end confdefs.h. */ | |
17149 | $ac_includes_default | |
17150 | int | |
17151 | main () | |
17152 | { | |
17153 | #ifndef stpcpy | |
17154 | char *p = (char *) stpcpy; | |
17155 | #endif | |
17156 | ||
17157 | ; | |
17158 | return 0; | |
17159 | } | |
17160 | _ACEOF | |
17161 | rm -f conftest.$ac_objext | |
17162 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17163 | (eval $ac_compile) 2>conftest.er1 | |
17164 | ac_status=$? | |
17165 | grep -v '^ *+' conftest.er1 >conftest.err | |
17166 | rm -f conftest.er1 | |
17167 | cat conftest.err >&5 | |
17168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17169 | (exit $ac_status); } && | |
49c96104 SE |
17170 | { ac_try='test -z "$ac_c_werror_flag" |
17171 | || test ! -s conftest.err' | |
be5cacdb L |
17172 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17173 | (eval $ac_try) 2>&5 | |
17174 | ac_status=$? | |
17175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17176 | (exit $ac_status); }; } && | |
17177 | { ac_try='test -s conftest.$ac_objext' | |
17178 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17179 | (eval $ac_try) 2>&5 | |
17180 | ac_status=$? | |
17181 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17182 | (exit $ac_status); }; }; then | |
17183 | ac_cv_have_decl_stpcpy=yes | |
17184 | else | |
17185 | echo "$as_me: failed program was:" >&5 | |
17186 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17187 | ||
17188 | ac_cv_have_decl_stpcpy=no | |
17189 | fi | |
17190 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17191 | fi | |
17192 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5 | |
17193 | echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6 | |
17194 | if test $ac_cv_have_decl_stpcpy = yes; then | |
17195 | ||
17196 | cat >>confdefs.h <<_ACEOF | |
17197 | #define HAVE_DECL_STPCPY 1 | |
17198 | _ACEOF | |
17199 | ||
17200 | ||
17201 | else | |
17202 | cat >>confdefs.h <<_ACEOF | |
17203 | #define HAVE_DECL_STPCPY 0 | |
17204 | _ACEOF | |
17205 | ||
17206 | ||
17207 | fi | |
17208 | ||
17209 | ||
d34a2b1d JG |
17210 | echo "$as_me:$LINENO: checking whether strstr is declared" >&5 |
17211 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 | |
17212 | if test "${ac_cv_have_decl_strstr+set}" = set; then | |
efa9bda4 AL |
17213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17214 | else | |
17215 | cat >conftest.$ac_ext <<_ACEOF | |
17216 | /* confdefs.h. */ | |
17217 | _ACEOF | |
17218 | cat confdefs.h >>conftest.$ac_ext | |
17219 | cat >>conftest.$ac_ext <<_ACEOF | |
17220 | /* end confdefs.h. */ | |
d34a2b1d | 17221 | $ac_includes_default |
efa9bda4 AL |
17222 | int |
17223 | main () | |
17224 | { | |
d34a2b1d JG |
17225 | #ifndef strstr |
17226 | char *p = (char *) strstr; | |
17227 | #endif | |
17228 | ||
efa9bda4 AL |
17229 | ; |
17230 | return 0; | |
17231 | } | |
17232 | _ACEOF | |
17233 | rm -f conftest.$ac_objext | |
17234 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17235 | (eval $ac_compile) 2>conftest.er1 | |
17236 | ac_status=$? | |
17237 | grep -v '^ *+' conftest.er1 >conftest.err | |
17238 | rm -f conftest.er1 | |
17239 | cat conftest.err >&5 | |
17240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17241 | (exit $ac_status); } && | |
49c96104 SE |
17242 | { ac_try='test -z "$ac_c_werror_flag" |
17243 | || test ! -s conftest.err' | |
efa9bda4 AL |
17244 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17245 | (eval $ac_try) 2>&5 | |
17246 | ac_status=$? | |
17247 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17248 | (exit $ac_status); }; } && | |
17249 | { ac_try='test -s conftest.$ac_objext' | |
17250 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17251 | (eval $ac_try) 2>&5 | |
17252 | ac_status=$? | |
17253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17254 | (exit $ac_status); }; }; then | |
d34a2b1d | 17255 | ac_cv_have_decl_strstr=yes |
efa9bda4 AL |
17256 | else |
17257 | echo "$as_me: failed program was:" >&5 | |
17258 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17259 | ||
d34a2b1d | 17260 | ac_cv_have_decl_strstr=no |
efa9bda4 AL |
17261 | fi |
17262 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17263 | fi | |
d34a2b1d JG |
17264 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 |
17265 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 | |
17266 | if test $ac_cv_have_decl_strstr = yes; then | |
efa9bda4 | 17267 | |
d34a2b1d JG |
17268 | cat >>confdefs.h <<_ACEOF |
17269 | #define HAVE_DECL_STRSTR 1 | |
17270 | _ACEOF | |
efa9bda4 | 17271 | |
d34a2b1d JG |
17272 | |
17273 | else | |
17274 | cat >>confdefs.h <<_ACEOF | |
17275 | #define HAVE_DECL_STRSTR 0 | |
5464f5a1 | 17276 | _ACEOF |
252b5132 | 17277 | |
d34a2b1d | 17278 | |
252b5132 RH |
17279 | fi |
17280 | ||
6be7c12c | 17281 | |
36527912 AJ |
17282 | echo "$as_me:$LINENO: checking whether snprintf is declared" >&5 |
17283 | echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6 | |
17284 | if test "${ac_cv_have_decl_snprintf+set}" = set; then | |
17285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17286 | else | |
17287 | cat >conftest.$ac_ext <<_ACEOF | |
17288 | /* confdefs.h. */ | |
17289 | _ACEOF | |
17290 | cat confdefs.h >>conftest.$ac_ext | |
17291 | cat >>conftest.$ac_ext <<_ACEOF | |
17292 | /* end confdefs.h. */ | |
17293 | $ac_includes_default | |
17294 | int | |
17295 | main () | |
17296 | { | |
17297 | #ifndef snprintf | |
17298 | char *p = (char *) snprintf; | |
17299 | #endif | |
17300 | ||
17301 | ; | |
17302 | return 0; | |
17303 | } | |
17304 | _ACEOF | |
17305 | rm -f conftest.$ac_objext | |
17306 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17307 | (eval $ac_compile) 2>conftest.er1 | |
17308 | ac_status=$? | |
17309 | grep -v '^ *+' conftest.er1 >conftest.err | |
17310 | rm -f conftest.er1 | |
17311 | cat conftest.err >&5 | |
17312 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17313 | (exit $ac_status); } && | |
49c96104 SE |
17314 | { ac_try='test -z "$ac_c_werror_flag" |
17315 | || test ! -s conftest.err' | |
36527912 AJ |
17316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17317 | (eval $ac_try) 2>&5 | |
17318 | ac_status=$? | |
17319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17320 | (exit $ac_status); }; } && | |
17321 | { ac_try='test -s conftest.$ac_objext' | |
17322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17323 | (eval $ac_try) 2>&5 | |
17324 | ac_status=$? | |
17325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17326 | (exit $ac_status); }; }; then | |
17327 | ac_cv_have_decl_snprintf=yes | |
17328 | else | |
17329 | echo "$as_me: failed program was:" >&5 | |
17330 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17331 | ||
17332 | ac_cv_have_decl_snprintf=no | |
17333 | fi | |
17334 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17335 | fi | |
17336 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5 | |
17337 | echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6 | |
17338 | if test $ac_cv_have_decl_snprintf = yes; then | |
17339 | ||
17340 | cat >>confdefs.h <<_ACEOF | |
17341 | #define HAVE_DECL_SNPRINTF 1 | |
17342 | _ACEOF | |
17343 | ||
17344 | ||
17345 | else | |
17346 | cat >>confdefs.h <<_ACEOF | |
17347 | #define HAVE_DECL_SNPRINTF 0 | |
17348 | _ACEOF | |
17349 | ||
17350 | ||
17351 | fi | |
17352 | ||
17353 | ||
17354 | echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 | |
17355 | echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6 | |
17356 | if test "${ac_cv_have_decl_vsnprintf+set}" = set; then | |
17357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17358 | else | |
17359 | cat >conftest.$ac_ext <<_ACEOF | |
17360 | /* confdefs.h. */ | |
17361 | _ACEOF | |
17362 | cat confdefs.h >>conftest.$ac_ext | |
17363 | cat >>conftest.$ac_ext <<_ACEOF | |
17364 | /* end confdefs.h. */ | |
17365 | $ac_includes_default | |
17366 | int | |
17367 | main () | |
17368 | { | |
17369 | #ifndef vsnprintf | |
17370 | char *p = (char *) vsnprintf; | |
17371 | #endif | |
17372 | ||
17373 | ; | |
17374 | return 0; | |
17375 | } | |
17376 | _ACEOF | |
17377 | rm -f conftest.$ac_objext | |
17378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17379 | (eval $ac_compile) 2>conftest.er1 | |
17380 | ac_status=$? | |
17381 | grep -v '^ *+' conftest.er1 >conftest.err | |
17382 | rm -f conftest.er1 | |
17383 | cat conftest.err >&5 | |
17384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17385 | (exit $ac_status); } && | |
49c96104 SE |
17386 | { ac_try='test -z "$ac_c_werror_flag" |
17387 | || test ! -s conftest.err' | |
36527912 AJ |
17388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17389 | (eval $ac_try) 2>&5 | |
17390 | ac_status=$? | |
17391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17392 | (exit $ac_status); }; } && | |
17393 | { ac_try='test -s conftest.$ac_objext' | |
17394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17395 | (eval $ac_try) 2>&5 | |
17396 | ac_status=$? | |
17397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17398 | (exit $ac_status); }; }; then | |
17399 | ac_cv_have_decl_vsnprintf=yes | |
17400 | else | |
17401 | echo "$as_me: failed program was:" >&5 | |
17402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17403 | ||
17404 | ac_cv_have_decl_vsnprintf=no | |
17405 | fi | |
17406 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17407 | fi | |
17408 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 | |
17409 | echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6 | |
17410 | if test $ac_cv_have_decl_vsnprintf = yes; then | |
17411 | ||
17412 | cat >>confdefs.h <<_ACEOF | |
17413 | #define HAVE_DECL_VSNPRINTF 1 | |
17414 | _ACEOF | |
17415 | ||
17416 | ||
17417 | else | |
17418 | cat >>confdefs.h <<_ACEOF | |
17419 | #define HAVE_DECL_VSNPRINTF 0 | |
17420 | _ACEOF | |
17421 | ||
17422 | ||
17423 | fi | |
17424 | ||
17425 | ||
d34a2b1d | 17426 | |
252b5132 RH |
17427 | # If we are configured native, pick a core file support file. |
17428 | COREFILE= | |
17429 | COREFLAG= | |
17430 | TRAD_HEADER= | |
17431 | if test "${target}" = "${host}"; then | |
17432 | case "${host}" in | |
13dfd2d0 | 17433 | alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu) |
46d59bfa DB |
17434 | COREFILE='' |
17435 | ;; | |
ed84e695 | 17436 | alpha*-*-linux-*) |
252b5132 RH |
17437 | COREFILE=trad-core.lo |
17438 | TRAD_HEADER='"hosts/alphalinux.h"' | |
17439 | ;; | |
690cc98b NC |
17440 | alpha*-*-netbsd* | alpha*-*-openbsd*) |
17441 | COREFILE=netbsd-core.lo | |
17442 | ;; | |
252b5132 | 17443 | alpha*-*-*) COREFILE=osf-core.lo ;; |
13dfd2d0 NC |
17444 | arm-*-freebsd* | arm-*-kfreebsd*-gnu) |
17445 | COREFILE='' ;; | |
e33533a4 MK |
17446 | arm-*-netbsd* | arm-*-openbsd*) |
17447 | COREFILE=netbsd-core.lo | |
17448 | ;; | |
252b5132 RH |
17449 | arm-*-riscix) COREFILE=trad-core.lo ;; |
17450 | hppa*-*-hpux*) COREFILE=hpux-core.lo ;; | |
17451 | hppa*-*-hiux*) COREFILE=hpux-core.lo ;; | |
17452 | hppa*-*-mpeix*) COREFILE=hpux-core.lo ;; | |
17453 | hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo" | |
17454 | COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; | |
eef0f186 MK |
17455 | hppa*-*-netbsd* | hppa*-*-openbsd*) |
17456 | COREFILE=netbsd-core.lo | |
17457 | ;; | |
17458 | ||
dc810e39 | 17459 | i370-*-*) |
5b93d8bb AM |
17460 | COREFILE=trad-core.lo |
17461 | TRAD_HEADER='"hosts/i370linux.h"' | |
17462 | ;; | |
17463 | ||
80c7c40a | 17464 | i[3-7]86-sequent-bsd*) |
5b93d8bb | 17465 | COREFILE=trad-core.lo |
252b5132 RH |
17466 | TRAD_HEADER='"hosts/symmetry.h"' |
17467 | ;; | |
80c7c40a NC |
17468 | i[3-7]86-sequent-sysv4*) ;; |
17469 | i[3-7]86-sequent-sysv*) | |
252b5132 RH |
17470 | COREFILE=trad-core.lo |
17471 | TRAD_HEADER='"hosts/symmetry.h"' | |
17472 | ;; | |
80c7c40a | 17473 | i[3-7]86-*-bsdi) |
7e3b3466 NC |
17474 | COREFILE= |
17475 | ;; | |
d2bef492 | 17476 | 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 |
17477 | COREFILE=trad-core.lo |
17478 | TRAD_HEADER='"hosts/i386bsd.h"' | |
17479 | ;; | |
0b3e17e9 | 17480 | i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*) |
d4af9775 DB |
17481 | COREFILE='' |
17482 | TRAD_HEADER='"hosts/i386bsd.h"' | |
17483 | ;; | |
4615568e | 17484 | i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*) |
252b5132 RH |
17485 | COREFILE=netbsd-core.lo |
17486 | ;; | |
80c7c40a | 17487 | i[3-7]86-esix-sysv3*) |
252b5132 RH |
17488 | COREFILE=trad-core.lo |
17489 | TRAD_HEADER='"hosts/esix.h"' | |
17490 | ;; | |
80c7c40a | 17491 | i[3-7]86-*-sco3.2v5*) |
252b5132 RH |
17492 | COREFILE=sco5-core.lo |
17493 | ;; | |
80c7c40a | 17494 | i[3-7]86-*-sco* | i[3-7]86-*-isc*) |
252b5132 RH |
17495 | COREFILE=trad-core.lo |
17496 | TRAD_HEADER='"hosts/i386sco.h"' | |
17497 | ;; | |
80c7c40a | 17498 | i[3-7]86-*-mach3*) |
252b5132 RH |
17499 | COREFILE=trad-core.lo |
17500 | TRAD_HEADER='"hosts/i386mach3.h"' | |
17501 | ;; | |
ed84e695 | 17502 | i[3-7]86-*-linux-*) |
252b5132 RH |
17503 | COREFILE=trad-core.lo |
17504 | TRAD_HEADER='"hosts/i386linux.h"' | |
17505 | ;; | |
80c7c40a NC |
17506 | i[3-7]86-*-isc*) COREFILE=trad-core.lo ;; |
17507 | i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;; | |
252b5132 RH |
17508 | i860-*-mach3* | i860-*-osf1*) |
17509 | COREFILE=trad-core.lo | |
17510 | TRAD_HEADER='"hosts/i860mach3.h"' | |
17511 | ;; | |
252b5132 RH |
17512 | mips-*-netbsd* | mips*-*-openbsd*) |
17513 | COREFILE=netbsd-core.lo | |
17514 | ;; | |
17515 | mips-dec-*) | |
17516 | COREFILE=trad-core.lo | |
17517 | TRAD_HEADER='"hosts/decstation.h"' | |
17518 | ;; | |
17519 | mips-sgi-irix4*) COREFILE=irix-core.lo ;; | |
17520 | mips-sgi-irix5*) COREFILE=irix-core.lo ;; | |
17521 | mips-sgi-irix6*) COREFILE=irix-core.lo ;; | |
252b5132 RH |
17522 | mips-*-sysv4*) ;; |
17523 | mips-*-sysv* | mips-*-riscos*) | |
17524 | COREFILE=trad-core.lo | |
17525 | TRAD_HEADER='"hosts/riscos.h"' | |
17526 | ;; | |
17527 | mips-sony-bsd*) | |
17528 | COREFILE=trad-core.lo | |
17529 | TRAD_HEADER='"hosts/news-mips.h"' | |
17530 | ;; | |
17531 | m68*-bull*-sysv*) | |
17532 | COREFILE=trad-core.lo | |
17533 | TRAD_HEADER='"hosts/dpx2.h"' | |
17534 | ;; | |
17535 | m68*-hp-hpux*) COREFILE=hpux-core.lo ;; | |
17536 | m68*-hp-bsd*) | |
17537 | COREFILE=trad-core.lo | |
17538 | TRAD_HEADER='"hosts/hp300bsd.h"' | |
17539 | ;; | |
ed84e695 | 17540 | m68*-*-linux-*) |
252b5132 RH |
17541 | COREFILE=trad-core.lo |
17542 | TRAD_HEADER='"hosts/m68klinux.h"' | |
17543 | ;; | |
17544 | m68*-motorola-sysv*) | |
17545 | COREFILE=trad-core.lo | |
17546 | TRAD_HEADER='"hosts/delta68.h"' | |
17547 | ;; | |
17548 | m68*-sony-*) | |
17549 | COREFILE=trad-core.lo | |
17550 | TRAD_HEADER='"hosts/news.h"' | |
17551 | ;; | |
17552 | m68*-*-netbsd* | m68*-*-openbsd*) | |
17553 | COREFILE=netbsd-core.lo | |
17554 | ;; | |
17555 | m68*-apple-aux*) | |
17556 | COREFILE=trad-core.lo | |
17557 | TRAD_HEADER='"hosts/m68kaux.h"' | |
17558 | ;; | |
eb1e0e80 NC |
17559 | m88*-*-sysv4*) |
17560 | ;; | |
17561 | m88*-motorola-sysv*) | |
17562 | COREFILE=ptrace-core.lo | |
17563 | ;; | |
252b5132 RH |
17564 | m88*-*-mach3*) |
17565 | COREFILE=trad-core.lo | |
17566 | TRAD_HEADER='"hosts/m88kmach3.h"' | |
17567 | ;; | |
c6f8758f NC |
17568 | m88*-*-openbsd*) |
17569 | COREFILE=netbsd-core.lo | |
17570 | ;; | |
252b5132 RH |
17571 | ns32k-pc532-mach) |
17572 | COREFILE=trad-core.lo | |
17573 | TRAD_HEADER='"hosts/pc532mach.h"' | |
17574 | ;; | |
17575 | ns32k-*-netbsd* | ns32k-*-openbsd*) | |
17576 | COREFILE=netbsd-core.lo | |
17577 | ;; | |
eb1e0e80 NC |
17578 | rs6000-*-lynx*) |
17579 | COREFILE=lynx-core.lo | |
17580 | ;; | |
17581 | rs6000-*-aix5.* | powerpc-*-aix5.*) | |
17582 | COREFILE=rs6000-core.lo | |
17583 | COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE" | |
17584 | ;; | |
83954261 | 17585 | rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*) |
653f71ca KB |
17586 | COREFILE=rs6000-core.lo |
17587 | COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE" | |
83954261 AM |
17588 | # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE |
17589 | # have c_impl as a member of struct core_dumpx | |
5464f5a1 NN |
17590 | echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5 |
17591 | echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6 | |
17592 | cat >conftest.$ac_ext <<_ACEOF | |
17593 | /* confdefs.h. */ | |
17594 | _ACEOF | |
17595 | cat confdefs.h >>conftest.$ac_ext | |
17596 | cat >>conftest.$ac_ext <<_ACEOF | |
17597 | /* end confdefs.h. */ | |
83954261 | 17598 | #include <core.h> |
5464f5a1 NN |
17599 | int |
17600 | main () | |
17601 | { | |
83954261 | 17602 | struct core_dumpx c; c.c_impl = 0; |
5464f5a1 NN |
17603 | ; |
17604 | return 0; | |
17605 | } | |
17606 | _ACEOF | |
17607 | rm -f conftest.$ac_objext | |
17608 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17609 | (eval $ac_compile) 2>conftest.er1 | |
17610 | ac_status=$? | |
17611 | grep -v '^ *+' conftest.er1 >conftest.err | |
17612 | rm -f conftest.er1 | |
17613 | cat conftest.err >&5 | |
17614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17615 | (exit $ac_status); } && | |
49c96104 SE |
17616 | { ac_try='test -z "$ac_c_werror_flag" |
17617 | || test ! -s conftest.err' | |
5464f5a1 NN |
17618 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17619 | (eval $ac_try) 2>&5 | |
17620 | ac_status=$? | |
17621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17622 | (exit $ac_status); }; } && | |
17623 | { ac_try='test -s conftest.$ac_objext' | |
17624 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17625 | (eval $ac_try) 2>&5 | |
17626 | ac_status=$? | |
17627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17628 | (exit $ac_status); }; }; then | |
17629 | ||
17630 | cat >>confdefs.h <<\_ACEOF | |
83954261 | 17631 | #define HAVE_ST_C_IMPL 1 |
5464f5a1 | 17632 | _ACEOF |
83954261 | 17633 | |
5464f5a1 NN |
17634 | echo "$as_me:$LINENO: result: yes" >&5 |
17635 | echo "${ECHO_T}yes" >&6 | |
83954261 | 17636 | else |
5464f5a1 NN |
17637 | echo "$as_me: failed program was:" >&5 |
17638 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17639 | ||
17640 | echo "$as_me:$LINENO: result: no" >&5 | |
17641 | echo "${ECHO_T}no" >&6 | |
83954261 | 17642 | fi |
5464f5a1 | 17643 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
653f71ca | 17644 | ;; |
252b5132 RH |
17645 | rs6000-*-aix4*) COREFILE=rs6000-core.lo ;; |
17646 | rs6000-*-*) COREFILE=rs6000-core.lo ;; | |
252b5132 RH |
17647 | powerpc-*-aix4*) COREFILE=rs6000-core.lo ;; |
17648 | powerpc-*-aix*) COREFILE=rs6000-core.lo ;; | |
17649 | powerpc-*-beos*) ;; | |
13dfd2d0 NC |
17650 | powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu) |
17651 | COREFILE='' ;; | |
252b5132 | 17652 | powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;; |
d4af9775 | 17653 | powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;; |
dc810e39 | 17654 | s390*-*-*) COREFILE=trad-core.lo ;; |
a38b2659 MK |
17655 | sh*-*-netbsd* | sh*-*-openbsd*) |
17656 | COREFILE=netbsd-core.lo | |
17657 | ;; | |
a9bf1154 | 17658 | sparc-*-netbsd* | sparc*-*-openbsd*) |
252b5132 RH |
17659 | COREFILE=netbsd-core.lo |
17660 | ;; | |
17661 | tahoe-*-*) | |
17662 | COREFILE=trad-core.lo | |
17663 | TRAD_HEADER='"hosts/tahoe.h"' | |
17664 | ;; | |
de6e5e1a NC |
17665 | vax-*-netbsd* | vax-*-openbsd*) |
17666 | COREFILE=netbsd-core.lo | |
17667 | ;; | |
252b5132 RH |
17668 | vax-*-ultrix2*) |
17669 | COREFILE=trad-core.lo | |
17670 | TRAD_HEADER='"hosts/vaxult2.h"' | |
17671 | ;; | |
17672 | vax-*-ultrix*) | |
17673 | COREFILE=trad-core.lo | |
17674 | TRAD_HEADER='"hosts/vaxult2.h"' | |
17675 | ;; | |
ed84e695 | 17676 | vax-*-linux-*) |
f8fc3443 NC |
17677 | COREFILE=trad-core.lo |
17678 | TRAD_HEADER='"hosts/vaxlinux.h"' | |
17679 | ;; | |
252b5132 RH |
17680 | vax-*-*) |
17681 | COREFILE=trad-core.lo | |
17682 | TRAD_HEADER='"hosts/vaxbsd.h"' | |
17683 | ;; | |
85cfd8d3 MK |
17684 | x86_64-*-netbsd* | x86_64-*-openbsd*) |
17685 | COREFILE=netbsd-core.lo | |
17686 | ;; | |
252b5132 RH |
17687 | esac |
17688 | ||
17689 | case "$COREFILE" in | |
17690 | aix386-core.lo) COREFLAG=-DAIX386_CORE ;; | |
17691 | hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;; | |
17692 | hpux-core.lo) COREFLAG=-DHPUX_CORE ;; | |
17693 | irix-core.lo) COREFLAG=-DIRIX_CORE ;; | |
17694 | lynx-core.lo) COREFLAG=-DLYNX_CORE ;; | |
17695 | netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;; | |
17696 | osf-core.lo) COREFLAG=-DOSF_CORE ;; | |
17697 | ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;; | |
17698 | rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;; | |
17699 | sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;; | |
17700 | trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;; | |
17701 | esac | |
17702 | ||
17703 | # ELF corefile support has several flavors, but all of | |
17704 | # them use something called <sys/procfs.h> | |
5464f5a1 NN |
17705 | |
17706 | for ac_header in sys/procfs.h | |
252b5132 | 17707 | do |
5464f5a1 NN |
17708 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
17709 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17710 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17711 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17712 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17714 | fi | |
17715 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17716 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17717 | else | |
17718 | # Is the header compilable? | |
17719 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
17720 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
17721 | cat >conftest.$ac_ext <<_ACEOF | |
17722 | /* confdefs.h. */ | |
17723 | _ACEOF | |
17724 | cat confdefs.h >>conftest.$ac_ext | |
17725 | cat >>conftest.$ac_ext <<_ACEOF | |
17726 | /* end confdefs.h. */ | |
17727 | $ac_includes_default | |
17728 | #include <$ac_header> | |
17729 | _ACEOF | |
17730 | rm -f conftest.$ac_objext | |
17731 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17732 | (eval $ac_compile) 2>conftest.er1 | |
17733 | ac_status=$? | |
17734 | grep -v '^ *+' conftest.er1 >conftest.err | |
17735 | rm -f conftest.er1 | |
17736 | cat conftest.err >&5 | |
17737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17738 | (exit $ac_status); } && | |
49c96104 SE |
17739 | { ac_try='test -z "$ac_c_werror_flag" |
17740 | || test ! -s conftest.err' | |
5464f5a1 NN |
17741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17742 | (eval $ac_try) 2>&5 | |
17743 | ac_status=$? | |
17744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17745 | (exit $ac_status); }; } && | |
17746 | { ac_try='test -s conftest.$ac_objext' | |
17747 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17748 | (eval $ac_try) 2>&5 | |
17749 | ac_status=$? | |
17750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17751 | (exit $ac_status); }; }; then | |
17752 | ac_header_compiler=yes | |
17753 | else | |
17754 | echo "$as_me: failed program was:" >&5 | |
17755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17756 | ||
17757 | ac_header_compiler=no | |
17758 | fi | |
17759 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17760 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
17761 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
17762 | ||
17763 | # Is the header present? | |
17764 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
17765 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
17766 | cat >conftest.$ac_ext <<_ACEOF | |
17767 | /* confdefs.h. */ | |
17768 | _ACEOF | |
17769 | cat confdefs.h >>conftest.$ac_ext | |
17770 | cat >>conftest.$ac_ext <<_ACEOF | |
17771 | /* end confdefs.h. */ | |
17772 | #include <$ac_header> | |
17773 | _ACEOF | |
17774 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
17775 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
17776 | ac_status=$? | |
17777 | grep -v '^ *+' conftest.er1 >conftest.err | |
17778 | rm -f conftest.er1 | |
17779 | cat conftest.err >&5 | |
17780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17781 | (exit $ac_status); } >/dev/null; then | |
17782 | if test -s conftest.err; then | |
17783 | ac_cpp_err=$ac_c_preproc_warn_flag | |
17784 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
17785 | else | |
17786 | ac_cpp_err= | |
17787 | fi | |
252b5132 | 17788 | else |
5464f5a1 | 17789 | ac_cpp_err=yes |
252b5132 | 17790 | fi |
5464f5a1 NN |
17791 | if test -z "$ac_cpp_err"; then |
17792 | ac_header_preproc=yes | |
17793 | else | |
17794 | echo "$as_me: failed program was:" >&5 | |
17795 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17796 | ||
17797 | ac_header_preproc=no | |
252b5132 | 17798 | fi |
5464f5a1 NN |
17799 | rm -f conftest.err conftest.$ac_ext |
17800 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
17801 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
17802 | ||
17803 | # So? What about this header? | |
17804 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
17805 | yes:no: ) | |
17806 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
17807 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
17808 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
17809 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
17810 | ac_header_preproc=yes | |
17811 | ;; | |
17812 | no:yes:* ) | |
17813 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
17814 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
17815 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
17816 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
17817 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
17818 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
17819 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
17820 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
17821 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
17822 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
17823 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
17824 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
17825 | ( | |
17826 | cat <<\_ASBOX | |
17827 | ## ------------------------------------------ ## | |
17828 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
17829 | ## ------------------------------------------ ## | |
17830 | _ASBOX | |
17831 | ) | | |
17832 | sed "s/^/$as_me: WARNING: /" >&2 | |
17833 | ;; | |
17834 | esac | |
17835 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
17836 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
17837 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 17839 | else |
5464f5a1 NN |
17840 | eval "$as_ac_Header=\$ac_header_preproc" |
17841 | fi | |
17842 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17843 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17844 | ||
252b5132 | 17845 | fi |
5464f5a1 NN |
17846 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
17847 | cat >>confdefs.h <<_ACEOF | |
17848 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
17849 | _ACEOF | |
17850 | ||
17851 | fi | |
17852 | ||
252b5132 RH |
17853 | done |
17854 | ||
17855 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
5464f5a1 NN |
17856 | echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5 |
17857 | echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
17858 | if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then | |
17859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17860 | else | |
17861 | cat >conftest.$ac_ext <<_ACEOF | |
17862 | /* confdefs.h. */ | |
17863 | _ACEOF | |
17864 | cat confdefs.h >>conftest.$ac_ext | |
17865 | cat >>conftest.$ac_ext <<_ACEOF | |
17866 | /* end confdefs.h. */ | |
7ee38065 MS |
17867 | |
17868 | #define _SYSCALL32 | |
252b5132 | 17869 | #include <sys/procfs.h> |
5464f5a1 NN |
17870 | int |
17871 | main () | |
17872 | { | |
252b5132 | 17873 | prstatus_t avar |
5464f5a1 NN |
17874 | ; |
17875 | return 0; | |
17876 | } | |
17877 | _ACEOF | |
17878 | rm -f conftest.$ac_objext | |
17879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17880 | (eval $ac_compile) 2>conftest.er1 | |
17881 | ac_status=$? | |
17882 | grep -v '^ *+' conftest.er1 >conftest.err | |
17883 | rm -f conftest.er1 | |
17884 | cat conftest.err >&5 | |
17885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17886 | (exit $ac_status); } && | |
49c96104 SE |
17887 | { ac_try='test -z "$ac_c_werror_flag" |
17888 | || test ! -s conftest.err' | |
5464f5a1 NN |
17889 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17890 | (eval $ac_try) 2>&5 | |
17891 | ac_status=$? | |
17892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17893 | (exit $ac_status); }; } && | |
17894 | { ac_try='test -s conftest.$ac_objext' | |
17895 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17896 | (eval $ac_try) 2>&5 | |
17897 | ac_status=$? | |
17898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17899 | (exit $ac_status); }; }; then | |
252b5132 RH |
17900 | bfd_cv_have_sys_procfs_type_prstatus_t=yes |
17901 | else | |
5464f5a1 NN |
17902 | echo "$as_me: failed program was:" >&5 |
17903 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17904 | ||
17905 | bfd_cv_have_sys_procfs_type_prstatus_t=no | |
17906 | ||
252b5132 | 17907 | fi |
5464f5a1 | 17908 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
17909 | fi |
17910 | ||
17911 | if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then | |
5464f5a1 NN |
17912 | |
17913 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 17914 | #define HAVE_PRSTATUS_T 1 |
5464f5a1 | 17915 | _ACEOF |
252b5132 RH |
17916 | |
17917 | fi | |
5464f5a1 NN |
17918 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5 |
17919 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6 | |
252b5132 | 17920 | |
5464f5a1 NN |
17921 | echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5 |
17922 | echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6 | |
17923 | if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then | |
17924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 17925 | else |
5464f5a1 NN |
17926 | cat >conftest.$ac_ext <<_ACEOF |
17927 | /* confdefs.h. */ | |
17928 | _ACEOF | |
17929 | cat confdefs.h >>conftest.$ac_ext | |
17930 | cat >>conftest.$ac_ext <<_ACEOF | |
17931 | /* end confdefs.h. */ | |
7ee38065 MS |
17932 | |
17933 | #define _SYSCALL32 | |
17934 | #include <sys/procfs.h> | |
5464f5a1 NN |
17935 | int |
17936 | main () | |
17937 | { | |
7ee38065 | 17938 | prstatus32_t avar |
5464f5a1 NN |
17939 | ; |
17940 | return 0; | |
17941 | } | |
17942 | _ACEOF | |
17943 | rm -f conftest.$ac_objext | |
17944 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17945 | (eval $ac_compile) 2>conftest.er1 | |
17946 | ac_status=$? | |
17947 | grep -v '^ *+' conftest.er1 >conftest.err | |
17948 | rm -f conftest.er1 | |
17949 | cat conftest.err >&5 | |
17950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17951 | (exit $ac_status); } && | |
49c96104 SE |
17952 | { ac_try='test -z "$ac_c_werror_flag" |
17953 | || test ! -s conftest.err' | |
5464f5a1 NN |
17954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17955 | (eval $ac_try) 2>&5 | |
17956 | ac_status=$? | |
17957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17958 | (exit $ac_status); }; } && | |
17959 | { ac_try='test -s conftest.$ac_objext' | |
17960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17961 | (eval $ac_try) 2>&5 | |
17962 | ac_status=$? | |
17963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17964 | (exit $ac_status); }; }; then | |
7ee38065 MS |
17965 | bfd_cv_have_sys_procfs_type_prstatus32_t=yes |
17966 | else | |
5464f5a1 NN |
17967 | echo "$as_me: failed program was:" >&5 |
17968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17969 | ||
17970 | bfd_cv_have_sys_procfs_type_prstatus32_t=no | |
17971 | ||
7ee38065 | 17972 | fi |
5464f5a1 | 17973 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
17974 | fi |
17975 | ||
17976 | if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then | |
5464f5a1 NN |
17977 | |
17978 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 17979 | #define HAVE_PRSTATUS32_T 1 |
5464f5a1 | 17980 | _ACEOF |
7ee38065 MS |
17981 | |
17982 | fi | |
5464f5a1 NN |
17983 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5 |
17984 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6 | |
7ee38065 | 17985 | |
5464f5a1 NN |
17986 | echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5 |
17987 | echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6 | |
17988 | if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then | |
17989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 17990 | else |
5464f5a1 NN |
17991 | cat >conftest.$ac_ext <<_ACEOF |
17992 | /* confdefs.h. */ | |
17993 | _ACEOF | |
17994 | cat confdefs.h >>conftest.$ac_ext | |
17995 | cat >>conftest.$ac_ext <<_ACEOF | |
17996 | /* end confdefs.h. */ | |
7ee38065 MS |
17997 | |
17998 | #define _SYSCALL32 | |
252b5132 | 17999 | #include <sys/procfs.h> |
5464f5a1 NN |
18000 | int |
18001 | main () | |
18002 | { | |
252b5132 | 18003 | prstatus_t avar; void* aref = (void*) &avar.pr_who |
5464f5a1 NN |
18004 | ; |
18005 | return 0; | |
18006 | } | |
18007 | _ACEOF | |
18008 | rm -f conftest.$ac_objext | |
18009 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18010 | (eval $ac_compile) 2>conftest.er1 | |
18011 | ac_status=$? | |
18012 | grep -v '^ *+' conftest.er1 >conftest.err | |
18013 | rm -f conftest.er1 | |
18014 | cat conftest.err >&5 | |
18015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18016 | (exit $ac_status); } && | |
49c96104 SE |
18017 | { ac_try='test -z "$ac_c_werror_flag" |
18018 | || test ! -s conftest.err' | |
5464f5a1 NN |
18019 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18020 | (eval $ac_try) 2>&5 | |
18021 | ac_status=$? | |
18022 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18023 | (exit $ac_status); }; } && | |
18024 | { ac_try='test -s conftest.$ac_objext' | |
18025 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18026 | (eval $ac_try) 2>&5 | |
18027 | ac_status=$? | |
18028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18029 | (exit $ac_status); }; }; then | |
252b5132 RH |
18030 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes |
18031 | else | |
5464f5a1 NN |
18032 | echo "$as_me: failed program was:" >&5 |
18033 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18034 | ||
18035 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no | |
18036 | ||
252b5132 | 18037 | fi |
5464f5a1 | 18038 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
18039 | fi |
18040 | ||
18041 | if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then | |
5464f5a1 NN |
18042 | |
18043 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 18044 | #define HAVE_PRSTATUS_T_PR_WHO 1 |
5464f5a1 | 18045 | _ACEOF |
252b5132 RH |
18046 | |
18047 | fi | |
5464f5a1 NN |
18048 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5 |
18049 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6 | |
252b5132 | 18050 | |
5464f5a1 NN |
18051 | echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5 |
18052 | echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6 | |
18053 | if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then | |
18054 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 18055 | else |
5464f5a1 NN |
18056 | cat >conftest.$ac_ext <<_ACEOF |
18057 | /* confdefs.h. */ | |
18058 | _ACEOF | |
18059 | cat confdefs.h >>conftest.$ac_ext | |
18060 | cat >>conftest.$ac_ext <<_ACEOF | |
18061 | /* end confdefs.h. */ | |
7ee38065 MS |
18062 | |
18063 | #define _SYSCALL32 | |
18064 | #include <sys/procfs.h> | |
5464f5a1 NN |
18065 | int |
18066 | main () | |
18067 | { | |
7ee38065 | 18068 | prstatus32_t avar; void* aref = (void*) &avar.pr_who |
5464f5a1 NN |
18069 | ; |
18070 | return 0; | |
18071 | } | |
18072 | _ACEOF | |
18073 | rm -f conftest.$ac_objext | |
18074 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18075 | (eval $ac_compile) 2>conftest.er1 | |
18076 | ac_status=$? | |
18077 | grep -v '^ *+' conftest.er1 >conftest.err | |
18078 | rm -f conftest.er1 | |
18079 | cat conftest.err >&5 | |
18080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18081 | (exit $ac_status); } && | |
49c96104 SE |
18082 | { ac_try='test -z "$ac_c_werror_flag" |
18083 | || test ! -s conftest.err' | |
5464f5a1 NN |
18084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18085 | (eval $ac_try) 2>&5 | |
18086 | ac_status=$? | |
18087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18088 | (exit $ac_status); }; } && | |
18089 | { ac_try='test -s conftest.$ac_objext' | |
18090 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18091 | (eval $ac_try) 2>&5 | |
18092 | ac_status=$? | |
18093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18094 | (exit $ac_status); }; }; then | |
7ee38065 MS |
18095 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes |
18096 | else | |
5464f5a1 NN |
18097 | echo "$as_me: failed program was:" >&5 |
18098 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18099 | ||
18100 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no | |
18101 | ||
7ee38065 | 18102 | fi |
5464f5a1 | 18103 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
18104 | fi |
18105 | ||
18106 | if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then | |
5464f5a1 NN |
18107 | |
18108 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 18109 | #define HAVE_PRSTATUS32_T_PR_WHO 1 |
5464f5a1 | 18110 | _ACEOF |
7ee38065 MS |
18111 | |
18112 | fi | |
5464f5a1 NN |
18113 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5 |
18114 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6 | |
7ee38065 | 18115 | |
5464f5a1 NN |
18116 | echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5 |
18117 | echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
18118 | if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then | |
18119 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 18120 | else |
5464f5a1 NN |
18121 | cat >conftest.$ac_ext <<_ACEOF |
18122 | /* confdefs.h. */ | |
18123 | _ACEOF | |
18124 | cat confdefs.h >>conftest.$ac_ext | |
18125 | cat >>conftest.$ac_ext <<_ACEOF | |
18126 | /* end confdefs.h. */ | |
7ee38065 MS |
18127 | |
18128 | #define _SYSCALL32 | |
252b5132 | 18129 | #include <sys/procfs.h> |
5464f5a1 NN |
18130 | int |
18131 | main () | |
18132 | { | |
252b5132 | 18133 | pstatus_t avar |
5464f5a1 NN |
18134 | ; |
18135 | return 0; | |
18136 | } | |
18137 | _ACEOF | |
18138 | rm -f conftest.$ac_objext | |
18139 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18140 | (eval $ac_compile) 2>conftest.er1 | |
18141 | ac_status=$? | |
18142 | grep -v '^ *+' conftest.er1 >conftest.err | |
18143 | rm -f conftest.er1 | |
18144 | cat conftest.err >&5 | |
18145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18146 | (exit $ac_status); } && | |
49c96104 SE |
18147 | { ac_try='test -z "$ac_c_werror_flag" |
18148 | || test ! -s conftest.err' | |
5464f5a1 NN |
18149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18150 | (eval $ac_try) 2>&5 | |
18151 | ac_status=$? | |
18152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18153 | (exit $ac_status); }; } && | |
18154 | { ac_try='test -s conftest.$ac_objext' | |
18155 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18156 | (eval $ac_try) 2>&5 | |
18157 | ac_status=$? | |
18158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18159 | (exit $ac_status); }; }; then | |
252b5132 RH |
18160 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
18161 | else | |
5464f5a1 NN |
18162 | echo "$as_me: failed program was:" >&5 |
18163 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18164 | ||
18165 | bfd_cv_have_sys_procfs_type_pstatus_t=no | |
18166 | ||
252b5132 | 18167 | fi |
5464f5a1 | 18168 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
18169 | fi |
18170 | ||
18171 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then | |
5464f5a1 NN |
18172 | |
18173 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 18174 | #define HAVE_PSTATUS_T 1 |
5464f5a1 | 18175 | _ACEOF |
252b5132 RH |
18176 | |
18177 | fi | |
5464f5a1 NN |
18178 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 |
18179 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6 | |
252b5132 | 18180 | |
5464f5a1 NN |
18181 | echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5 |
18182 | echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
18183 | if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then | |
18184 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f572a39d | 18185 | else |
5464f5a1 NN |
18186 | cat >conftest.$ac_ext <<_ACEOF |
18187 | /* confdefs.h. */ | |
18188 | _ACEOF | |
18189 | cat confdefs.h >>conftest.$ac_ext | |
18190 | cat >>conftest.$ac_ext <<_ACEOF | |
18191 | /* end confdefs.h. */ | |
f572a39d AM |
18192 | |
18193 | #define _SYSCALL32 | |
18194 | #include <sys/procfs.h> | |
5464f5a1 NN |
18195 | int |
18196 | main () | |
18197 | { | |
f572a39d | 18198 | pxstatus_t avar |
5464f5a1 NN |
18199 | ; |
18200 | return 0; | |
18201 | } | |
18202 | _ACEOF | |
18203 | rm -f conftest.$ac_objext | |
18204 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18205 | (eval $ac_compile) 2>conftest.er1 | |
18206 | ac_status=$? | |
18207 | grep -v '^ *+' conftest.er1 >conftest.err | |
18208 | rm -f conftest.er1 | |
18209 | cat conftest.err >&5 | |
18210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18211 | (exit $ac_status); } && | |
49c96104 SE |
18212 | { ac_try='test -z "$ac_c_werror_flag" |
18213 | || test ! -s conftest.err' | |
5464f5a1 NN |
18214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18215 | (eval $ac_try) 2>&5 | |
18216 | ac_status=$? | |
18217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18218 | (exit $ac_status); }; } && | |
18219 | { ac_try='test -s conftest.$ac_objext' | |
18220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18221 | (eval $ac_try) 2>&5 | |
18222 | ac_status=$? | |
18223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18224 | (exit $ac_status); }; }; then | |
f572a39d AM |
18225 | bfd_cv_have_sys_procfs_type_pxstatus_t=yes |
18226 | else | |
5464f5a1 NN |
18227 | echo "$as_me: failed program was:" >&5 |
18228 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18229 | ||
18230 | bfd_cv_have_sys_procfs_type_pxstatus_t=no | |
18231 | ||
f572a39d | 18232 | fi |
5464f5a1 | 18233 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f572a39d AM |
18234 | fi |
18235 | ||
18236 | if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then | |
5464f5a1 NN |
18237 | |
18238 | cat >>confdefs.h <<\_ACEOF | |
f572a39d | 18239 | #define HAVE_PXSTATUS_T 1 |
5464f5a1 | 18240 | _ACEOF |
f572a39d AM |
18241 | |
18242 | fi | |
5464f5a1 NN |
18243 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5 |
18244 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6 | |
f572a39d | 18245 | |
5464f5a1 NN |
18246 | echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5 |
18247 | echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6 | |
18248 | if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then | |
18249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 18250 | else |
5464f5a1 NN |
18251 | cat >conftest.$ac_ext <<_ACEOF |
18252 | /* confdefs.h. */ | |
18253 | _ACEOF | |
18254 | cat confdefs.h >>conftest.$ac_ext | |
18255 | cat >>conftest.$ac_ext <<_ACEOF | |
18256 | /* end confdefs.h. */ | |
7ee38065 MS |
18257 | |
18258 | #define _SYSCALL32 | |
18259 | #include <sys/procfs.h> | |
5464f5a1 NN |
18260 | int |
18261 | main () | |
18262 | { | |
7ee38065 | 18263 | pstatus32_t avar |
5464f5a1 NN |
18264 | ; |
18265 | return 0; | |
18266 | } | |
18267 | _ACEOF | |
18268 | rm -f conftest.$ac_objext | |
18269 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18270 | (eval $ac_compile) 2>conftest.er1 | |
18271 | ac_status=$? | |
18272 | grep -v '^ *+' conftest.er1 >conftest.err | |
18273 | rm -f conftest.er1 | |
18274 | cat conftest.err >&5 | |
18275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18276 | (exit $ac_status); } && | |
49c96104 SE |
18277 | { ac_try='test -z "$ac_c_werror_flag" |
18278 | || test ! -s conftest.err' | |
5464f5a1 NN |
18279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18280 | (eval $ac_try) 2>&5 | |
18281 | ac_status=$? | |
18282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18283 | (exit $ac_status); }; } && | |
18284 | { ac_try='test -s conftest.$ac_objext' | |
18285 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18286 | (eval $ac_try) 2>&5 | |
18287 | ac_status=$? | |
18288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18289 | (exit $ac_status); }; }; then | |
7ee38065 MS |
18290 | bfd_cv_have_sys_procfs_type_pstatus32_t=yes |
18291 | else | |
5464f5a1 NN |
18292 | echo "$as_me: failed program was:" >&5 |
18293 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18294 | ||
18295 | bfd_cv_have_sys_procfs_type_pstatus32_t=no | |
18296 | ||
7ee38065 | 18297 | fi |
5464f5a1 | 18298 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
18299 | fi |
18300 | ||
18301 | if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then | |
5464f5a1 NN |
18302 | |
18303 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 18304 | #define HAVE_PSTATUS32_T 1 |
5464f5a1 | 18305 | _ACEOF |
7ee38065 MS |
18306 | |
18307 | fi | |
5464f5a1 NN |
18308 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5 |
18309 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6 | |
7ee38065 | 18310 | |
5464f5a1 NN |
18311 | echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5 |
18312 | echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6 | |
18313 | if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then | |
18314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 18315 | else |
5464f5a1 NN |
18316 | cat >conftest.$ac_ext <<_ACEOF |
18317 | /* confdefs.h. */ | |
18318 | _ACEOF | |
18319 | cat confdefs.h >>conftest.$ac_ext | |
18320 | cat >>conftest.$ac_ext <<_ACEOF | |
18321 | /* end confdefs.h. */ | |
7ee38065 MS |
18322 | |
18323 | #define _SYSCALL32 | |
252b5132 | 18324 | #include <sys/procfs.h> |
5464f5a1 NN |
18325 | int |
18326 | main () | |
18327 | { | |
252b5132 | 18328 | prpsinfo_t avar |
5464f5a1 NN |
18329 | ; |
18330 | return 0; | |
18331 | } | |
18332 | _ACEOF | |
18333 | rm -f conftest.$ac_objext | |
18334 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18335 | (eval $ac_compile) 2>conftest.er1 | |
18336 | ac_status=$? | |
18337 | grep -v '^ *+' conftest.er1 >conftest.err | |
18338 | rm -f conftest.er1 | |
18339 | cat conftest.err >&5 | |
18340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18341 | (exit $ac_status); } && | |
49c96104 SE |
18342 | { ac_try='test -z "$ac_c_werror_flag" |
18343 | || test ! -s conftest.err' | |
5464f5a1 NN |
18344 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18345 | (eval $ac_try) 2>&5 | |
18346 | ac_status=$? | |
18347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18348 | (exit $ac_status); }; } && | |
18349 | { ac_try='test -s conftest.$ac_objext' | |
18350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18351 | (eval $ac_try) 2>&5 | |
18352 | ac_status=$? | |
18353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18354 | (exit $ac_status); }; }; then | |
252b5132 RH |
18355 | bfd_cv_have_sys_procfs_type_prpsinfo_t=yes |
18356 | else | |
5464f5a1 NN |
18357 | echo "$as_me: failed program was:" >&5 |
18358 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18359 | ||
18360 | bfd_cv_have_sys_procfs_type_prpsinfo_t=no | |
18361 | ||
252b5132 | 18362 | fi |
5464f5a1 | 18363 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
18364 | fi |
18365 | ||
18366 | if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then | |
5464f5a1 NN |
18367 | |
18368 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 18369 | #define HAVE_PRPSINFO_T 1 |
5464f5a1 | 18370 | _ACEOF |
252b5132 RH |
18371 | |
18372 | fi | |
5464f5a1 NN |
18373 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5 |
18374 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6 | |
252b5132 | 18375 | |
5464f5a1 NN |
18376 | echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5 |
18377 | echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6 | |
18378 | if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then | |
18379 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 18380 | else |
5464f5a1 NN |
18381 | cat >conftest.$ac_ext <<_ACEOF |
18382 | /* confdefs.h. */ | |
18383 | _ACEOF | |
18384 | cat confdefs.h >>conftest.$ac_ext | |
18385 | cat >>conftest.$ac_ext <<_ACEOF | |
18386 | /* end confdefs.h. */ | |
7ee38065 MS |
18387 | |
18388 | #define _SYSCALL32 | |
18389 | #include <sys/procfs.h> | |
5464f5a1 NN |
18390 | int |
18391 | main () | |
18392 | { | |
7ee38065 | 18393 | prpsinfo32_t avar |
5464f5a1 NN |
18394 | ; |
18395 | return 0; | |
18396 | } | |
18397 | _ACEOF | |
18398 | rm -f conftest.$ac_objext | |
18399 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18400 | (eval $ac_compile) 2>conftest.er1 | |
18401 | ac_status=$? | |
18402 | grep -v '^ *+' conftest.er1 >conftest.err | |
18403 | rm -f conftest.er1 | |
18404 | cat conftest.err >&5 | |
18405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18406 | (exit $ac_status); } && | |
49c96104 SE |
18407 | { ac_try='test -z "$ac_c_werror_flag" |
18408 | || test ! -s conftest.err' | |
5464f5a1 NN |
18409 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18410 | (eval $ac_try) 2>&5 | |
18411 | ac_status=$? | |
18412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18413 | (exit $ac_status); }; } && | |
18414 | { ac_try='test -s conftest.$ac_objext' | |
18415 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18416 | (eval $ac_try) 2>&5 | |
18417 | ac_status=$? | |
18418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18419 | (exit $ac_status); }; }; then | |
7ee38065 MS |
18420 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes |
18421 | else | |
5464f5a1 NN |
18422 | echo "$as_me: failed program was:" >&5 |
18423 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18424 | ||
18425 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=no | |
18426 | ||
7ee38065 | 18427 | fi |
5464f5a1 | 18428 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
18429 | fi |
18430 | ||
18431 | if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then | |
5464f5a1 NN |
18432 | |
18433 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 18434 | #define HAVE_PRPSINFO32_T 1 |
5464f5a1 | 18435 | _ACEOF |
7ee38065 MS |
18436 | |
18437 | fi | |
5464f5a1 NN |
18438 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5 |
18439 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6 | |
7ee38065 | 18440 | |
5464f5a1 NN |
18441 | echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5 |
18442 | echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6 | |
18443 | if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then | |
18444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 18445 | else |
5464f5a1 NN |
18446 | cat >conftest.$ac_ext <<_ACEOF |
18447 | /* confdefs.h. */ | |
18448 | _ACEOF | |
18449 | cat confdefs.h >>conftest.$ac_ext | |
18450 | cat >>conftest.$ac_ext <<_ACEOF | |
18451 | /* end confdefs.h. */ | |
7ee38065 MS |
18452 | |
18453 | #define _SYSCALL32 | |
252b5132 | 18454 | #include <sys/procfs.h> |
5464f5a1 NN |
18455 | int |
18456 | main () | |
18457 | { | |
252b5132 | 18458 | psinfo_t avar |
5464f5a1 NN |
18459 | ; |
18460 | return 0; | |
18461 | } | |
18462 | _ACEOF | |
18463 | rm -f conftest.$ac_objext | |
18464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18465 | (eval $ac_compile) 2>conftest.er1 | |
18466 | ac_status=$? | |
18467 | grep -v '^ *+' conftest.er1 >conftest.err | |
18468 | rm -f conftest.er1 | |
18469 | cat conftest.err >&5 | |
18470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18471 | (exit $ac_status); } && | |
49c96104 SE |
18472 | { ac_try='test -z "$ac_c_werror_flag" |
18473 | || test ! -s conftest.err' | |
5464f5a1 NN |
18474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18475 | (eval $ac_try) 2>&5 | |
18476 | ac_status=$? | |
18477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18478 | (exit $ac_status); }; } && | |
18479 | { ac_try='test -s conftest.$ac_objext' | |
18480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18481 | (eval $ac_try) 2>&5 | |
18482 | ac_status=$? | |
18483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18484 | (exit $ac_status); }; }; then | |
252b5132 RH |
18485 | bfd_cv_have_sys_procfs_type_psinfo_t=yes |
18486 | else | |
5464f5a1 NN |
18487 | echo "$as_me: failed program was:" >&5 |
18488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18489 | ||
18490 | bfd_cv_have_sys_procfs_type_psinfo_t=no | |
18491 | ||
252b5132 | 18492 | fi |
5464f5a1 | 18493 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
18494 | fi |
18495 | ||
18496 | if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then | |
5464f5a1 NN |
18497 | |
18498 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 18499 | #define HAVE_PSINFO_T 1 |
5464f5a1 | 18500 | _ACEOF |
252b5132 RH |
18501 | |
18502 | fi | |
5464f5a1 NN |
18503 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5 |
18504 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6 | |
252b5132 | 18505 | |
5464f5a1 NN |
18506 | echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5 |
18507 | echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6 | |
18508 | if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then | |
18509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 18510 | else |
5464f5a1 NN |
18511 | cat >conftest.$ac_ext <<_ACEOF |
18512 | /* confdefs.h. */ | |
18513 | _ACEOF | |
18514 | cat confdefs.h >>conftest.$ac_ext | |
18515 | cat >>conftest.$ac_ext <<_ACEOF | |
18516 | /* end confdefs.h. */ | |
7ee38065 MS |
18517 | |
18518 | #define _SYSCALL32 | |
18519 | #include <sys/procfs.h> | |
5464f5a1 NN |
18520 | int |
18521 | main () | |
18522 | { | |
7ee38065 | 18523 | psinfo32_t avar |
5464f5a1 NN |
18524 | ; |
18525 | return 0; | |
18526 | } | |
18527 | _ACEOF | |
18528 | rm -f conftest.$ac_objext | |
18529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18530 | (eval $ac_compile) 2>conftest.er1 | |
18531 | ac_status=$? | |
18532 | grep -v '^ *+' conftest.er1 >conftest.err | |
18533 | rm -f conftest.er1 | |
18534 | cat conftest.err >&5 | |
18535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18536 | (exit $ac_status); } && | |
49c96104 SE |
18537 | { ac_try='test -z "$ac_c_werror_flag" |
18538 | || test ! -s conftest.err' | |
5464f5a1 NN |
18539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18540 | (eval $ac_try) 2>&5 | |
18541 | ac_status=$? | |
18542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18543 | (exit $ac_status); }; } && | |
18544 | { ac_try='test -s conftest.$ac_objext' | |
18545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18546 | (eval $ac_try) 2>&5 | |
18547 | ac_status=$? | |
18548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18549 | (exit $ac_status); }; }; then | |
7ee38065 MS |
18550 | bfd_cv_have_sys_procfs_type_psinfo32_t=yes |
18551 | else | |
5464f5a1 NN |
18552 | echo "$as_me: failed program was:" >&5 |
18553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18554 | ||
18555 | bfd_cv_have_sys_procfs_type_psinfo32_t=no | |
18556 | ||
7ee38065 | 18557 | fi |
5464f5a1 | 18558 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
18559 | fi |
18560 | ||
18561 | if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then | |
5464f5a1 NN |
18562 | |
18563 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 18564 | #define HAVE_PSINFO32_T 1 |
5464f5a1 | 18565 | _ACEOF |
7ee38065 MS |
18566 | |
18567 | fi | |
5464f5a1 NN |
18568 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5 |
18569 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6 | |
7ee38065 | 18570 | |
5464f5a1 NN |
18571 | echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5 |
18572 | echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
18573 | if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then | |
18574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 18575 | else |
5464f5a1 NN |
18576 | cat >conftest.$ac_ext <<_ACEOF |
18577 | /* confdefs.h. */ | |
18578 | _ACEOF | |
18579 | cat confdefs.h >>conftest.$ac_ext | |
18580 | cat >>conftest.$ac_ext <<_ACEOF | |
18581 | /* end confdefs.h. */ | |
7ee38065 MS |
18582 | |
18583 | #define _SYSCALL32 | |
252b5132 | 18584 | #include <sys/procfs.h> |
5464f5a1 NN |
18585 | int |
18586 | main () | |
18587 | { | |
252b5132 | 18588 | lwpstatus_t avar |
5464f5a1 NN |
18589 | ; |
18590 | return 0; | |
18591 | } | |
18592 | _ACEOF | |
18593 | rm -f conftest.$ac_objext | |
18594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18595 | (eval $ac_compile) 2>conftest.er1 | |
18596 | ac_status=$? | |
18597 | grep -v '^ *+' conftest.er1 >conftest.err | |
18598 | rm -f conftest.er1 | |
18599 | cat conftest.err >&5 | |
18600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18601 | (exit $ac_status); } && | |
49c96104 SE |
18602 | { ac_try='test -z "$ac_c_werror_flag" |
18603 | || test ! -s conftest.err' | |
5464f5a1 NN |
18604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18605 | (eval $ac_try) 2>&5 | |
18606 | ac_status=$? | |
18607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18608 | (exit $ac_status); }; } && | |
18609 | { ac_try='test -s conftest.$ac_objext' | |
18610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18611 | (eval $ac_try) 2>&5 | |
18612 | ac_status=$? | |
18613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18614 | (exit $ac_status); }; }; then | |
252b5132 RH |
18615 | bfd_cv_have_sys_procfs_type_lwpstatus_t=yes |
18616 | else | |
5464f5a1 NN |
18617 | echo "$as_me: failed program was:" >&5 |
18618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18619 | ||
18620 | bfd_cv_have_sys_procfs_type_lwpstatus_t=no | |
18621 | ||
252b5132 | 18622 | fi |
5464f5a1 | 18623 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
18624 | fi |
18625 | ||
18626 | if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then | |
5464f5a1 NN |
18627 | |
18628 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 18629 | #define HAVE_LWPSTATUS_T 1 |
5464f5a1 | 18630 | _ACEOF |
252b5132 RH |
18631 | |
18632 | fi | |
5464f5a1 NN |
18633 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5 |
18634 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6 | |
252b5132 | 18635 | |
5464f5a1 NN |
18636 | echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5 |
18637 | echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
18638 | if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then | |
18639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f572a39d | 18640 | else |
5464f5a1 NN |
18641 | cat >conftest.$ac_ext <<_ACEOF |
18642 | /* confdefs.h. */ | |
18643 | _ACEOF | |
18644 | cat confdefs.h >>conftest.$ac_ext | |
18645 | cat >>conftest.$ac_ext <<_ACEOF | |
18646 | /* end confdefs.h. */ | |
f572a39d AM |
18647 | |
18648 | #define _SYSCALL32 | |
18649 | #include <sys/procfs.h> | |
5464f5a1 NN |
18650 | int |
18651 | main () | |
18652 | { | |
f572a39d | 18653 | lwpxstatus_t avar |
5464f5a1 NN |
18654 | ; |
18655 | return 0; | |
18656 | } | |
18657 | _ACEOF | |
18658 | rm -f conftest.$ac_objext | |
18659 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18660 | (eval $ac_compile) 2>conftest.er1 | |
18661 | ac_status=$? | |
18662 | grep -v '^ *+' conftest.er1 >conftest.err | |
18663 | rm -f conftest.er1 | |
18664 | cat conftest.err >&5 | |
18665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18666 | (exit $ac_status); } && | |
49c96104 SE |
18667 | { ac_try='test -z "$ac_c_werror_flag" |
18668 | || test ! -s conftest.err' | |
5464f5a1 NN |
18669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18670 | (eval $ac_try) 2>&5 | |
18671 | ac_status=$? | |
18672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18673 | (exit $ac_status); }; } && | |
18674 | { ac_try='test -s conftest.$ac_objext' | |
18675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18676 | (eval $ac_try) 2>&5 | |
18677 | ac_status=$? | |
18678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18679 | (exit $ac_status); }; }; then | |
f572a39d AM |
18680 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes |
18681 | else | |
5464f5a1 NN |
18682 | echo "$as_me: failed program was:" >&5 |
18683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18684 | ||
18685 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=no | |
18686 | ||
f572a39d | 18687 | fi |
5464f5a1 | 18688 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f572a39d AM |
18689 | fi |
18690 | ||
18691 | if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then | |
5464f5a1 NN |
18692 | |
18693 | cat >>confdefs.h <<\_ACEOF | |
f572a39d | 18694 | #define HAVE_LWPXSTATUS_T 1 |
5464f5a1 | 18695 | _ACEOF |
f572a39d AM |
18696 | |
18697 | fi | |
5464f5a1 NN |
18698 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5 |
18699 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6 | |
f572a39d | 18700 | |
5464f5a1 NN |
18701 | echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5 |
18702 | echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6 | |
18703 | if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then | |
18704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 18705 | else |
5464f5a1 NN |
18706 | cat >conftest.$ac_ext <<_ACEOF |
18707 | /* confdefs.h. */ | |
18708 | _ACEOF | |
18709 | cat confdefs.h >>conftest.$ac_ext | |
18710 | cat >>conftest.$ac_ext <<_ACEOF | |
18711 | /* end confdefs.h. */ | |
7ee38065 MS |
18712 | |
18713 | #define _SYSCALL32 | |
252b5132 | 18714 | #include <sys/procfs.h> |
5464f5a1 NN |
18715 | int |
18716 | main () | |
18717 | { | |
252b5132 | 18718 | lwpstatus_t avar; void* aref = (void*) &avar.pr_context |
5464f5a1 NN |
18719 | ; |
18720 | return 0; | |
18721 | } | |
18722 | _ACEOF | |
18723 | rm -f conftest.$ac_objext | |
18724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18725 | (eval $ac_compile) 2>conftest.er1 | |
18726 | ac_status=$? | |
18727 | grep -v '^ *+' conftest.er1 >conftest.err | |
18728 | rm -f conftest.er1 | |
18729 | cat conftest.err >&5 | |
18730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18731 | (exit $ac_status); } && | |
49c96104 SE |
18732 | { ac_try='test -z "$ac_c_werror_flag" |
18733 | || test ! -s conftest.err' | |
5464f5a1 NN |
18734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18735 | (eval $ac_try) 2>&5 | |
18736 | ac_status=$? | |
18737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18738 | (exit $ac_status); }; } && | |
18739 | { ac_try='test -s conftest.$ac_objext' | |
18740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18741 | (eval $ac_try) 2>&5 | |
18742 | ac_status=$? | |
18743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18744 | (exit $ac_status); }; }; then | |
252b5132 RH |
18745 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes |
18746 | else | |
5464f5a1 NN |
18747 | echo "$as_me: failed program was:" >&5 |
18748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18749 | ||
18750 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no | |
18751 | ||
252b5132 | 18752 | fi |
5464f5a1 | 18753 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
18754 | fi |
18755 | ||
18756 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then | |
5464f5a1 NN |
18757 | |
18758 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 18759 | #define HAVE_LWPSTATUS_T_PR_CONTEXT 1 |
5464f5a1 | 18760 | _ACEOF |
252b5132 RH |
18761 | |
18762 | fi | |
5464f5a1 NN |
18763 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5 |
18764 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6 | |
252b5132 | 18765 | |
5464f5a1 NN |
18766 | echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5 |
18767 | echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6 | |
18768 | if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then | |
18769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 18770 | else |
5464f5a1 NN |
18771 | cat >conftest.$ac_ext <<_ACEOF |
18772 | /* confdefs.h. */ | |
18773 | _ACEOF | |
18774 | cat confdefs.h >>conftest.$ac_ext | |
18775 | cat >>conftest.$ac_ext <<_ACEOF | |
18776 | /* end confdefs.h. */ | |
7ee38065 MS |
18777 | |
18778 | #define _SYSCALL32 | |
252b5132 | 18779 | #include <sys/procfs.h> |
5464f5a1 NN |
18780 | int |
18781 | main () | |
18782 | { | |
252b5132 | 18783 | lwpstatus_t avar; void* aref = (void*) &avar.pr_reg |
5464f5a1 NN |
18784 | ; |
18785 | return 0; | |
18786 | } | |
18787 | _ACEOF | |
18788 | rm -f conftest.$ac_objext | |
18789 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18790 | (eval $ac_compile) 2>conftest.er1 | |
18791 | ac_status=$? | |
18792 | grep -v '^ *+' conftest.er1 >conftest.err | |
18793 | rm -f conftest.er1 | |
18794 | cat conftest.err >&5 | |
18795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18796 | (exit $ac_status); } && | |
49c96104 SE |
18797 | { ac_try='test -z "$ac_c_werror_flag" |
18798 | || test ! -s conftest.err' | |
5464f5a1 NN |
18799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18800 | (eval $ac_try) 2>&5 | |
18801 | ac_status=$? | |
18802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18803 | (exit $ac_status); }; } && | |
18804 | { ac_try='test -s conftest.$ac_objext' | |
18805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18806 | (eval $ac_try) 2>&5 | |
18807 | ac_status=$? | |
18808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18809 | (exit $ac_status); }; }; then | |
252b5132 RH |
18810 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes |
18811 | else | |
5464f5a1 NN |
18812 | echo "$as_me: failed program was:" >&5 |
18813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18814 | ||
18815 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no | |
18816 | ||
252b5132 | 18817 | fi |
5464f5a1 | 18818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
18819 | fi |
18820 | ||
18821 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then | |
5464f5a1 NN |
18822 | |
18823 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 18824 | #define HAVE_LWPSTATUS_T_PR_REG 1 |
5464f5a1 | 18825 | _ACEOF |
252b5132 RH |
18826 | |
18827 | fi | |
5464f5a1 NN |
18828 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5 |
18829 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6 | |
252b5132 | 18830 | |
5464f5a1 NN |
18831 | echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5 |
18832 | echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
18833 | if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then | |
18834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e3c976c4 | 18835 | else |
5464f5a1 NN |
18836 | cat >conftest.$ac_ext <<_ACEOF |
18837 | /* confdefs.h. */ | |
18838 | _ACEOF | |
18839 | cat confdefs.h >>conftest.$ac_ext | |
18840 | cat >>conftest.$ac_ext <<_ACEOF | |
18841 | /* end confdefs.h. */ | |
7ee38065 MS |
18842 | |
18843 | #define _SYSCALL32 | |
e3c976c4 | 18844 | #include <sys/procfs.h> |
5464f5a1 NN |
18845 | int |
18846 | main () | |
18847 | { | |
e3c976c4 | 18848 | win32_pstatus_t avar |
5464f5a1 NN |
18849 | ; |
18850 | return 0; | |
18851 | } | |
18852 | _ACEOF | |
18853 | rm -f conftest.$ac_objext | |
18854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18855 | (eval $ac_compile) 2>conftest.er1 | |
18856 | ac_status=$? | |
18857 | grep -v '^ *+' conftest.er1 >conftest.err | |
18858 | rm -f conftest.er1 | |
18859 | cat conftest.err >&5 | |
18860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18861 | (exit $ac_status); } && | |
49c96104 SE |
18862 | { ac_try='test -z "$ac_c_werror_flag" |
18863 | || test ! -s conftest.err' | |
5464f5a1 NN |
18864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18865 | (eval $ac_try) 2>&5 | |
18866 | ac_status=$? | |
18867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18868 | (exit $ac_status); }; } && | |
18869 | { ac_try='test -s conftest.$ac_objext' | |
18870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18871 | (eval $ac_try) 2>&5 | |
18872 | ac_status=$? | |
18873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18874 | (exit $ac_status); }; }; then | |
e3c976c4 ILT |
18875 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes |
18876 | else | |
5464f5a1 NN |
18877 | echo "$as_me: failed program was:" >&5 |
18878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18879 | ||
18880 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=no | |
18881 | ||
e3c976c4 | 18882 | fi |
5464f5a1 | 18883 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
18884 | fi |
18885 | ||
e3c976c4 | 18886 | if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then |
5464f5a1 NN |
18887 | |
18888 | cat >>confdefs.h <<\_ACEOF | |
e3c976c4 | 18889 | #define HAVE_WIN32_PSTATUS_T 1 |
5464f5a1 | 18890 | _ACEOF |
16e9c715 NC |
18891 | |
18892 | fi | |
5464f5a1 NN |
18893 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5 |
18894 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6 | |
e3c976c4 ILT |
18895 | |
18896 | fi | |
18897 | fi | |
16e9c715 | 18898 | |
b3baf5d0 | 18899 | |
6be7c12c | 18900 | if test -n "$TRAD_HEADER"; then |
5464f5a1 NN |
18901 | |
18902 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 18903 | #define TRAD_HEADER $TRAD_HEADER |
5464f5a1 | 18904 | _ACEOF |
252b5132 | 18905 | |
3f9b03b5 | 18906 | fi |
252b5132 RH |
18907 | |
18908 | # Horrible hacks to build DLLs on Windows. | |
18909 | WIN32LDFLAGS= | |
18910 | WIN32LIBADD= | |
18911 | case "${host}" in | |
18912 | *-*-cygwin*) | |
18913 | if test "$enable_shared" = "yes"; then | |
18914 | WIN32LDFLAGS="-no-undefined" | |
18915 | WIN32LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32" | |
18916 | fi | |
18917 | ;; | |
78be1d6e | 18918 | *-*-linux*) |
39691762 L |
18919 | # We borrow WIN32LIBADD so that the shared libbfd won't depend on |
18920 | # libiberty.a. | |
c5cb8442 TS |
18921 | x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` |
18922 | if test -n "$x"; then | |
18923 | WIN32LIBADD="-L../libiberty/pic -liberty" | |
18924 | fi | |
39691762 | 18925 | ;; |
252b5132 RH |
18926 | esac |
18927 | ||
6be7c12c AO |
18928 | |
18929 | ||
252b5132 RH |
18930 | # target stuff: |
18931 | ||
18932 | # Canonicalize the secondary target names. | |
18933 | if test -n "$enable_targets" ; then | |
18934 | for targ in `echo $enable_targets | sed 's/,/ /g'` | |
18935 | do | |
6d83c84b | 18936 | result=`$ac_config_sub $targ 2>/dev/null` |
252b5132 RH |
18937 | if test -n "$result" ; then |
18938 | canon_targets="$canon_targets $result" | |
18939 | else | |
18940 | # Allow targets that config.sub doesn't recognize, like "all". | |
18941 | canon_targets="$canon_targets $targ" | |
18942 | fi | |
18943 | done | |
18944 | fi | |
18945 | ||
18946 | all_targets=false | |
18947 | defvec= | |
18948 | selvecs= | |
08f74004 | 18949 | assocvecs= |
252b5132 RH |
18950 | selarchs= |
18951 | TDEFINES= | |
18952 | for targ in $target $canon_targets | |
18953 | do | |
18954 | if test "x$targ" = "xall"; then | |
18955 | all_targets=true | |
08f74004 | 18956 | assocvecs="$assocvecs $targ_defvec $targ_selvecs" |
252b5132 RH |
18957 | else |
18958 | . $srcdir/config.bfd | |
18959 | if test "x$targ" = "x$target"; then | |
18960 | defvec=$targ_defvec | |
18961 | fi | |
18962 | selvecs="$selvecs $targ_defvec $targ_selvecs" | |
18963 | selarchs="$selarchs $targ_archs" | |
18964 | TDEFINES="$TDEFINES $targ_cflags" | |
18965 | fi | |
18966 | done | |
18967 | ||
6be7c12c | 18968 | |
252b5132 RH |
18969 | # This processing still needs to be done if we're to decide properly whether |
18970 | # 64-bit support needs to be compiled in. Currently, it will be included if | |
18971 | # the default or any other explicitly requested target requires it; it | |
18972 | # will not be included on a 32-bit host if no 64-bit target is requested, and | |
9eb7245e | 18973 | # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is |
252b5132 RH |
18974 | # used. |
18975 | ||
18976 | # uniq the default and selected vectors in all the configured targets. | |
18977 | f="" | |
18978 | for i in $selvecs ; do | |
18979 | case " $f " in | |
18980 | *" $i "*) ;; | |
18981 | *) f="$f $i" ;; | |
18982 | esac | |
18983 | done | |
18984 | selvecs="$f" | |
18985 | ||
6be7c12c | 18986 | |
08f74004 AM |
18987 | # uniq the associated vectors in all the configured targets. |
18988 | f="" | |
18989 | for i in $assocvecs ; do | |
18990 | case " $f " in | |
18991 | *" $i "*) ;; | |
18992 | *) f="$f $i" ;; | |
18993 | esac | |
18994 | done | |
18995 | assocvecs="$f" | |
18996 | ||
18997 | ||
252b5132 RH |
18998 | # uniq the architectures in all the configured targets. |
18999 | f="" | |
19000 | for i in $selarchs ; do | |
19001 | case " $f " in | |
19002 | *" $i "*) ;; | |
19003 | *) f="$f $i" ;; | |
19004 | esac | |
19005 | done | |
19006 | selarchs="$f" | |
19007 | ||
19008 | # Target backend .o files. | |
19009 | tb= | |
19010 | ||
104d59d1 | 19011 | elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo" |
252b5132 RH |
19012 | |
19013 | for vec in $selvecs | |
19014 | do | |
69263e90 | 19015 | target_size=32 |
252b5132 RH |
19016 | case "$vec" in |
19017 | # This list is alphabetized to make it easy to compare | |
dc810e39 AM |
19018 | # with the two vector lists in targets.c. For the same reason, |
19019 | # use one entry per line, even though this leads to long lines. | |
252b5132 | 19020 | a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;; |
341ca622 | 19021 | aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;; |
252b5132 RH |
19022 | aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;; |
19023 | aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;; | |
19024 | aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;; | |
252b5132 | 19025 | apollocoff_vec) tb="$tb coff-apollo.lo" ;; |
dc810e39 AM |
19026 | arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; |
19027 | arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; | |
19028 | arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; | |
19029 | arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; | |
7148cc28 NC |
19030 | arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;; |
19031 | arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;; | |
19032 | arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;; | |
19033 | arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;; | |
dc810e39 AM |
19034 | armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;; |
19035 | armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;; | |
19036 | armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;; | |
19037 | armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; | |
19038 | armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; | |
19039 | armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; | |
19040 | armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; | |
252b5132 RH |
19041 | b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;; |
19042 | b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;; | |
fac41780 | 19043 | bfd_efi_app_ia32_vec) tb="$tb efi-app-ia32.lo peigen.lo cofflink.lo" ;; |
e81819a5 NC |
19044 | bfd_efi_bsdrv_ia32_vec) tb="$tb efi-bsdrv-ia32.lo peigen.lo cofflink.lo" ;; |
19045 | bfd_efi_rtdrv_ia32_vec) tb="$tb efi-rtdrv-ia32.lo peigen.lo cofflink.lo" ;; | |
faed74d6 | 19046 | bfd_efi_app_x86_64_vec) tb="$tb efi-app-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;; |
e81819a5 NC |
19047 | bfd_efi_bsdrv_x86_64_vec) tb="$tb efi-bsdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;; |
19048 | bfd_efi_rtdrv_x86_64_vec) tb="$tb efi-rtdrv-x86_64.lo pex64igen.lo cofflink.lo" ;target_size=64;; | |
dc810e39 | 19049 | bfd_efi_app_ia64_vec) tb="$tb efi-app-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;; |
e81819a5 NC |
19050 | bfd_efi_bsdrv_ia64_vec) tb="$tb efi-bsdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;; |
19051 | bfd_efi_rtdrv_ia64_vec) tb="$tb efi-rtdrv-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;; | |
73c3cd1c | 19052 | bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;; |
adde6300 | 19053 | bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;; |
0f64bb02 | 19054 | bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;; |
48d502e1 | 19055 | bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;; |
dc810e39 | 19056 | bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; |
252b5132 | 19057 | bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; |
00a97672 | 19058 | bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; |
e5a52504 | 19059 | bfd_elf32_bigarm_symbian_vec) |
00a97672 | 19060 | tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; |
4e7fd91e | 19061 | bfd_elf32_bigarm_vxworks_vec) |
00a97672 | 19062 | tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; |
0a44bf69 RS |
19063 | bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; |
19064 | bfd_elf32_bigmips_vxworks_vec) | |
19065 | tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; | |
3d3d428f | 19066 | bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;; |
0949843d | 19067 | bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;; |
06c15ad7 | 19068 | bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
5464f5a1 | 19069 | bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;; |
252b5132 RH |
19070 | bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; |
19071 | bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;; | |
d172d4ba | 19072 | bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;; |
252b5132 | 19073 | bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;; |
4e5ba5b7 | 19074 | bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; |
43850d5b | 19075 | bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; |
e01b0e69 | 19076 | bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;; |
dc810e39 | 19077 | bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
225247f0 | 19078 | bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
dc810e39 | 19079 | bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
5b93d8bb | 19080 | bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;; |
0b3e17e9 NC |
19081 | bfd_elf32_i386_dragonfly_vec) |
19082 | tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; | |
eac338cf PB |
19083 | bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; |
19084 | bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; | |
19085 | bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; | |
9d751335 | 19086 | bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; |
dc810e39 | 19087 | bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; |
b2ef150d | 19088 | bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;; |
dc810e39 | 19089 | bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;; |
fcf12726 | 19090 | bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";; |
cf88bb9f | 19091 | bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;; |
a75473eb | 19092 | bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;; |
252b5132 | 19093 | bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; |
dc810e39 | 19094 | bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; |
e5a52504 | 19095 | bfd_elf32_littlearm_symbian_vec) |
00a97672 | 19096 | tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; |
4e7fd91e | 19097 | bfd_elf32_littlearm_vxworks_vec) |
00a97672 RS |
19098 | tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; |
19099 | bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; | |
0a44bf69 RS |
19100 | bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; |
19101 | bfd_elf32_littlemips_vxworks_vec) | |
19102 | tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; | |
e729279b | 19103 | bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;; |
252b5132 | 19104 | bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; |
6edf0760 NC |
19105 | bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; |
19106 | bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; | |
19107 | bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; | |
f5a6f915 SC |
19108 | bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;; |
19109 | bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;; | |
252b5132 RH |
19110 | bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;; |
19111 | bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;; | |
19112 | bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; | |
19113 | bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; | |
d9352518 DB |
19114 | bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;; |
19115 | bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;; | |
252b5132 RH |
19116 | bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;; |
19117 | bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;; | |
d031aafb | 19118 | bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;; |
2469cfa2 | 19119 | bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;; |
0a44bf69 RS |
19120 | bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
19121 | bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
19122 | bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
19123 | bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
b3baf5d0 | 19124 | bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;; |
3b16e843 | 19125 | bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;; |
0bcb993b ILT |
19126 | bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; |
19127 | bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; | |
9d8504b1 PB |
19128 | bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; |
19129 | bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; | |
19130 | bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; | |
a85d7ed0 | 19131 | bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;; |
1c0d3aa6 NC |
19132 | bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;; |
19133 | bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32.lo $elf" ;; | |
eb1e0e80 NC |
19134 | # FIXME: We include cofflink.lo not because it's needed for |
19135 | # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec | |
19136 | # which needs it but does not list it. Should be fixed in right place. | |
55e6e397 RS |
19137 | bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;; |
19138 | bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;; | |
19139 | bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;; | |
19140 | bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;; | |
19141 | bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;; | |
19142 | bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;; | |
19143 | bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;; | |
19144 | bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
19145 | bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;; | |
19146 | bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;; | |
19147 | bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
19148 | bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
19149 | bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;; | |
7b12cedc | 19150 | bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; |
55e6e397 | 19151 | bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;; |
910600e9 RS |
19152 | bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; |
19153 | bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; | |
e9f53129 | 19154 | bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;; |
0a44bf69 RS |
19155 | bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; |
19156 | bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; | |
dc810e39 | 19157 | bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
252b5132 | 19158 | bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; |
90ace9e9 | 19159 | bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;; |
93fbbb04 | 19160 | bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;; |
d70c5fc7 | 19161 | bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;; |
e0001a05 NC |
19162 | bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; |
19163 | bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; | |
2238051f | 19164 | bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; |
dc810e39 AM |
19165 | bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; |
19166 | bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; | |
0a44bf69 | 19167 | bfd_elf64_bigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
dc810e39 AM |
19168 | bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; |
19169 | bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; | |
dc810e39 | 19170 | bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; |
fcf12726 | 19171 | bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; |
dc810e39 AM |
19172 | bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; |
19173 | bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; | |
0a44bf69 | 19174 | bfd_elf64_littlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
3c3bdf30 | 19175 | bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;; |
dc810e39 AM |
19176 | bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;; |
19177 | bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; | |
19178 | bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;; | |
341ca622 AM |
19179 | bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; |
19180 | bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
2bc3c89a AM |
19181 | bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; |
19182 | bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
19183 | bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
19184 | bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
910600e9 | 19185 | bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; |
71a75f6f | 19186 | bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; |
0a44bf69 RS |
19187 | bfd_elf64_tradbigmips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
19188 | bfd_elf64_tradlittlemips_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
9d7cbccd | 19189 | bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;; |
dc810e39 | 19190 | bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;; |
3c3bdf30 | 19191 | bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;; |
dc810e39 AM |
19192 | bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; |
19193 | bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; | |
19194 | bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; | |
19195 | bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; | |
06c15ad7 | 19196 | cris_aout_vec) tb="$tb aout-cris.lo" ;; |
dc810e39 | 19197 | demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;; |
252b5132 | 19198 | ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
252b5132 | 19199 | ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
dc810e39 AM |
19200 | ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
19201 | ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;; | |
252b5132 RH |
19202 | go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;; |
19203 | go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;; | |
19204 | h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;; | |
19205 | h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;; | |
19206 | host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;; | |
19207 | hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;; | |
19208 | hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;; | |
19209 | i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;; | |
19210 | i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;; | |
19211 | i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;; | |
99ad8390 | 19212 | x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;; |
252b5132 RH |
19213 | i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;; |
19214 | i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;; | |
252b5132 RH |
19215 | i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;; |
19216 | i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;; | |
19217 | i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;; | |
19218 | i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;; | |
dc810e39 | 19219 | i386msdos_vec) tb="$tb i386msdos.lo" ;; |
252b5132 RH |
19220 | i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;; |
19221 | i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;; | |
dc810e39 AM |
19222 | i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;; |
19223 | i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;; | |
99ad8390 NC |
19224 | x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;; |
19225 | x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;; | |
252b5132 RH |
19226 | i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;; |
19227 | icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;; | |
19228 | icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;; | |
19229 | ieee_vec) tb="$tb ieee.lo" ;; | |
dc810e39 AM |
19230 | m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;; |
19231 | m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;; | |
252b5132 RH |
19232 | m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;; |
19233 | m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;; | |
19234 | m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;; | |
252b5132 | 19235 | m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;; |
252b5132 RH |
19236 | m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;; |
19237 | m88kbcs_vec) tb="$tb coff-m88k.lo" ;; | |
341ca622 | 19238 | m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;; |
c6f8758f | 19239 | m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;; |
7499d566 | 19240 | maxqcoff_vec) tb="$tb coff-maxq.lo" ;; |
93509525 KD |
19241 | mach_o_be_vec) tb="$tb mach-o.lo" ;; |
19242 | mach_o_le_vec) tb="$tb mach-o.lo" ;; | |
19243 | mach_o_fat_vec) tb="$tb mach-o.lo" ;; | |
277d1b5e ILT |
19244 | mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; |
19245 | mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; | |
19246 | mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; | |
19247 | mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; | |
dc810e39 AM |
19248 | mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;; |
19249 | mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;; | |
252b5132 | 19250 | newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;; |
dc810e39 | 19251 | nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;; |
252b5132 | 19252 | nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;; |
252b5132 | 19253 | nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;; |
dc810e39 | 19254 | nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;; |
3b16e843 | 19255 | or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;; |
252b5132 | 19256 | pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;; |
dc810e39 | 19257 | pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;; |
93509525 KD |
19258 | pef_vec) tb="$tb pef.lo" ;; |
19259 | pef_xlib_vec) tb="$tb pef.lo" ;; | |
e135f41b | 19260 | pdp11_aout_vec) tb="$tb pdp11.lo" ;; |
6768c14a | 19261 | pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; |
252b5132 | 19262 | ppcboot_vec) tb="$tb ppcboot.lo" ;; |
dc810e39 | 19263 | riscix_vec) tb="$tb aout32.lo riscix.lo" ;; |
eb1e0e80 | 19264 | rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;; |
dc810e39 | 19265 | rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; |
252b5132 | 19266 | shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
dc810e39 | 19267 | shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
252b5132 | 19268 | shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
dc810e39 | 19269 | shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
60bcf0fa NC |
19270 | shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; |
19271 | shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; | |
252b5132 | 19272 | som_vec) tb="$tb som.lo" ;; |
dc810e39 | 19273 | sparccoff_vec) tb="$tb coff-sparc.lo" ;; |
252b5132 RH |
19274 | sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;; |
19275 | sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;; | |
19276 | sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;; | |
19277 | sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;; | |
19278 | sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;; | |
252b5132 | 19279 | sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;; |
93509525 | 19280 | sym_vec) tb="$tb xsym.lo" ;; |
252b5132 RH |
19281 | tic30_aout_vec) tb="$tb aout-tic30.lo" ;; |
19282 | tic30_coff_vec) tb="$tb coff-tic30.lo" ;; | |
026df7c5 NC |
19283 | tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;; |
19284 | tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
19285 | tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;; | |
19286 | tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
19287 | tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;; | |
19288 | tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
81635ce4 | 19289 | tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 19290 | tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;; |
81635ce4 | 19291 | tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 19292 | tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;; |
81635ce4 | 19293 | tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 19294 | tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;; |
252b5132 | 19295 | tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;; |
90ace9e9 | 19296 | vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;; |
3c2bfad6 | 19297 | vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;; |
ba26fd96 | 19298 | vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;; |
252b5132 | 19299 | versados_vec) tb="$tb versados.lo" ;; |
dc810e39 | 19300 | vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;; |
252b5132 RH |
19301 | vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;; |
19302 | w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;; | |
19303 | we32kcoff_vec) tb="$tb coff-we32k.lo" ;; | |
3c9b82ba | 19304 | z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;; |
c0524131 | 19305 | z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;; |
252b5132 | 19306 | |
341ca622 AM |
19307 | # These appear out of order in targets.c |
19308 | srec_vec) tb="$tb srec.lo" ;; | |
19309 | symbolsrec_vec) tb="$tb srec.lo" ;; | |
19310 | tekhex_vec) tb="$tb tekhex.lo" ;; | |
19311 | cisco_core_big_vec) tb="$tb cisco-core.lo" ;; | |
19312 | cisco_core_little_vec) tb="$tb cisco-core.lo" ;; | |
19313 | ||
252b5132 | 19314 | "") ;; |
5464f5a1 NN |
19315 | *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5 |
19316 | echo "$as_me: error: *** unknown target vector $vec" >&2;} | |
19317 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 19318 | esac |
69263e90 AM |
19319 | |
19320 | if test ${target_size} = 64; then | |
19321 | target64=true | |
19322 | fi | |
19323 | if test x"${vec}" = x"${defvec}"; then | |
19324 | bfd_default_target_size=${target_size} | |
19325 | fi | |
252b5132 RH |
19326 | done |
19327 | ||
19328 | # Target architecture .o files. | |
19329 | # A couple of CPUs use shorter file names to avoid problems on DOS | |
19330 | # filesystems. | |
d031aafb | 19331 | ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` |
252b5132 RH |
19332 | |
19333 | # Weed out duplicate .o files. | |
19334 | f="" | |
19335 | for i in $tb ; do | |
19336 | case " $f " in | |
19337 | *" $i "*) ;; | |
19338 | *) f="$f $i" ;; | |
19339 | esac | |
19340 | done | |
19341 | tb="$f" | |
19342 | ||
19343 | f="" | |
19344 | for i in $ta ; do | |
19345 | case " $f " in | |
19346 | *" $i "*) ;; | |
19347 | *) f="$f $i" ;; | |
19348 | esac | |
19349 | done | |
19350 | ta="$f" | |
19351 | ||
19352 | bfd_backends="$tb" | |
19353 | bfd_machines="$ta" | |
19354 | ||
19355 | if test x${all_targets} = xtrue ; then | |
19356 | bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)' | |
19357 | bfd_machines="${bfd_machines}"' $(ALL_MACHINES)' | |
19358 | selvecs= | |
19359 | havevecs= | |
19360 | selarchs= | |
08f74004 AM |
19361 | test -n "$assocvecs" && |
19362 | assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
252b5132 RH |
19363 | else # all_targets is true |
19364 | # Only set these if they will be nonempty, for the clever echo. | |
19365 | havevecs= | |
08f74004 | 19366 | assocvecs= |
252b5132 RH |
19367 | test -n "$selvecs" && |
19368 | havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'` | |
19369 | test -n "$selvecs" && | |
19370 | selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
19371 | test -n "$selarchs" && | |
19372 | selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
19373 | fi # all_targets is true | |
19374 | ||
19375 | case ${host64}-${target64}-${want64} in | |
19376 | *true*) | |
19377 | wordsize=64 | |
21e40a48 | 19378 | bfd64_libs='$(BFD64_LIBS)' |
252b5132 | 19379 | all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)' |
ccba357f | 19380 | if test $BFD_HOST_64_BIT_DEFINED = 0; then |
5464f5a1 NN |
19381 | { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5 |
19382 | echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;} | |
19383 | { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5 | |
19384 | echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;} | |
252b5132 | 19385 | fi |
966abd70 HPN |
19386 | if test -n "$GCC" ; then |
19387 | bad_64bit_gcc=no; | |
5464f5a1 NN |
19388 | echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5 |
19389 | echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6 | |
966abd70 | 19390 | # Add more tests for gcc versions with non-working 64-bit support here. |
5464f5a1 NN |
19391 | cat >conftest.$ac_ext <<_ACEOF |
19392 | /* confdefs.h. */ | |
19393 | _ACEOF | |
19394 | cat confdefs.h >>conftest.$ac_ext | |
19395 | cat >>conftest.$ac_ext <<_ACEOF | |
19396 | /* end confdefs.h. */ | |
966abd70 | 19397 | :__GNUC__:__GNUC_MINOR__:__i386__: |
5464f5a1 | 19398 | _ACEOF |
966abd70 | 19399 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5464f5a1 | 19400 | $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then |
966abd70 | 19401 | bad_64bit_gcc=yes; |
5464f5a1 NN |
19402 | echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5 |
19403 | echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6 | |
966abd70 | 19404 | else |
5464f5a1 NN |
19405 | echo "$as_me:$LINENO: result: no" >&5 |
19406 | echo "${ECHO_T}no" >&6 | |
966abd70 HPN |
19407 | fi |
19408 | rm -f conftest* | |
19409 | ||
19410 | if test $bad_64bit_gcc = yes ; then | |
5464f5a1 NN |
19411 | { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5 |
19412 | echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;} | |
19413 | { (exit 1); exit 1; }; } | |
966abd70 HPN |
19414 | fi |
19415 | fi | |
252b5132 RH |
19416 | ;; |
19417 | false-false-false) | |
19418 | wordsize=32 | |
19419 | all_backends='$(BFD32_BACKENDS)' | |
19420 | ;; | |
19421 | esac | |
19422 | ||
6be7c12c AO |
19423 | |
19424 | ||
19425 | ||
19426 | ||
19427 | ||
69263e90 | 19428 | |
2858ef35 | 19429 | |
1012372a AC |
19430 | # Determine the host dependant file_ptr a.k.a. off_t type. In order |
19431 | # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and | |
19432 | # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long. | |
19433 | # Hopefully a reasonable assumption since fseeko et.al. should be | |
19434 | # upward compatible. | |
5464f5a1 NN |
19435 | |
19436 | ||
19437 | ||
19438 | ||
2e6f4fae DJ |
19439 | |
19440 | for ac_func in ftello ftello64 fseeko fseeko64 fopen64 | |
1012372a | 19441 | do |
5464f5a1 NN |
19442 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
19443 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
19444 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
19445 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
19446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19447 | else | |
2ba49b59 KC |
19448 | cat >conftest.$ac_ext <<_ACEOF |
19449 | /* confdefs.h. */ | |
19450 | _ACEOF | |
19451 | cat confdefs.h >>conftest.$ac_ext | |
19452 | cat >>conftest.$ac_ext <<_ACEOF | |
19453 | /* end confdefs.h. */ | |
19454 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
19455 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
19456 | #define $ac_func innocuous_$ac_func | |
19457 | ||
19458 | /* System header to define __stub macros and hopefully few prototypes, | |
19459 | which can conflict with char $ac_func (); below. | |
19460 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
19461 | <limits.h> exists even on freestanding compilers. */ | |
19462 | ||
19463 | #ifdef __STDC__ | |
19464 | # include <limits.h> | |
19465 | #else | |
19466 | # include <assert.h> | |
19467 | #endif | |
19468 | ||
19469 | #undef $ac_func | |
19470 | ||
19471 | /* Override any gcc2 internal prototype to avoid an error. */ | |
19472 | #ifdef __cplusplus | |
19473 | extern "C" | |
19474 | { | |
19475 | #endif | |
19476 | /* We use char because int might match the return type of a gcc2 | |
19477 | builtin and then its argument prototype would still apply. */ | |
19478 | char $ac_func (); | |
19479 | /* The GNU C library defines this for functions which it implements | |
19480 | to always fail with ENOSYS. Some functions are actually named | |
19481 | something starting with __ and the normal name is an alias. */ | |
19482 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
19483 | choke me | |
19484 | #else | |
19485 | char (*f) () = $ac_func; | |
19486 | #endif | |
19487 | #ifdef __cplusplus | |
19488 | } | |
19489 | #endif | |
19490 | ||
19491 | int | |
19492 | main () | |
19493 | { | |
19494 | return f != $ac_func; | |
19495 | ; | |
19496 | return 0; | |
19497 | } | |
19498 | _ACEOF | |
19499 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19500 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19501 | (eval $ac_link) 2>conftest.er1 | |
19502 | ac_status=$? | |
19503 | grep -v '^ *+' conftest.er1 >conftest.err | |
19504 | rm -f conftest.er1 | |
19505 | cat conftest.err >&5 | |
19506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19507 | (exit $ac_status); } && | |
49c96104 SE |
19508 | { ac_try='test -z "$ac_c_werror_flag" |
19509 | || test ! -s conftest.err' | |
2ba49b59 KC |
19510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19511 | (eval $ac_try) 2>&5 | |
19512 | ac_status=$? | |
19513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19514 | (exit $ac_status); }; } && | |
19515 | { ac_try='test -s conftest$ac_exeext' | |
19516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19517 | (eval $ac_try) 2>&5 | |
19518 | ac_status=$? | |
19519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19520 | (exit $ac_status); }; }; then | |
19521 | eval "$as_ac_var=yes" | |
19522 | else | |
19523 | echo "$as_me: failed program was:" >&5 | |
19524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19525 | ||
19526 | eval "$as_ac_var=no" | |
19527 | fi | |
19528 | rm -f conftest.err conftest.$ac_objext \ | |
19529 | conftest$ac_exeext conftest.$ac_ext | |
19530 | fi | |
19531 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
19532 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
19533 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
19534 | cat >>confdefs.h <<_ACEOF | |
19535 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
19536 | _ACEOF | |
19537 | ||
19538 | fi | |
19539 | done | |
19540 | ||
19541 | if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then | |
19542 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
19543 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
19544 | if test "${ac_cv_type_off_t+set}" = set; then | |
19545 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19546 | else | |
19547 | cat >conftest.$ac_ext <<_ACEOF | |
19548 | /* confdefs.h. */ | |
19549 | _ACEOF | |
19550 | cat confdefs.h >>conftest.$ac_ext | |
19551 | cat >>conftest.$ac_ext <<_ACEOF | |
19552 | /* end confdefs.h. */ | |
19553 | $ac_includes_default | |
19554 | int | |
19555 | main () | |
19556 | { | |
19557 | if ((off_t *) 0) | |
19558 | return 0; | |
19559 | if (sizeof (off_t)) | |
19560 | return 0; | |
19561 | ; | |
19562 | return 0; | |
19563 | } | |
19564 | _ACEOF | |
19565 | rm -f conftest.$ac_objext | |
19566 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19567 | (eval $ac_compile) 2>conftest.er1 | |
19568 | ac_status=$? | |
19569 | grep -v '^ *+' conftest.er1 >conftest.err | |
19570 | rm -f conftest.er1 | |
19571 | cat conftest.err >&5 | |
19572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19573 | (exit $ac_status); } && | |
49c96104 SE |
19574 | { ac_try='test -z "$ac_c_werror_flag" |
19575 | || test ! -s conftest.err' | |
2ba49b59 KC |
19576 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19577 | (eval $ac_try) 2>&5 | |
19578 | ac_status=$? | |
19579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19580 | (exit $ac_status); }; } && | |
19581 | { ac_try='test -s conftest.$ac_objext' | |
19582 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19583 | (eval $ac_try) 2>&5 | |
19584 | ac_status=$? | |
19585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19586 | (exit $ac_status); }; }; then | |
19587 | ac_cv_type_off_t=yes | |
19588 | else | |
19589 | echo "$as_me: failed program was:" >&5 | |
19590 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19591 | ||
19592 | ac_cv_type_off_t=no | |
19593 | fi | |
19594 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19595 | fi | |
19596 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
19597 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
19598 | ||
19599 | echo "$as_me:$LINENO: checking size of off_t" >&5 | |
19600 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 | |
19601 | if test "${ac_cv_sizeof_off_t+set}" = set; then | |
19602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19603 | else | |
19604 | if test "$ac_cv_type_off_t" = yes; then | |
19605 | # The cast to unsigned long works around a bug in the HP C Compiler | |
19606 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
19607 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
19608 | # This bug is HP SR number 8606223364. | |
19609 | if test "$cross_compiling" = yes; then | |
19610 | # Depending upon the size, compute the lo and hi bounds. | |
19611 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
19612 | /* confdefs.h. */ |
19613 | _ACEOF | |
19614 | cat confdefs.h >>conftest.$ac_ext | |
19615 | cat >>conftest.$ac_ext <<_ACEOF | |
19616 | /* end confdefs.h. */ | |
2ba49b59 KC |
19617 | $ac_includes_default |
19618 | int | |
19619 | main () | |
19620 | { | |
19621 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)]; | |
19622 | test_array [0] = 0 | |
5464f5a1 | 19623 | |
2ba49b59 KC |
19624 | ; |
19625 | return 0; | |
19626 | } | |
19627 | _ACEOF | |
19628 | rm -f conftest.$ac_objext | |
19629 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19630 | (eval $ac_compile) 2>conftest.er1 | |
19631 | ac_status=$? | |
19632 | grep -v '^ *+' conftest.er1 >conftest.err | |
19633 | rm -f conftest.er1 | |
19634 | cat conftest.err >&5 | |
19635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19636 | (exit $ac_status); } && | |
49c96104 SE |
19637 | { ac_try='test -z "$ac_c_werror_flag" |
19638 | || test ! -s conftest.err' | |
2ba49b59 KC |
19639 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19640 | (eval $ac_try) 2>&5 | |
19641 | ac_status=$? | |
19642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19643 | (exit $ac_status); }; } && | |
19644 | { ac_try='test -s conftest.$ac_objext' | |
19645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19646 | (eval $ac_try) 2>&5 | |
19647 | ac_status=$? | |
19648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19649 | (exit $ac_status); }; }; then | |
19650 | ac_lo=0 ac_mid=0 | |
19651 | while :; do | |
19652 | cat >conftest.$ac_ext <<_ACEOF | |
19653 | /* confdefs.h. */ | |
19654 | _ACEOF | |
19655 | cat confdefs.h >>conftest.$ac_ext | |
19656 | cat >>conftest.$ac_ext <<_ACEOF | |
19657 | /* end confdefs.h. */ | |
19658 | $ac_includes_default | |
19659 | int | |
19660 | main () | |
19661 | { | |
19662 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)]; | |
19663 | test_array [0] = 0 | |
5464f5a1 | 19664 | |
2ba49b59 KC |
19665 | ; |
19666 | return 0; | |
19667 | } | |
19668 | _ACEOF | |
19669 | rm -f conftest.$ac_objext | |
19670 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19671 | (eval $ac_compile) 2>conftest.er1 | |
19672 | ac_status=$? | |
19673 | grep -v '^ *+' conftest.er1 >conftest.err | |
19674 | rm -f conftest.er1 | |
19675 | cat conftest.err >&5 | |
19676 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19677 | (exit $ac_status); } && | |
49c96104 SE |
19678 | { ac_try='test -z "$ac_c_werror_flag" |
19679 | || test ! -s conftest.err' | |
2ba49b59 KC |
19680 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19681 | (eval $ac_try) 2>&5 | |
19682 | ac_status=$? | |
19683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19684 | (exit $ac_status); }; } && | |
19685 | { ac_try='test -s conftest.$ac_objext' | |
19686 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19687 | (eval $ac_try) 2>&5 | |
19688 | ac_status=$? | |
19689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19690 | (exit $ac_status); }; }; then | |
19691 | ac_hi=$ac_mid; break | |
19692 | else | |
19693 | echo "$as_me: failed program was:" >&5 | |
19694 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1012372a | 19695 | |
2ba49b59 KC |
19696 | ac_lo=`expr $ac_mid + 1` |
19697 | if test $ac_lo -le $ac_mid; then | |
19698 | ac_lo= ac_hi= | |
19699 | break | |
19700 | fi | |
19701 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
19702 | fi | |
19703 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19704 | done | |
19705 | else | |
19706 | echo "$as_me: failed program was:" >&5 | |
19707 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1012372a | 19708 | |
2ba49b59 KC |
19709 | cat >conftest.$ac_ext <<_ACEOF |
19710 | /* confdefs.h. */ | |
19711 | _ACEOF | |
19712 | cat confdefs.h >>conftest.$ac_ext | |
19713 | cat >>conftest.$ac_ext <<_ACEOF | |
19714 | /* end confdefs.h. */ | |
19715 | $ac_includes_default | |
19716 | int | |
19717 | main () | |
5464f5a1 | 19718 | { |
2ba49b59 KC |
19719 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)]; |
19720 | test_array [0] = 0 | |
1012372a | 19721 | |
2ba49b59 KC |
19722 | ; |
19723 | return 0; | |
19724 | } | |
19725 | _ACEOF | |
19726 | rm -f conftest.$ac_objext | |
19727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19728 | (eval $ac_compile) 2>conftest.er1 | |
19729 | ac_status=$? | |
19730 | grep -v '^ *+' conftest.er1 >conftest.err | |
19731 | rm -f conftest.er1 | |
19732 | cat conftest.err >&5 | |
19733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19734 | (exit $ac_status); } && | |
49c96104 SE |
19735 | { ac_try='test -z "$ac_c_werror_flag" |
19736 | || test ! -s conftest.err' | |
2ba49b59 KC |
19737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19738 | (eval $ac_try) 2>&5 | |
19739 | ac_status=$? | |
19740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19741 | (exit $ac_status); }; } && | |
19742 | { ac_try='test -s conftest.$ac_objext' | |
19743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19744 | (eval $ac_try) 2>&5 | |
19745 | ac_status=$? | |
19746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19747 | (exit $ac_status); }; }; then | |
19748 | ac_hi=-1 ac_mid=-1 | |
19749 | while :; do | |
19750 | cat >conftest.$ac_ext <<_ACEOF | |
19751 | /* confdefs.h. */ | |
19752 | _ACEOF | |
19753 | cat confdefs.h >>conftest.$ac_ext | |
19754 | cat >>conftest.$ac_ext <<_ACEOF | |
19755 | /* end confdefs.h. */ | |
19756 | $ac_includes_default | |
5464f5a1 NN |
19757 | int |
19758 | main () | |
19759 | { | |
2ba49b59 KC |
19760 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)]; |
19761 | test_array [0] = 0 | |
19762 | ||
5464f5a1 NN |
19763 | ; |
19764 | return 0; | |
19765 | } | |
19766 | _ACEOF | |
2ba49b59 KC |
19767 | rm -f conftest.$ac_objext |
19768 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19769 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
19770 | ac_status=$? |
19771 | grep -v '^ *+' conftest.er1 >conftest.err | |
19772 | rm -f conftest.er1 | |
19773 | cat conftest.err >&5 | |
19774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19775 | (exit $ac_status); } && | |
49c96104 SE |
19776 | { ac_try='test -z "$ac_c_werror_flag" |
19777 | || test ! -s conftest.err' | |
5464f5a1 NN |
19778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19779 | (eval $ac_try) 2>&5 | |
19780 | ac_status=$? | |
19781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19782 | (exit $ac_status); }; } && | |
2ba49b59 | 19783 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
19784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19785 | (eval $ac_try) 2>&5 | |
19786 | ac_status=$? | |
19787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19788 | (exit $ac_status); }; }; then | |
2ba49b59 | 19789 | ac_lo=$ac_mid; break |
5464f5a1 NN |
19790 | else |
19791 | echo "$as_me: failed program was:" >&5 | |
19792 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19793 | ||
2ba49b59 KC |
19794 | ac_hi=`expr '(' $ac_mid ')' - 1` |
19795 | if test $ac_mid -le $ac_hi; then | |
19796 | ac_lo= ac_hi= | |
19797 | break | |
19798 | fi | |
19799 | ac_mid=`expr 2 '*' $ac_mid` | |
5464f5a1 | 19800 | fi |
2ba49b59 KC |
19801 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19802 | done | |
19803 | else | |
19804 | echo "$as_me: failed program was:" >&5 | |
19805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1012372a | 19806 | |
2ba49b59 | 19807 | ac_lo= ac_hi= |
1012372a | 19808 | fi |
2ba49b59 KC |
19809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
19810 | fi | |
19811 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19812 | # Binary search between lo and hi bounds. | |
19813 | while test "x$ac_lo" != "x$ac_hi"; do | |
19814 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5464f5a1 NN |
19815 | cat >conftest.$ac_ext <<_ACEOF |
19816 | /* confdefs.h. */ | |
19817 | _ACEOF | |
19818 | cat confdefs.h >>conftest.$ac_ext | |
19819 | cat >>conftest.$ac_ext <<_ACEOF | |
19820 | /* end confdefs.h. */ | |
2ba49b59 | 19821 | $ac_includes_default |
5464f5a1 NN |
19822 | int |
19823 | main () | |
19824 | { | |
2ba49b59 KC |
19825 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)]; |
19826 | test_array [0] = 0 | |
19827 | ||
5464f5a1 NN |
19828 | ; |
19829 | return 0; | |
19830 | } | |
19831 | _ACEOF | |
19832 | rm -f conftest.$ac_objext | |
19833 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19834 | (eval $ac_compile) 2>conftest.er1 | |
19835 | ac_status=$? | |
19836 | grep -v '^ *+' conftest.er1 >conftest.err | |
19837 | rm -f conftest.er1 | |
19838 | cat conftest.err >&5 | |
19839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19840 | (exit $ac_status); } && | |
49c96104 SE |
19841 | { ac_try='test -z "$ac_c_werror_flag" |
19842 | || test ! -s conftest.err' | |
5464f5a1 NN |
19843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19844 | (eval $ac_try) 2>&5 | |
19845 | ac_status=$? | |
19846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19847 | (exit $ac_status); }; } && | |
19848 | { ac_try='test -s conftest.$ac_objext' | |
19849 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19850 | (eval $ac_try) 2>&5 | |
19851 | ac_status=$? | |
19852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19853 | (exit $ac_status); }; }; then | |
2ba49b59 | 19854 | ac_hi=$ac_mid |
1012372a | 19855 | else |
5464f5a1 NN |
19856 | echo "$as_me: failed program was:" >&5 |
19857 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19858 | ||
2ba49b59 | 19859 | ac_lo=`expr '(' $ac_mid ')' + 1` |
1012372a | 19860 | fi |
5464f5a1 | 19861 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
1012372a | 19862 | done |
2ba49b59 KC |
19863 | case $ac_lo in |
19864 | ?*) ac_cv_sizeof_off_t=$ac_lo;; | |
19865 | '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77 | |
19866 | See \`config.log' for more details." >&5 | |
19867 | echo "$as_me: error: cannot compute sizeof (off_t), 77 | |
19868 | See \`config.log' for more details." >&2;} | |
19869 | { (exit 1); exit 1; }; } ;; | |
19870 | esac | |
19871 | else | |
19872 | if test "$cross_compiling" = yes; then | |
49c96104 SE |
19873 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling |
19874 | See \`config.log' for more details." >&5 | |
19875 | echo "$as_me: error: cannot run test program while cross compiling | |
19876 | See \`config.log' for more details." >&2;} | |
2ba49b59 KC |
19877 | { (exit 1); exit 1; }; } |
19878 | else | |
19879 | cat >conftest.$ac_ext <<_ACEOF | |
19880 | /* confdefs.h. */ | |
19881 | _ACEOF | |
19882 | cat confdefs.h >>conftest.$ac_ext | |
19883 | cat >>conftest.$ac_ext <<_ACEOF | |
19884 | /* end confdefs.h. */ | |
19885 | $ac_includes_default | |
19886 | long longval () { return (long) (sizeof (off_t)); } | |
19887 | unsigned long ulongval () { return (long) (sizeof (off_t)); } | |
19888 | #include <stdio.h> | |
19889 | #include <stdlib.h> | |
19890 | int | |
19891 | main () | |
19892 | { | |
1012372a | 19893 | |
2ba49b59 KC |
19894 | FILE *f = fopen ("conftest.val", "w"); |
19895 | if (! f) | |
19896 | exit (1); | |
19897 | if (((long) (sizeof (off_t))) < 0) | |
19898 | { | |
19899 | long i = longval (); | |
19900 | if (i != ((long) (sizeof (off_t)))) | |
19901 | exit (1); | |
19902 | fprintf (f, "%ld\n", i); | |
19903 | } | |
19904 | else | |
19905 | { | |
19906 | unsigned long i = ulongval (); | |
19907 | if (i != ((long) (sizeof (off_t)))) | |
19908 | exit (1); | |
19909 | fprintf (f, "%lu\n", i); | |
19910 | } | |
19911 | exit (ferror (f) || fclose (f) != 0); | |
19912 | ||
19913 | ; | |
19914 | return 0; | |
19915 | } | |
19916 | _ACEOF | |
19917 | rm -f conftest$ac_exeext | |
19918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
19919 | (eval $ac_link) 2>&5 | |
19920 | ac_status=$? | |
19921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19922 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
19923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19924 | (eval $ac_try) 2>&5 | |
19925 | ac_status=$? | |
19926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19927 | (exit $ac_status); }; }; then | |
19928 | ac_cv_sizeof_off_t=`cat conftest.val` | |
19929 | else | |
19930 | echo "$as_me: program exited with status $ac_status" >&5 | |
19931 | echo "$as_me: failed program was:" >&5 | |
19932 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1012372a | 19933 | |
2ba49b59 KC |
19934 | ( exit $ac_status ) |
19935 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77 | |
19936 | See \`config.log' for more details." >&5 | |
19937 | echo "$as_me: error: cannot compute sizeof (off_t), 77 | |
19938 | See \`config.log' for more details." >&2;} | |
5464f5a1 | 19939 | { (exit 1); exit 1; }; } |
1012372a | 19940 | fi |
2ba49b59 KC |
19941 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
19942 | fi | |
19943 | fi | |
19944 | rm -f conftest.val | |
19945 | else | |
19946 | ac_cv_sizeof_off_t=0 | |
19947 | fi | |
19948 | fi | |
5464f5a1 NN |
19949 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
19950 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 | |
5464f5a1 | 19951 | cat >>confdefs.h <<_ACEOF |
1012372a | 19952 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
5464f5a1 | 19953 | _ACEOF |
1012372a AC |
19954 | |
19955 | ||
1012372a | 19956 | fi |
5464f5a1 NN |
19957 | echo "$as_me:$LINENO: checking file_ptr type" >&5 |
19958 | echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6 | |
ccba357f AM |
19959 | bfd_file_ptr="long" |
19960 | bfd_ufile_ptr="unsigned long" | |
19961 | if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \ | |
19962 | -o x"${ac_cv_sizeof_off_t}" = x8; then | |
1012372a AC |
19963 | bfd_file_ptr=BFD_HOST_64_BIT |
19964 | bfd_ufile_ptr=BFD_HOST_U_64_BIT | |
19965 | fi | |
5464f5a1 NN |
19966 | echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5 |
19967 | echo "${ECHO_T}$bfd_file_ptr" >&6 | |
1012372a AC |
19968 | |
19969 | ||
19970 | ||
19971 | ||
252b5132 RH |
19972 | tdefaults="" |
19973 | test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" | |
19974 | test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" | |
08f74004 | 19975 | test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'" |
252b5132 RH |
19976 | test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'" |
19977 | test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}" | |
19978 | ||
6be7c12c | 19979 | |
5464f5a1 NN |
19980 | |
19981 | ||
19982 | for ac_header in stdlib.h unistd.h | |
252b5132 | 19983 | do |
5464f5a1 NN |
19984 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
19985 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19986 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19987 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19988 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19989 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19990 | fi | |
19991 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19992 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19993 | else | |
19994 | # Is the header compilable? | |
19995 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19996 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
19997 | cat >conftest.$ac_ext <<_ACEOF | |
19998 | /* confdefs.h. */ | |
19999 | _ACEOF | |
20000 | cat confdefs.h >>conftest.$ac_ext | |
20001 | cat >>conftest.$ac_ext <<_ACEOF | |
20002 | /* end confdefs.h. */ | |
20003 | $ac_includes_default | |
20004 | #include <$ac_header> | |
20005 | _ACEOF | |
20006 | rm -f conftest.$ac_objext | |
20007 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20008 | (eval $ac_compile) 2>conftest.er1 | |
20009 | ac_status=$? | |
20010 | grep -v '^ *+' conftest.er1 >conftest.err | |
20011 | rm -f conftest.er1 | |
20012 | cat conftest.err >&5 | |
20013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20014 | (exit $ac_status); } && | |
49c96104 SE |
20015 | { ac_try='test -z "$ac_c_werror_flag" |
20016 | || test ! -s conftest.err' | |
5464f5a1 NN |
20017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20018 | (eval $ac_try) 2>&5 | |
20019 | ac_status=$? | |
20020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20021 | (exit $ac_status); }; } && | |
20022 | { ac_try='test -s conftest.$ac_objext' | |
20023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20024 | (eval $ac_try) 2>&5 | |
20025 | ac_status=$? | |
20026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20027 | (exit $ac_status); }; }; then | |
20028 | ac_header_compiler=yes | |
20029 | else | |
20030 | echo "$as_me: failed program was:" >&5 | |
20031 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20032 | ||
20033 | ac_header_compiler=no | |
20034 | fi | |
20035 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
20036 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
20037 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
20038 | ||
20039 | # Is the header present? | |
20040 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
20041 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
20042 | cat >conftest.$ac_ext <<_ACEOF | |
20043 | /* confdefs.h. */ | |
20044 | _ACEOF | |
20045 | cat confdefs.h >>conftest.$ac_ext | |
20046 | cat >>conftest.$ac_ext <<_ACEOF | |
20047 | /* end confdefs.h. */ | |
20048 | #include <$ac_header> | |
20049 | _ACEOF | |
20050 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
20051 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
20052 | ac_status=$? | |
20053 | grep -v '^ *+' conftest.er1 >conftest.err | |
20054 | rm -f conftest.er1 | |
20055 | cat conftest.err >&5 | |
20056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20057 | (exit $ac_status); } >/dev/null; then | |
20058 | if test -s conftest.err; then | |
20059 | ac_cpp_err=$ac_c_preproc_warn_flag | |
20060 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
20061 | else | |
20062 | ac_cpp_err= | |
20063 | fi | |
252b5132 | 20064 | else |
5464f5a1 | 20065 | ac_cpp_err=yes |
252b5132 | 20066 | fi |
5464f5a1 NN |
20067 | if test -z "$ac_cpp_err"; then |
20068 | ac_header_preproc=yes | |
20069 | else | |
20070 | echo "$as_me: failed program was:" >&5 | |
20071 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20072 | ||
20073 | ac_header_preproc=no | |
252b5132 | 20074 | fi |
5464f5a1 NN |
20075 | rm -f conftest.err conftest.$ac_ext |
20076 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
20077 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
20078 | ||
20079 | # So? What about this header? | |
20080 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
20081 | yes:no: ) | |
20082 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
20083 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
20084 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
20085 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
20086 | ac_header_preproc=yes | |
20087 | ;; | |
20088 | no:yes:* ) | |
20089 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
20090 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
20091 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
20092 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
20093 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
20094 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
20095 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
20096 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
20097 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
20098 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
20099 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
20100 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
20101 | ( | |
20102 | cat <<\_ASBOX | |
20103 | ## ------------------------------------------ ## | |
20104 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
20105 | ## ------------------------------------------ ## | |
20106 | _ASBOX | |
20107 | ) | | |
20108 | sed "s/^/$as_me: WARNING: /" >&2 | |
20109 | ;; | |
20110 | esac | |
20111 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
20112 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
20113 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
20114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 20115 | else |
5464f5a1 NN |
20116 | eval "$as_ac_Header=\$ac_header_preproc" |
20117 | fi | |
20118 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
20119 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
20120 | ||
20121 | fi | |
20122 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
20123 | cat >>confdefs.h <<_ACEOF | |
20124 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
20125 | _ACEOF | |
20126 | ||
252b5132 | 20127 | fi |
5464f5a1 | 20128 | |
252b5132 RH |
20129 | done |
20130 | ||
5464f5a1 | 20131 | |
252b5132 RH |
20132 | for ac_func in getpagesize |
20133 | do | |
5464f5a1 NN |
20134 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
20135 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20136 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20137 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20139 | else | |
20140 | cat >conftest.$ac_ext <<_ACEOF | |
20141 | /* confdefs.h. */ | |
20142 | _ACEOF | |
20143 | cat confdefs.h >>conftest.$ac_ext | |
20144 | cat >>conftest.$ac_ext <<_ACEOF | |
20145 | /* end confdefs.h. */ | |
20146 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
20147 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20148 | #define $ac_func innocuous_$ac_func | |
20149 | ||
252b5132 | 20150 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
20151 | which can conflict with char $ac_func (); below. |
20152 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20153 | <limits.h> exists even on freestanding compilers. */ | |
20154 | ||
20155 | #ifdef __STDC__ | |
20156 | # include <limits.h> | |
20157 | #else | |
20158 | # include <assert.h> | |
20159 | #endif | |
6be7c12c | 20160 | |
5464f5a1 | 20161 | #undef $ac_func |
252b5132 | 20162 | |
5464f5a1 NN |
20163 | /* Override any gcc2 internal prototype to avoid an error. */ |
20164 | #ifdef __cplusplus | |
20165 | extern "C" | |
20166 | { | |
20167 | #endif | |
20168 | /* We use char because int might match the return type of a gcc2 | |
20169 | builtin and then its argument prototype would still apply. */ | |
20170 | char $ac_func (); | |
252b5132 RH |
20171 | /* The GNU C library defines this for functions which it implements |
20172 | to always fail with ENOSYS. Some functions are actually named | |
20173 | something starting with __ and the normal name is an alias. */ | |
20174 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20175 | choke me | |
20176 | #else | |
5464f5a1 NN |
20177 | char (*f) () = $ac_func; |
20178 | #endif | |
20179 | #ifdef __cplusplus | |
20180 | } | |
252b5132 RH |
20181 | #endif |
20182 | ||
5464f5a1 NN |
20183 | int |
20184 | main () | |
20185 | { | |
20186 | return f != $ac_func; | |
20187 | ; | |
20188 | return 0; | |
20189 | } | |
20190 | _ACEOF | |
20191 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20193 | (eval $ac_link) 2>conftest.er1 | |
20194 | ac_status=$? | |
20195 | grep -v '^ *+' conftest.er1 >conftest.err | |
20196 | rm -f conftest.er1 | |
20197 | cat conftest.err >&5 | |
20198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20199 | (exit $ac_status); } && | |
49c96104 SE |
20200 | { ac_try='test -z "$ac_c_werror_flag" |
20201 | || test ! -s conftest.err' | |
5464f5a1 NN |
20202 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20203 | (eval $ac_try) 2>&5 | |
20204 | ac_status=$? | |
20205 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20206 | (exit $ac_status); }; } && | |
20207 | { ac_try='test -s conftest$ac_exeext' | |
20208 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20209 | (eval $ac_try) 2>&5 | |
20210 | ac_status=$? | |
20211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20212 | (exit $ac_status); }; }; then | |
20213 | eval "$as_ac_var=yes" | |
20214 | else | |
20215 | echo "$as_me: failed program was:" >&5 | |
20216 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20217 | ||
20218 | eval "$as_ac_var=no" | |
20219 | fi | |
20220 | rm -f conftest.err conftest.$ac_objext \ | |
20221 | conftest$ac_exeext conftest.$ac_ext | |
20222 | fi | |
20223 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20224 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20225 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20226 | cat >>confdefs.h <<_ACEOF | |
20227 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20228 | _ACEOF | |
252b5132 | 20229 | |
252b5132 RH |
20230 | fi |
20231 | done | |
20232 | ||
5464f5a1 NN |
20233 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
20234 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
20235 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
20236 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
20237 | else |
20238 | if test "$cross_compiling" = yes; then | |
20239 | ac_cv_func_mmap_fixed_mapped=no | |
20240 | else | |
5464f5a1 NN |
20241 | cat >conftest.$ac_ext <<_ACEOF |
20242 | /* confdefs.h. */ | |
20243 | _ACEOF | |
20244 | cat confdefs.h >>conftest.$ac_ext | |
20245 | cat >>conftest.$ac_ext <<_ACEOF | |
20246 | /* end confdefs.h. */ | |
20247 | $ac_includes_default | |
20248 | /* malloc might have been renamed as rpl_malloc. */ | |
20249 | #undef malloc | |
6be7c12c | 20250 | |
252b5132 RH |
20251 | /* Thanks to Mike Haertel and Jim Avera for this test. |
20252 | Here is a matrix of mmap possibilities: | |
20253 | mmap private not fixed | |
20254 | mmap private fixed at somewhere currently unmapped | |
20255 | mmap private fixed at somewhere already mapped | |
20256 | mmap shared not fixed | |
20257 | mmap shared fixed at somewhere currently unmapped | |
20258 | mmap shared fixed at somewhere already mapped | |
20259 | For private mappings, we should verify that changes cannot be read() | |
20260 | back from the file, nor mmap's back from the file at a different | |
20261 | address. (There have been systems where private was not correctly | |
20262 | implemented like the infamous i386 svr4.0, and systems where the | |
5464f5a1 | 20263 | VM page cache was not coherent with the file system buffer cache |
252b5132 RH |
20264 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
20265 | For shared mappings, we should conversely verify that changes get | |
5464f5a1 | 20266 | propagated back to all the places they're supposed to be. |
252b5132 RH |
20267 | |
20268 | Grep wants private fixed already mapped. | |
20269 | The main things grep needs to know about mmap are: | |
20270 | * does it exist and is it safe to write into the mmap'd area | |
20271 | * how to use it (BSD variants) */ | |
5464f5a1 | 20272 | |
252b5132 RH |
20273 | #include <fcntl.h> |
20274 | #include <sys/mman.h> | |
20275 | ||
5464f5a1 NN |
20276 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
20277 | char *malloc (); | |
20278 | #endif | |
6be7c12c | 20279 | |
5464f5a1 NN |
20280 | /* This mess was copied from the GNU getpagesize.h. */ |
20281 | #if !HAVE_GETPAGESIZE | |
252b5132 | 20282 | /* Assume that all systems that can run configure have sys/param.h. */ |
5464f5a1 | 20283 | # if !HAVE_SYS_PARAM_H |
252b5132 RH |
20284 | # define HAVE_SYS_PARAM_H 1 |
20285 | # endif | |
20286 | ||
20287 | # ifdef _SC_PAGESIZE | |
20288 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
20289 | # else /* no _SC_PAGESIZE */ | |
5464f5a1 | 20290 | # if HAVE_SYS_PARAM_H |
252b5132 RH |
20291 | # include <sys/param.h> |
20292 | # ifdef EXEC_PAGESIZE | |
20293 | # define getpagesize() EXEC_PAGESIZE | |
20294 | # else /* no EXEC_PAGESIZE */ | |
20295 | # ifdef NBPG | |
20296 | # define getpagesize() NBPG * CLSIZE | |
20297 | # ifndef CLSIZE | |
20298 | # define CLSIZE 1 | |
20299 | # endif /* no CLSIZE */ | |
20300 | # else /* no NBPG */ | |
20301 | # ifdef NBPC | |
20302 | # define getpagesize() NBPC | |
20303 | # else /* no NBPC */ | |
20304 | # ifdef PAGESIZE | |
20305 | # define getpagesize() PAGESIZE | |
20306 | # endif /* PAGESIZE */ | |
20307 | # endif /* no NBPC */ | |
20308 | # endif /* no NBPG */ | |
20309 | # endif /* no EXEC_PAGESIZE */ | |
20310 | # else /* no HAVE_SYS_PARAM_H */ | |
20311 | # define getpagesize() 8192 /* punt totally */ | |
20312 | # endif /* no HAVE_SYS_PARAM_H */ | |
20313 | # endif /* no _SC_PAGESIZE */ | |
20314 | ||
5464f5a1 NN |
20315 | #endif /* no HAVE_GETPAGESIZE */ |
20316 | ||
20317 | int | |
20318 | main () | |
20319 | { | |
20320 | char *data, *data2, *data3; | |
20321 | int i, pagesize; | |
20322 | int fd; | |
20323 | ||
20324 | pagesize = getpagesize (); | |
20325 | ||
20326 | /* First, make a file with some known garbage in it. */ | |
20327 | data = (char *) malloc (pagesize); | |
20328 | if (!data) | |
20329 | exit (1); | |
20330 | for (i = 0; i < pagesize; ++i) | |
20331 | *(data + i) = rand (); | |
20332 | umask (0); | |
20333 | fd = creat ("conftest.mmap", 0600); | |
20334 | if (fd < 0) | |
20335 | exit (1); | |
20336 | if (write (fd, data, pagesize) != pagesize) | |
20337 | exit (1); | |
20338 | close (fd); | |
20339 | ||
20340 | /* Next, try to mmap the file at a fixed address which already has | |
20341 | something else allocated at it. If we can, also make sure that | |
20342 | we see the same garbage. */ | |
20343 | fd = open ("conftest.mmap", O_RDWR); | |
20344 | if (fd < 0) | |
20345 | exit (1); | |
20346 | data2 = (char *) malloc (2 * pagesize); | |
20347 | if (!data2) | |
20348 | exit (1); | |
20349 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
20350 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
20351 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
20352 | exit (1); | |
20353 | for (i = 0; i < pagesize; ++i) | |
20354 | if (*(data + i) != *(data2 + i)) | |
20355 | exit (1); | |
20356 | ||
20357 | /* Finally, make sure that changes to the mapped area do not | |
20358 | percolate back to the file as seen by read(). (This is a bug on | |
20359 | some variants of i386 svr4.0.) */ | |
20360 | for (i = 0; i < pagesize; ++i) | |
20361 | *(data2 + i) = *(data2 + i) + 1; | |
20362 | data3 = (char *) malloc (pagesize); | |
20363 | if (!data3) | |
20364 | exit (1); | |
20365 | if (read (fd, data3, pagesize) != pagesize) | |
20366 | exit (1); | |
20367 | for (i = 0; i < pagesize; ++i) | |
20368 | if (*(data + i) != *(data3 + i)) | |
20369 | exit (1); | |
20370 | close (fd); | |
20371 | exit (0); | |
20372 | } | |
20373 | _ACEOF | |
20374 | rm -f conftest$ac_exeext | |
20375 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20376 | (eval $ac_link) 2>&5 | |
20377 | ac_status=$? | |
20378 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20379 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
20380 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20381 | (eval $ac_try) 2>&5 | |
20382 | ac_status=$? | |
20383 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20384 | (exit $ac_status); }; }; then | |
20385 | ac_cv_func_mmap_fixed_mapped=yes | |
20386 | else | |
20387 | echo "$as_me: program exited with status $ac_status" >&5 | |
20388 | echo "$as_me: failed program was:" >&5 | |
20389 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20390 | ||
20391 | ( exit $ac_status ) | |
20392 | ac_cv_func_mmap_fixed_mapped=no | |
20393 | fi | |
20394 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
20395 | fi | |
20396 | fi | |
20397 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
20398 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
20399 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
20400 | ||
20401 | cat >>confdefs.h <<\_ACEOF | |
20402 | #define HAVE_MMAP 1 | |
20403 | _ACEOF | |
20404 | ||
20405 | fi | |
20406 | rm -f conftest.mmap | |
20407 | ||
20408 | ||
20409 | ||
20410 | for ac_func in madvise mprotect | |
20411 | do | |
20412 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
20413 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
20414 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
20415 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
20416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20417 | else | |
20418 | cat >conftest.$ac_ext <<_ACEOF | |
20419 | /* confdefs.h. */ | |
20420 | _ACEOF | |
20421 | cat confdefs.h >>conftest.$ac_ext | |
20422 | cat >>conftest.$ac_ext <<_ACEOF | |
20423 | /* end confdefs.h. */ | |
20424 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
20425 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
20426 | #define $ac_func innocuous_$ac_func | |
20427 | ||
20428 | /* System header to define __stub macros and hopefully few prototypes, | |
20429 | which can conflict with char $ac_func (); below. | |
20430 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
20431 | <limits.h> exists even on freestanding compilers. */ | |
20432 | ||
20433 | #ifdef __STDC__ | |
20434 | # include <limits.h> | |
20435 | #else | |
20436 | # include <assert.h> | |
20437 | #endif | |
20438 | ||
20439 | #undef $ac_func | |
20440 | ||
20441 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20442 | #ifdef __cplusplus | |
20443 | extern "C" | |
20444 | { | |
20445 | #endif | |
20446 | /* We use char because int might match the return type of a gcc2 | |
20447 | builtin and then its argument prototype would still apply. */ | |
20448 | char $ac_func (); | |
20449 | /* The GNU C library defines this for functions which it implements | |
20450 | to always fail with ENOSYS. Some functions are actually named | |
20451 | something starting with __ and the normal name is an alias. */ | |
20452 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
20453 | choke me | |
20454 | #else | |
20455 | char (*f) () = $ac_func; | |
20456 | #endif | |
20457 | #ifdef __cplusplus | |
20458 | } | |
20459 | #endif | |
20460 | ||
20461 | int | |
20462 | main () | |
20463 | { | |
20464 | return f != $ac_func; | |
20465 | ; | |
20466 | return 0; | |
20467 | } | |
20468 | _ACEOF | |
20469 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20470 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20471 | (eval $ac_link) 2>conftest.er1 | |
20472 | ac_status=$? | |
20473 | grep -v '^ *+' conftest.er1 >conftest.err | |
20474 | rm -f conftest.er1 | |
20475 | cat conftest.err >&5 | |
20476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20477 | (exit $ac_status); } && | |
49c96104 SE |
20478 | { ac_try='test -z "$ac_c_werror_flag" |
20479 | || test ! -s conftest.err' | |
5464f5a1 NN |
20480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20481 | (eval $ac_try) 2>&5 | |
20482 | ac_status=$? | |
20483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20484 | (exit $ac_status); }; } && | |
20485 | { ac_try='test -s conftest$ac_exeext' | |
20486 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20487 | (eval $ac_try) 2>&5 | |
20488 | ac_status=$? | |
20489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20490 | (exit $ac_status); }; }; then | |
20491 | eval "$as_ac_var=yes" | |
20492 | else | |
20493 | echo "$as_me: failed program was:" >&5 | |
20494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20495 | ||
20496 | eval "$as_ac_var=no" | |
20497 | fi | |
20498 | rm -f conftest.err conftest.$ac_objext \ | |
20499 | conftest$ac_exeext conftest.$ac_ext | |
20500 | fi | |
20501 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
20502 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
20503 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
20504 | cat >>confdefs.h <<_ACEOF | |
20505 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
20506 | _ACEOF | |
20507 | ||
20508 | fi | |
20509 | done | |
20510 | ||
20511 | case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in | |
20512 | true+yes ) | |
20513 | cat >>confdefs.h <<\_ACEOF | |
20514 | #define USE_MMAP 1 | |
20515 | _ACEOF | |
20516 | ;; | |
20517 | esac | |
20518 | ||
20519 | rm -f doc/config.status | |
20520 | ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in" | |
20521 | ||
20e95c23 | 20522 | |
5464f5a1 NN |
20523 | ac_config_commands="$ac_config_commands default" |
20524 | ||
108a6f8e CD |
20525 | |
20526 | ||
20527 | ||
20528 | ||
20529 | ||
5464f5a1 NN |
20530 | cat >confcache <<\_ACEOF |
20531 | # This file is a shell script that caches the results of configure | |
20532 | # tests run on this system so they can be shared between configure | |
20533 | # scripts and configure runs, see configure's option --config-cache. | |
20534 | # It is not useful on other systems. If it contains results you don't | |
20535 | # want to keep, you may remove or edit it. | |
20536 | # | |
20537 | # config.status only pays attention to the cache file if you give it | |
20538 | # the --recheck option to rerun configure. | |
20539 | # | |
20540 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
20541 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
20542 | # following values. | |
20543 | ||
20544 | _ACEOF | |
20545 | ||
20546 | # The following way of writing the cache mishandles newlines in values, | |
20547 | # but we know of no workaround that is simple, portable, and efficient. | |
20548 | # So, don't put newlines in cache variables' values. | |
20549 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
20550 | # and sets the high bit in the cache file unless we assign to the vars. | |
20551 | { | |
20552 | (set) 2>&1 | | |
20553 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
20554 | *ac_space=\ *) | |
20555 | # `set' does not quote correctly, so add quotes (double-quote | |
20556 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
20557 | sed -n \ | |
20558 | "s/'/'\\\\''/g; | |
20559 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
20560 | ;; | |
20561 | *) | |
20562 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
20563 | sed -n \ | |
20564 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
20565 | ;; | |
20566 | esac; | |
20567 | } | | |
20568 | sed ' | |
20569 | t clear | |
20570 | : clear | |
20571 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
20572 | t end | |
20573 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
20574 | : end' >>confcache | |
20575 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
20576 | if test -w $cache_file; then | |
20577 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
20578 | cat confcache >$cache_file | |
20579 | else | |
20580 | echo "not updating unwritable cache $cache_file" | |
20581 | fi | |
20582 | fi | |
20583 | rm -f confcache | |
20584 | ||
20585 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
20586 | # Let make expand exec_prefix. | |
20587 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
20588 | ||
20589 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
20590 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
20591 | # trailing colons and then remove the whole line if VPATH becomes empty | |
20592 | # (actually we leave an empty line to preserve line numbers). | |
20593 | if test "x$srcdir" = x.; then | |
20594 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
20595 | s/:*\$(srcdir):*/:/; | |
20596 | s/:*\${srcdir}:*/:/; | |
20597 | s/:*@srcdir@:*/:/; | |
20598 | s/^\([^=]*=[ ]*\):*/\1/; | |
20599 | s/:*$//; | |
20600 | s/^[^=]*=[ ]*$//; | |
20601 | }' | |
20602 | fi | |
20603 | ||
20604 | DEFS=-DHAVE_CONFIG_H | |
20605 | ||
20606 | ac_libobjs= | |
20607 | ac_ltlibobjs= | |
20608 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
20609 | # 1. Remove the extension, and $U if already installed. | |
20610 | ac_i=`echo "$ac_i" | | |
20611 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
20612 | # 2. Add them. | |
20613 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
20614 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
20615 | done | |
20616 | LIBOBJS=$ac_libobjs | |
20617 | ||
20618 | LTLIBOBJS=$ac_ltlibobjs | |
20619 | ||
20620 | ||
f5385ebf AM |
20621 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
20622 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
20623 | Usually this means the macro was only invoked conditionally." >&5 | |
20624 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
20625 | Usually this means the macro was only invoked conditionally." >&2;} | |
20626 | { (exit 1); exit 1; }; } | |
20627 | fi | |
20628 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
20629 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
20630 | Usually this means the macro was only invoked conditionally." >&5 | |
20631 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
20632 | Usually this means the macro was only invoked conditionally." >&2;} | |
20633 | { (exit 1); exit 1; }; } | |
20634 | fi | |
20635 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
20636 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
20637 | Usually this means the macro was only invoked conditionally." >&5 | |
20638 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
20639 | Usually this means the macro was only invoked conditionally." >&2;} | |
20640 | { (exit 1); exit 1; }; } | |
20641 | fi | |
d5fbea21 DJ |
20642 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
20643 | { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined. | |
20644 | Usually this means the macro was only invoked conditionally." >&5 | |
20645 | echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined. | |
20646 | Usually this means the macro was only invoked conditionally." >&2;} | |
20647 | { (exit 1); exit 1; }; } | |
20648 | fi | |
f5385ebf AM |
20649 | if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then |
20650 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined. | |
20651 | Usually this means the macro was only invoked conditionally." >&5 | |
20652 | echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined. | |
20653 | Usually this means the macro was only invoked conditionally." >&2;} | |
20654 | { (exit 1); exit 1; }; } | |
20655 | fi | |
5464f5a1 NN |
20656 | |
20657 | : ${CONFIG_STATUS=./config.status} | |
20658 | ac_clean_files_save=$ac_clean_files | |
20659 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
20660 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
20661 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
20662 | cat >$CONFIG_STATUS <<_ACEOF | |
20663 | #! $SHELL | |
20664 | # Generated by $as_me. | |
20665 | # Run this file to recreate the current configuration. | |
20666 | # Compiler output produced by configure, useful for debugging | |
20667 | # configure, is in config.log if it exists. | |
20668 | ||
20669 | debug=false | |
20670 | ac_cs_recheck=false | |
20671 | ac_cs_silent=false | |
20672 | SHELL=\${CONFIG_SHELL-$SHELL} | |
20673 | _ACEOF | |
20674 | ||
20675 | cat >>$CONFIG_STATUS <<\_ACEOF | |
20676 | ## --------------------- ## | |
20677 | ## M4sh Initialization. ## | |
20678 | ## --------------------- ## | |
20679 | ||
20680 | # Be Bourne compatible | |
20681 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
20682 | emulate sh | |
20683 | NULLCMD=: | |
20684 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
20685 | # is contrary to our usage. Disable this feature. | |
20686 | alias -g '${1+"$@"}'='"$@"' | |
20687 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20688 | set -o posix | |
20689 | fi | |
20690 | DUALCASE=1; export DUALCASE # for MKS sh | |
20691 | ||
20692 | # Support unset when possible. | |
20693 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
20694 | as_unset=unset | |
20695 | else | |
20696 | as_unset=false | |
20697 | fi | |
20698 | ||
20699 | ||
20700 | # Work around bugs in pre-3.0 UWIN ksh. | |
20701 | $as_unset ENV MAIL MAILPATH | |
20702 | PS1='$ ' | |
20703 | PS2='> ' | |
20704 | PS4='+ ' | |
20705 | ||
20706 | # NLS nuisances. | |
20707 | for as_var in \ | |
20708 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
20709 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
20710 | LC_TELEPHONE LC_TIME | |
20711 | do | |
20712 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
20713 | eval $as_var=C; export $as_var | |
20714 | else | |
20715 | $as_unset $as_var | |
20716 | fi | |
20717 | done | |
20718 | ||
20719 | # Required to use basename. | |
20720 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
20721 | as_expr=expr | |
20722 | else | |
20723 | as_expr=false | |
20724 | fi | |
20725 | ||
20726 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
20727 | as_basename=basename | |
20728 | else | |
20729 | as_basename=false | |
20730 | fi | |
252b5132 | 20731 | |
6be7c12c | 20732 | |
5464f5a1 NN |
20733 | # Name of the executable. |
20734 | as_me=`$as_basename "$0" || | |
20735 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
20736 | X"$0" : 'X\(//\)$' \| \ | |
20737 | X"$0" : 'X\(/\)$' \| \ | |
20738 | . : '\(.\)' 2>/dev/null || | |
20739 | echo X/"$0" | | |
20740 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
20741 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
20742 | /^X\/\(\/\).*/{ s//\1/; q; } | |
20743 | s/.*/./; q'` | |
20744 | ||
20745 | ||
20746 | # PATH needs CR, and LINENO needs CR and PATH. | |
20747 | # Avoid depending upon Character Ranges. | |
20748 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
20749 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
20750 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
20751 | as_cr_digits='0123456789' | |
20752 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
20753 | ||
20754 | # The user is always right. | |
20755 | if test "${PATH_SEPARATOR+set}" != set; then | |
20756 | echo "#! /bin/sh" >conf$$.sh | |
20757 | echo "exit 0" >>conf$$.sh | |
20758 | chmod +x conf$$.sh | |
20759 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
20760 | PATH_SEPARATOR=';' | |
20761 | else | |
20762 | PATH_SEPARATOR=: | |
20763 | fi | |
20764 | rm -f conf$$.sh | |
20765 | fi | |
20766 | ||
20767 | ||
20768 | as_lineno_1=$LINENO | |
20769 | as_lineno_2=$LINENO | |
20770 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
20771 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
20772 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
20773 | # Find who we are. Look in the path if we contain no path at all | |
20774 | # relative or not. | |
20775 | case $0 in | |
20776 | *[\\/]* ) as_myself=$0 ;; | |
20777 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20778 | for as_dir in $PATH | |
20779 | do | |
20780 | IFS=$as_save_IFS | |
20781 | test -z "$as_dir" && as_dir=. | |
20782 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
20783 | done | |
20784 | ||
20785 | ;; | |
20786 | esac | |
20787 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
20788 | # in which case we are not to be found in the path. | |
20789 | if test "x$as_myself" = x; then | |
20790 | as_myself=$0 | |
20791 | fi | |
20792 | if test ! -f "$as_myself"; then | |
20793 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
20794 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
20795 | { (exit 1); exit 1; }; } | |
20796 | fi | |
20797 | case $CONFIG_SHELL in | |
20798 | '') | |
20799 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
20800 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
20801 | do | |
20802 | IFS=$as_save_IFS | |
20803 | test -z "$as_dir" && as_dir=. | |
20804 | for as_base in sh bash ksh sh5; do | |
20805 | case $as_dir in | |
20806 | /*) | |
20807 | if ("$as_dir/$as_base" -c ' | |
20808 | as_lineno_1=$LINENO | |
20809 | as_lineno_2=$LINENO | |
20810 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
20811 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
20812 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
20813 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
20814 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
20815 | CONFIG_SHELL=$as_dir/$as_base | |
20816 | export CONFIG_SHELL | |
20817 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
20818 | fi;; | |
20819 | esac | |
20820 | done | |
20821 | done | |
20822 | ;; | |
20823 | esac | |
20824 | ||
20825 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
20826 | # uniformly replaced by the line number. The first 'sed' inserts a | |
20827 | # line-number line before each line; the second 'sed' does the real | |
20828 | # work. The second script uses 'N' to pair each line-number line | |
20829 | # with the numbered line, and appends trailing '-' during | |
20830 | # substitution so that $LINENO is not a special case at line end. | |
20831 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
20832 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
20833 | sed '=' <$as_myself | | |
20834 | sed ' | |
20835 | N | |
20836 | s,$,-, | |
20837 | : loop | |
20838 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
20839 | t loop | |
20840 | s,-$,, | |
20841 | s,^['$as_cr_digits']*\n,, | |
20842 | ' >$as_me.lineno && | |
20843 | chmod +x $as_me.lineno || | |
20844 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
20845 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
20846 | { (exit 1); exit 1; }; } | |
20847 | ||
20848 | # Don't try to exec as it changes $[0], causing all sort of problems | |
20849 | # (the dirname of $[0] is not the place where we might find the | |
20850 | # original and so on. Autoconf is especially sensible to this). | |
20851 | . ./$as_me.lineno | |
20852 | # Exit status is that of the last command. | |
20853 | exit | |
252b5132 | 20854 | } |
6be7c12c | 20855 | |
5464f5a1 NN |
20856 | |
20857 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
20858 | *c*,-n*) ECHO_N= ECHO_C=' | |
20859 | ' ECHO_T=' ' ;; | |
20860 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
20861 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
20862 | esac | |
20863 | ||
20864 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
20865 | as_expr=expr | |
252b5132 | 20866 | else |
5464f5a1 | 20867 | as_expr=false |
252b5132 | 20868 | fi |
5464f5a1 NN |
20869 | |
20870 | rm -f conf$$ conf$$.exe conf$$.file | |
20871 | echo >conf$$.file | |
20872 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
20873 | # We could just check for DJGPP; but this test a) works b) is more generic | |
20874 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
20875 | if test -f conf$$.exe; then | |
20876 | # Don't use ln at all; we don't have any links | |
20877 | as_ln_s='cp -p' | |
20878 | else | |
20879 | as_ln_s='ln -s' | |
20880 | fi | |
20881 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
20882 | as_ln_s=ln | |
20883 | else | |
20884 | as_ln_s='cp -p' | |
252b5132 | 20885 | fi |
5464f5a1 | 20886 | rm -f conf$$ conf$$.exe conf$$.file |
6be7c12c | 20887 | |
5464f5a1 NN |
20888 | if mkdir -p . 2>/dev/null; then |
20889 | as_mkdir_p=: | |
20890 | else | |
20891 | test -d ./-p && rmdir ./-p | |
20892 | as_mkdir_p=false | |
252b5132 | 20893 | fi |
b3baf5d0 | 20894 | |
5464f5a1 | 20895 | as_executable_p="test -f" |
252b5132 | 20896 | |
5464f5a1 NN |
20897 | # Sed expression to map a string onto a valid CPP name. |
20898 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
252b5132 | 20899 | |
5464f5a1 NN |
20900 | # Sed expression to map a string onto a valid variable name. |
20901 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
6be7c12c | 20902 | |
252b5132 | 20903 | |
5464f5a1 NN |
20904 | # IFS |
20905 | # We need space, tab and new line, in precisely that order. | |
20906 | as_nl=' | |
20907 | ' | |
20908 | IFS=" $as_nl" | |
252b5132 | 20909 | |
5464f5a1 NN |
20910 | # CDPATH. |
20911 | $as_unset CDPATH | |
20912 | ||
20913 | exec 6>&1 | |
20914 | ||
20915 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
20916 | # report actual input values of CONFIG_FILES etc. instead of their | |
20917 | # values after options handling. Logging --version etc. is OK. | |
20918 | exec 5>>config.log | |
20919 | { | |
20920 | echo | |
20921 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
20922 | ## Running $as_me. ## | |
20923 | _ASBOX | |
20924 | } >&5 | |
20925 | cat >&5 <<_CSEOF | |
20926 | ||
20927 | This file was extended by $as_me, which was | |
20928 | generated by GNU Autoconf 2.59. Invocation command line was | |
20929 | ||
20930 | CONFIG_FILES = $CONFIG_FILES | |
20931 | CONFIG_HEADERS = $CONFIG_HEADERS | |
20932 | CONFIG_LINKS = $CONFIG_LINKS | |
20933 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
20934 | $ $0 $@ | |
20935 | ||
20936 | _CSEOF | |
20937 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
20938 | echo >&5 | |
20939 | _ACEOF | |
20940 | ||
20941 | # Files that config.status was made for. | |
20942 | if test -n "$ac_config_files"; then | |
20943 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
6be7c12c | 20944 | fi |
5464f5a1 NN |
20945 | |
20946 | if test -n "$ac_config_headers"; then | |
20947 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
6be7c12c | 20948 | fi |
252b5132 | 20949 | |
5464f5a1 NN |
20950 | if test -n "$ac_config_links"; then |
20951 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
252b5132 | 20952 | fi |
252b5132 | 20953 | |
5464f5a1 NN |
20954 | if test -n "$ac_config_commands"; then |
20955 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
20956 | fi | |
252b5132 | 20957 | |
5464f5a1 NN |
20958 | cat >>$CONFIG_STATUS <<\_ACEOF |
20959 | ||
20960 | ac_cs_usage="\ | |
20961 | \`$as_me' instantiates files from templates according to the | |
20962 | current configuration. | |
20963 | ||
20964 | Usage: $0 [OPTIONS] [FILE]... | |
20965 | ||
20966 | -h, --help print this help, then exit | |
20967 | -V, --version print version number, then exit | |
20968 | -q, --quiet do not print progress messages | |
20969 | -d, --debug don't remove temporary files | |
20970 | --recheck update $as_me by reconfiguring in the same conditions | |
20971 | --file=FILE[:TEMPLATE] | |
20972 | instantiate the configuration file FILE | |
20973 | --header=FILE[:TEMPLATE] | |
20974 | instantiate the configuration header FILE | |
20975 | ||
20976 | Configuration files: | |
20977 | $config_files | |
20978 | ||
20979 | Configuration headers: | |
20980 | $config_headers | |
20981 | ||
20982 | Configuration commands: | |
20983 | $config_commands | |
20984 | ||
20985 | Report bugs to <bug-autoconf@gnu.org>." | |
20986 | _ACEOF | |
20987 | ||
20988 | cat >>$CONFIG_STATUS <<_ACEOF | |
20989 | ac_cs_version="\\ | |
20990 | config.status | |
20991 | configured by $0, generated by GNU Autoconf 2.59, | |
20992 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
20993 | ||
20994 | Copyright (C) 2003 Free Software Foundation, Inc. | |
20995 | This config.status script is free software; the Free Software Foundation | |
20996 | gives unlimited permission to copy, distribute and modify it." | |
20997 | srcdir=$srcdir | |
20998 | INSTALL="$INSTALL" | |
20999 | _ACEOF | |
21000 | ||
21001 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21002 | # If no file are specified by the user, then we need to provide default | |
21003 | # value. By we need to know if files were specified by the user. | |
21004 | ac_need_defaults=: | |
21005 | while test $# != 0 | |
21006 | do | |
21007 | case $1 in | |
21008 | --*=*) | |
21009 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
21010 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
21011 | ac_shift=: | |
6be7c12c | 21012 | ;; |
5464f5a1 NN |
21013 | -*) |
21014 | ac_option=$1 | |
21015 | ac_optarg=$2 | |
21016 | ac_shift=shift | |
6be7c12c | 21017 | ;; |
5464f5a1 NN |
21018 | *) # This is not an option, so the user has probably given explicit |
21019 | # arguments. | |
21020 | ac_option=$1 | |
21021 | ac_need_defaults=false;; | |
21022 | esac | |
252b5132 | 21023 | |
5464f5a1 NN |
21024 | case $ac_option in |
21025 | # Handling of the options. | |
21026 | _ACEOF | |
21027 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21028 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
21029 | ac_cs_recheck=: ;; | |
21030 | --version | --vers* | -V ) | |
21031 | echo "$ac_cs_version"; exit 0 ;; | |
21032 | --he | --h) | |
21033 | # Conflict between --help and --header | |
21034 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
21035 | Try \`$0 --help' for more information." >&5 | |
21036 | echo "$as_me: error: ambiguous option: $1 | |
21037 | Try \`$0 --help' for more information." >&2;} | |
21038 | { (exit 1); exit 1; }; };; | |
21039 | --help | --hel | -h ) | |
21040 | echo "$ac_cs_usage"; exit 0 ;; | |
21041 | --debug | --d* | -d ) | |
21042 | debug=: ;; | |
21043 | --file | --fil | --fi | --f ) | |
21044 | $ac_shift | |
21045 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
21046 | ac_need_defaults=false;; | |
21047 | --header | --heade | --head | --hea ) | |
21048 | $ac_shift | |
21049 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
21050 | ac_need_defaults=false;; | |
21051 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
21052 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
21053 | ac_cs_silent=: ;; | |
6be7c12c | 21054 | |
5464f5a1 NN |
21055 | # This is an error. |
21056 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
21057 | Try \`$0 --help' for more information." >&5 | |
21058 | echo "$as_me: error: unrecognized option: $1 | |
21059 | Try \`$0 --help' for more information." >&2;} | |
21060 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 21061 | |
5464f5a1 | 21062 | *) ac_config_targets="$ac_config_targets $1" ;; |
252b5132 | 21063 | |
5464f5a1 NN |
21064 | esac |
21065 | shift | |
21066 | done | |
6be7c12c | 21067 | |
5464f5a1 | 21068 | ac_configure_extra_args= |
252b5132 | 21069 | |
5464f5a1 NN |
21070 | if $ac_cs_silent; then |
21071 | exec 6>/dev/null | |
21072 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
21073 | fi | |
6be7c12c | 21074 | |
5464f5a1 NN |
21075 | _ACEOF |
21076 | cat >>$CONFIG_STATUS <<_ACEOF | |
21077 | if \$ac_cs_recheck; then | |
21078 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
21079 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
21080 | fi | |
21081 | ||
21082 | _ACEOF | |
21083 | ||
21084 | cat >>$CONFIG_STATUS <<_ACEOF | |
6be7c12c | 21085 | # |
5464f5a1 | 21086 | # INIT-COMMANDS section. |
6be7c12c | 21087 | # |
b3baf5d0 | 21088 | |
f5385ebf | 21089 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
21090 | |
21091 | ||
21092 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
21093 | # if CDPATH is set. | |
21094 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
21095 | ||
21096 | sed_quote_subst='$sed_quote_subst' | |
21097 | double_quote_subst='$double_quote_subst' | |
21098 | delay_variable_subst='$delay_variable_subst' | |
21099 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
21100 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
21101 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
21102 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
21103 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
21104 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
21105 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
21106 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
21107 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
21108 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
21109 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
21110 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
21111 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
21112 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
21113 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
21114 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
21115 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
21116 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
21117 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
21118 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
21119 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
21120 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
21121 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
21122 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
21123 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
21124 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
21125 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
21126 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21127 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' | |
21128 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
21129 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
21130 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
21131 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
21132 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
21133 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21134 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21135 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21136 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
21137 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
21138 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
21139 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
21140 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
21141 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
21142 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' | |
21143 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' | |
21144 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
21145 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
21146 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
21147 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
21148 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
21149 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
21150 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
21151 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
21152 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
21153 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' | |
21154 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21155 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21156 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
21157 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
21158 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21159 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21160 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
21161 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21162 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21163 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21164 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21165 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21166 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21167 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
21168 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
21169 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
21170 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21171 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
21172 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
21173 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
21174 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
21175 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
21176 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
21177 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
21178 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
21179 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
21180 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
21181 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
21182 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21183 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
21184 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
21185 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21186 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21187 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
21188 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
21189 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
21190 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
21191 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
21192 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
21193 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
21194 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21195 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21196 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21197 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21198 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21199 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
21200 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
21201 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
21202 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21203 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
21204 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
21205 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
21206 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
21207 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
21208 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
21209 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
21210 | ||
21211 | LTCC='$LTCC' | |
21212 | LTCFLAGS='$LTCFLAGS' | |
21213 | compiler='$compiler_DEFAULT' | |
21214 | ||
21215 | # Quote evaled strings. | |
21216 | for var in SED \ | |
21217 | GREP \ | |
21218 | EGREP \ | |
21219 | FGREP \ | |
21220 | LD \ | |
21221 | NM \ | |
21222 | LN_S \ | |
21223 | lt_SP2NL \ | |
21224 | lt_NL2SP \ | |
21225 | reload_flag \ | |
21226 | deplibs_check_method \ | |
21227 | file_magic_cmd \ | |
21228 | AR \ | |
21229 | AR_FLAGS \ | |
21230 | STRIP \ | |
21231 | RANLIB \ | |
21232 | CC \ | |
21233 | CFLAGS \ | |
21234 | compiler \ | |
21235 | lt_cv_sys_global_symbol_pipe \ | |
21236 | lt_cv_sys_global_symbol_to_cdecl \ | |
21237 | lt_cv_sys_global_symbol_to_c_name_address \ | |
21238 | SHELL \ | |
21239 | ECHO \ | |
21240 | lt_prog_compiler_no_builtin_flag \ | |
21241 | lt_prog_compiler_wl \ | |
21242 | lt_prog_compiler_pic \ | |
21243 | lt_prog_compiler_static \ | |
21244 | lt_cv_prog_compiler_c_o \ | |
21245 | need_locks \ | |
21246 | shrext_cmds \ | |
21247 | export_dynamic_flag_spec \ | |
21248 | whole_archive_flag_spec \ | |
21249 | compiler_needs_object \ | |
21250 | with_gnu_ld \ | |
21251 | allow_undefined_flag \ | |
21252 | no_undefined_flag \ | |
21253 | hardcode_libdir_flag_spec \ | |
21254 | hardcode_libdir_flag_spec_ld \ | |
21255 | hardcode_libdir_separator \ | |
21256 | fix_srcfile_path \ | |
21257 | exclude_expsyms \ | |
21258 | include_expsyms \ | |
21259 | file_list_spec \ | |
21260 | variables_saved_for_relink \ | |
21261 | libname_spec \ | |
21262 | library_names_spec \ | |
21263 | soname_spec \ | |
21264 | finish_eval \ | |
21265 | old_striplib \ | |
21266 | striplib; do | |
21267 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
21268 | *[\\\\\\\`\\"\\\$]*) | |
21269 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
21270 | ;; | |
21271 | *) | |
21272 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
21273 | ;; | |
21274 | esac | |
21275 | done | |
21276 | ||
21277 | # Double-quote double-evaled strings. | |
21278 | for var in reload_cmds \ | |
21279 | old_postinstall_cmds \ | |
21280 | old_postuninstall_cmds \ | |
21281 | old_archive_cmds \ | |
21282 | extract_expsyms_cmds \ | |
21283 | old_archive_from_new_cmds \ | |
21284 | old_archive_from_expsyms_cmds \ | |
21285 | archive_cmds \ | |
21286 | archive_expsym_cmds \ | |
21287 | module_cmds \ | |
21288 | module_expsym_cmds \ | |
21289 | export_symbols_cmds \ | |
21290 | prelink_cmds \ | |
21291 | postinstall_cmds \ | |
21292 | postuninstall_cmds \ | |
21293 | finish_cmds \ | |
21294 | sys_lib_search_path_spec \ | |
21295 | sys_lib_dlsearch_path_spec; do | |
21296 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
21297 | *[\\\\\\\`\\"\\\$]*) | |
21298 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
21299 | ;; | |
21300 | *) | |
21301 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
21302 | ;; | |
21303 | esac | |
21304 | done | |
21305 | ||
21306 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
21307 | case \$lt_ECHO in | |
21308 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
21309 | ;; | |
21310 | esac | |
21311 | ||
21312 | ac_aux_dir='$ac_aux_dir' | |
21313 | xsi_shell='$xsi_shell' | |
21314 | lt_shell_append='$lt_shell_append' | |
21315 | ||
21316 | # See if we are running on zsh, and set the options which allow our | |
21317 | # commands through without removal of \ escapes INIT. | |
21318 | if test -n "\${ZSH_VERSION+set}" ; then | |
21319 | setopt NO_GLOB_SUBST | |
21320 | fi | |
21321 | ||
21322 | ||
21323 | PACKAGE='$PACKAGE' | |
21324 | VERSION='$VERSION' | |
21325 | TIMESTAMP='$TIMESTAMP' | |
21326 | RM='$RM' | |
21327 | ofile='$ofile' | |
21328 | ||
21329 | ||
21330 | ||
20e95c23 DJ |
21331 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
21332 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
21333 | # from automake. | |
21334 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
21335 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
21336 | LINGUAS="${LINGUAS-%UNSET%}" | |
21337 | ||
5464f5a1 | 21338 | |
d5efd9fc AM |
21339 | GCC="$GCC" |
21340 | CC="$CC" | |
21341 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
21342 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
21343 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
21344 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
21345 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
21346 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
21347 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
21348 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
21349 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
21350 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
21351 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
21352 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" | |
21353 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
21354 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" | |
21355 | ||
21356 | ||
5464f5a1 NN |
21357 | |
21358 | _ACEOF | |
21359 | ||
21360 | ||
21361 | ||
21362 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21363 | for ac_config_target in $ac_config_targets | |
252b5132 | 21364 | do |
5464f5a1 NN |
21365 | case "$ac_config_target" in |
21366 | # Handling of arguments. | |
21367 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
21368 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
21369 | "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;; | |
21370 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
f5385ebf | 21371 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
d7040cdb | 21372 | "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
20e95c23 | 21373 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
d5efd9fc | 21374 | "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;; |
5464f5a1 NN |
21375 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
21376 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
21377 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
21378 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
21379 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
21380 | esac |
21381 | done | |
21382 | ||
5464f5a1 NN |
21383 | # If the user did not use the arguments to specify the items to instantiate, |
21384 | # then the envvar interface is used. Set only those that are not. | |
21385 | # We use the long form for the default assignment because of an extremely | |
21386 | # bizarre bug on SunOS 4.1.3. | |
21387 | if $ac_need_defaults; then | |
21388 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
21389 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
21390 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
21391 | fi | |
21392 | ||
21393 | # Have a temporary directory for convenience. Make it in the build tree | |
21394 | # simply because there is no reason to put it here, and in addition, | |
21395 | # creating and moving files from /tmp can sometimes cause problems. | |
21396 | # Create a temporary directory, and hook for its removal unless debugging. | |
21397 | $debug || | |
21398 | { | |
21399 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
21400 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
21401 | } | |
b3baf5d0 | 21402 | |
5464f5a1 | 21403 | # Create a (secure) tmp directory for tmp files. |
b3baf5d0 | 21404 | |
5464f5a1 NN |
21405 | { |
21406 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
21407 | test -n "$tmp" && test -d "$tmp" | |
21408 | } || | |
21409 | { | |
21410 | tmp=./confstat$$-$RANDOM | |
21411 | (umask 077 && mkdir $tmp) | |
21412 | } || | |
21413 | { | |
21414 | echo "$me: cannot create a temporary directory in ." >&2 | |
21415 | { (exit 1); exit 1; } | |
21416 | } | |
21417 | ||
21418 | _ACEOF | |
21419 | ||
21420 | cat >>$CONFIG_STATUS <<_ACEOF | |
21421 | ||
21422 | # | |
21423 | # CONFIG_FILES section. | |
21424 | # | |
b3baf5d0 | 21425 | |
5464f5a1 NN |
21426 | # No need to generate the scripts if there are no CONFIG_FILES. |
21427 | # This happens for instance when ./config.status config.h | |
21428 | if test -n "\$CONFIG_FILES"; then | |
21429 | # Protect against being on the right side of a sed subst in config.status. | |
21430 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
21431 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
21432 | s,@SHELL@,$SHELL,;t t | |
21433 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
21434 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
21435 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
21436 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
21437 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
21438 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
21439 | s,@exec_prefix@,$exec_prefix,;t t | |
21440 | s,@prefix@,$prefix,;t t | |
21441 | s,@program_transform_name@,$program_transform_name,;t t | |
21442 | s,@bindir@,$bindir,;t t | |
21443 | s,@sbindir@,$sbindir,;t t | |
21444 | s,@libexecdir@,$libexecdir,;t t | |
21445 | s,@datadir@,$datadir,;t t | |
21446 | s,@sysconfdir@,$sysconfdir,;t t | |
21447 | s,@sharedstatedir@,$sharedstatedir,;t t | |
21448 | s,@localstatedir@,$localstatedir,;t t | |
21449 | s,@libdir@,$libdir,;t t | |
21450 | s,@includedir@,$includedir,;t t | |
21451 | s,@oldincludedir@,$oldincludedir,;t t | |
21452 | s,@infodir@,$infodir,;t t | |
21453 | s,@mandir@,$mandir,;t t | |
21454 | s,@build_alias@,$build_alias,;t t | |
21455 | s,@host_alias@,$host_alias,;t t | |
21456 | s,@target_alias@,$target_alias,;t t | |
21457 | s,@DEFS@,$DEFS,;t t | |
21458 | s,@ECHO_C@,$ECHO_C,;t t | |
21459 | s,@ECHO_N@,$ECHO_N,;t t | |
21460 | s,@ECHO_T@,$ECHO_T,;t t | |
21461 | s,@LIBS@,$LIBS,;t t | |
21462 | s,@build@,$build,;t t | |
21463 | s,@build_cpu@,$build_cpu,;t t | |
21464 | s,@build_vendor@,$build_vendor,;t t | |
21465 | s,@build_os@,$build_os,;t t | |
21466 | s,@host@,$host,;t t | |
21467 | s,@host_cpu@,$host_cpu,;t t | |
21468 | s,@host_vendor@,$host_vendor,;t t | |
21469 | s,@host_os@,$host_os,;t t | |
21470 | s,@target@,$target,;t t | |
21471 | s,@target_cpu@,$target_cpu,;t t | |
21472 | s,@target_vendor@,$target_vendor,;t t | |
21473 | s,@target_os@,$target_os,;t t | |
21474 | s,@CC@,$CC,;t t | |
21475 | s,@CFLAGS@,$CFLAGS,;t t | |
21476 | s,@LDFLAGS@,$LDFLAGS,;t t | |
21477 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
21478 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
21479 | s,@EXEEXT@,$EXEEXT,;t t | |
21480 | s,@OBJEXT@,$OBJEXT,;t t | |
21481 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
21482 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
21483 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
f5385ebf | 21484 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
5464f5a1 NN |
21485 | s,@PACKAGE@,$PACKAGE,;t t |
21486 | s,@VERSION@,$VERSION,;t t | |
21487 | s,@ACLOCAL@,$ACLOCAL,;t t | |
21488 | s,@AUTOCONF@,$AUTOCONF,;t t | |
21489 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
21490 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
21491 | s,@MAKEINFO@,$MAKEINFO,;t t | |
f5385ebf AM |
21492 | s,@install_sh@,$install_sh,;t t |
21493 | s,@STRIP@,$STRIP,;t t | |
21494 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
21495 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
21496 | s,@mkdir_p@,$mkdir_p,;t t | |
21497 | s,@AWK@,$AWK,;t t | |
5464f5a1 | 21498 | s,@SET_MAKE@,$SET_MAKE,;t t |
f5385ebf AM |
21499 | s,@am__leading_dot@,$am__leading_dot,;t t |
21500 | s,@AMTAR@,$AMTAR,;t t | |
21501 | s,@am__tar@,$am__tar,;t t | |
21502 | s,@am__untar@,$am__untar,;t t | |
21503 | s,@DEPDIR@,$DEPDIR,;t t | |
21504 | s,@am__include@,$am__include,;t t | |
21505 | s,@am__quote@,$am__quote,;t t | |
21506 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
21507 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
21508 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
21509 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
21510 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
21511 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
5464f5a1 NN |
21512 | s,@AR@,$AR,;t t |
21513 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
21514 | s,@RANLIB@,$RANLIB,;t t | |
21515 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
5464f5a1 | 21516 | s,@LIBTOOL@,$LIBTOOL,;t t |
d7040cdb SE |
21517 | s,@SED@,$SED,;t t |
21518 | s,@EGREP@,$EGREP,;t t | |
21519 | s,@FGREP@,$FGREP,;t t | |
21520 | s,@GREP@,$GREP,;t t | |
21521 | s,@LD@,$LD,;t t | |
21522 | s,@DUMPBIN@,$DUMPBIN,;t t | |
21523 | s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t | |
21524 | s,@NM@,$NM,;t t | |
21525 | s,@LN_S@,$LN_S,;t t | |
21526 | s,@lt_ECHO@,$lt_ECHO,;t t | |
21527 | s,@CPP@,$CPP,;t t | |
0d4a1476 | 21528 | s,@DEBUGDIR@,$DEBUGDIR,;t t |
92f01d61 | 21529 | s,@PKGVERSION@,$PKGVERSION,;t t |
c428fa83 L |
21530 | s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t |
21531 | s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t | |
5464f5a1 | 21532 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t |
9e9b66a9 | 21533 | s,@NO_WERROR@,$NO_WERROR,;t t |
5464f5a1 NN |
21534 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
21535 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
21536 | s,@MAINT@,$MAINT,;t t | |
d5fbea21 DJ |
21537 | s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t |
21538 | s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t | |
5464f5a1 NN |
21539 | s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t |
21540 | s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t | |
24443139 AS |
21541 | s,@host_noncanonical@,$host_noncanonical,;t t |
21542 | s,@target_noncanonical@,$target_noncanonical,;t t | |
5464f5a1 NN |
21543 | s,@bfdlibdir@,$bfdlibdir,;t t |
21544 | s,@bfdincludedir@,$bfdincludedir,;t t | |
5464f5a1 | 21545 | s,@USE_NLS@,$USE_NLS,;t t |
20e95c23 DJ |
21546 | s,@LIBINTL@,$LIBINTL,;t t |
21547 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t | |
21548 | s,@INCINTL@,$INCINTL,;t t | |
5464f5a1 | 21549 | s,@XGETTEXT@,$XGETTEXT,;t t |
20e95c23 DJ |
21550 | s,@GMSGFMT@,$GMSGFMT,;t t |
21551 | s,@POSUB@,$POSUB,;t t | |
5464f5a1 | 21552 | s,@CATALOGS@,$CATALOGS,;t t |
5464f5a1 | 21553 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
5464f5a1 | 21554 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
20e95c23 DJ |
21555 | s,@GENCAT@,$GENCAT,;t t |
21556 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
5464f5a1 | 21557 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
20e95c23 DJ |
21558 | s,@MSGFMT@,$MSGFMT,;t t |
21559 | s,@MSGMERGE@,$MSGMERGE,;t t | |
5464f5a1 NN |
21560 | s,@HDEFINES@,$HDEFINES,;t t |
21561 | s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t | |
d2df793a | 21562 | s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t |
5464f5a1 NN |
21563 | s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t |
21564 | s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t | |
21565 | s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t | |
d2df793a | 21566 | s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t |
5464f5a1 NN |
21567 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t |
21568 | s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t | |
21569 | s,@COREFILE@,$COREFILE,;t t | |
21570 | s,@COREFLAG@,$COREFLAG,;t t | |
21571 | s,@WIN32LDFLAGS@,$WIN32LDFLAGS,;t t | |
21572 | s,@WIN32LIBADD@,$WIN32LIBADD,;t t | |
21573 | s,@TDEFINES@,$TDEFINES,;t t | |
21574 | s,@wordsize@,$wordsize,;t t | |
21e40a48 | 21575 | s,@bfd64_libs@,$bfd64_libs,;t t |
5464f5a1 NN |
21576 | s,@all_backends@,$all_backends,;t t |
21577 | s,@bfd_backends@,$bfd_backends,;t t | |
21578 | s,@bfd_machines@,$bfd_machines,;t t | |
21579 | s,@bfd_default_target_size@,$bfd_default_target_size,;t t | |
21580 | s,@bfd_file_ptr@,$bfd_file_ptr,;t t | |
21581 | s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t | |
21582 | s,@tdefaults@,$tdefaults,;t t | |
108a6f8e CD |
21583 | s,@datarootdir@,$datarootdir,;t t |
21584 | s,@docdir@,$docdir,;t t | |
21585 | s,@htmldir@,$htmldir,;t t | |
5464f5a1 NN |
21586 | s,@LIBOBJS@,$LIBOBJS,;t t |
21587 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
252b5132 | 21588 | CEOF |
252b5132 | 21589 | |
5464f5a1 NN |
21590 | _ACEOF |
21591 | ||
21592 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21593 | # Split the substitutions into bite-sized pieces for seds with | |
21594 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
21595 | ac_max_sed_lines=48 | |
21596 | ac_sed_frag=1 # Number of current file. | |
21597 | ac_beg=1 # First line for current file. | |
21598 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
21599 | ac_more_lines=: | |
21600 | ac_sed_cmds= | |
21601 | while $ac_more_lines; do | |
21602 | if test $ac_beg -gt 1; then | |
21603 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
252b5132 | 21604 | else |
5464f5a1 NN |
21605 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
21606 | fi | |
21607 | if test ! -s $tmp/subs.frag; then | |
21608 | ac_more_lines=false | |
21609 | else | |
21610 | # The purpose of the label and of the branching condition is to | |
21611 | # speed up the sed processing (if there are no `@' at all, there | |
21612 | # is no need to browse any of the substitutions). | |
21613 | # These are the two extra sed commands mentioned above. | |
21614 | (echo ':t | |
21615 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
21616 | if test -z "$ac_sed_cmds"; then | |
21617 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
21618 | else | |
21619 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
21620 | fi | |
21621 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
21622 | ac_beg=$ac_end | |
21623 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
252b5132 | 21624 | fi |
5464f5a1 NN |
21625 | done |
21626 | if test -z "$ac_sed_cmds"; then | |
21627 | ac_sed_cmds=cat | |
252b5132 | 21628 | fi |
5464f5a1 | 21629 | fi # test -n "$CONFIG_FILES" |
6be7c12c | 21630 | |
5464f5a1 NN |
21631 | _ACEOF |
21632 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21633 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
252b5132 | 21634 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
5464f5a1 NN |
21635 | case $ac_file in |
21636 | - | *:- | *:-:* ) # input from stdin | |
21637 | cat >$tmp/stdin | |
21638 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
21639 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
21640 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
21641 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
21642 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
21643 | esac |
21644 | ||
5464f5a1 NN |
21645 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
21646 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
21647 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21648 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
21649 | X"$ac_file" : 'X\(//\)$' \| \ | |
21650 | X"$ac_file" : 'X\(/\)' \| \ | |
21651 | . : '\(.\)' 2>/dev/null || | |
21652 | echo X"$ac_file" | | |
21653 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
21654 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
21655 | /^X\(\/\/\)$/{ s//\1/; q; } | |
21656 | /^X\(\/\).*/{ s//\1/; q; } | |
21657 | s/.*/./; q'` | |
21658 | { if $as_mkdir_p; then | |
21659 | mkdir -p "$ac_dir" | |
252b5132 | 21660 | else |
5464f5a1 NN |
21661 | as_dir="$ac_dir" |
21662 | as_dirs= | |
21663 | while test ! -d "$as_dir"; do | |
21664 | as_dirs="$as_dir $as_dirs" | |
21665 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
21666 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
21667 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
21668 | X"$as_dir" : 'X\(//\)$' \| \ | |
21669 | X"$as_dir" : 'X\(/\)' \| \ | |
21670 | . : '\(.\)' 2>/dev/null || | |
21671 | echo X"$as_dir" | | |
21672 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
21673 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
21674 | /^X\(\/\/\)$/{ s//\1/; q; } | |
21675 | /^X\(\/\).*/{ s//\1/; q; } | |
21676 | s/.*/./; q'` | |
21677 | done | |
21678 | test ! -n "$as_dirs" || mkdir $as_dirs | |
21679 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
21680 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
21681 | { (exit 1); exit 1; }; }; } | |
21682 | ||
21683 | ac_builddir=. | |
21684 | ||
21685 | if test "$ac_dir" != .; then | |
21686 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
21687 | # A "../" for each directory in $ac_dir_suffix. | |
21688 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
21689 | else | |
21690 | ac_dir_suffix= ac_top_builddir= | |
21691 | fi | |
252b5132 | 21692 | |
5464f5a1 NN |
21693 | case $srcdir in |
21694 | .) # No --srcdir option. We are building in place. | |
21695 | ac_srcdir=. | |
21696 | if test -z "$ac_top_builddir"; then | |
21697 | ac_top_srcdir=. | |
21698 | else | |
21699 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
21700 | fi ;; | |
21701 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
21702 | ac_srcdir=$srcdir$ac_dir_suffix; | |
21703 | ac_top_srcdir=$srcdir ;; | |
252b5132 | 21704 | *) # Relative path. |
5464f5a1 NN |
21705 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
21706 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
21707 | esac | |
252b5132 | 21708 | |
5464f5a1 NN |
21709 | # Do not use `cd foo && pwd` to compute absolute paths, because |
21710 | # the directories may not exist. | |
21711 | case `pwd` in | |
21712 | .) ac_abs_builddir="$ac_dir";; | |
21713 | *) | |
21714 | case "$ac_dir" in | |
21715 | .) ac_abs_builddir=`pwd`;; | |
21716 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
21717 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
21718 | esac;; | |
21719 | esac | |
21720 | case $ac_abs_builddir in | |
21721 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
21722 | *) | |
21723 | case ${ac_top_builddir}. in | |
21724 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
21725 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
21726 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
21727 | esac;; | |
21728 | esac | |
21729 | case $ac_abs_builddir in | |
21730 | .) ac_abs_srcdir=$ac_srcdir;; | |
21731 | *) | |
21732 | case $ac_srcdir in | |
21733 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
21734 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
21735 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
21736 | esac;; | |
21737 | esac | |
21738 | case $ac_abs_builddir in | |
21739 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
21740 | *) | |
21741 | case $ac_top_srcdir in | |
21742 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
21743 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
21744 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
21745 | esac;; | |
21746 | esac | |
252b5132 | 21747 | |
5464f5a1 NN |
21748 | |
21749 | case $INSTALL in | |
21750 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
21751 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
6be7c12c | 21752 | esac |
252b5132 | 21753 | |
49c96104 SE |
21754 | if test x"$ac_file" != x-; then |
21755 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
21756 | echo "$as_me: creating $ac_file" >&6;} | |
21757 | rm -f "$ac_file" | |
21758 | fi | |
5464f5a1 NN |
21759 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
21760 | # use $as_me), people would be surprised to read: | |
21761 | # /* config.h. Generated by config.status. */ | |
21762 | if test x"$ac_file" = x-; then | |
21763 | configure_input= | |
21764 | else | |
21765 | configure_input="$ac_file. " | |
21766 | fi | |
21767 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
21768 | sed 's,.*/,,'` by configure." | |
21769 | ||
21770 | # First look for the input files in the build tree, otherwise in the | |
21771 | # src tree. | |
21772 | ac_file_inputs=`IFS=: | |
21773 | for f in $ac_file_in; do | |
21774 | case $f in | |
21775 | -) echo $tmp/stdin ;; | |
21776 | [\\/$]*) | |
21777 | # Absolute (can't be DOS-style, as IFS=:) | |
21778 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
21779 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
21780 | { (exit 1); exit 1; }; } | |
21781 | echo "$f";; | |
21782 | *) # Relative | |
21783 | if test -f "$f"; then | |
21784 | # Build tree | |
21785 | echo "$f" | |
21786 | elif test -f "$srcdir/$f"; then | |
21787 | # Source tree | |
21788 | echo "$srcdir/$f" | |
21789 | else | |
21790 | # /dev/null tree | |
21791 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
21792 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
21793 | { (exit 1); exit 1; }; } | |
21794 | fi;; | |
21795 | esac | |
21796 | done` || { (exit 1); exit 1; } | |
5464f5a1 NN |
21797 | _ACEOF |
21798 | cat >>$CONFIG_STATUS <<_ACEOF | |
21799 | sed "$ac_vpsub | |
21800 | $extrasub | |
21801 | _ACEOF | |
21802 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21803 | :t | |
21804 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
21805 | s,@configure_input@,$configure_input,;t t | |
21806 | s,@srcdir@,$ac_srcdir,;t t | |
21807 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
21808 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
21809 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
21810 | s,@builddir@,$ac_builddir,;t t | |
21811 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
21812 | s,@top_builddir@,$ac_top_builddir,;t t | |
21813 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
21814 | s,@INSTALL@,$ac_INSTALL,;t t | |
21815 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
21816 | rm -f $tmp/stdin | |
21817 | if test x"$ac_file" != x-; then | |
21818 | mv $tmp/out $ac_file | |
21819 | else | |
21820 | cat $tmp/out | |
21821 | rm -f $tmp/out | |
21822 | fi | |
21823 | ||
21824 | done | |
21825 | _ACEOF | |
21826 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21827 | ||
21828 | # | |
21829 | # CONFIG_HEADER section. | |
21830 | # | |
252b5132 RH |
21831 | |
21832 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
21833 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
21834 | # | |
21835 | # ac_d sets the value in "#define NAME VALUE" lines. | |
5464f5a1 NN |
21836 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
21837 | ac_dB='[ ].*$,\1#\2' | |
21838 | ac_dC=' ' | |
21839 | ac_dD=',;t' | |
21840 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
21841 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
21842 | ac_uB='$,\1#\2define\3' | |
252b5132 | 21843 | ac_uC=' ' |
5464f5a1 NN |
21844 | ac_uD=',;t' |
21845 | ||
21846 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
252b5132 | 21847 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
5464f5a1 NN |
21848 | case $ac_file in |
21849 | - | *:- | *:-:* ) # input from stdin | |
21850 | cat >$tmp/stdin | |
21851 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
21852 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
21853 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
21854 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
21855 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
21856 | esac |
21857 | ||
5464f5a1 NN |
21858 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
21859 | echo "$as_me: creating $ac_file" >&6;} | |
21860 | ||
21861 | # First look for the input files in the build tree, otherwise in the | |
21862 | # src tree. | |
21863 | ac_file_inputs=`IFS=: | |
21864 | for f in $ac_file_in; do | |
21865 | case $f in | |
21866 | -) echo $tmp/stdin ;; | |
21867 | [\\/$]*) | |
21868 | # Absolute (can't be DOS-style, as IFS=:) | |
21869 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
21870 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
21871 | { (exit 1); exit 1; }; } | |
21872 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
21873 | echo "$f";; | |
21874 | *) # Relative | |
21875 | if test -f "$f"; then | |
21876 | # Build tree | |
21877 | echo "$f" | |
21878 | elif test -f "$srcdir/$f"; then | |
21879 | # Source tree | |
21880 | echo "$srcdir/$f" | |
21881 | else | |
21882 | # /dev/null tree | |
21883 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
21884 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
21885 | { (exit 1); exit 1; }; } | |
21886 | fi;; | |
21887 | esac | |
21888 | done` || { (exit 1); exit 1; } | |
21889 | # Remove the trailing spaces. | |
21890 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
21891 | ||
21892 | _ACEOF | |
21893 | ||
21894 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
21895 | # `conftest.undefs', that substitutes the proper values into | |
21896 | # config.h.in to produce config.h. The first handles `#define' | |
21897 | # templates, and the second `#undef' templates. | |
21898 | # And first: Protect against being on the right side of a sed subst in | |
21899 | # config.status. Protect against being in an unquoted here document | |
21900 | # in config.status. | |
21901 | rm -f conftest.defines conftest.undefs | |
21902 | # Using a here document instead of a string reduces the quoting nightmare. | |
21903 | # Putting comments in sed scripts is not portable. | |
21904 | # | |
21905 | # `end' is used to avoid that the second main sed command (meant for | |
21906 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
21907 | # See the Autoconf documentation for `clear'. | |
21908 | cat >confdef2sed.sed <<\_ACEOF | |
21909 | s/[\\&,]/\\&/g | |
21910 | s,[\\$`],\\&,g | |
21911 | t clear | |
21912 | : clear | |
21913 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
21914 | t end | |
21915 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
21916 | : end | |
21917 | _ACEOF | |
21918 | # If some macros were called several times there might be several times | |
21919 | # the same #defines, which is useless. Nevertheless, we may not want to | |
21920 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
21921 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
21922 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
21923 | rm -f confdef2sed.sed | |
252b5132 RH |
21924 | |
21925 | # This sed command replaces #undef with comments. This is necessary, for | |
21926 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
21927 | # on some systems where configure will not decide to define it. | |
5464f5a1 NN |
21928 | cat >>conftest.undefs <<\_ACEOF |
21929 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
21930 | _ACEOF | |
21931 | ||
21932 | # Break up conftest.defines because some shells have a limit on the size | |
21933 | # of here documents, and old seds have small limits too (100 cmds). | |
21934 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
21935 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
21936 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
21937 | echo ' :' >>$CONFIG_STATUS | |
21938 | rm -f conftest.tail | |
21939 | while grep . conftest.defines >/dev/null | |
21940 | do | |
21941 | # Write a limited-size here document to $tmp/defines.sed. | |
21942 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
21943 | # Speed up: don't consider the non `#define' lines. | |
21944 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
21945 | # Work around the forget-to-reset-the-flag bug. | |
21946 | echo 't clr' >>$CONFIG_STATUS | |
21947 | echo ': clr' >>$CONFIG_STATUS | |
21948 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
21949 | echo 'CEOF | |
21950 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
21951 | rm -f $tmp/in | |
21952 | mv $tmp/out $tmp/in | |
21953 | ' >>$CONFIG_STATUS | |
21954 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
21955 | rm -f conftest.defines | |
21956 | mv conftest.tail conftest.defines | |
21957 | done | |
21958 | rm -f conftest.defines | |
21959 | echo ' fi # grep' >>$CONFIG_STATUS | |
21960 | echo >>$CONFIG_STATUS | |
252b5132 | 21961 | |
5464f5a1 NN |
21962 | # Break up conftest.undefs because some shells have a limit on the size |
21963 | # of here documents, and old seds have small limits too (100 cmds). | |
21964 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
252b5132 | 21965 | rm -f conftest.tail |
5464f5a1 | 21966 | while grep . conftest.undefs >/dev/null |
252b5132 | 21967 | do |
5464f5a1 NN |
21968 | # Write a limited-size here document to $tmp/undefs.sed. |
21969 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
21970 | # Speed up: don't consider the non `#undef' | |
21971 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
21972 | # Work around the forget-to-reset-the-flag bug. | |
21973 | echo 't clr' >>$CONFIG_STATUS | |
21974 | echo ': clr' >>$CONFIG_STATUS | |
21975 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
252b5132 | 21976 | echo 'CEOF |
5464f5a1 NN |
21977 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
21978 | rm -f $tmp/in | |
21979 | mv $tmp/out $tmp/in | |
21980 | ' >>$CONFIG_STATUS | |
21981 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
21982 | rm -f conftest.undefs | |
21983 | mv conftest.tail conftest.undefs | |
252b5132 | 21984 | done |
5464f5a1 NN |
21985 | rm -f conftest.undefs |
21986 | ||
21987 | cat >>$CONFIG_STATUS <<\_ACEOF | |
21988 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
21989 | # use $as_me), people would be surprised to read: | |
21990 | # /* config.h. Generated by config.status. */ | |
21991 | if test x"$ac_file" = x-; then | |
21992 | echo "/* Generated by configure. */" >$tmp/config.h | |
21993 | else | |
21994 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
21995 | fi | |
21996 | cat $tmp/in >>$tmp/config.h | |
21997 | rm -f $tmp/in | |
21998 | if test x"$ac_file" != x-; then | |
21999 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
22000 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
22001 | echo "$as_me: $ac_file is unchanged" >&6;} | |
22002 | else | |
22003 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
22004 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22005 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
22006 | X"$ac_file" : 'X\(//\)$' \| \ | |
22007 | X"$ac_file" : 'X\(/\)' \| \ | |
22008 | . : '\(.\)' 2>/dev/null || | |
22009 | echo X"$ac_file" | | |
22010 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22011 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22012 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22013 | /^X\(\/\).*/{ s//\1/; q; } | |
22014 | s/.*/./; q'` | |
22015 | { if $as_mkdir_p; then | |
22016 | mkdir -p "$ac_dir" | |
252b5132 | 22017 | else |
5464f5a1 NN |
22018 | as_dir="$ac_dir" |
22019 | as_dirs= | |
22020 | while test ! -d "$as_dir"; do | |
22021 | as_dirs="$as_dir $as_dirs" | |
22022 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22023 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22024 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22025 | X"$as_dir" : 'X\(//\)$' \| \ | |
22026 | X"$as_dir" : 'X\(/\)' \| \ | |
22027 | . : '\(.\)' 2>/dev/null || | |
22028 | echo X"$as_dir" | | |
22029 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22030 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22031 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22032 | /^X\(\/\).*/{ s//\1/; q; } | |
22033 | s/.*/./; q'` | |
22034 | done | |
22035 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22036 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22037 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22038 | { (exit 1); exit 1; }; }; } | |
22039 | ||
22040 | rm -f $ac_file | |
22041 | mv $tmp/config.h $ac_file | |
252b5132 | 22042 | fi |
5464f5a1 NN |
22043 | else |
22044 | cat $tmp/config.h | |
22045 | rm -f $tmp/config.h | |
252b5132 | 22046 | fi |
f5385ebf AM |
22047 | # Compute $ac_file's index in $config_headers. |
22048 | _am_stamp_count=1 | |
22049 | for _am_header in $config_headers :; do | |
22050 | case $_am_header in | |
22051 | $ac_file | $ac_file:* ) | |
22052 | break ;; | |
22053 | * ) | |
22054 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
22055 | esac | |
22056 | done | |
22057 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
22058 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22059 | X$ac_file : 'X\(//\)[^/]' \| \ | |
22060 | X$ac_file : 'X\(//\)$' \| \ | |
22061 | X$ac_file : 'X\(/\)' \| \ | |
22062 | . : '\(.\)' 2>/dev/null || | |
22063 | echo X$ac_file | | |
22064 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22065 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22066 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22067 | /^X\(\/\).*/{ s//\1/; q; } | |
22068 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
5464f5a1 NN |
22069 | done |
22070 | _ACEOF | |
22071 | cat >>$CONFIG_STATUS <<\_ACEOF | |
252b5132 | 22072 | |
5464f5a1 NN |
22073 | # |
22074 | # CONFIG_COMMANDS section. | |
22075 | # | |
22076 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
22077 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
22078 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
22079 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
22080 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22081 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
22082 | X"$ac_dest" : 'X\(//\)$' \| \ | |
22083 | X"$ac_dest" : 'X\(/\)' \| \ | |
22084 | . : '\(.\)' 2>/dev/null || | |
22085 | echo X"$ac_dest" | | |
22086 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22087 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22088 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22089 | /^X\(\/\).*/{ s//\1/; q; } | |
22090 | s/.*/./; q'` | |
22091 | { if $as_mkdir_p; then | |
22092 | mkdir -p "$ac_dir" | |
22093 | else | |
22094 | as_dir="$ac_dir" | |
22095 | as_dirs= | |
22096 | while test ! -d "$as_dir"; do | |
22097 | as_dirs="$as_dir $as_dirs" | |
22098 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22099 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22100 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22101 | X"$as_dir" : 'X\(//\)$' \| \ | |
22102 | X"$as_dir" : 'X\(/\)' \| \ | |
22103 | . : '\(.\)' 2>/dev/null || | |
22104 | echo X"$as_dir" | | |
22105 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22106 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22107 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22108 | /^X\(\/\).*/{ s//\1/; q; } | |
22109 | s/.*/./; q'` | |
22110 | done | |
22111 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22112 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
22113 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
22114 | { (exit 1); exit 1; }; }; } | |
b3baf5d0 | 22115 | |
5464f5a1 | 22116 | ac_builddir=. |
b3baf5d0 | 22117 | |
5464f5a1 NN |
22118 | if test "$ac_dir" != .; then |
22119 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
22120 | # A "../" for each directory in $ac_dir_suffix. | |
22121 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
22122 | else | |
22123 | ac_dir_suffix= ac_top_builddir= | |
22124 | fi | |
22125 | ||
22126 | case $srcdir in | |
22127 | .) # No --srcdir option. We are building in place. | |
22128 | ac_srcdir=. | |
22129 | if test -z "$ac_top_builddir"; then | |
22130 | ac_top_srcdir=. | |
22131 | else | |
22132 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
22133 | fi ;; | |
22134 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
22135 | ac_srcdir=$srcdir$ac_dir_suffix; | |
22136 | ac_top_srcdir=$srcdir ;; | |
22137 | *) # Relative path. | |
22138 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
22139 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
22140 | esac | |
22141 | ||
22142 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
22143 | # the directories may not exist. | |
22144 | case `pwd` in | |
22145 | .) ac_abs_builddir="$ac_dir";; | |
22146 | *) | |
22147 | case "$ac_dir" in | |
22148 | .) ac_abs_builddir=`pwd`;; | |
22149 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
22150 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
22151 | esac;; | |
22152 | esac | |
22153 | case $ac_abs_builddir in | |
22154 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22155 | *) | |
22156 | case ${ac_top_builddir}. in | |
22157 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
22158 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
22159 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
22160 | esac;; | |
22161 | esac | |
22162 | case $ac_abs_builddir in | |
22163 | .) ac_abs_srcdir=$ac_srcdir;; | |
22164 | *) | |
22165 | case $ac_srcdir in | |
22166 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
22167 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
22168 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
22169 | esac;; | |
22170 | esac | |
22171 | case $ac_abs_builddir in | |
22172 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22173 | *) | |
22174 | case $ac_top_srcdir in | |
22175 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
22176 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
22177 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
22178 | esac;; | |
22179 | esac | |
22180 | ||
22181 | ||
22182 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
22183 | echo "$as_me: executing $ac_dest commands" >&6;} | |
22184 | case $ac_dest in | |
f5385ebf AM |
22185 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
22186 | # Strip MF so we end up with the name of the file. | |
22187 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
22188 | # Check whether this is an Automake generated Makefile or not. | |
22189 | # We used to match only the files named `Makefile.in', but | |
22190 | # some people rename them; so instead we look at the file content. | |
22191 | # Grep'ing the first line is not enough: some people post-process | |
22192 | # each Makefile.in and add a new line on top of each file to say so. | |
22193 | # So let's grep whole file. | |
22194 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
22195 | dirpart=`(dirname "$mf") 2>/dev/null || | |
22196 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22197 | X"$mf" : 'X\(//\)[^/]' \| \ | |
22198 | X"$mf" : 'X\(//\)$' \| \ | |
22199 | X"$mf" : 'X\(/\)' \| \ | |
22200 | . : '\(.\)' 2>/dev/null || | |
22201 | echo X"$mf" | | |
22202 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22203 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22204 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22205 | /^X\(\/\).*/{ s//\1/; q; } | |
22206 | s/.*/./; q'` | |
22207 | else | |
22208 | continue | |
22209 | fi | |
22210 | # Extract the definition of DEPDIR, am__include, and am__quote | |
22211 | # from the Makefile without running `make'. | |
22212 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
22213 | test -z "$DEPDIR" && continue | |
22214 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
22215 | test -z "am__include" && continue | |
22216 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
22217 | # When using ansi2knr, U may be empty or an underscore; expand it | |
22218 | U=`sed -n 's/^U = //p' < "$mf"` | |
22219 | # Find all dependency output files, they are included files with | |
22220 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
22221 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
22222 | # expansion. | |
22223 | for file in `sed -n " | |
22224 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
22225 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
22226 | # Make sure the directory exists. | |
22227 | test -f "$dirpart/$file" && continue | |
22228 | fdir=`(dirname "$file") 2>/dev/null || | |
22229 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22230 | X"$file" : 'X\(//\)[^/]' \| \ | |
22231 | X"$file" : 'X\(//\)$' \| \ | |
22232 | X"$file" : 'X\(/\)' \| \ | |
22233 | . : '\(.\)' 2>/dev/null || | |
22234 | echo X"$file" | | |
22235 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22236 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22237 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22238 | /^X\(\/\).*/{ s//\1/; q; } | |
22239 | s/.*/./; q'` | |
22240 | { if $as_mkdir_p; then | |
22241 | mkdir -p $dirpart/$fdir | |
22242 | else | |
22243 | as_dir=$dirpart/$fdir | |
22244 | as_dirs= | |
22245 | while test ! -d "$as_dir"; do | |
22246 | as_dirs="$as_dir $as_dirs" | |
22247 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
22248 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22249 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
22250 | X"$as_dir" : 'X\(//\)$' \| \ | |
22251 | X"$as_dir" : 'X\(/\)' \| \ | |
22252 | . : '\(.\)' 2>/dev/null || | |
22253 | echo X"$as_dir" | | |
22254 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
22255 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
22256 | /^X\(\/\/\)$/{ s//\1/; q; } | |
22257 | /^X\(\/\).*/{ s//\1/; q; } | |
22258 | s/.*/./; q'` | |
22259 | done | |
22260 | test ! -n "$as_dirs" || mkdir $as_dirs | |
22261 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
22262 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
22263 | { (exit 1); exit 1; }; }; } | |
22264 | ||
22265 | # echo "creating $dirpart/$file" | |
22266 | echo '# dummy' > "$dirpart/$file" | |
22267 | done | |
22268 | done | |
d7040cdb SE |
22269 | ;; |
22270 | libtool ) | |
22271 | ||
22272 | # See if we are running on zsh, and set the options which allow our | |
22273 | # commands through without removal of \ escapes. | |
22274 | if test -n "${ZSH_VERSION+set}" ; then | |
22275 | setopt NO_GLOB_SUBST | |
22276 | fi | |
22277 | ||
22278 | cfgfile="${ofile}T" | |
22279 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
22280 | $RM "$cfgfile" | |
22281 | ||
22282 | cat <<_LT_EOF >> "$cfgfile" | |
22283 | #! $SHELL | |
22284 | ||
22285 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
22286 | # Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION | |
22287 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
22288 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
22289 | # | |
22290 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
22291 | # 2006, 2007 Free Software Foundation, Inc. | |
22292 | # | |
22293 | # This file is part of GNU Libtool: | |
22294 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
22295 | # | |
22296 | # This program is free software; you can redistribute it and/or modify | |
22297 | # it under the terms of the GNU General Public License as published by | |
0b3e17e9 | 22298 | # the Free Software Foundation; either version 2 of the License, or |
d7040cdb SE |
22299 | # (at your option) any later version. |
22300 | # | |
22301 | # This program is distributed in the hope that it will be useful, but | |
22302 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
22303 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
22304 | # General Public License for more details. | |
22305 | # | |
22306 | # You should have received a copy of the GNU General Public License | |
22307 | # along with this program; if not, a copy can be downloaded from | |
22308 | # http://www.gnu.org/copyleft/gpl.html, or by writing to the Free | |
22309 | # Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | |
22310 | # MA 02110-1301, USA. | |
22311 | # | |
22312 | # As a special exception to the GNU General Public License, if you | |
22313 | # distribute this file as part of a program that contains a | |
22314 | # configuration script generated by Autoconf, you may include it under | |
22315 | # the same distribution terms that you use for the rest of that program. | |
22316 | ||
22317 | ||
22318 | # The names of the tagged configurations supported by this script. | |
22319 | available_tags="" | |
22320 | ||
22321 | # ### BEGIN LIBTOOL CONFIG | |
22322 | ||
22323 | # Whether or not to build shared libraries. | |
22324 | build_libtool_libs=$enable_shared | |
22325 | ||
22326 | # Which release of libtool.m4 was used? | |
22327 | macro_version=$macro_version | |
22328 | macro_revision=$macro_revision | |
22329 | ||
22330 | # Whether or not to build static libraries. | |
22331 | build_old_libs=$enable_static | |
22332 | ||
22333 | # What type of objects to build. | |
22334 | pic_mode=$pic_mode | |
22335 | ||
22336 | # Whether or not to optimize for fast installation. | |
22337 | fast_install=$enable_fast_install | |
22338 | ||
22339 | # The host system. | |
22340 | host_alias=$host_alias | |
22341 | host=$host | |
22342 | host_os=$host_os | |
22343 | ||
22344 | # The build system. | |
22345 | build_alias=$build_alias | |
22346 | build=$build | |
22347 | build_os=$build_os | |
22348 | ||
22349 | # A sed program that does not truncate output. | |
22350 | SED=$lt_SED | |
22351 | ||
22352 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
22353 | Xsed="\$SED -e 1s/^X//" | |
22354 | ||
22355 | # A grep program that handles long lines. | |
22356 | GREP=$lt_GREP | |
22357 | ||
22358 | # An ERE matcher. | |
22359 | EGREP=$lt_EGREP | |
22360 | ||
22361 | # A literal string matcher. | |
22362 | FGREP=$lt_FGREP | |
22363 | ||
22364 | # A BSD- or MS-compatible name lister. | |
22365 | NM=$lt_NM | |
22366 | ||
22367 | # Whether we need soft or hard links. | |
22368 | LN_S=$lt_LN_S | |
22369 | ||
22370 | # What is the maximum length of a command? | |
22371 | max_cmd_len=$max_cmd_len | |
22372 | ||
22373 | # Object file suffix (normally "o"). | |
22374 | objext=$ac_objext | |
22375 | ||
22376 | # Executable file suffix (normally ""). | |
22377 | exeext=$exeext | |
22378 | ||
22379 | # whether the shell understands "unset". | |
22380 | lt_unset=$lt_unset | |
22381 | ||
22382 | # turn spaces into newlines. | |
22383 | SP2NL=$lt_lt_SP2NL | |
22384 | ||
22385 | # turn newlines into spaces. | |
22386 | NL2SP=$lt_lt_NL2SP | |
22387 | ||
22388 | # How to create reloadable object files. | |
22389 | reload_flag=$lt_reload_flag | |
22390 | reload_cmds=$lt_reload_cmds | |
22391 | ||
22392 | # Method to check whether dependent libraries are shared objects. | |
22393 | deplibs_check_method=$lt_deplibs_check_method | |
22394 | ||
22395 | # Command to use when deplibs_check_method == "file_magic". | |
22396 | file_magic_cmd=$lt_file_magic_cmd | |
22397 | ||
22398 | # The archiver. | |
22399 | AR=$lt_AR | |
22400 | AR_FLAGS=$lt_AR_FLAGS | |
22401 | ||
22402 | # A symbol stripping program. | |
22403 | STRIP=$lt_STRIP | |
22404 | ||
22405 | # Commands used to install an old-style archive. | |
22406 | RANLIB=$lt_RANLIB | |
22407 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
22408 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
22409 | ||
22410 | # A C compiler. | |
22411 | LTCC=$lt_CC | |
22412 | ||
22413 | # LTCC compiler flags. | |
22414 | LTCFLAGS=$lt_CFLAGS | |
22415 | ||
22416 | # Take the output of nm and produce a listing of raw symbols and C names. | |
22417 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
22418 | ||
22419 | # Transform the output of nm in a proper C declaration. | |
22420 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
22421 | ||
22422 | # Transform the output of nm in a C name address pair. | |
22423 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
22424 | ||
22425 | # The name of the directory that contains temporary libtool files. | |
22426 | objdir=$objdir | |
22427 | ||
22428 | # Shell to use when invoking shell scripts. | |
22429 | SHELL=$lt_SHELL | |
22430 | ||
22431 | # An echo program that does not interpret backslashes. | |
22432 | ECHO=$lt_ECHO | |
22433 | ||
22434 | # Used to examine libraries when file_magic_cmd begins with "file". | |
22435 | MAGIC_CMD=$MAGIC_CMD | |
22436 | ||
22437 | # Must we lock files when doing compilation? | |
22438 | need_locks=$lt_need_locks | |
22439 | ||
22440 | # Old archive suffix (normally "a"). | |
22441 | libext=$libext | |
22442 | ||
22443 | # Shared library suffix (normally ".so"). | |
22444 | shrext_cmds=$lt_shrext_cmds | |
22445 | ||
22446 | # The commands to extract the exported symbol list from a shared archive. | |
22447 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
22448 | ||
22449 | # Variables whose values should be saved in libtool wrapper scripts and | |
22450 | # restored at link time. | |
22451 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
22452 | ||
22453 | # Do we need the "lib" prefix for modules? | |
22454 | need_lib_prefix=$need_lib_prefix | |
22455 | ||
22456 | # Do we need a version for libraries? | |
22457 | need_version=$need_version | |
22458 | ||
22459 | # Library versioning type. | |
22460 | version_type=$version_type | |
22461 | ||
22462 | # Shared library runtime path variable. | |
22463 | runpath_var=$runpath_var | |
22464 | ||
22465 | # Shared library path variable. | |
22466 | shlibpath_var=$shlibpath_var | |
22467 | ||
22468 | # Is shlibpath searched before the hard-coded library search path? | |
22469 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
22470 | ||
22471 | # Format of library name prefix. | |
22472 | libname_spec=$lt_libname_spec | |
22473 | ||
22474 | # List of archive names. First name is the real one, the rest are links. | |
22475 | # The last name is the one that the linker finds with -lNAME | |
22476 | library_names_spec=$lt_library_names_spec | |
22477 | ||
22478 | # The coded name of the library, if different from the real name. | |
22479 | soname_spec=$lt_soname_spec | |
22480 | ||
22481 | # Command to use after installation of a shared archive. | |
22482 | postinstall_cmds=$lt_postinstall_cmds | |
22483 | ||
22484 | # Command to use after uninstallation of a shared archive. | |
22485 | postuninstall_cmds=$lt_postuninstall_cmds | |
22486 | ||
22487 | # Commands used to finish a libtool library installation in a directory. | |
22488 | finish_cmds=$lt_finish_cmds | |
22489 | ||
22490 | # As "finish_cmds", except a single script fragment to be evaled but | |
22491 | # not shown. | |
22492 | finish_eval=$lt_finish_eval | |
22493 | ||
22494 | # Whether we should hardcode library paths into libraries. | |
22495 | hardcode_into_libs=$hardcode_into_libs | |
22496 | ||
22497 | # Compile-time system search path for libraries. | |
22498 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
22499 | ||
22500 | # Run-time system search path for libraries. | |
22501 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
22502 | ||
22503 | # Whether dlopen is supported. | |
22504 | dlopen_support=$enable_dlopen | |
22505 | ||
22506 | # Whether dlopen of programs is supported. | |
22507 | dlopen_self=$enable_dlopen_self | |
22508 | ||
22509 | # Whether dlopen of statically linked programs is supported. | |
22510 | dlopen_self_static=$enable_dlopen_self_static | |
22511 | ||
22512 | # Commands to strip libraries. | |
22513 | old_striplib=$lt_old_striplib | |
22514 | striplib=$lt_striplib | |
22515 | ||
22516 | ||
22517 | # The linker used to build libraries. | |
22518 | LD=$lt_LD | |
22519 | ||
22520 | # Commands used to build an old-style archive. | |
22521 | old_archive_cmds=$lt_old_archive_cmds | |
22522 | ||
22523 | # A language specific compiler. | |
22524 | CC=$lt_compiler | |
22525 | ||
22526 | # Is the compiler the GNU compiler? | |
22527 | with_gcc=$GCC | |
22528 | ||
22529 | # Compiler flag to turn off builtin functions. | |
22530 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
22531 | ||
22532 | # How to pass a linker flag through the compiler. | |
22533 | wl=$lt_lt_prog_compiler_wl | |
22534 | ||
22535 | # Additional compiler flags for building library objects. | |
22536 | pic_flag=$lt_lt_prog_compiler_pic | |
22537 | ||
22538 | # Compiler flag to prevent dynamic linking. | |
22539 | link_static_flag=$lt_lt_prog_compiler_static | |
22540 | ||
22541 | # Does compiler simultaneously support -c and -o options? | |
22542 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
22543 | ||
22544 | # Whether or not to add -lc for building shared libraries. | |
22545 | build_libtool_need_lc=$archive_cmds_need_lc | |
22546 | ||
22547 | # Whether or not to disallow shared libs when runtime libs are static. | |
22548 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
22549 | ||
22550 | # Compiler flag to allow reflexive dlopens. | |
22551 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
22552 | ||
22553 | # Compiler flag to generate shared objects directly from archives. | |
22554 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
22555 | ||
22556 | # Whether the compiler copes with passing no objects directly. | |
22557 | compiler_needs_object=$lt_compiler_needs_object | |
22558 | ||
22559 | # Create an old-style archive from a shared archive. | |
22560 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
22561 | ||
22562 | # Create a temporary old-style archive to link instead of a shared archive. | |
22563 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
22564 | ||
22565 | # Commands used to build a shared archive. | |
22566 | archive_cmds=$lt_archive_cmds | |
22567 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
22568 | ||
22569 | # Commands used to build a loadable module if different from building | |
22570 | # a shared archive. | |
22571 | module_cmds=$lt_module_cmds | |
22572 | module_expsym_cmds=$lt_module_expsym_cmds | |
22573 | ||
22574 | # Whether we are building with GNU ld or not. | |
22575 | with_gnu_ld=$lt_with_gnu_ld | |
22576 | ||
22577 | # Flag that allows shared libraries with undefined symbols to be built. | |
22578 | allow_undefined_flag=$lt_allow_undefined_flag | |
22579 | ||
22580 | # Flag that enforces no undefined symbols. | |
22581 | no_undefined_flag=$lt_no_undefined_flag | |
22582 | ||
22583 | # Flag to hardcode \$libdir into a binary during linking. | |
22584 | # This must work even if \$libdir does not exist | |
22585 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
22586 | ||
22587 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
22588 | # during linking. This must work even if \$libdir does not exist. | |
22589 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
22590 | ||
22591 | # Whether we need a single "-rpath" flag with a separated argument. | |
22592 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
22593 | ||
22594 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
22595 | # DIR into the resulting binary. | |
22596 | hardcode_direct=$hardcode_direct | |
22597 | ||
22598 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
22599 | # DIR into the resulting binary and the resulting library dependency is | |
22600 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
22601 | # library is relocated. | |
22602 | hardcode_direct_absolute=$hardcode_direct_absolute | |
22603 | ||
22604 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
22605 | # into the resulting binary. | |
22606 | hardcode_minus_L=$hardcode_minus_L | |
22607 | ||
22608 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
22609 | # into the resulting binary. | |
22610 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
22611 | ||
22612 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
22613 | # into the library and all subsequent libraries and executables linked | |
22614 | # against it. | |
22615 | hardcode_automatic=$hardcode_automatic | |
22616 | ||
22617 | # Set to yes if linker adds runtime paths of dependent libraries | |
22618 | # to runtime path list. | |
22619 | inherit_rpath=$inherit_rpath | |
22620 | ||
22621 | # Whether libtool must link a program against all its dependency libraries. | |
22622 | link_all_deplibs=$link_all_deplibs | |
22623 | ||
22624 | # Fix the shell variable \$srcfile for the compiler. | |
22625 | fix_srcfile_path=$lt_fix_srcfile_path | |
22626 | ||
22627 | # Set to "yes" if exported symbols are required. | |
22628 | always_export_symbols=$always_export_symbols | |
22629 | ||
22630 | # The commands to list exported symbols. | |
22631 | export_symbols_cmds=$lt_export_symbols_cmds | |
22632 | ||
22633 | # Symbols that should not be listed in the preloaded symbols. | |
22634 | exclude_expsyms=$lt_exclude_expsyms | |
22635 | ||
22636 | # Symbols that must always be exported. | |
22637 | include_expsyms=$lt_include_expsyms | |
22638 | ||
22639 | # Commands necessary for linking programs (against libraries) with templates. | |
22640 | prelink_cmds=$lt_prelink_cmds | |
22641 | ||
22642 | # Specify filename containing input files. | |
22643 | file_list_spec=$lt_file_list_spec | |
22644 | ||
22645 | # How to hardcode a shared library path into an executable. | |
22646 | hardcode_action=$hardcode_action | |
22647 | ||
22648 | # ### END LIBTOOL CONFIG | |
22649 | ||
22650 | _LT_EOF | |
22651 | ||
22652 | case $host_os in | |
22653 | aix3*) | |
22654 | cat <<\_LT_EOF >> "$cfgfile" | |
22655 | # AIX sometimes has problems with the GCC collect2 program. For some | |
22656 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
22657 | # vanish in a puff of smoke. | |
22658 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
22659 | COLLECT_NAMES= | |
22660 | export COLLECT_NAMES | |
22661 | fi | |
22662 | _LT_EOF | |
22663 | ;; | |
22664 | esac | |
22665 | ||
22666 | ||
22667 | ltmain="$ac_aux_dir/ltmain.sh" | |
22668 | ||
22669 | ||
22670 | # We use sed instead of cat because bash on DJGPP gets confused if | |
22671 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
22672 | # text mode, it properly converts lines to CR/LF. This bash problem | |
22673 | # is reportedly fixed, but why not run on old versions too? | |
22674 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
22675 | || (rm -f "$cfgfile"; exit 1) | |
22676 | ||
22677 | case $xsi_shell in | |
22678 | yes) | |
22679 | cat << \_LT_EOF >> "$cfgfile" | |
22680 | # func_dirname file append nondir_replacement | |
22681 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
22682 | # otherwise set result to NONDIR_REPLACEMENT. | |
22683 | func_dirname () | |
22684 | { | |
22685 | case ${1} in | |
22686 | */*) func_dirname_result="${1%/*}${2}" ;; | |
22687 | * ) func_dirname_result="${3}" ;; | |
22688 | esac | |
22689 | } | |
22690 | ||
22691 | # func_basename file | |
22692 | func_basename () | |
22693 | { | |
22694 | func_basename_result="${1##*/}" | |
22695 | } | |
22696 | ||
22697 | # func_stripname prefix suffix name | |
22698 | # strip PREFIX and SUFFIX off of NAME. | |
22699 | # PREFIX and SUFFIX must not contain globbing or regex special | |
22700 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
22701 | # dot (in which case that matches only a dot). | |
22702 | func_stripname () | |
22703 | { | |
22704 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
22705 | # positional parameters, so assign one to ordinary parameter first. | |
22706 | func_stripname_result=${3} | |
22707 | func_stripname_result=${func_stripname_result#"${1}"} | |
22708 | func_stripname_result=${func_stripname_result%"${2}"} | |
22709 | } | |
22710 | ||
22711 | # func_opt_split | |
22712 | func_opt_split () | |
22713 | { | |
22714 | func_opt_split_opt=${1%%=*} | |
22715 | func_opt_split_arg=${1#*=} | |
22716 | } | |
22717 | ||
22718 | # func_lo2o object | |
22719 | func_lo2o () | |
22720 | { | |
22721 | case ${1} in | |
22722 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
22723 | *) func_lo2o_result=${1} ;; | |
22724 | esac | |
22725 | } | |
22726 | _LT_EOF | |
22727 | ;; | |
22728 | *) # Bourne compatible functions. | |
22729 | cat << \_LT_EOF >> "$cfgfile" | |
22730 | # func_dirname file append nondir_replacement | |
22731 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
22732 | # otherwise set result to NONDIR_REPLACEMENT. | |
22733 | func_dirname () | |
22734 | { | |
22735 | # Extract subdirectory from the argument. | |
22736 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
22737 | if test "X$func_dirname_result" = "X${1}"; then | |
22738 | func_dirname_result="${3}" | |
22739 | else | |
22740 | func_dirname_result="$func_dirname_result${2}" | |
22741 | fi | |
22742 | } | |
22743 | ||
22744 | # func_basename file | |
22745 | func_basename () | |
22746 | { | |
22747 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
22748 | } | |
22749 | ||
22750 | # func_stripname prefix suffix name | |
22751 | # strip PREFIX and SUFFIX off of NAME. | |
22752 | # PREFIX and SUFFIX must not contain globbing or regex special | |
22753 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
22754 | # dot (in which case that matches only a dot). | |
22755 | # func_strip_suffix prefix name | |
22756 | func_stripname () | |
22757 | { | |
22758 | case ${2} in | |
22759 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
22760 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
22761 | *) func_stripname_result=`$ECHO "X${3}" \ | |
22762 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
22763 | esac | |
22764 | } | |
22765 | ||
22766 | # sed scripts: | |
22767 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
22768 | my_sed_long_arg='1s/^-[^=]*=//' | |
22769 | ||
22770 | # func_opt_split | |
22771 | func_opt_split () | |
22772 | { | |
22773 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
22774 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
22775 | } | |
22776 | ||
22777 | # func_lo2o object | |
22778 | func_lo2o () | |
22779 | { | |
22780 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
22781 | } | |
22782 | _LT_EOF | |
22783 | esac | |
22784 | ||
22785 | case $lt_shell_append in | |
22786 | yes) | |
22787 | cat << \_LT_EOF >> "$cfgfile" | |
22788 | ||
22789 | # func_append var value | |
22790 | # Append VALUE to the end of shell variable VAR. | |
22791 | func_append () | |
22792 | { | |
22793 | eval "$1+=\$2" | |
22794 | } | |
22795 | _LT_EOF | |
22796 | ;; | |
22797 | *) | |
22798 | cat << \_LT_EOF >> "$cfgfile" | |
22799 | ||
22800 | # func_append var value | |
22801 | # Append VALUE to the end of shell variable VAR. | |
22802 | func_append () | |
22803 | { | |
22804 | eval "$1=\$$1\$2" | |
22805 | } | |
22806 | _LT_EOF | |
22807 | ;; | |
22808 | esac | |
22809 | ||
22810 | ||
22811 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
22812 | || (rm -f "$cfgfile"; exit 1) | |
22813 | ||
22814 | mv -f "$cfgfile" "$ofile" || | |
22815 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
22816 | chmod +x "$ofile" | |
22817 | ||
f5385ebf | 22818 | ;; |
20e95c23 DJ |
22819 | default-1 ) |
22820 | for ac_file in $CONFIG_FILES; do | |
22821 | # Support "outfile[:infile[:infile...]]" | |
22822 | case "$ac_file" in | |
22823 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
22824 | esac | |
22825 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
22826 | case "$ac_file" in */Makefile.in) | |
22827 | # Adjust a relative srcdir. | |
22828 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
22829 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
22830 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
22831 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
22832 | # In autoconf-2.50 it is called $srcdir. | |
22833 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
22834 | case "$ac_given_srcdir" in | |
22835 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
22836 | /*) top_srcdir="$ac_given_srcdir" ;; | |
22837 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
22838 | esac | |
22839 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
22840 | rm -f "$ac_dir/POTFILES" | |
22841 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
22842 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
22843 | POMAKEFILEDEPS="POTFILES.in" | |
22844 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
22845 | # on $ac_dir but don't depend on user-specified configuration | |
22846 | # parameters. | |
22847 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
22848 | # The LINGUAS file contains the set of available languages. | |
22849 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
22850 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
22851 | fi | |
22852 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
22853 | # Hide the ALL_LINGUAS assigment from automake. | |
22854 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
22855 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
22856 | else | |
22857 | # The set of available languages was given in configure.in. | |
22858 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
22859 | fi | |
22860 | case "$ac_given_srcdir" in | |
22861 | .) srcdirpre= ;; | |
22862 | *) srcdirpre='$(srcdir)/' ;; | |
22863 | esac | |
22864 | POFILES= | |
22865 | GMOFILES= | |
22866 | UPDATEPOFILES= | |
22867 | DUMMYPOFILES= | |
22868 | for lang in $ALL_LINGUAS; do | |
22869 | POFILES="$POFILES $srcdirpre$lang.po" | |
22870 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
22871 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
22872 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
22873 | done | |
22874 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
22875 | # environment variable. | |
22876 | INST_LINGUAS= | |
22877 | if test -n "$ALL_LINGUAS"; then | |
22878 | for presentlang in $ALL_LINGUAS; do | |
22879 | useit=no | |
22880 | if test "%UNSET%" != "$LINGUAS"; then | |
22881 | desiredlanguages="$LINGUAS" | |
22882 | else | |
22883 | desiredlanguages="$ALL_LINGUAS" | |
22884 | fi | |
22885 | for desiredlang in $desiredlanguages; do | |
22886 | # Use the presentlang catalog if desiredlang is | |
22887 | # a. equal to presentlang, or | |
22888 | # b. a variant of presentlang (because in this case, | |
22889 | # presentlang can be used as a fallback for messages | |
22890 | # which are not translated in the desiredlang catalog). | |
22891 | case "$desiredlang" in | |
22892 | "$presentlang"*) useit=yes;; | |
22893 | esac | |
22894 | done | |
22895 | if test $useit = yes; then | |
22896 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
22897 | fi | |
22898 | done | |
22899 | fi | |
22900 | CATALOGS= | |
22901 | if test -n "$INST_LINGUAS"; then | |
22902 | for lang in $INST_LINGUAS; do | |
22903 | CATALOGS="$CATALOGS $lang.gmo" | |
22904 | done | |
22905 | fi | |
22906 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
22907 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" | |
22908 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
22909 | if test -f "$f"; then | |
22910 | case "$f" in | |
22911 | *.orig | *.bak | *~) ;; | |
22912 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
22913 | esac | |
22914 | fi | |
22915 | done | |
22916 | fi | |
22917 | ;; | |
22918 | esac | |
22919 | done ;; | |
d5efd9fc AM |
22920 | bfd_stdint.h ) |
22921 | if test "$GCC" = yes; then | |
22922 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
22923 | else | |
22924 | echo "/* generated for $CC */" > tmp-stdint.h | |
22925 | fi | |
22926 | ||
22927 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
22928 | ||
22929 | #ifndef GCC_GENERATED_STDINT_H | |
22930 | #define GCC_GENERATED_STDINT_H 1 | |
22931 | ||
22932 | #include <sys/types.h> | |
22933 | EOF | |
22934 | ||
22935 | if test "$acx_cv_header_stdint" != stdint.h; then | |
22936 | echo "#include <stddef.h>" >> tmp-stdint.h | |
22937 | fi | |
22938 | if test "$acx_cv_header_stdint" != stddef.h; then | |
22939 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
22940 | fi | |
22941 | ||
22942 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
22943 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
22944 | #ifdef __int8_t_defined | |
22945 | #define _INT8_T | |
22946 | #define _INT16_T | |
22947 | #define _INT32_T | |
22948 | #endif | |
22949 | #ifdef __uint32_t_defined | |
22950 | #define _UINT32_T | |
22951 | #endif | |
22952 | ||
22953 | EOF | |
22954 | ||
22955 | # ----------------- done header, emit basic int types ------------- | |
22956 | if test "$acx_cv_header_stdint" = stddef.h; then | |
22957 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
22958 | ||
22959 | #ifndef _UINT8_T | |
22960 | #define _UINT8_T | |
22961 | #ifndef __uint8_t_defined | |
22962 | #define __uint8_t_defined | |
22963 | typedef unsigned $acx_cv_type_int8_t uint8_t; | |
22964 | #endif | |
22965 | #endif | |
22966 | ||
22967 | #ifndef _UINT16_T | |
22968 | #define _UINT16_T | |
22969 | #ifndef __uint16_t_defined | |
22970 | #define __uint16_t_defined | |
22971 | typedef unsigned $acx_cv_type_int16_t uint16_t; | |
22972 | #endif | |
22973 | #endif | |
22974 | ||
22975 | #ifndef _UINT32_T | |
22976 | #define _UINT32_T | |
22977 | #ifndef __uint32_t_defined | |
22978 | #define __uint32_t_defined | |
22979 | typedef unsigned $acx_cv_type_int32_t uint32_t; | |
22980 | #endif | |
22981 | #endif | |
22982 | ||
22983 | #ifndef _INT8_T | |
22984 | #define _INT8_T | |
22985 | #ifndef __int8_t_defined | |
22986 | #define __int8_t_defined | |
22987 | typedef $acx_cv_type_int8_t int8_t; | |
22988 | #endif | |
22989 | #endif | |
22990 | ||
22991 | #ifndef _INT16_T | |
22992 | #define _INT16_T | |
22993 | #ifndef __int16_t_defined | |
22994 | #define __int16_t_defined | |
22995 | typedef $acx_cv_type_int16_t int16_t; | |
22996 | #endif | |
22997 | #endif | |
22998 | ||
22999 | #ifndef _INT32_T | |
23000 | #define _INT32_T | |
23001 | #ifndef __int32_t_defined | |
23002 | #define __int32_t_defined | |
23003 | typedef $acx_cv_type_int32_t int32_t; | |
23004 | #endif | |
23005 | #endif | |
23006 | EOF | |
23007 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
23008 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
23009 | ||
23010 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
23011 | #ifndef _INT8_T | |
23012 | #define _INT8_T | |
23013 | #endif | |
23014 | #ifndef _INT16_T | |
23015 | #define _INT16_T | |
23016 | #endif | |
23017 | #ifndef _INT32_T | |
23018 | #define _INT32_T | |
23019 | #endif | |
23020 | ||
23021 | #ifndef _UINT8_T | |
23022 | #define _UINT8_T | |
23023 | #ifndef __uint8_t_defined | |
23024 | #define __uint8_t_defined | |
23025 | typedef u_int8_t uint8_t; | |
23026 | #endif | |
23027 | #endif | |
23028 | ||
23029 | #ifndef _UINT16_T | |
23030 | #define _UINT16_T | |
23031 | #ifndef __uint16_t_defined | |
23032 | #define __uint16_t_defined | |
23033 | typedef u_int16_t uint16_t; | |
23034 | #endif | |
23035 | #endif | |
23036 | ||
23037 | #ifndef _UINT32_T | |
23038 | #define _UINT32_T | |
23039 | #ifndef __uint32_t_defined | |
23040 | #define __uint32_t_defined | |
23041 | typedef u_int32_t uint32_t; | |
23042 | #endif | |
23043 | #endif | |
23044 | EOF | |
23045 | else | |
23046 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
23047 | ||
23048 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
23049 | #ifndef _INT8_T | |
23050 | #define _INT8_T | |
23051 | #endif | |
23052 | #ifndef _INT16_T | |
23053 | #define _INT16_T | |
23054 | #endif | |
23055 | #ifndef _INT32_T | |
23056 | #define _INT32_T | |
23057 | #endif | |
23058 | #ifndef _UINT8_T | |
23059 | #define _UINT8_T | |
23060 | #endif | |
23061 | #ifndef _UINT16_T | |
23062 | #define _UINT16_T | |
23063 | #endif | |
23064 | #ifndef _UINT32_T | |
23065 | #define _UINT32_T | |
23066 | #endif | |
23067 | EOF | |
23068 | fi | |
23069 | ||
23070 | # ------------- done basic int types, emit int64_t types ------------ | |
23071 | if test "$ac_cv_type_uint64_t" = yes; then | |
23072 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
23073 | ||
23074 | /* system headers have good uint64_t and int64_t */ | |
23075 | #ifndef _INT64_T | |
23076 | #define _INT64_T | |
23077 | #endif | |
23078 | #ifndef _UINT64_T | |
23079 | #define _UINT64_T | |
23080 | #endif | |
23081 | EOF | |
23082 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
23083 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
23084 | ||
23085 | /* system headers have an u_int64_t (and int64_t) */ | |
23086 | #ifndef _INT64_T | |
23087 | #define _INT64_T | |
23088 | #endif | |
23089 | #ifndef _UINT64_T | |
23090 | #define _UINT64_T | |
23091 | #ifndef __uint64_t_defined | |
23092 | #define __uint64_t_defined | |
23093 | typedef u_int64_t uint64_t; | |
23094 | #endif | |
23095 | #endif | |
23096 | EOF | |
23097 | elif test -n "$acx_cv_type_int64_t"; then | |
23098 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
23099 | ||
23100 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
23101 | #ifndef _INT64_T | |
23102 | #define _INT64_T | |
23103 | typedef $acx_cv_type_int64_t int64_t; | |
23104 | #endif | |
23105 | #ifndef _UINT64_T | |
23106 | #define _UINT64_T | |
23107 | #ifndef __uint64_t_defined | |
23108 | #define __uint64_t_defined | |
23109 | typedef unsigned $acx_cv_type_int64_t uint64_t; | |
23110 | #endif | |
23111 | #endif | |
23112 | EOF | |
23113 | else | |
23114 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
23115 | ||
23116 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
23117 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
23118 | #ifndef _INT64_T | |
23119 | #define _INT64_T | |
23120 | #ifndef __int64_t_defined | |
23121 | typedef long long int64_t; | |
23122 | #endif | |
23123 | #endif | |
23124 | #ifndef _UINT64_T | |
23125 | #define _UINT64_T | |
23126 | typedef unsigned long long uint64_t; | |
23127 | #endif | |
23128 | ||
23129 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
23130 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
23131 | does not implement __extension__. But that compiler doesn't define | |
23132 | __GNUC_MINOR__. */ | |
23133 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
23134 | # define __extension__ | |
23135 | # endif | |
23136 | ||
23137 | # ifndef _INT64_T | |
23138 | # define _INT64_T | |
23139 | __extension__ typedef long long int64_t; | |
23140 | # endif | |
23141 | # ifndef _UINT64_T | |
23142 | # define _UINT64_T | |
23143 | __extension__ typedef unsigned long long uint64_t; | |
23144 | # endif | |
23145 | ||
23146 | #elif !defined __STRICT_ANSI__ | |
23147 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
23148 | ||
23149 | # ifndef _INT64_T | |
23150 | # define _INT64_T | |
23151 | typedef __int64 int64_t; | |
23152 | # endif | |
23153 | # ifndef _UINT64_T | |
23154 | # define _UINT64_T | |
23155 | typedef unsigned __int64 uint64_t; | |
23156 | # endif | |
23157 | # endif /* compiler */ | |
23158 | ||
23159 | #endif /* ANSI version */ | |
23160 | EOF | |
23161 | fi | |
23162 | ||
23163 | # ------------- done int64_t types, emit intptr types ------------ | |
23164 | if test "$ac_cv_type_uintptr_t" != yes; then | |
23165 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
23166 | ||
23167 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
23168 | #ifndef __uintptr_t_defined | |
23169 | typedef u$acx_cv_type_intptr_t uintptr_t; | |
23170 | #endif | |
23171 | #ifndef __intptr_t_defined | |
23172 | typedef $acx_cv_type_intptr_t intptr_t; | |
23173 | #endif | |
23174 | EOF | |
23175 | fi | |
23176 | ||
23177 | # ------------- done intptr types, emit int_least types ------------ | |
23178 | if test "$ac_cv_type_int_least32_t" != yes; then | |
23179 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
23180 | ||
23181 | /* Define int_least types */ | |
23182 | typedef int8_t int_least8_t; | |
23183 | typedef int16_t int_least16_t; | |
23184 | typedef int32_t int_least32_t; | |
23185 | #ifdef _INT64_T | |
23186 | typedef int64_t int_least64_t; | |
23187 | #endif | |
23188 | ||
23189 | typedef uint8_t uint_least8_t; | |
23190 | typedef uint16_t uint_least16_t; | |
23191 | typedef uint32_t uint_least32_t; | |
23192 | #ifdef _UINT64_T | |
23193 | typedef uint64_t uint_least64_t; | |
23194 | #endif | |
23195 | EOF | |
23196 | fi | |
23197 | ||
23198 | # ------------- done intptr types, emit int_fast types ------------ | |
23199 | if test "$ac_cv_type_int_fast32_t" != yes; then | |
23200 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
23201 | ||
23202 | /* Define int_fast types. short is often slow */ | |
23203 | typedef int8_t int_fast8_t; | |
23204 | typedef int int_fast16_t; | |
23205 | typedef int32_t int_fast32_t; | |
23206 | #ifdef _INT64_T | |
23207 | typedef int64_t int_fast64_t; | |
23208 | #endif | |
23209 | ||
23210 | typedef uint8_t uint_fast8_t; | |
23211 | typedef unsigned int uint_fast16_t; | |
23212 | typedef uint32_t uint_fast32_t; | |
23213 | #ifdef _UINT64_T | |
23214 | typedef uint64_t uint_fast64_t; | |
23215 | #endif | |
23216 | EOF | |
23217 | fi | |
23218 | ||
23219 | if test "$ac_cv_type_uintmax_t" != yes; then | |
23220 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
23221 | ||
23222 | /* Define intmax based on what we found */ | |
23223 | #ifdef _INT64_T | |
23224 | typedef int64_t intmax_t; | |
23225 | #else | |
23226 | typedef long intmax_t; | |
23227 | #endif | |
23228 | #ifdef _UINT64_T | |
23229 | typedef uint64_t uintmax_t; | |
23230 | #else | |
23231 | typedef unsigned long uintmax_t; | |
23232 | #endif | |
23233 | EOF | |
23234 | fi | |
23235 | ||
23236 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
23237 | ||
23238 | #endif /* GCC_GENERATED_STDINT_H */ | |
23239 | EOF | |
23240 | ||
23241 | if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then | |
23242 | rm -f tmp-stdint.h | |
23243 | else | |
23244 | mv -f tmp-stdint.h bfd_stdint.h | |
23245 | fi | |
23246 | ||
23247 | ;; | |
20e95c23 DJ |
23248 | default ) |
23249 | case "$srcdir" in | |
23250 | .) srcdirpre= ;; | |
23251 | *) srcdirpre='$(srcdir)/' ;; | |
23252 | esac | |
23253 | POFILES= | |
23254 | GMOFILES= | |
23255 | for lang in dummy $OBSOLETE_ALL_LINGUAS; do | |
23256 | if test $lang != dummy; then | |
23257 | POFILES="$POFILES $srcdirpre$lang.po" | |
23258 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
23259 | fi | |
23260 | done | |
23261 | sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \ | |
23262 | -e '/BLD-POTFILES =/r po/BLD-POTFILES' \ | |
23263 | -e "s,@POFILES@,$POFILES," \ | |
23264 | -e "s,@GMOFILES@,$GMOFILES," \ | |
23265 | po/Makefile.in > po/Makefile ;; | |
5464f5a1 NN |
23266 | esac |
23267 | done | |
23268 | _ACEOF | |
23269 | ||
23270 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23271 | ||
23272 | { (exit 0); exit 0; } | |
23273 | _ACEOF | |
252b5132 | 23274 | chmod +x $CONFIG_STATUS |
5464f5a1 NN |
23275 | ac_clean_files=$ac_clean_files_save |
23276 | ||
23277 | ||
23278 | # configure is writing to config.log, and then calls config.status. | |
23279 | # config.status does its own redirection, appending to config.log. | |
23280 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
23281 | # by configure, so config.status won't be able to write to it; its | |
23282 | # output is simply discarded. So we exec the FD to /dev/null, | |
23283 | # effectively closing config.log, so it can be properly (re)opened and | |
23284 | # appended to by config.status. When coming back to configure, we | |
23285 | # need to make the FD available again. | |
23286 | if test "$no_create" != yes; then | |
23287 | ac_cs_success=: | |
23288 | ac_config_status_args= | |
23289 | test "$silent" = yes && | |
23290 | ac_config_status_args="$ac_config_status_args --quiet" | |
23291 | exec 5>/dev/null | |
23292 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
23293 | exec 5>>config.log | |
23294 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
23295 | # would make configure fail if this is the last instruction. | |
23296 | $ac_cs_success || { (exit 1); exit 1; } | |
23297 | fi | |
252b5132 | 23298 | |
55c80943 | 23299 |