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 | ||
51dec227 | 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 CPP EGREP LIBTOOL SED FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S OBJDUMP ac_ct_OBJDUMP lt_ECHO DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT LIPO ac_ct_LIPO OTOOL ac_ct_OTOOL OTOOL64 ac_ct_OTOOL64 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 LIBM SHARED_LDFLAGS SHARED_LIBADD TDEFINES wordsize bfd64_libs all_backends bfd_backends bfd_machines bfd_default_target_size bfd_file_ptr bfd_ufile_ptr tdefaults datarootdir docdir htmldir pdfdir LIBOBJS LTLIBOBJS' |
5464f5a1 | 462 | ac_subst_files='' |
7357c5b6 | 463 | ac_pwd=`pwd` |
252b5132 RH |
464 | |
465 | # Initialize some variables set by options. | |
5464f5a1 NN |
466 | ac_init_help= |
467 | ac_init_version=false | |
252b5132 RH |
468 | # The variables have the same names as the options, with |
469 | # dashes changed to underlines. | |
5464f5a1 | 470 | cache_file=/dev/null |
252b5132 | 471 | exec_prefix=NONE |
252b5132 | 472 | no_create= |
252b5132 RH |
473 | no_recursion= |
474 | prefix=NONE | |
475 | program_prefix=NONE | |
476 | program_suffix=NONE | |
477 | program_transform_name=s,x,x, | |
478 | silent= | |
479 | site= | |
480 | srcdir= | |
252b5132 RH |
481 | verbose= |
482 | x_includes=NONE | |
483 | x_libraries=NONE | |
5464f5a1 NN |
484 | |
485 | # Installation directory options. | |
486 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
487 | # and all the variables that are supposed to be based on exec_prefix | |
488 | # by default will actually change. | |
489 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
252b5132 RH |
490 | bindir='${exec_prefix}/bin' |
491 | sbindir='${exec_prefix}/sbin' | |
492 | libexecdir='${exec_prefix}/libexec' | |
493 | datadir='${prefix}/share' | |
494 | sysconfdir='${prefix}/etc' | |
495 | sharedstatedir='${prefix}/com' | |
496 | localstatedir='${prefix}/var' | |
497 | libdir='${exec_prefix}/lib' | |
498 | includedir='${prefix}/include' | |
499 | oldincludedir='/usr/include' | |
500 | infodir='${prefix}/info' | |
501 | mandir='${prefix}/man' | |
502 | ||
252b5132 RH |
503 | ac_prev= |
504 | for ac_option | |
505 | do | |
252b5132 RH |
506 | # If the previous option needs an argument, assign it. |
507 | if test -n "$ac_prev"; then | |
508 | eval "$ac_prev=\$ac_option" | |
509 | ac_prev= | |
510 | continue | |
511 | fi | |
512 | ||
5464f5a1 | 513 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
252b5132 RH |
514 | |
515 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
516 | ||
5464f5a1 | 517 | case $ac_option in |
252b5132 RH |
518 | |
519 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
520 | ac_prev=bindir ;; | |
521 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
5464f5a1 | 522 | bindir=$ac_optarg ;; |
252b5132 RH |
523 | |
524 | -build | --build | --buil | --bui | --bu) | |
5464f5a1 | 525 | ac_prev=build_alias ;; |
252b5132 | 526 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
5464f5a1 | 527 | build_alias=$ac_optarg ;; |
252b5132 RH |
528 | |
529 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
530 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
531 | ac_prev=cache_file ;; | |
532 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
533 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
5464f5a1 NN |
534 | cache_file=$ac_optarg ;; |
535 | ||
536 | --config-cache | -C) | |
537 | cache_file=config.cache ;; | |
252b5132 RH |
538 | |
539 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
540 | ac_prev=datadir ;; | |
541 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
542 | | --da=*) | |
5464f5a1 | 543 | datadir=$ac_optarg ;; |
252b5132 RH |
544 | |
545 | -disable-* | --disable-*) | |
5464f5a1 | 546 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 547 | # Reject names that are not valid shell variable names. |
5464f5a1 NN |
548 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
549 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
550 | { (exit 1); exit 1; }; } | |
551 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
552 | eval "enable_$ac_feature=no" ;; | |
252b5132 RH |
553 | |
554 | -enable-* | --enable-*) | |
5464f5a1 | 555 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 556 | # Reject names that are not valid shell variable names. |
5464f5a1 NN |
557 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
558 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
559 | { (exit 1); exit 1; }; } | |
560 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
561 | case $ac_option in | |
562 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
563 | *) ac_optarg=yes ;; |
564 | esac | |
5464f5a1 | 565 | eval "enable_$ac_feature='$ac_optarg'" ;; |
252b5132 RH |
566 | |
567 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
568 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
569 | | --exec | --exe | --ex) | |
570 | ac_prev=exec_prefix ;; | |
571 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
572 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
573 | | --exec=* | --exe=* | --ex=*) | |
5464f5a1 | 574 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
575 | |
576 | -gas | --gas | --ga | --g) | |
577 | # Obsolete; use --with-gas. | |
578 | with_gas=yes ;; | |
579 | ||
5464f5a1 NN |
580 | -help | --help | --hel | --he | -h) |
581 | ac_init_help=long ;; | |
582 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
583 | ac_init_help=recursive ;; | |
584 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
585 | ac_init_help=short ;; | |
252b5132 RH |
586 | |
587 | -host | --host | --hos | --ho) | |
5464f5a1 | 588 | ac_prev=host_alias ;; |
252b5132 | 589 | -host=* | --host=* | --hos=* | --ho=*) |
5464f5a1 | 590 | host_alias=$ac_optarg ;; |
252b5132 RH |
591 | |
592 | -includedir | --includedir | --includedi | --included | --include \ | |
593 | | --includ | --inclu | --incl | --inc) | |
594 | ac_prev=includedir ;; | |
595 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
596 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
5464f5a1 | 597 | includedir=$ac_optarg ;; |
252b5132 RH |
598 | |
599 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
600 | ac_prev=infodir ;; | |
601 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
5464f5a1 | 602 | infodir=$ac_optarg ;; |
252b5132 RH |
603 | |
604 | -libdir | --libdir | --libdi | --libd) | |
605 | ac_prev=libdir ;; | |
606 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
5464f5a1 | 607 | libdir=$ac_optarg ;; |
252b5132 RH |
608 | |
609 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
610 | | --libexe | --libex | --libe) | |
611 | ac_prev=libexecdir ;; | |
612 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
613 | | --libexe=* | --libex=* | --libe=*) | |
5464f5a1 | 614 | libexecdir=$ac_optarg ;; |
252b5132 RH |
615 | |
616 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
617 | | --localstate | --localstat | --localsta | --localst \ | |
618 | | --locals | --local | --loca | --loc | --lo) | |
619 | ac_prev=localstatedir ;; | |
620 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
621 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
622 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
5464f5a1 | 623 | localstatedir=$ac_optarg ;; |
252b5132 RH |
624 | |
625 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
626 | ac_prev=mandir ;; | |
627 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
5464f5a1 | 628 | mandir=$ac_optarg ;; |
252b5132 RH |
629 | |
630 | -nfp | --nfp | --nf) | |
631 | # Obsolete; use --without-fp. | |
632 | with_fp=no ;; | |
633 | ||
634 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
5464f5a1 | 635 | | --no-cr | --no-c | -n) |
252b5132 RH |
636 | no_create=yes ;; |
637 | ||
638 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
639 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
640 | no_recursion=yes ;; | |
641 | ||
642 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
643 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
644 | | --oldin | --oldi | --old | --ol | --o) | |
645 | ac_prev=oldincludedir ;; | |
646 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
647 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
648 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
5464f5a1 | 649 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
650 | |
651 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
652 | ac_prev=prefix ;; | |
653 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
5464f5a1 | 654 | prefix=$ac_optarg ;; |
252b5132 RH |
655 | |
656 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
657 | | --program-pre | --program-pr | --program-p) | |
658 | ac_prev=program_prefix ;; | |
659 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
660 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
5464f5a1 | 661 | program_prefix=$ac_optarg ;; |
252b5132 RH |
662 | |
663 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
664 | | --program-suf | --program-su | --program-s) | |
665 | ac_prev=program_suffix ;; | |
666 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
667 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
5464f5a1 | 668 | program_suffix=$ac_optarg ;; |
252b5132 RH |
669 | |
670 | -program-transform-name | --program-transform-name \ | |
671 | | --program-transform-nam | --program-transform-na \ | |
672 | | --program-transform-n | --program-transform- \ | |
673 | | --program-transform | --program-transfor \ | |
674 | | --program-transfo | --program-transf \ | |
675 | | --program-trans | --program-tran \ | |
676 | | --progr-tra | --program-tr | --program-t) | |
677 | ac_prev=program_transform_name ;; | |
678 | -program-transform-name=* | --program-transform-name=* \ | |
679 | | --program-transform-nam=* | --program-transform-na=* \ | |
680 | | --program-transform-n=* | --program-transform-=* \ | |
681 | | --program-transform=* | --program-transfor=* \ | |
682 | | --program-transfo=* | --program-transf=* \ | |
683 | | --program-trans=* | --program-tran=* \ | |
684 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
5464f5a1 | 685 | program_transform_name=$ac_optarg ;; |
252b5132 RH |
686 | |
687 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
688 | | -silent | --silent | --silen | --sile | --sil) | |
689 | silent=yes ;; | |
690 | ||
691 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
692 | ac_prev=sbindir ;; | |
693 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
694 | | --sbi=* | --sb=*) | |
5464f5a1 | 695 | sbindir=$ac_optarg ;; |
252b5132 RH |
696 | |
697 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
698 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
699 | | --sharedst | --shareds | --shared | --share | --shar \ | |
700 | | --sha | --sh) | |
701 | ac_prev=sharedstatedir ;; | |
702 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
703 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
704 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
705 | | --sha=* | --sh=*) | |
5464f5a1 | 706 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
707 | |
708 | -site | --site | --sit) | |
709 | ac_prev=site ;; | |
710 | -site=* | --site=* | --sit=*) | |
5464f5a1 | 711 | site=$ac_optarg ;; |
6be7c12c | 712 | |
252b5132 RH |
713 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
714 | ac_prev=srcdir ;; | |
715 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
5464f5a1 | 716 | srcdir=$ac_optarg ;; |
252b5132 RH |
717 | |
718 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
719 | | --syscon | --sysco | --sysc | --sys | --sy) | |
720 | ac_prev=sysconfdir ;; | |
721 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
722 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
5464f5a1 | 723 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
724 | |
725 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
5464f5a1 | 726 | ac_prev=target_alias ;; |
252b5132 | 727 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
5464f5a1 | 728 | target_alias=$ac_optarg ;; |
252b5132 RH |
729 | |
730 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
731 | verbose=yes ;; | |
732 | ||
5464f5a1 NN |
733 | -version | --version | --versio | --versi | --vers | -V) |
734 | ac_init_version=: ;; | |
252b5132 RH |
735 | |
736 | -with-* | --with-*) | |
5464f5a1 | 737 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 738 | # Reject names that are not valid shell variable names. |
5464f5a1 NN |
739 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
740 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
741 | { (exit 1); exit 1; }; } | |
252b5132 | 742 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
5464f5a1 NN |
743 | case $ac_option in |
744 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
252b5132 RH |
745 | *) ac_optarg=yes ;; |
746 | esac | |
5464f5a1 | 747 | eval "with_$ac_package='$ac_optarg'" ;; |
252b5132 RH |
748 | |
749 | -without-* | --without-*) | |
5464f5a1 | 750 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 751 | # Reject names that are not valid shell variable names. |
5464f5a1 NN |
752 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
753 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
754 | { (exit 1); exit 1; }; } | |
755 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
756 | eval "with_$ac_package=no" ;; | |
252b5132 RH |
757 | |
758 | --x) | |
759 | # Obsolete; use --with-x. | |
760 | with_x=yes ;; | |
761 | ||
762 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
763 | | --x-incl | --x-inc | --x-in | --x-i) | |
764 | ac_prev=x_includes ;; | |
765 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
766 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
5464f5a1 | 767 | x_includes=$ac_optarg ;; |
252b5132 RH |
768 | |
769 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
770 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
771 | ac_prev=x_libraries ;; | |
772 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
773 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
5464f5a1 | 774 | x_libraries=$ac_optarg ;; |
252b5132 | 775 | |
5464f5a1 NN |
776 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
777 | Try \`$0 --help' for more information." >&2 | |
778 | { (exit 1); exit 1; }; } | |
252b5132 RH |
779 | ;; |
780 | ||
5464f5a1 NN |
781 | *=*) |
782 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
783 | # Reject names that are not valid shell variable names. | |
784 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
785 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
786 | { (exit 1); exit 1; }; } | |
787 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
788 | eval "$ac_envvar='$ac_optarg'" | |
789 | export $ac_envvar ;; | |
790 | ||
252b5132 | 791 | *) |
5464f5a1 NN |
792 | # FIXME: should be removed in autoconf 3.0. |
793 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
794 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
795 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
796 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
252b5132 RH |
797 | ;; |
798 | ||
799 | esac | |
800 | done | |
801 | ||
802 | if test -n "$ac_prev"; then | |
5464f5a1 NN |
803 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
804 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
805 | { (exit 1); exit 1; }; } | |
252b5132 | 806 | fi |
252b5132 | 807 | |
5464f5a1 NN |
808 | # Be sure to have absolute paths. |
809 | for ac_var in exec_prefix prefix | |
810 | do | |
811 | eval ac_val=$`echo $ac_var` | |
812 | case $ac_val in | |
813 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
814 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
815 | { (exit 1); exit 1; }; };; | |
816 | esac | |
817 | done | |
6be7c12c | 818 | |
5464f5a1 NN |
819 | # Be sure to have absolute paths. |
820 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
821 | localstatedir libdir includedir oldincludedir infodir mandir | |
252b5132 | 822 | do |
5464f5a1 NN |
823 | eval ac_val=$`echo $ac_var` |
824 | case $ac_val in | |
825 | [\\/$]* | ?:[\\/]* ) ;; | |
826 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
827 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
828 | esac |
829 | done | |
830 | ||
5464f5a1 NN |
831 | # There might be people who depend on the old broken behavior: `$host' |
832 | # used to hold the argument of --host etc. | |
833 | # FIXME: To remove some day. | |
834 | build=$build_alias | |
835 | host=$host_alias | |
836 | target=$target_alias | |
837 | ||
838 | # FIXME: To remove some day. | |
839 | if test "x$host_alias" != x; then | |
840 | if test "x$build_alias" = x; then | |
841 | cross_compiling=maybe | |
842 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
843 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
844 | elif test "x$build_alias" != "x$host_alias"; then | |
845 | cross_compiling=yes | |
846 | fi | |
847 | fi | |
252b5132 | 848 | |
5464f5a1 NN |
849 | ac_tool_prefix= |
850 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
851 | ||
852 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 853 | |
252b5132 RH |
854 | |
855 | # Find the source files, if location was not specified. | |
856 | if test -z "$srcdir"; then | |
857 | ac_srcdir_defaulted=yes | |
858 | # Try the directory containing this script, then its parent. | |
5464f5a1 NN |
859 | ac_confdir=`(dirname "$0") 2>/dev/null || |
860 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
861 | X"$0" : 'X\(//\)[^/]' \| \ | |
862 | X"$0" : 'X\(//\)$' \| \ | |
863 | X"$0" : 'X\(/\)' \| \ | |
864 | . : '\(.\)' 2>/dev/null || | |
865 | echo X"$0" | | |
866 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
867 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
868 | /^X\(\/\/\)$/{ s//\1/; q; } | |
869 | /^X\(\/\).*/{ s//\1/; q; } | |
870 | s/.*/./; q'` | |
252b5132 RH |
871 | srcdir=$ac_confdir |
872 | if test ! -r $srcdir/$ac_unique_file; then | |
873 | srcdir=.. | |
874 | fi | |
875 | else | |
876 | ac_srcdir_defaulted=no | |
877 | fi | |
878 | if test ! -r $srcdir/$ac_unique_file; then | |
879 | if test "$ac_srcdir_defaulted" = yes; then | |
5464f5a1 NN |
880 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
881 | { (exit 1); exit 1; }; } | |
252b5132 | 882 | else |
5464f5a1 NN |
883 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
884 | { (exit 1); exit 1; }; } | |
252b5132 RH |
885 | fi |
886 | fi | |
5464f5a1 NN |
887 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
888 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
889 | { (exit 1); exit 1; }; } | |
890 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
891 | ac_env_build_alias_set=${build_alias+set} | |
892 | ac_env_build_alias_value=$build_alias | |
893 | ac_cv_env_build_alias_set=${build_alias+set} | |
894 | ac_cv_env_build_alias_value=$build_alias | |
895 | ac_env_host_alias_set=${host_alias+set} | |
896 | ac_env_host_alias_value=$host_alias | |
897 | ac_cv_env_host_alias_set=${host_alias+set} | |
898 | ac_cv_env_host_alias_value=$host_alias | |
899 | ac_env_target_alias_set=${target_alias+set} | |
900 | ac_env_target_alias_value=$target_alias | |
901 | ac_cv_env_target_alias_set=${target_alias+set} | |
902 | ac_cv_env_target_alias_value=$target_alias | |
903 | ac_env_CC_set=${CC+set} | |
904 | ac_env_CC_value=$CC | |
905 | ac_cv_env_CC_set=${CC+set} | |
906 | ac_cv_env_CC_value=$CC | |
907 | ac_env_CFLAGS_set=${CFLAGS+set} | |
908 | ac_env_CFLAGS_value=$CFLAGS | |
909 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
910 | ac_cv_env_CFLAGS_value=$CFLAGS | |
911 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
912 | ac_env_LDFLAGS_value=$LDFLAGS | |
913 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
914 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
915 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
916 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
917 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
918 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
919 | ac_env_CPP_set=${CPP+set} | |
920 | ac_env_CPP_value=$CPP | |
921 | ac_cv_env_CPP_set=${CPP+set} | |
922 | ac_cv_env_CPP_value=$CPP | |
b3baf5d0 | 923 | |
5464f5a1 NN |
924 | # |
925 | # Report the --help message. | |
926 | # | |
927 | if test "$ac_init_help" = "long"; then | |
928 | # Omit some internal or obsolete options to make the list less imposing. | |
929 | # This message is too long to be a string in the A/UX 3.1 sh. | |
930 | cat <<_ACEOF | |
931 | \`configure' configures this package to adapt to many kinds of systems. | |
252b5132 | 932 | |
5464f5a1 | 933 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 934 | |
5464f5a1 NN |
935 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
936 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
6be7c12c | 937 | |
5464f5a1 | 938 | Defaults for the options are specified in brackets. |
6be7c12c | 939 | |
5464f5a1 NN |
940 | Configuration: |
941 | -h, --help display this help and exit | |
942 | --help=short display options specific to this package | |
943 | --help=recursive display the short help of all the included packages | |
944 | -V, --version display version information and exit | |
945 | -q, --quiet, --silent do not print \`checking...' messages | |
946 | --cache-file=FILE cache test results in FILE [disabled] | |
947 | -C, --config-cache alias for \`--cache-file=config.cache' | |
948 | -n, --no-create do not create output files | |
949 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
950 | ||
951 | _ACEOF | |
952 | ||
953 | cat <<_ACEOF | |
954 | Installation directories: | |
955 | --prefix=PREFIX install architecture-independent files in PREFIX | |
956 | [$ac_default_prefix] | |
957 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
958 | [PREFIX] | |
6be7c12c | 959 | |
5464f5a1 NN |
960 | By default, \`make install' will install all the files in |
961 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
962 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
963 | for instance \`--prefix=\$HOME'. | |
6be7c12c | 964 | |
5464f5a1 | 965 | For better control, use the options below. |
6be7c12c | 966 | |
5464f5a1 NN |
967 | Fine tuning of the installation directories: |
968 | --bindir=DIR user executables [EPREFIX/bin] | |
969 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
970 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
971 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
972 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
973 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
974 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
975 | --libdir=DIR object code libraries [EPREFIX/lib] | |
976 | --includedir=DIR C header files [PREFIX/include] | |
977 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
978 | --infodir=DIR info documentation [PREFIX/info] | |
979 | --mandir=DIR man documentation [PREFIX/man] | |
980 | _ACEOF | |
6be7c12c | 981 | |
5464f5a1 | 982 | cat <<\_ACEOF |
6be7c12c | 983 | |
5464f5a1 NN |
984 | Program names: |
985 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
986 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
987 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
252b5132 | 988 | |
5464f5a1 NN |
989 | System types: |
990 | --build=BUILD configure for building on BUILD [guessed] | |
991 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
992 | --target=TARGET configure for building compilers for TARGET [HOST] | |
993 | _ACEOF | |
252b5132 | 994 | fi |
252b5132 | 995 | |
5464f5a1 | 996 | if test -n "$ac_init_help"; then |
6be7c12c | 997 | |
5464f5a1 | 998 | cat <<\_ACEOF |
252b5132 | 999 | |
5464f5a1 NN |
1000 | Optional Features: |
1001 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1002 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
f5385ebf AM |
1003 | --disable-dependency-tracking speeds up one-time build |
1004 | --enable-dependency-tracking do not reject slow dependency extractors | |
d7040cdb SE |
1005 | --enable-shared[=PKGS] |
1006 | build shared libraries [default=no] | |
d053aef8 | 1007 | --disable-largefile omit support for large files |
d7040cdb SE |
1008 | --enable-static[=PKGS] |
1009 | build static libraries [default=yes] | |
1010 | --enable-fast-install[=PKGS] | |
1011 | optimize for fast installation [default=yes] | |
5464f5a1 NN |
1012 | --disable-libtool-lock avoid locking (might break parallel builds) |
1013 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) | |
1014 | --enable-targets alternative target configurations | |
6ec7057a | 1015 | --enable-secureplt Default to creating read-only plt entries |
504b7d20 | 1016 | --enable-elf-stt-common Allow the generation of ELF symbols with the STT_COMMON type |
241a6c40 AM |
1017 | --enable-werror treat compile warnings as errors |
1018 | --enable-build-warnings enable build-time compiler warnings | |
f5385ebf AM |
1019 | --enable-maintainer-mode enable make rules and dependencies not useful |
1020 | (and sometimes confusing) to the casual installer | |
5464f5a1 NN |
1021 | --enable-install-libbfd controls installation of libbfd and related headers |
1022 | --disable-nls do not use Native Language Support | |
1023 | ||
1024 | Optional Packages: | |
1025 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1026 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d7040cdb SE |
1027 | --with-pic try to use only PIC/non-PIC objects [default=use |
1028 | both] | |
1029 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
5464f5a1 | 1030 | --with-mmap try using mmap for BFD input files if available |
0d4a1476 AS |
1031 | --with-separate-debug-dir=DIR |
1032 | Look for global separate debug info in DIR | |
1033 | [default=LIBDIR/debug] | |
a1ac8190 JM |
1034 | --with-pkgversion=PKG Use PKG in the version string in place of "GNU |
1035 | Binutils" | |
c428fa83 | 1036 | --with-bugurl=URL Direct users to URL to report a bug |
5464f5a1 NN |
1037 | |
1038 | Some influential environment variables: | |
1039 | CC C compiler command | |
1040 | CFLAGS C compiler flags | |
1041 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1042 | nonstandard directory <lib dir> | |
1043 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
1044 | headers in a nonstandard directory <include dir> | |
1045 | CPP C preprocessor | |
1046 | ||
1047 | Use these variables to override the choices made by `configure' or to help | |
1048 | it to find libraries and programs with nonstandard names/locations. | |
1049 | ||
1050 | _ACEOF | |
1051 | fi | |
1052 | ||
1053 | if test "$ac_init_help" = "recursive"; then | |
1054 | # If there are subdirs, report their specific --help. | |
1055 | ac_popdir=`pwd` | |
1056 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1057 | test -d $ac_dir || continue | |
1058 | ac_builddir=. | |
1059 | ||
1060 | if test "$ac_dir" != .; then | |
1061 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
1062 | # A "../" for each directory in $ac_dir_suffix. | |
1063 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
1064 | else | |
1065 | ac_dir_suffix= ac_top_builddir= | |
1066 | fi | |
1067 | ||
1068 | case $srcdir in | |
1069 | .) # No --srcdir option. We are building in place. | |
1070 | ac_srcdir=. | |
1071 | if test -z "$ac_top_builddir"; then | |
1072 | ac_top_srcdir=. | |
1073 | else | |
1074 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
1075 | fi ;; | |
1076 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
1077 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1078 | ac_top_srcdir=$srcdir ;; | |
1079 | *) # Relative path. | |
1080 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
1081 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
6be7c12c AO |
1082 | esac |
1083 | ||
5464f5a1 NN |
1084 | # Do not use `cd foo && pwd` to compute absolute paths, because |
1085 | # the directories may not exist. | |
1086 | case `pwd` in | |
1087 | .) ac_abs_builddir="$ac_dir";; | |
1088 | *) | |
1089 | case "$ac_dir" in | |
1090 | .) ac_abs_builddir=`pwd`;; | |
1091 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
1092 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
1093 | esac;; | |
1094 | esac | |
1095 | case $ac_abs_builddir in | |
1096 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1097 | *) | |
1098 | case ${ac_top_builddir}. in | |
1099 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
1100 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
1101 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
1102 | esac;; | |
1103 | esac | |
1104 | case $ac_abs_builddir in | |
1105 | .) ac_abs_srcdir=$ac_srcdir;; | |
1106 | *) | |
1107 | case $ac_srcdir in | |
1108 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
1109 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
1110 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
1111 | esac;; | |
1112 | esac | |
1113 | case $ac_abs_builddir in | |
1114 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1115 | *) | |
1116 | case $ac_top_srcdir in | |
1117 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
1118 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
1119 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
1120 | esac;; | |
1121 | esac | |
6be7c12c | 1122 | |
5464f5a1 NN |
1123 | cd $ac_dir |
1124 | # Check for guested configure; otherwise get Cygnus style configure. | |
1125 | if test -f $ac_srcdir/configure.gnu; then | |
1126 | echo | |
1127 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
1128 | elif test -f $ac_srcdir/configure; then | |
1129 | echo | |
1130 | $SHELL $ac_srcdir/configure --help=recursive | |
1131 | elif test -f $ac_srcdir/configure.ac || | |
1132 | test -f $ac_srcdir/configure.in; then | |
1133 | echo | |
1134 | $ac_configure --help | |
1135 | else | |
1136 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1137 | fi | |
7357c5b6 | 1138 | cd $ac_popdir |
5464f5a1 | 1139 | done |
6be7c12c AO |
1140 | fi |
1141 | ||
5464f5a1 NN |
1142 | test -n "$ac_init_help" && exit 0 |
1143 | if $ac_init_version; then | |
1144 | cat <<\_ACEOF | |
6be7c12c | 1145 | |
5464f5a1 NN |
1146 | Copyright (C) 2003 Free Software Foundation, Inc. |
1147 | This configure script is free software; the Free Software Foundation | |
1148 | gives unlimited permission to copy, distribute and modify it. | |
1149 | _ACEOF | |
1150 | exit 0 | |
1151 | fi | |
1152 | exec 5>config.log | |
1153 | cat >&5 <<_ACEOF | |
1154 | This file contains any messages produced by compilers while | |
1155 | running configure, to aid debugging if configure makes a mistake. | |
6be7c12c | 1156 | |
5464f5a1 NN |
1157 | It was created by $as_me, which was |
1158 | generated by GNU Autoconf 2.59. Invocation command line was | |
6be7c12c | 1159 | |
5464f5a1 | 1160 | $ $0 $@ |
6be7c12c | 1161 | |
5464f5a1 NN |
1162 | _ACEOF |
1163 | { | |
1164 | cat <<_ASUNAME | |
1165 | ## --------- ## | |
1166 | ## Platform. ## | |
1167 | ## --------- ## | |
1168 | ||
1169 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1170 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1171 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1172 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1173 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1174 | ||
1175 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1176 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1177 | ||
1178 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1179 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1180 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1181 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1182 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1183 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1184 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1185 | ||
1186 | _ASUNAME | |
1187 | ||
1188 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1189 | for as_dir in $PATH | |
1190 | do | |
1191 | IFS=$as_save_IFS | |
1192 | test -z "$as_dir" && as_dir=. | |
1193 | echo "PATH: $as_dir" | |
1194 | done | |
6be7c12c | 1195 | |
5464f5a1 | 1196 | } >&5 |
66e25bab | 1197 | |
5464f5a1 | 1198 | cat >&5 <<_ACEOF |
b3baf5d0 | 1199 | |
6be7c12c | 1200 | |
5464f5a1 NN |
1201 | ## ----------- ## |
1202 | ## Core tests. ## | |
1203 | ## ----------- ## | |
252b5132 | 1204 | |
5464f5a1 | 1205 | _ACEOF |
c5d1701e | 1206 | |
6be7c12c | 1207 | |
5464f5a1 NN |
1208 | # Keep a trace of the command line. |
1209 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1210 | # Strip out --silent because we don't want to record it for future runs. | |
1211 | # Also quote any args containing shell meta-characters. | |
1212 | # Make two passes to allow for proper duplicate-argument suppression. | |
1213 | ac_configure_args= | |
1214 | ac_configure_args0= | |
1215 | ac_configure_args1= | |
1216 | ac_sep= | |
1217 | ac_must_keep_next=false | |
1218 | for ac_pass in 1 2 | |
1219 | do | |
1220 | for ac_arg | |
1221 | do | |
1222 | case $ac_arg in | |
1223 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1224 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1225 | | -silent | --silent | --silen | --sile | --sil) | |
1226 | continue ;; | |
1227 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1228 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1229 | esac | |
1230 | case $ac_pass in | |
1231 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1232 | 2) | |
1233 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1234 | if test $ac_must_keep_next = true; then | |
1235 | ac_must_keep_next=false # Got value, back to normal. | |
1236 | else | |
1237 | case $ac_arg in | |
1238 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1239 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1240 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1241 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1242 | case "$ac_configure_args0 " in | |
1243 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1244 | esac | |
1245 | ;; | |
1246 | -* ) ac_must_keep_next=true ;; | |
1247 | esac | |
1248 | fi | |
1249 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1250 | # Get rid of the leading space. | |
1251 | ac_sep=" " | |
1252 | ;; | |
1253 | esac | |
1254 | done | |
1255 | done | |
1256 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1257 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1258 | ||
1259 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1260 | # config.log. We remove comments because anyway the quotes in there | |
1261 | # would cause problems or look ugly. | |
1262 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1263 | # such as our DU 5.0 friend, will then `close' the trap. | |
1264 | trap 'exit_status=$? | |
1265 | # Save into config.log some information that might help in debugging. | |
1266 | { | |
1267 | echo | |
1268 | ||
1269 | cat <<\_ASBOX | |
1270 | ## ---------------- ## | |
1271 | ## Cache variables. ## | |
1272 | ## ---------------- ## | |
1273 | _ASBOX | |
1274 | echo | |
1275 | # The following way of writing the cache mishandles newlines in values, | |
1276 | { | |
1277 | (set) 2>&1 | | |
1278 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1279 | *ac_space=\ *) | |
1280 | sed -n \ | |
1281 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1282 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1283 | ;; | |
1284 | *) | |
1285 | sed -n \ | |
1286 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1287 | ;; | |
1288 | esac; | |
1289 | } | |
1290 | echo | |
1291 | ||
1292 | cat <<\_ASBOX | |
1293 | ## ----------------- ## | |
1294 | ## Output variables. ## | |
1295 | ## ----------------- ## | |
1296 | _ASBOX | |
1297 | echo | |
1298 | for ac_var in $ac_subst_vars | |
1299 | do | |
1300 | eval ac_val=$`echo $ac_var` | |
1301 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1302 | done | sort | |
1303 | echo | |
1304 | ||
1305 | if test -n "$ac_subst_files"; then | |
1306 | cat <<\_ASBOX | |
1307 | ## ------------- ## | |
1308 | ## Output files. ## | |
1309 | ## ------------- ## | |
1310 | _ASBOX | |
1311 | echo | |
1312 | for ac_var in $ac_subst_files | |
1313 | do | |
1314 | eval ac_val=$`echo $ac_var` | |
1315 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1316 | done | sort | |
1317 | echo | |
1318 | fi | |
1319 | ||
1320 | if test -s confdefs.h; then | |
1321 | cat <<\_ASBOX | |
1322 | ## ----------- ## | |
1323 | ## confdefs.h. ## | |
1324 | ## ----------- ## | |
1325 | _ASBOX | |
1326 | echo | |
1327 | sed "/^$/d" confdefs.h | sort | |
1328 | echo | |
1329 | fi | |
1330 | test "$ac_signal" != 0 && | |
1331 | echo "$as_me: caught signal $ac_signal" | |
1332 | echo "$as_me: exit $exit_status" | |
1333 | } >&5 | |
1334 | rm -f core *.core && | |
1335 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1336 | exit $exit_status | |
1337 | ' 0 | |
1338 | for ac_signal in 1 2 13 15; do | |
1339 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1340 | done | |
1341 | ac_signal=0 | |
1342 | ||
1343 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1344 | rm -rf conftest* confdefs.h | |
1345 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1346 | echo >confdefs.h | |
1347 | ||
1348 | # Predefined preprocessor variables. | |
1349 | ||
1350 | cat >>confdefs.h <<_ACEOF | |
1351 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1352 | _ACEOF | |
1353 | ||
1354 | ||
1355 | cat >>confdefs.h <<_ACEOF | |
1356 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1357 | _ACEOF | |
1358 | ||
1359 | ||
1360 | cat >>confdefs.h <<_ACEOF | |
1361 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1362 | _ACEOF | |
1363 | ||
1364 | ||
1365 | cat >>confdefs.h <<_ACEOF | |
1366 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1367 | _ACEOF | |
1368 | ||
1369 | ||
1370 | cat >>confdefs.h <<_ACEOF | |
1371 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1372 | _ACEOF | |
1373 | ||
1374 | ||
1375 | # Let the site file select an alternate cache file if it wants to. | |
1376 | # Prefer explicitly selected file to automatically selected ones. | |
1377 | if test -z "$CONFIG_SITE"; then | |
1378 | if test "x$prefix" != xNONE; then | |
1379 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1380 | else | |
1381 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1382 | fi | |
1383 | fi | |
1384 | for ac_site_file in $CONFIG_SITE; do | |
1385 | if test -r "$ac_site_file"; then | |
1386 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1387 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1388 | sed 's/^/| /' "$ac_site_file" >&5 | |
1389 | . "$ac_site_file" | |
1390 | fi | |
1391 | done | |
1392 | ||
1393 | if test -r "$cache_file"; then | |
1394 | # Some versions of bash will fail to source /dev/null (special | |
1395 | # files actually), so we avoid doing that. | |
1396 | if test -f "$cache_file"; then | |
1397 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1398 | echo "$as_me: loading cache $cache_file" >&6;} | |
1399 | case $cache_file in | |
1400 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1401 | *) . ./$cache_file;; | |
1402 | esac | |
1403 | fi | |
1404 | else | |
1405 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1406 | echo "$as_me: creating cache $cache_file" >&6;} | |
1407 | >$cache_file | |
1408 | fi | |
1409 | ||
1410 | # Check that the precious variables saved in the cache have kept the same | |
1411 | # value. | |
1412 | ac_cache_corrupted=false | |
1413 | for ac_var in `(set) 2>&1 | | |
1414 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1415 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1416 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1417 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1418 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1419 | case $ac_old_set,$ac_new_set in | |
1420 | set,) | |
1421 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1422 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1423 | ac_cache_corrupted=: ;; | |
1424 | ,set) | |
1425 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1426 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1427 | ac_cache_corrupted=: ;; | |
1428 | ,);; | |
1429 | *) | |
1430 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
6194aaab L |
1431 | # differences in whitespace do not lead to failure. |
1432 | ac_old_val_w=`echo x $ac_old_val` | |
1433 | ac_new_val_w=`echo x $ac_new_val` | |
1434 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
1435 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
5464f5a1 | 1436 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
6194aaab L |
1437 | ac_cache_corrupted=: |
1438 | else | |
1439 | { echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
1440 | echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
1441 | eval $ac_var=\$ac_old_val | |
1442 | fi | |
1443 | { echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 | |
1444 | echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
1445 | { echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 | |
1446 | echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
5464f5a1 NN |
1447 | fi;; |
1448 | esac | |
1449 | # Pass precious variables to config.status. | |
1450 | if test "$ac_new_set" = set; then | |
1451 | case $ac_new_val in | |
1452 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1453 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1454 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1455 | esac | |
1456 | case " $ac_configure_args " in | |
1457 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1458 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1459 | esac | |
1460 | fi | |
1461 | done | |
1462 | if $ac_cache_corrupted; then | |
7357c5b6 AM |
1463 | { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1464 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5464f5a1 NN |
1465 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1466 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1467 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1468 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1469 | { (exit 1); exit 1; }; } | |
1470 | fi | |
1471 | ||
1472 | ac_ext=c | |
1473 | ac_cpp='$CPP $CPPFLAGS' | |
1474 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1475 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1476 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1477 | ||
1478 | ||
1479 | ||
1480 | ||
1481 | ||
1482 | ||
1483 | ||
1484 | ||
1485 | ||
1486 | ||
1487 | ||
1488 | ||
1489 | ||
1490 | ||
1491 | ||
1492 | ||
1493 | ||
7357c5b6 AM |
1494 | |
1495 | ||
1496 | ||
5464f5a1 NN |
1497 | |
1498 | ||
1499 | ||
1500 | ||
1501 | ac_aux_dir= | |
1502 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1503 | if test -f $ac_dir/install-sh; then | |
1504 | ac_aux_dir=$ac_dir | |
1505 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1506 | break | |
1507 | elif test -f $ac_dir/install.sh; then | |
1508 | ac_aux_dir=$ac_dir | |
1509 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1510 | break | |
1511 | elif test -f $ac_dir/shtool; then | |
1512 | ac_aux_dir=$ac_dir | |
1513 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1514 | break | |
1515 | fi | |
1516 | done | |
1517 | if test -z "$ac_aux_dir"; then | |
1518 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1519 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1520 | { (exit 1); exit 1; }; } | |
1521 | fi | |
1522 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1523 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1524 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1525 | ||
1526 | # Make sure we can run config.sub. | |
1527 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1528 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1529 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1530 | { (exit 1); exit 1; }; } | |
1531 | ||
1532 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1533 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1534 | if test "${ac_cv_build+set}" = set; then | |
1535 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1536 | else | |
1537 | ac_cv_build_alias=$build_alias | |
1538 | test -z "$ac_cv_build_alias" && | |
1539 | ac_cv_build_alias=`$ac_config_guess` | |
1540 | test -z "$ac_cv_build_alias" && | |
1541 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1542 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1543 | { (exit 1); exit 1; }; } | |
1544 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1545 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1546 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1547 | { (exit 1); exit 1; }; } | |
1548 | ||
1549 | fi | |
1550 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1551 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1552 | build=$ac_cv_build | |
1553 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1554 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1555 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1556 | ||
1557 | ||
1558 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1559 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1560 | if test "${ac_cv_host+set}" = set; then | |
1561 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1562 | else | |
1563 | ac_cv_host_alias=$host_alias | |
1564 | test -z "$ac_cv_host_alias" && | |
1565 | ac_cv_host_alias=$ac_cv_build_alias | |
1566 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1567 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1568 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1569 | { (exit 1); exit 1; }; } | |
1570 | ||
1571 | fi | |
1572 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1573 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1574 | host=$ac_cv_host | |
1575 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1576 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1577 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1578 | ||
1579 | ||
1580 | echo "$as_me:$LINENO: checking target system type" >&5 | |
1581 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1582 | if test "${ac_cv_target+set}" = set; then | |
1583 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1584 | else | |
1585 | ac_cv_target_alias=$target_alias | |
1586 | test "x$ac_cv_target_alias" = "x" && | |
1587 | ac_cv_target_alias=$ac_cv_host_alias | |
1588 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1589 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1590 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1591 | { (exit 1); exit 1; }; } | |
1592 | ||
1593 | fi | |
1594 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1595 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1596 | target=$ac_cv_target | |
1597 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1598 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1599 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1600 | ||
1601 | ||
1602 | # The aliases save the names the user supplied, while $host etc. | |
1603 | # will get canonicalized. | |
1604 | test -n "$target_alias" && | |
1605 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1606 | NONENONEs,x,x, && | |
1607 | program_prefix=${target_alias}- | |
1608 | ac_ext=c | |
1609 | ac_cpp='$CPP $CPPFLAGS' | |
1610 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1611 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1612 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1613 | if test -n "$ac_tool_prefix"; then | |
1614 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1615 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1616 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1617 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1618 | if test "${ac_cv_prog_CC+set}" = set; then | |
1619 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1620 | else | |
1621 | if test -n "$CC"; then | |
1622 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1623 | else | |
1624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1625 | for as_dir in $PATH | |
1626 | do | |
1627 | IFS=$as_save_IFS | |
1628 | test -z "$as_dir" && as_dir=. | |
1629 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1630 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1631 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1632 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1633 | break 2 | |
1634 | fi | |
1635 | done | |
1636 | done | |
1637 | ||
1638 | fi | |
1639 | fi | |
1640 | CC=$ac_cv_prog_CC | |
1641 | if test -n "$CC"; then | |
1642 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1643 | echo "${ECHO_T}$CC" >&6 | |
1644 | else | |
1645 | echo "$as_me:$LINENO: result: no" >&5 | |
1646 | echo "${ECHO_T}no" >&6 | |
1647 | fi | |
1648 | ||
1649 | fi | |
1650 | if test -z "$ac_cv_prog_CC"; then | |
1651 | ac_ct_CC=$CC | |
1652 | # Extract the first word of "gcc", so it can be a program name with args. | |
1653 | set dummy gcc; ac_word=$2 | |
1654 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1655 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1656 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1658 | else | |
1659 | if test -n "$ac_ct_CC"; then | |
1660 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1661 | else | |
1662 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1663 | for as_dir in $PATH | |
1664 | do | |
1665 | IFS=$as_save_IFS | |
1666 | test -z "$as_dir" && as_dir=. | |
1667 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1668 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1669 | ac_cv_prog_ac_ct_CC="gcc" | |
1670 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1671 | break 2 | |
1672 | fi | |
1673 | done | |
1674 | done | |
1675 | ||
1676 | fi | |
1677 | fi | |
1678 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1679 | if test -n "$ac_ct_CC"; then | |
1680 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1681 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1682 | else | |
1683 | echo "$as_me:$LINENO: result: no" >&5 | |
1684 | echo "${ECHO_T}no" >&6 | |
1685 | fi | |
1686 | ||
1687 | CC=$ac_ct_CC | |
1688 | else | |
1689 | CC="$ac_cv_prog_CC" | |
1690 | fi | |
1691 | ||
1692 | if test -z "$CC"; then | |
1693 | if test -n "$ac_tool_prefix"; then | |
1694 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1695 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1696 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1697 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1698 | if test "${ac_cv_prog_CC+set}" = set; then | |
1699 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1700 | else | |
1701 | if test -n "$CC"; then | |
1702 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1703 | else | |
1704 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1705 | for as_dir in $PATH | |
1706 | do | |
1707 | IFS=$as_save_IFS | |
1708 | test -z "$as_dir" && as_dir=. | |
1709 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1710 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1711 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1712 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1713 | break 2 | |
1714 | fi | |
1715 | done | |
1716 | done | |
1717 | ||
1718 | fi | |
1719 | fi | |
1720 | CC=$ac_cv_prog_CC | |
1721 | if test -n "$CC"; then | |
1722 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1723 | echo "${ECHO_T}$CC" >&6 | |
1724 | else | |
1725 | echo "$as_me:$LINENO: result: no" >&5 | |
1726 | echo "${ECHO_T}no" >&6 | |
1727 | fi | |
1728 | ||
1729 | fi | |
1730 | if test -z "$ac_cv_prog_CC"; then | |
1731 | ac_ct_CC=$CC | |
1732 | # Extract the first word of "cc", so it can be a program name with args. | |
1733 | set dummy cc; ac_word=$2 | |
1734 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1735 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1736 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1738 | else | |
1739 | if test -n "$ac_ct_CC"; then | |
1740 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1741 | else | |
1742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1743 | for as_dir in $PATH | |
1744 | do | |
1745 | IFS=$as_save_IFS | |
1746 | test -z "$as_dir" && as_dir=. | |
1747 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1748 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1749 | ac_cv_prog_ac_ct_CC="cc" | |
1750 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1751 | break 2 | |
1752 | fi | |
1753 | done | |
1754 | done | |
1755 | ||
1756 | fi | |
1757 | fi | |
1758 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1759 | if test -n "$ac_ct_CC"; then | |
1760 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1761 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1762 | else | |
1763 | echo "$as_me:$LINENO: result: no" >&5 | |
1764 | echo "${ECHO_T}no" >&6 | |
1765 | fi | |
1766 | ||
1767 | CC=$ac_ct_CC | |
1768 | else | |
1769 | CC="$ac_cv_prog_CC" | |
1770 | fi | |
1771 | ||
1772 | fi | |
1773 | if test -z "$CC"; then | |
1774 | # Extract the first word of "cc", so it can be a program name with args. | |
1775 | set dummy cc; ac_word=$2 | |
1776 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1777 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1778 | if test "${ac_cv_prog_CC+set}" = set; then | |
1779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1780 | else | |
1781 | if test -n "$CC"; then | |
1782 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1783 | else | |
1784 | ac_prog_rejected=no | |
1785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1786 | for as_dir in $PATH | |
1787 | do | |
1788 | IFS=$as_save_IFS | |
1789 | test -z "$as_dir" && as_dir=. | |
1790 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1791 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1792 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1793 | ac_prog_rejected=yes | |
1794 | continue | |
1795 | fi | |
1796 | ac_cv_prog_CC="cc" | |
1797 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1798 | break 2 | |
1799 | fi | |
1800 | done | |
1801 | done | |
1802 | ||
1803 | if test $ac_prog_rejected = yes; then | |
1804 | # We found a bogon in the path, so make sure we never use it. | |
1805 | set dummy $ac_cv_prog_CC | |
1806 | shift | |
1807 | if test $# != 0; then | |
1808 | # We chose a different compiler from the bogus one. | |
1809 | # However, it has the same basename, so the bogon will be chosen | |
1810 | # first if we set CC to just the basename; use the full file name. | |
1811 | shift | |
1812 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1813 | fi | |
1814 | fi | |
1815 | fi | |
1816 | fi | |
1817 | CC=$ac_cv_prog_CC | |
1818 | if test -n "$CC"; then | |
1819 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1820 | echo "${ECHO_T}$CC" >&6 | |
1821 | else | |
1822 | echo "$as_me:$LINENO: result: no" >&5 | |
1823 | echo "${ECHO_T}no" >&6 | |
1824 | fi | |
1825 | ||
1826 | fi | |
1827 | if test -z "$CC"; then | |
1828 | if test -n "$ac_tool_prefix"; then | |
1829 | for ac_prog in cl | |
1830 | do | |
1831 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1832 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1833 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1834 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1835 | if test "${ac_cv_prog_CC+set}" = set; then | |
1836 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1837 | else | |
1838 | if test -n "$CC"; then | |
1839 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1840 | else | |
1841 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1842 | for as_dir in $PATH | |
1843 | do | |
1844 | IFS=$as_save_IFS | |
1845 | test -z "$as_dir" && as_dir=. | |
1846 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1847 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1848 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1849 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1850 | break 2 | |
1851 | fi | |
1852 | done | |
1853 | done | |
1854 | ||
1855 | fi | |
1856 | fi | |
1857 | CC=$ac_cv_prog_CC | |
1858 | if test -n "$CC"; then | |
1859 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1860 | echo "${ECHO_T}$CC" >&6 | |
1861 | else | |
1862 | echo "$as_me:$LINENO: result: no" >&5 | |
1863 | echo "${ECHO_T}no" >&6 | |
1864 | fi | |
1865 | ||
1866 | test -n "$CC" && break | |
1867 | done | |
1868 | fi | |
1869 | if test -z "$CC"; then | |
1870 | ac_ct_CC=$CC | |
1871 | for ac_prog in cl | |
1872 | do | |
1873 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1874 | set dummy $ac_prog; ac_word=$2 | |
1875 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1876 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1877 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1878 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1879 | else | |
1880 | if test -n "$ac_ct_CC"; then | |
1881 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1882 | else | |
1883 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1884 | for as_dir in $PATH | |
1885 | do | |
1886 | IFS=$as_save_IFS | |
1887 | test -z "$as_dir" && as_dir=. | |
1888 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1889 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1890 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1891 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1892 | break 2 | |
1893 | fi | |
1894 | done | |
1895 | done | |
1896 | ||
1897 | fi | |
1898 | fi | |
1899 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1900 | if test -n "$ac_ct_CC"; then | |
1901 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1902 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1903 | else | |
1904 | echo "$as_me:$LINENO: result: no" >&5 | |
1905 | echo "${ECHO_T}no" >&6 | |
1906 | fi | |
1907 | ||
1908 | test -n "$ac_ct_CC" && break | |
1909 | done | |
1910 | ||
1911 | CC=$ac_ct_CC | |
1912 | fi | |
1913 | ||
1914 | fi | |
1915 | ||
1916 | ||
7357c5b6 AM |
1917 | test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
1918 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
1919 | { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
5464f5a1 NN |
1920 | See \`config.log' for more details." >&5 |
1921 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1922 | See \`config.log' for more details." >&2;} | |
7357c5b6 | 1923 | { (exit 1); exit 1; }; }; } |
5464f5a1 NN |
1924 | |
1925 | # Provide some information about the compiler. | |
1926 | echo "$as_me:$LINENO:" \ | |
1927 | "checking for C compiler version" >&5 | |
1928 | ac_compiler=`set X $ac_compile; echo $2` | |
1929 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1930 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1931 | ac_status=$? | |
1932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1933 | (exit $ac_status); } | |
1934 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1935 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1936 | ac_status=$? | |
1937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1938 | (exit $ac_status); } | |
1939 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1940 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1941 | ac_status=$? | |
1942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1943 | (exit $ac_status); } | |
1944 | ||
1945 | cat >conftest.$ac_ext <<_ACEOF | |
1946 | /* confdefs.h. */ | |
1947 | _ACEOF | |
1948 | cat confdefs.h >>conftest.$ac_ext | |
1949 | cat >>conftest.$ac_ext <<_ACEOF | |
1950 | /* end confdefs.h. */ | |
1951 | ||
1952 | int | |
1953 | main () | |
1954 | { | |
1955 | ||
1956 | ; | |
1957 | return 0; | |
1958 | } | |
1959 | _ACEOF | |
1960 | ac_clean_files_save=$ac_clean_files | |
1961 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1962 | # Try to create an executable without -o first, disregard a.out. | |
1963 | # It will help us diagnose broken compilers, and finding out an intuition | |
1964 | # of exeext. | |
1965 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1966 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1967 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1968 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1969 | (eval $ac_link_default) 2>&5 | |
1970 | ac_status=$? | |
1971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1972 | (exit $ac_status); }; then | |
1973 | # Find the output, starting from the most likely. This scheme is | |
1974 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1975 | # resort. | |
1976 | ||
1977 | # Be careful to initialize this variable, since it used to be cached. | |
1978 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1979 | ac_cv_exeext= | |
1980 | # b.out is created by i960 compilers. | |
1981 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1982 | do | |
1983 | test -f "$ac_file" || continue | |
1984 | case $ac_file in | |
1985 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1986 | ;; | |
1987 | conftest.$ac_ext ) | |
1988 | # This is the source file. | |
1989 | ;; | |
1990 | [ab].out ) | |
1991 | # We found the default executable, but exeext='' is most | |
1992 | # certainly right. | |
1993 | break;; | |
1994 | *.* ) | |
1995 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1996 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1997 | # but it would be cool to find out if it's true. Does anybody | |
1998 | # maintain Libtool? --akim. | |
1999 | export ac_cv_exeext | |
2000 | break;; | |
2001 | * ) | |
2002 | break;; | |
2003 | esac | |
2004 | done | |
2005 | else | |
2006 | echo "$as_me: failed program was:" >&5 | |
2007 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2008 | ||
7357c5b6 AM |
2009 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2010 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5464f5a1 NN |
2011 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2012 | See \`config.log' for more details." >&5 | |
2013 | echo "$as_me: error: C compiler cannot create executables | |
2014 | See \`config.log' for more details." >&2;} | |
7357c5b6 | 2015 | { (exit 77); exit 77; }; }; } |
5464f5a1 NN |
2016 | fi |
2017 | ||
2018 | ac_exeext=$ac_cv_exeext | |
2019 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2020 | echo "${ECHO_T}$ac_file" >&6 | |
2021 | ||
2022 | # Check the compiler produces executables we can run. If not, either | |
2023 | # the compiler is broken, or we cross compile. | |
2024 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2025 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2026 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2027 | # If not cross compiling, check that we can run a simple program. | |
2028 | if test "$cross_compiling" != yes; then | |
2029 | if { ac_try='./$ac_file' | |
2030 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2031 | (eval $ac_try) 2>&5 | |
2032 | ac_status=$? | |
2033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2034 | (exit $ac_status); }; }; then | |
2035 | cross_compiling=no | |
2036 | else | |
2037 | if test "$cross_compiling" = maybe; then | |
2038 | cross_compiling=yes | |
2039 | else | |
7357c5b6 AM |
2040 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2041 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2042 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
5464f5a1 NN |
2043 | If you meant to cross compile, use \`--host'. |
2044 | See \`config.log' for more details." >&5 | |
2045 | echo "$as_me: error: cannot run C compiled programs. | |
2046 | If you meant to cross compile, use \`--host'. | |
2047 | See \`config.log' for more details." >&2;} | |
7357c5b6 | 2048 | { (exit 1); exit 1; }; }; } |
5464f5a1 NN |
2049 | fi |
2050 | fi | |
2051 | fi | |
2052 | echo "$as_me:$LINENO: result: yes" >&5 | |
2053 | echo "${ECHO_T}yes" >&6 | |
2054 | ||
2055 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2056 | ac_clean_files=$ac_clean_files_save | |
2057 | # Check the compiler produces executables we can run. If not, either | |
2058 | # the compiler is broken, or we cross compile. | |
2059 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2060 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2061 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2062 | echo "${ECHO_T}$cross_compiling" >&6 | |
2063 | ||
2064 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2065 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2066 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2067 | (eval $ac_link) 2>&5 | |
2068 | ac_status=$? | |
2069 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2070 | (exit $ac_status); }; then | |
2071 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2072 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2073 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2074 | # `rm'. | |
2075 | for ac_file in conftest.exe conftest conftest.*; do | |
2076 | test -f "$ac_file" || continue | |
2077 | case $ac_file in | |
2078 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2079 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2080 | export ac_cv_exeext | |
2081 | break;; | |
2082 | * ) break;; | |
2083 | esac | |
2084 | done | |
2085 | else | |
7357c5b6 AM |
2086 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2087 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2088 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
5464f5a1 NN |
2089 | See \`config.log' for more details." >&5 |
2090 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2091 | See \`config.log' for more details." >&2;} | |
7357c5b6 | 2092 | { (exit 1); exit 1; }; }; } |
5464f5a1 NN |
2093 | fi |
2094 | ||
2095 | rm -f conftest$ac_cv_exeext | |
2096 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2097 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2098 | ||
2099 | rm -f conftest.$ac_ext | |
2100 | EXEEXT=$ac_cv_exeext | |
2101 | ac_exeext=$EXEEXT | |
2102 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2103 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2104 | if test "${ac_cv_objext+set}" = set; then | |
2105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2106 | else | |
2107 | cat >conftest.$ac_ext <<_ACEOF | |
2108 | /* confdefs.h. */ | |
2109 | _ACEOF | |
2110 | cat confdefs.h >>conftest.$ac_ext | |
2111 | cat >>conftest.$ac_ext <<_ACEOF | |
2112 | /* end confdefs.h. */ | |
2113 | ||
2114 | int | |
2115 | main () | |
2116 | { | |
2117 | ||
2118 | ; | |
2119 | return 0; | |
2120 | } | |
2121 | _ACEOF | |
2122 | rm -f conftest.o conftest.obj | |
2123 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2124 | (eval $ac_compile) 2>&5 | |
2125 | ac_status=$? | |
2126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2127 | (exit $ac_status); }; then | |
2128 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2129 | case $ac_file in | |
2130 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2131 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2132 | break;; | |
2133 | esac | |
2134 | done | |
2135 | else | |
2136 | echo "$as_me: failed program was:" >&5 | |
2137 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2138 | ||
7357c5b6 AM |
2139 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
2140 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5464f5a1 NN |
2141 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
2142 | See \`config.log' for more details." >&5 | |
2143 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2144 | See \`config.log' for more details." >&2;} | |
7357c5b6 | 2145 | { (exit 1); exit 1; }; }; } |
5464f5a1 NN |
2146 | fi |
2147 | ||
2148 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2149 | fi | |
2150 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2151 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2152 | OBJEXT=$ac_cv_objext | |
2153 | ac_objext=$OBJEXT | |
2154 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2155 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2156 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2158 | else | |
2159 | cat >conftest.$ac_ext <<_ACEOF | |
2160 | /* confdefs.h. */ | |
2161 | _ACEOF | |
2162 | cat confdefs.h >>conftest.$ac_ext | |
2163 | cat >>conftest.$ac_ext <<_ACEOF | |
2164 | /* end confdefs.h. */ | |
2165 | ||
2166 | int | |
2167 | main () | |
2168 | { | |
2169 | #ifndef __GNUC__ | |
2170 | choke me | |
2171 | #endif | |
2172 | ||
2173 | ; | |
2174 | return 0; | |
2175 | } | |
2176 | _ACEOF | |
2177 | rm -f conftest.$ac_objext | |
2178 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2179 | (eval $ac_compile) 2>conftest.er1 | |
2180 | ac_status=$? | |
2181 | grep -v '^ *+' conftest.er1 >conftest.err | |
2182 | rm -f conftest.er1 | |
2183 | cat conftest.err >&5 | |
2184 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2185 | (exit $ac_status); } && | |
7357c5b6 AM |
2186 | { ac_try='test -z "$ac_c_werror_flag" |
2187 | || test ! -s conftest.err' | |
5464f5a1 NN |
2188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2189 | (eval $ac_try) 2>&5 | |
2190 | ac_status=$? | |
2191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2192 | (exit $ac_status); }; } && | |
2193 | { ac_try='test -s conftest.$ac_objext' | |
2194 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2195 | (eval $ac_try) 2>&5 | |
2196 | ac_status=$? | |
2197 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2198 | (exit $ac_status); }; }; then | |
2199 | ac_compiler_gnu=yes | |
2200 | else | |
2201 | echo "$as_me: failed program was:" >&5 | |
2202 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2203 | ||
2204 | ac_compiler_gnu=no | |
2205 | fi | |
2206 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2207 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2208 | ||
2209 | fi | |
2210 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2211 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2212 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2213 | ac_test_CFLAGS=${CFLAGS+set} | |
2214 | ac_save_CFLAGS=$CFLAGS | |
2215 | CFLAGS="-g" | |
2216 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2217 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2218 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2219 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2220 | else | |
2221 | cat >conftest.$ac_ext <<_ACEOF | |
2222 | /* confdefs.h. */ | |
2223 | _ACEOF | |
2224 | cat confdefs.h >>conftest.$ac_ext | |
2225 | cat >>conftest.$ac_ext <<_ACEOF | |
2226 | /* end confdefs.h. */ | |
2227 | ||
2228 | int | |
2229 | main () | |
2230 | { | |
2231 | ||
2232 | ; | |
2233 | return 0; | |
2234 | } | |
2235 | _ACEOF | |
2236 | rm -f conftest.$ac_objext | |
2237 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2238 | (eval $ac_compile) 2>conftest.er1 | |
2239 | ac_status=$? | |
2240 | grep -v '^ *+' conftest.er1 >conftest.err | |
2241 | rm -f conftest.er1 | |
2242 | cat conftest.err >&5 | |
2243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2244 | (exit $ac_status); } && | |
7357c5b6 AM |
2245 | { ac_try='test -z "$ac_c_werror_flag" |
2246 | || test ! -s conftest.err' | |
5464f5a1 NN |
2247 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2248 | (eval $ac_try) 2>&5 | |
2249 | ac_status=$? | |
2250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2251 | (exit $ac_status); }; } && | |
2252 | { ac_try='test -s conftest.$ac_objext' | |
2253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2254 | (eval $ac_try) 2>&5 | |
2255 | ac_status=$? | |
2256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2257 | (exit $ac_status); }; }; then | |
2258 | ac_cv_prog_cc_g=yes | |
2259 | else | |
2260 | echo "$as_me: failed program was:" >&5 | |
2261 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2262 | ||
2263 | ac_cv_prog_cc_g=no | |
2264 | fi | |
2265 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2266 | fi | |
2267 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2268 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2269 | if test "$ac_test_CFLAGS" = set; then | |
2270 | CFLAGS=$ac_save_CFLAGS | |
2271 | elif test $ac_cv_prog_cc_g = yes; then | |
2272 | if test "$GCC" = yes; then | |
2273 | CFLAGS="-g -O2" | |
2274 | else | |
2275 | CFLAGS="-g" | |
2276 | fi | |
2277 | else | |
2278 | if test "$GCC" = yes; then | |
2279 | CFLAGS="-O2" | |
2280 | else | |
2281 | CFLAGS= | |
2282 | fi | |
2283 | fi | |
2284 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2285 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2286 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2287 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2288 | else | |
2289 | ac_cv_prog_cc_stdc=no | |
2290 | ac_save_CC=$CC | |
2291 | cat >conftest.$ac_ext <<_ACEOF | |
2292 | /* confdefs.h. */ | |
2293 | _ACEOF | |
2294 | cat confdefs.h >>conftest.$ac_ext | |
2295 | cat >>conftest.$ac_ext <<_ACEOF | |
2296 | /* end confdefs.h. */ | |
2297 | #include <stdarg.h> | |
2298 | #include <stdio.h> | |
2299 | #include <sys/types.h> | |
2300 | #include <sys/stat.h> | |
2301 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2302 | struct buf { int x; }; | |
2303 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2304 | static char *e (p, i) | |
2305 | char **p; | |
2306 | int i; | |
2307 | { | |
2308 | return p[i]; | |
2309 | } | |
2310 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2311 | { | |
2312 | char *s; | |
2313 | va_list v; | |
2314 | va_start (v,p); | |
2315 | s = g (p, va_arg (v,int)); | |
2316 | va_end (v); | |
2317 | return s; | |
2318 | } | |
2319 | ||
2320 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2321 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2322 | These don't provoke an error unfortunately, instead are silently treated | |
2323 | as 'x'. The following induces an error, until -std1 is added to get | |
2324 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2325 | array size at least. It's necessary to write '\x00'==0 to get something | |
2326 | that's true only with -std1. */ | |
2327 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2328 | ||
2329 | int test (int i, double x); | |
2330 | struct s1 {int (*f) (int a);}; | |
2331 | struct s2 {int (*f) (double a);}; | |
2332 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2333 | int argc; | |
2334 | char **argv; | |
2335 | int | |
2336 | main () | |
2337 | { | |
2338 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2339 | ; | |
2340 | return 0; | |
2341 | } | |
2342 | _ACEOF | |
2343 | # Don't try gcc -ansi; that turns off useful extensions and | |
2344 | # breaks some systems' header files. | |
2345 | # AIX -qlanglvl=ansi | |
2346 | # Ultrix and OSF/1 -std1 | |
2347 | # HP-UX 10.20 and later -Ae | |
2348 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2349 | # SVR4 -Xc -D__EXTENSIONS__ | |
2350 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2351 | do | |
2352 | CC="$ac_save_CC $ac_arg" | |
2353 | rm -f conftest.$ac_objext | |
2354 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2355 | (eval $ac_compile) 2>conftest.er1 | |
2356 | ac_status=$? | |
2357 | grep -v '^ *+' conftest.er1 >conftest.err | |
2358 | rm -f conftest.er1 | |
2359 | cat conftest.err >&5 | |
2360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2361 | (exit $ac_status); } && | |
7357c5b6 AM |
2362 | { ac_try='test -z "$ac_c_werror_flag" |
2363 | || test ! -s conftest.err' | |
5464f5a1 NN |
2364 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2365 | (eval $ac_try) 2>&5 | |
2366 | ac_status=$? | |
2367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2368 | (exit $ac_status); }; } && | |
2369 | { ac_try='test -s conftest.$ac_objext' | |
2370 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2371 | (eval $ac_try) 2>&5 | |
2372 | ac_status=$? | |
2373 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2374 | (exit $ac_status); }; }; then | |
2375 | ac_cv_prog_cc_stdc=$ac_arg | |
2376 | break | |
2377 | else | |
2378 | echo "$as_me: failed program was:" >&5 | |
2379 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2380 | ||
2381 | fi | |
2382 | rm -f conftest.err conftest.$ac_objext | |
2383 | done | |
2384 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2385 | CC=$ac_save_CC | |
2386 | ||
2387 | fi | |
2388 | ||
2389 | case "x$ac_cv_prog_cc_stdc" in | |
2390 | x|xno) | |
2391 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2392 | echo "${ECHO_T}none needed" >&6 ;; | |
2393 | *) | |
2394 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2395 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2396 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2397 | esac | |
2398 | ||
2399 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2400 | # in C++ we need to declare it. In case someone uses the same compiler | |
2401 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2402 | # the declaration of exit, since it's the most demanding environment. | |
2403 | cat >conftest.$ac_ext <<_ACEOF | |
2404 | #ifndef __cplusplus | |
2405 | choke me | |
2406 | #endif | |
2407 | _ACEOF | |
2408 | rm -f conftest.$ac_objext | |
2409 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2410 | (eval $ac_compile) 2>conftest.er1 | |
2411 | ac_status=$? | |
2412 | grep -v '^ *+' conftest.er1 >conftest.err | |
2413 | rm -f conftest.er1 | |
2414 | cat conftest.err >&5 | |
2415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2416 | (exit $ac_status); } && | |
7357c5b6 AM |
2417 | { ac_try='test -z "$ac_c_werror_flag" |
2418 | || test ! -s conftest.err' | |
5464f5a1 NN |
2419 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2420 | (eval $ac_try) 2>&5 | |
2421 | ac_status=$? | |
2422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2423 | (exit $ac_status); }; } && | |
2424 | { ac_try='test -s conftest.$ac_objext' | |
2425 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2426 | (eval $ac_try) 2>&5 | |
2427 | ac_status=$? | |
2428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2429 | (exit $ac_status); }; }; then | |
2430 | for ac_declaration in \ | |
2431 | '' \ | |
2432 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2433 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2434 | 'extern "C" void exit (int) throw ();' \ | |
2435 | 'extern "C" void exit (int);' \ | |
2436 | 'void exit (int);' | |
2437 | do | |
2438 | cat >conftest.$ac_ext <<_ACEOF | |
2439 | /* confdefs.h. */ | |
2440 | _ACEOF | |
2441 | cat confdefs.h >>conftest.$ac_ext | |
2442 | cat >>conftest.$ac_ext <<_ACEOF | |
2443 | /* end confdefs.h. */ | |
2444 | $ac_declaration | |
2445 | #include <stdlib.h> | |
2446 | int | |
2447 | main () | |
2448 | { | |
2449 | exit (42); | |
2450 | ; | |
2451 | return 0; | |
2452 | } | |
2453 | _ACEOF | |
2454 | rm -f conftest.$ac_objext | |
2455 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2456 | (eval $ac_compile) 2>conftest.er1 | |
2457 | ac_status=$? | |
2458 | grep -v '^ *+' conftest.er1 >conftest.err | |
2459 | rm -f conftest.er1 | |
2460 | cat conftest.err >&5 | |
2461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2462 | (exit $ac_status); } && | |
7357c5b6 AM |
2463 | { ac_try='test -z "$ac_c_werror_flag" |
2464 | || test ! -s conftest.err' | |
5464f5a1 NN |
2465 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2466 | (eval $ac_try) 2>&5 | |
2467 | ac_status=$? | |
2468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2469 | (exit $ac_status); }; } && | |
2470 | { ac_try='test -s conftest.$ac_objext' | |
2471 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2472 | (eval $ac_try) 2>&5 | |
2473 | ac_status=$? | |
2474 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2475 | (exit $ac_status); }; }; then | |
2476 | : | |
2477 | else | |
2478 | echo "$as_me: failed program was:" >&5 | |
2479 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2480 | ||
2481 | continue | |
2482 | fi | |
2483 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2484 | cat >conftest.$ac_ext <<_ACEOF | |
2485 | /* confdefs.h. */ | |
2486 | _ACEOF | |
2487 | cat confdefs.h >>conftest.$ac_ext | |
2488 | cat >>conftest.$ac_ext <<_ACEOF | |
2489 | /* end confdefs.h. */ | |
2490 | $ac_declaration | |
2491 | int | |
2492 | main () | |
2493 | { | |
2494 | exit (42); | |
2495 | ; | |
2496 | return 0; | |
2497 | } | |
2498 | _ACEOF | |
2499 | rm -f conftest.$ac_objext | |
2500 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2501 | (eval $ac_compile) 2>conftest.er1 | |
2502 | ac_status=$? | |
2503 | grep -v '^ *+' conftest.er1 >conftest.err | |
2504 | rm -f conftest.er1 | |
2505 | cat conftest.err >&5 | |
2506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2507 | (exit $ac_status); } && | |
7357c5b6 AM |
2508 | { ac_try='test -z "$ac_c_werror_flag" |
2509 | || test ! -s conftest.err' | |
5464f5a1 NN |
2510 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2511 | (eval $ac_try) 2>&5 | |
2512 | ac_status=$? | |
2513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2514 | (exit $ac_status); }; } && | |
2515 | { ac_try='test -s conftest.$ac_objext' | |
2516 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2517 | (eval $ac_try) 2>&5 | |
2518 | ac_status=$? | |
2519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2520 | (exit $ac_status); }; }; then | |
2521 | break | |
2522 | else | |
2523 | echo "$as_me: failed program was:" >&5 | |
2524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2525 | ||
2526 | fi | |
2527 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2528 | done | |
2529 | rm -f conftest* | |
2530 | if test -n "$ac_declaration"; then | |
2531 | echo '#ifdef __cplusplus' >>confdefs.h | |
2532 | echo $ac_declaration >>confdefs.h | |
2533 | echo '#endif' >>confdefs.h | |
2534 | fi | |
2535 | ||
2536 | else | |
2537 | echo "$as_me: failed program was:" >&5 | |
2538 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2539 | ||
2540 | fi | |
2541 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2542 | ac_ext=c | |
2543 | ac_cpp='$CPP $CPPFLAGS' | |
2544 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2545 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2546 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2547 | ||
2548 | ||
f5385ebf AM |
2549 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 |
2550 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
2551 | if test "${ac_cv_search_strerror+set}" = set; then | |
5464f5a1 NN |
2552 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2553 | else | |
f5385ebf AM |
2554 | ac_func_search_save_LIBS=$LIBS |
2555 | ac_cv_search_strerror=no | |
5464f5a1 NN |
2556 | cat >conftest.$ac_ext <<_ACEOF |
2557 | /* confdefs.h. */ | |
2558 | _ACEOF | |
2559 | cat confdefs.h >>conftest.$ac_ext | |
2560 | cat >>conftest.$ac_ext <<_ACEOF | |
2561 | /* end confdefs.h. */ | |
2562 | ||
2563 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2564 | #ifdef __cplusplus | |
2565 | extern "C" | |
2566 | #endif | |
2567 | /* We use char because int might match the return type of a gcc2 | |
2568 | builtin and then its argument prototype would still apply. */ | |
2569 | char strerror (); | |
2570 | int | |
2571 | main () | |
2572 | { | |
2573 | strerror (); | |
2574 | ; | |
2575 | return 0; | |
2576 | } | |
2577 | _ACEOF | |
2578 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2579 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2580 | (eval $ac_link) 2>conftest.er1 | |
2581 | ac_status=$? | |
2582 | grep -v '^ *+' conftest.er1 >conftest.err | |
2583 | rm -f conftest.er1 | |
2584 | cat conftest.err >&5 | |
2585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2586 | (exit $ac_status); } && | |
7357c5b6 AM |
2587 | { ac_try='test -z "$ac_c_werror_flag" |
2588 | || test ! -s conftest.err' | |
5464f5a1 NN |
2589 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2590 | (eval $ac_try) 2>&5 | |
2591 | ac_status=$? | |
2592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2593 | (exit $ac_status); }; } && | |
2594 | { ac_try='test -s conftest$ac_exeext' | |
2595 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2596 | (eval $ac_try) 2>&5 | |
2597 | ac_status=$? | |
2598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2599 | (exit $ac_status); }; }; then | |
f5385ebf | 2600 | ac_cv_search_strerror="none required" |
5464f5a1 NN |
2601 | else |
2602 | echo "$as_me: failed program was:" >&5 | |
2603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2604 | ||
5464f5a1 NN |
2605 | fi |
2606 | rm -f conftest.err conftest.$ac_objext \ | |
2607 | conftest$ac_exeext conftest.$ac_ext | |
f5385ebf AM |
2608 | if test "$ac_cv_search_strerror" = no; then |
2609 | for ac_lib in cposix; do | |
2610 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2611 | cat >conftest.$ac_ext <<_ACEOF | |
2612 | /* confdefs.h. */ | |
2613 | _ACEOF | |
2614 | cat confdefs.h >>conftest.$ac_ext | |
2615 | cat >>conftest.$ac_ext <<_ACEOF | |
2616 | /* end confdefs.h. */ | |
2617 | ||
2618 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2619 | #ifdef __cplusplus | |
2620 | extern "C" | |
2621 | #endif | |
2622 | /* We use char because int might match the return type of a gcc2 | |
2623 | builtin and then its argument prototype would still apply. */ | |
2624 | char strerror (); | |
2625 | int | |
2626 | main () | |
2627 | { | |
2628 | strerror (); | |
2629 | ; | |
2630 | return 0; | |
2631 | } | |
2632 | _ACEOF | |
2633 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2634 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2635 | (eval $ac_link) 2>conftest.er1 | |
2636 | ac_status=$? | |
2637 | grep -v '^ *+' conftest.er1 >conftest.err | |
2638 | rm -f conftest.er1 | |
2639 | cat conftest.err >&5 | |
2640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2641 | (exit $ac_status); } && | |
7357c5b6 AM |
2642 | { ac_try='test -z "$ac_c_werror_flag" |
2643 | || test ! -s conftest.err' | |
f5385ebf AM |
2644 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
2645 | (eval $ac_try) 2>&5 | |
2646 | ac_status=$? | |
2647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2648 | (exit $ac_status); }; } && | |
2649 | { ac_try='test -s conftest$ac_exeext' | |
2650 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2651 | (eval $ac_try) 2>&5 | |
2652 | ac_status=$? | |
2653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2654 | (exit $ac_status); }; }; then | |
2655 | ac_cv_search_strerror="-l$ac_lib" | |
2656 | break | |
2657 | else | |
2658 | echo "$as_me: failed program was:" >&5 | |
2659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2660 | ||
5464f5a1 | 2661 | fi |
f5385ebf AM |
2662 | rm -f conftest.err conftest.$ac_objext \ |
2663 | conftest$ac_exeext conftest.$ac_ext | |
2664 | done | |
5464f5a1 | 2665 | fi |
f5385ebf AM |
2666 | LIBS=$ac_func_search_save_LIBS |
2667 | fi | |
2668 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
2669 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2670 | if test "$ac_cv_search_strerror" != no; then | |
2671 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
5464f5a1 | 2672 | |
f5385ebf | 2673 | fi |
5464f5a1 NN |
2674 | |
2675 | ||
f5385ebf | 2676 | am__api_version="1.9" |
5464f5a1 NN |
2677 | # Find a good install program. We prefer a C program (faster), |
2678 | # so one script is as good as another. But avoid the broken or | |
2679 | # incompatible versions: | |
2680 | # SysV /etc/install, /usr/sbin/install | |
2681 | # SunOS /usr/etc/install | |
2682 | # IRIX /sbin/install | |
2683 | # AIX /bin/install | |
2684 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
252b5132 RH |
2685 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2686 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2687 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
5464f5a1 | 2688 | # OS/2's system install, which has a completely different semantic |
252b5132 | 2689 | # ./install, which can be erroneously created by make from ./install.sh. |
58c85be7 | 2690 | # Reject install programs that cannot install multiple files. |
5464f5a1 NN |
2691 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2692 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
252b5132 | 2693 | if test -z "$INSTALL"; then |
5464f5a1 NN |
2694 | if test "${ac_cv_path_install+set}" = set; then |
2695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 2696 | else |
5464f5a1 NN |
2697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2698 | for as_dir in $PATH | |
2699 | do | |
2700 | IFS=$as_save_IFS | |
2701 | test -z "$as_dir" && as_dir=. | |
2702 | # Account for people who put trailing slashes in PATH elements. | |
2703 | case $as_dir/ in | |
2704 | ./ | .// | /cC/* | \ | |
2705 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2706 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2707 | /usr/ucb/* ) ;; | |
2708 | *) | |
2709 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2710 | # Don't use installbsd from OSF since it installs stuff as root | |
2711 | # by default. | |
2712 | for ac_prog in ginstall scoinst install; do | |
2713 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2714 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
252b5132 | 2715 | if test $ac_prog = install && |
5464f5a1 | 2716 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
252b5132 RH |
2717 | # AIX install. It has an incompatible calling convention. |
2718 | : | |
5464f5a1 NN |
2719 | elif test $ac_prog = install && |
2720 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2721 | # program-specific install script used by HP pwplus--don't use. | |
2722 | : | |
252b5132 | 2723 | else |
58c85be7 RW |
2724 | rm -rf conftest.one conftest.two conftest.dir |
2725 | echo one > conftest.one | |
2726 | echo two > conftest.two | |
2727 | mkdir conftest.dir | |
2728 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2729 | test -s conftest.one && test -s conftest.two && | |
2730 | test -s conftest.dir/conftest.one && | |
2731 | test -s conftest.dir/conftest.two | |
2732 | then | |
2733 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2734 | break 3 | |
2735 | fi | |
252b5132 RH |
2736 | fi |
2737 | fi | |
2738 | done | |
5464f5a1 NN |
2739 | done |
2740 | ;; | |
2741 | esac | |
2742 | done | |
2743 | ||
58c85be7 | 2744 | rm -rf conftest.one conftest.two conftest.dir |
252b5132 RH |
2745 | |
2746 | fi | |
2747 | if test "${ac_cv_path_install+set}" = set; then | |
5464f5a1 | 2748 | INSTALL=$ac_cv_path_install |
252b5132 | 2749 | else |
58c85be7 RW |
2750 | # As a last resort, use the slow shell script. Don't cache a |
2751 | # value for INSTALL within a source directory, because that will | |
252b5132 | 2752 | # break other packages using the cache if that directory is |
58c85be7 | 2753 | # removed, or if the value is a relative name. |
5464f5a1 | 2754 | INSTALL=$ac_install_sh |
252b5132 RH |
2755 | fi |
2756 | fi | |
5464f5a1 NN |
2757 | echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2758 | echo "${ECHO_T}$INSTALL" >&6 | |
252b5132 RH |
2759 | |
2760 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2761 | # It thinks the first close brace ends the variable substitution. | |
2762 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2763 | ||
5464f5a1 | 2764 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2765 | |
2766 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2767 | ||
5464f5a1 NN |
2768 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2769 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
252b5132 RH |
2770 | # Just in case |
2771 | sleep 1 | |
f5385ebf | 2772 | echo timestamp > conftest.file |
252b5132 RH |
2773 | # Do `set' in a subshell so we don't clobber the current shell's |
2774 | # arguments. Must try -L first in case configure is actually a | |
2775 | # symlink; some systems play weird games with the mod time of symlinks | |
2776 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2777 | # directory). | |
2778 | if ( | |
f5385ebf | 2779 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
252b5132 RH |
2780 | if test "$*" = "X"; then |
2781 | # -L didn't work. | |
f5385ebf | 2782 | set X `ls -t $srcdir/configure conftest.file` |
252b5132 | 2783 | fi |
f5385ebf AM |
2784 | rm -f conftest.file |
2785 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2786 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
252b5132 RH |
2787 | |
2788 | # If neither matched, then we have a broken ls. This can happen | |
2789 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2790 | # broken ls alias from the environment. This has actually | |
2791 | # happened. Such a system could not be considered "sane". | |
5464f5a1 NN |
2792 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2793 | alias in your environment" >&5 | |
2794 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2795 | alias in your environment" >&2;} | |
2796 | { (exit 1); exit 1; }; } | |
252b5132 RH |
2797 | fi |
2798 | ||
f5385ebf | 2799 | test "$2" = conftest.file |
252b5132 RH |
2800 | ) |
2801 | then | |
2802 | # Ok. | |
2803 | : | |
2804 | else | |
5464f5a1 NN |
2805 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2806 | Check your system clock" >&5 | |
2807 | echo "$as_me: error: newly created file is older than distributed files! | |
2808 | Check your system clock" >&2;} | |
2809 | { (exit 1); exit 1; }; } | |
252b5132 | 2810 | fi |
5464f5a1 NN |
2811 | echo "$as_me:$LINENO: result: yes" >&5 |
2812 | echo "${ECHO_T}yes" >&6 | |
252b5132 | 2813 | test "$program_prefix" != NONE && |
5464f5a1 | 2814 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
252b5132 RH |
2815 | # Use a double $ so make ignores it. |
2816 | test "$program_suffix" != NONE && | |
5464f5a1 NN |
2817 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
2818 | # Double any \ or $. echo might interpret backslashes. | |
2819 | # By default was `s,x,x', remove it if useless. | |
2820 | cat <<\_ACEOF >conftest.sed | |
2821 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2822 | _ACEOF | |
2823 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
2824 | rm conftest.sed | |
2825 | ||
f5385ebf AM |
2826 | # expand $ac_aux_dir to an absolute path |
2827 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2828 | ||
2829 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2830 | # Use eval to expand $SHELL | |
2831 | if eval "$MISSING --run true"; then | |
2832 | am_missing_run="$MISSING --run " | |
2833 | else | |
2834 | am_missing_run= | |
2835 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2836 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2837 | fi | |
2838 | ||
2839 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
2840 | # We used to keeping the `.' as first argument, in order to | |
2841 | # allow $(mkdir_p) to be used without argument. As in | |
2842 | # $(mkdir_p) $(somedir) | |
2843 | # where $(somedir) is conditionally defined. However this is wrong | |
2844 | # for two reasons: | |
2845 | # 1. if the package is installed by a user who cannot write `.' | |
2846 | # make install will fail, | |
2847 | # 2. the above comment should most certainly read | |
2848 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
2849 | # so it does not work when $(somedir) is undefined and | |
2850 | # $(DESTDIR) is not. | |
2851 | # To support the latter case, we have to write | |
2852 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
2853 | # so the `.' trick is pointless. | |
2854 | mkdir_p='mkdir -p --' | |
2855 | else | |
2856 | # On NextStep and OpenStep, the `mkdir' command does not | |
2857 | # recognize any option. It will interpret all options as | |
2858 | # directories to create, and then abort because `.' already | |
2859 | # exists. | |
2860 | for d in ./-p ./--version; | |
2861 | do | |
2862 | test -d $d && rmdir $d | |
2863 | done | |
2864 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
2865 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
2866 | mkdir_p='$(mkinstalldirs)' | |
2867 | else | |
2868 | mkdir_p='$(install_sh) -d' | |
2869 | fi | |
2870 | fi | |
2871 | ||
2872 | for ac_prog in gawk mawk nawk awk | |
2873 | do | |
2874 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2875 | set dummy $ac_prog; ac_word=$2 | |
2876 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2877 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2878 | if test "${ac_cv_prog_AWK+set}" = set; then | |
2879 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2880 | else | |
2881 | if test -n "$AWK"; then | |
2882 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2883 | else | |
2884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2885 | for as_dir in $PATH | |
2886 | do | |
2887 | IFS=$as_save_IFS | |
2888 | test -z "$as_dir" && as_dir=. | |
2889 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2890 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2891 | ac_cv_prog_AWK="$ac_prog" | |
2892 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2893 | break 2 | |
2894 | fi | |
2895 | done | |
2896 | done | |
2897 | ||
2898 | fi | |
2899 | fi | |
2900 | AWK=$ac_cv_prog_AWK | |
2901 | if test -n "$AWK"; then | |
2902 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
2903 | echo "${ECHO_T}$AWK" >&6 | |
2904 | else | |
2905 | echo "$as_me:$LINENO: result: no" >&5 | |
2906 | echo "${ECHO_T}no" >&6 | |
2907 | fi | |
2908 | ||
2909 | test -n "$AWK" && break | |
2910 | done | |
2911 | ||
5464f5a1 NN |
2912 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2913 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
2914 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
2915 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2916 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2917 | else | |
2918 | cat >conftest.make <<\_ACEOF | |
252b5132 | 2919 | all: |
5464f5a1 NN |
2920 | @echo 'ac_maketemp="$(MAKE)"' |
2921 | _ACEOF | |
252b5132 | 2922 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
5464f5a1 | 2923 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
252b5132 RH |
2924 | if test -n "$ac_maketemp"; then |
2925 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2926 | else | |
2927 | eval ac_cv_prog_make_${ac_make}_set=no | |
2928 | fi | |
5464f5a1 | 2929 | rm -f conftest.make |
252b5132 RH |
2930 | fi |
2931 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
5464f5a1 NN |
2932 | echo "$as_me:$LINENO: result: yes" >&5 |
2933 | echo "${ECHO_T}yes" >&6 | |
252b5132 RH |
2934 | SET_MAKE= |
2935 | else | |
5464f5a1 NN |
2936 | echo "$as_me:$LINENO: result: no" >&5 |
2937 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
2938 | SET_MAKE="MAKE=${MAKE-make}" |
2939 | fi | |
2940 | ||
f5385ebf AM |
2941 | rm -rf .tst 2>/dev/null |
2942 | mkdir .tst 2>/dev/null | |
2943 | if test -d .tst; then | |
2944 | am__leading_dot=. | |
2945 | else | |
2946 | am__leading_dot=_ | |
2947 | fi | |
2948 | rmdir .tst 2>/dev/null | |
2949 | ||
2950 | DEPDIR="${am__leading_dot}deps" | |
2951 | ||
2952 | ac_config_commands="$ac_config_commands depfiles" | |
2953 | ||
2954 | ||
2955 | am_make=${MAKE-make} | |
2956 | cat > confinc << 'END' | |
2957 | am__doit: | |
2958 | @echo done | |
2959 | .PHONY: am__doit | |
2960 | END | |
2961 | # If we don't find an include directive, just comment out the code. | |
2962 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2963 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2964 | am__include="#" | |
2965 | am__quote= | |
2966 | _am_result=none | |
2967 | # First try GNU make style include. | |
2968 | echo "include confinc" > confmf | |
2969 | # We grep out `Entering directory' and `Leaving directory' | |
2970 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2971 | # In particular we don't look at `^make:' because GNU make might | |
2972 | # be invoked under some other name (usually "gmake"), in which | |
2973 | # case it prints its new name instead of `make'. | |
2974 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2975 | am__include=include | |
2976 | am__quote= | |
2977 | _am_result=GNU | |
2978 | fi | |
2979 | # Now try BSD make style include. | |
2980 | if test "$am__include" = "#"; then | |
2981 | echo '.include "confinc"' > confmf | |
2982 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2983 | am__include=.include | |
2984 | am__quote="\"" | |
2985 | _am_result=BSD | |
2986 | fi | |
2987 | fi | |
2988 | ||
2989 | ||
2990 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2991 | echo "${ECHO_T}$_am_result" >&6 | |
2992 | rm -f confinc confmf | |
2993 | ||
2994 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2995 | if test "${enable_dependency_tracking+set}" = set; then | |
2996 | enableval="$enable_dependency_tracking" | |
2997 | ||
2998 | fi; | |
2999 | if test "x$enable_dependency_tracking" != xno; then | |
3000 | am_depcomp="$ac_aux_dir/depcomp" | |
3001 | AMDEPBACKSLASH='\' | |
3002 | fi | |
3003 | ||
3004 | ||
3005 | if test "x$enable_dependency_tracking" != xno; then | |
3006 | AMDEP_TRUE= | |
3007 | AMDEP_FALSE='#' | |
3008 | else | |
3009 | AMDEP_TRUE='#' | |
3010 | AMDEP_FALSE= | |
3011 | fi | |
6be7c12c | 3012 | |
252b5132 | 3013 | |
252b5132 | 3014 | |
f5385ebf AM |
3015 | # test to see if srcdir already configured |
3016 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
3017 | test -f $srcdir/config.status; then | |
5464f5a1 NN |
3018 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
3019 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
3020 | { (exit 1); exit 1; }; } | |
252b5132 | 3021 | fi |
5464f5a1 | 3022 | |
f5385ebf AM |
3023 | # test whether we have cygpath |
3024 | if test -z "$CYGPATH_W"; then | |
3025 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3026 | CYGPATH_W='cygpath -w' | |
3027 | else | |
3028 | CYGPATH_W=echo | |
3029 | fi | |
3030 | fi | |
3031 | ||
3032 | ||
3033 | # Define the identity of the package. | |
3034 | PACKAGE=bfd | |
ae5a3597 | 3035 | VERSION=2.19.51 |
f5385ebf AM |
3036 | |
3037 | ||
5464f5a1 | 3038 | cat >>confdefs.h <<_ACEOF |
252b5132 | 3039 | #define PACKAGE "$PACKAGE" |
5464f5a1 | 3040 | _ACEOF |
252b5132 | 3041 | |
5464f5a1 NN |
3042 | |
3043 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 3044 | #define VERSION "$VERSION" |
5464f5a1 | 3045 | _ACEOF |
252b5132 | 3046 | |
f5385ebf AM |
3047 | # Some tools Automake needs. |
3048 | ||
3049 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3050 | ||
3051 | ||
3052 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3053 | ||
3054 | ||
3055 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3056 | ||
3057 | ||
3058 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
3059 | ||
3060 | ||
3061 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
6be7c12c | 3062 | |
f5385ebf | 3063 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
6be7c12c | 3064 | |
f5385ebf AM |
3065 | # Installed binaries are usually stripped using `strip' when the user |
3066 | # run `make install-strip'. However `strip' might not be the right | |
3067 | # tool to use in cross-compilation environments, therefore Automake | |
3068 | # will honor the `STRIP' environment variable to overrule this program. | |
3069 | if test "$cross_compiling" != no; then | |
3070 | if test -n "$ac_tool_prefix"; then | |
3071 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3072 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3073 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3074 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3075 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
3076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3077 | else | |
3078 | if test -n "$STRIP"; then | |
3079 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
252b5132 | 3080 | else |
f5385ebf AM |
3081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3082 | for as_dir in $PATH | |
3083 | do | |
3084 | IFS=$as_save_IFS | |
3085 | test -z "$as_dir" && as_dir=. | |
3086 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3087 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3088 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3089 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3090 | break 2 | |
3091 | fi | |
3092 | done | |
3093 | done | |
3094 | ||
3095 | fi | |
3096 | fi | |
3097 | STRIP=$ac_cv_prog_STRIP | |
3098 | if test -n "$STRIP"; then | |
3099 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
3100 | echo "${ECHO_T}$STRIP" >&6 | |
3101 | else | |
3102 | echo "$as_me:$LINENO: result: no" >&5 | |
3103 | echo "${ECHO_T}no" >&6 | |
3104 | fi | |
3105 | ||
252b5132 | 3106 | fi |
f5385ebf AM |
3107 | if test -z "$ac_cv_prog_STRIP"; then |
3108 | ac_ct_STRIP=$STRIP | |
3109 | # Extract the first word of "strip", so it can be a program name with args. | |
3110 | set dummy strip; ac_word=$2 | |
3111 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3112 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3113 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
3114 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3115 | else | |
3116 | if test -n "$ac_ct_STRIP"; then | |
3117 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3118 | else | |
3119 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3120 | for as_dir in $PATH | |
3121 | do | |
3122 | IFS=$as_save_IFS | |
3123 | test -z "$as_dir" && as_dir=. | |
3124 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3125 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3126 | ac_cv_prog_ac_ct_STRIP="strip" | |
3127 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3128 | break 2 | |
3129 | fi | |
3130 | done | |
3131 | done | |
252b5132 | 3132 | |
f5385ebf AM |
3133 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
3134 | fi | |
3135 | fi | |
3136 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3137 | if test -n "$ac_ct_STRIP"; then | |
3138 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
3139 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
252b5132 | 3140 | else |
f5385ebf AM |
3141 | echo "$as_me:$LINENO: result: no" >&5 |
3142 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3143 | fi |
3144 | ||
f5385ebf | 3145 | STRIP=$ac_ct_STRIP |
252b5132 | 3146 | else |
f5385ebf AM |
3147 | STRIP="$ac_cv_prog_STRIP" |
3148 | fi | |
3149 | ||
252b5132 | 3150 | fi |
f5385ebf AM |
3151 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
3152 | ||
3153 | # We need awk for the "check" target. The system "awk" is bad on | |
3154 | # some platforms. | |
3155 | # Always define AMTAR for backward compatibility. | |
3156 | ||
3157 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
3158 | ||
3159 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
3160 | ||
252b5132 | 3161 | |
f5385ebf AM |
3162 | |
3163 | ||
3164 | depcc="$CC" am_compiler_list= | |
3165 | ||
3166 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3167 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
3168 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3169 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 3170 | else |
f5385ebf AM |
3171 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3172 | # We make a subdir and do the tests there. Otherwise we can end up | |
3173 | # making bogus files that we don't know about and never remove. For | |
3174 | # instance it was reported that on HP-UX the gcc test will end up | |
3175 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3176 | # in D'. | |
3177 | mkdir conftest.dir | |
3178 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3179 | # using a relative directory. | |
3180 | cp "$am_depcomp" conftest.dir | |
3181 | cd conftest.dir | |
3182 | # We will build objects and dependencies in a subdirectory because | |
3183 | # it helps to detect inapplicable dependency modes. For instance | |
3184 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3185 | # side effect of compilation, but ICC will put the dependencies in | |
3186 | # the current directory while Tru64 will put them in the object | |
3187 | # directory. | |
3188 | mkdir sub | |
3189 | ||
3190 | am_cv_CC_dependencies_compiler_type=none | |
3191 | if test "$am_compiler_list" = ""; then | |
3192 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3193 | fi | |
3194 | for depmode in $am_compiler_list; do | |
3195 | # Setup a source with many dependencies, because some compilers | |
3196 | # like to wrap large dependency lists on column 80 (with \), and | |
3197 | # we should not choose a depcomp mode which is confused by this. | |
3198 | # | |
3199 | # We need to recreate these files for each test, as the compiler may | |
3200 | # overwrite some of them when testing with obscure command lines. | |
3201 | # This happens at least with the AIX C compiler. | |
3202 | : > sub/conftest.c | |
3203 | for i in 1 2 3 4 5 6; do | |
3204 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3205 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3206 | # Solaris 8's {/usr,}/bin/sh. | |
3207 | touch sub/conftst$i.h | |
3208 | done | |
3209 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3210 | ||
3211 | case $depmode in | |
3212 | nosideeffect) | |
3213 | # after this tag, mechanisms are not by side-effect, so they'll | |
3214 | # only be used when explicitly requested | |
3215 | if test "x$enable_dependency_tracking" = xyes; then | |
3216 | continue | |
3217 | else | |
3218 | break | |
3219 | fi | |
3220 | ;; | |
3221 | none) break ;; | |
3222 | esac | |
3223 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3224 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3225 | # handle `-M -o', and we need to detect this. | |
3226 | if depmode=$depmode \ | |
3227 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3228 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3229 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3230 | >/dev/null 2>conftest.err && | |
3231 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3232 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3233 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3234 | # icc doesn't choke on unknown options, it will just issue warnings | |
3235 | # or remarks (even with -Werror). So we grep stderr for any message | |
3236 | # that says an option was ignored or not supported. | |
3237 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3238 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3239 | # The diagnosis changed in icc 8.0: | |
3240 | # icc: Command line remark: option '-MP' not supported | |
3241 | if (grep 'ignoring option' conftest.err || | |
3242 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3243 | am_cv_CC_dependencies_compiler_type=$depmode | |
3244 | break | |
3245 | fi | |
3246 | fi | |
3247 | done | |
3248 | ||
3249 | cd .. | |
3250 | rm -rf conftest.dir | |
3251 | else | |
3252 | am_cv_CC_dependencies_compiler_type=none | |
3253 | fi | |
3254 | ||
252b5132 | 3255 | fi |
f5385ebf AM |
3256 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3257 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
3258 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
252b5132 | 3259 | |
f5385ebf AM |
3260 | |
3261 | ||
3262 | if | |
3263 | test "x$enable_dependency_tracking" != xno \ | |
3264 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3265 | am__fastdepCC_TRUE= | |
3266 | am__fastdepCC_FALSE='#' | |
252b5132 | 3267 | else |
f5385ebf AM |
3268 | am__fastdepCC_TRUE='#' |
3269 | am__fastdepCC_FALSE= | |
252b5132 RH |
3270 | fi |
3271 | ||
6be7c12c | 3272 | |
e43d48cc | 3273 | |
f5385ebf | 3274 | |
5464f5a1 NN |
3275 | if test -n "$ac_tool_prefix"; then |
3276 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
252b5132 | 3277 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
5464f5a1 NN |
3278 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3279 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3280 | if test "${ac_cv_prog_AR+set}" = set; then | |
3281 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3282 | else |
3283 | if test -n "$AR"; then | |
3284 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3285 | else | |
5464f5a1 NN |
3286 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3287 | for as_dir in $PATH | |
3288 | do | |
3289 | IFS=$as_save_IFS | |
3290 | test -z "$as_dir" && as_dir=. | |
3291 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3292 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3293 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
3294 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3295 | break 2 | |
3296 | fi | |
3297 | done | |
3298 | done | |
3299 | ||
252b5132 RH |
3300 | fi |
3301 | fi | |
5464f5a1 | 3302 | AR=$ac_cv_prog_AR |
252b5132 | 3303 | if test -n "$AR"; then |
5464f5a1 NN |
3304 | echo "$as_me:$LINENO: result: $AR" >&5 |
3305 | echo "${ECHO_T}$AR" >&6 | |
252b5132 | 3306 | else |
5464f5a1 NN |
3307 | echo "$as_me:$LINENO: result: no" >&5 |
3308 | echo "${ECHO_T}no" >&6 | |
3309 | fi | |
3310 | ||
252b5132 | 3311 | fi |
5464f5a1 NN |
3312 | if test -z "$ac_cv_prog_AR"; then |
3313 | ac_ct_AR=$AR | |
3314 | # Extract the first word of "ar", so it can be a program name with args. | |
3315 | set dummy ar; ac_word=$2 | |
3316 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3317 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3318 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
3319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3320 | else | |
3321 | if test -n "$ac_ct_AR"; then | |
3322 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
3323 | else | |
3324 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3325 | for as_dir in $PATH | |
3326 | do | |
3327 | IFS=$as_save_IFS | |
3328 | test -z "$as_dir" && as_dir=. | |
3329 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3330 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3331 | ac_cv_prog_ac_ct_AR="ar" | |
3332 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3333 | break 2 | |
3334 | fi | |
3335 | done | |
3336 | done | |
252b5132 | 3337 | |
5464f5a1 NN |
3338 | fi |
3339 | fi | |
3340 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
3341 | if test -n "$ac_ct_AR"; then | |
3342 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
3343 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
3344 | else | |
3345 | echo "$as_me:$LINENO: result: no" >&5 | |
3346 | echo "${ECHO_T}no" >&6 | |
3347 | fi | |
252b5132 | 3348 | |
5464f5a1 NN |
3349 | AR=$ac_ct_AR |
3350 | else | |
3351 | AR="$ac_cv_prog_AR" | |
3352 | fi | |
6be7c12c | 3353 | |
5464f5a1 NN |
3354 | if test -n "$ac_tool_prefix"; then |
3355 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
252b5132 | 3356 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
5464f5a1 NN |
3357 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3358 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3359 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
3360 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
3361 | else |
3362 | if test -n "$RANLIB"; then | |
3363 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3364 | else | |
5464f5a1 NN |
3365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3366 | for as_dir in $PATH | |
3367 | do | |
3368 | IFS=$as_save_IFS | |
3369 | test -z "$as_dir" && as_dir=. | |
3370 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3371 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3372 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
3373 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3374 | break 2 | |
3375 | fi | |
3376 | done | |
3377 | done | |
3378 | ||
252b5132 RH |
3379 | fi |
3380 | fi | |
5464f5a1 | 3381 | RANLIB=$ac_cv_prog_RANLIB |
252b5132 | 3382 | if test -n "$RANLIB"; then |
5464f5a1 NN |
3383 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
3384 | echo "${ECHO_T}$RANLIB" >&6 | |
252b5132 | 3385 | else |
5464f5a1 NN |
3386 | echo "$as_me:$LINENO: result: no" >&5 |
3387 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3388 | fi |
3389 | ||
5464f5a1 | 3390 | fi |
252b5132 | 3391 | if test -z "$ac_cv_prog_RANLIB"; then |
5464f5a1 | 3392 | ac_ct_RANLIB=$RANLIB |
252b5132 RH |
3393 | # Extract the first word of "ranlib", so it can be a program name with args. |
3394 | set dummy ranlib; ac_word=$2 | |
5464f5a1 NN |
3395 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3396 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3397 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
3398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 3399 | else |
5464f5a1 NN |
3400 | if test -n "$ac_ct_RANLIB"; then |
3401 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6be7c12c | 3402 | else |
5464f5a1 NN |
3403 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3404 | for as_dir in $PATH | |
3405 | do | |
3406 | IFS=$as_save_IFS | |
3407 | test -z "$as_dir" && as_dir=. | |
3408 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3409 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3410 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
3411 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3412 | break 2 | |
3413 | fi | |
3414 | done | |
3415 | done | |
3416 | ||
3417 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
252b5132 RH |
3418 | fi |
3419 | fi | |
5464f5a1 NN |
3420 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3421 | if test -n "$ac_ct_RANLIB"; then | |
3422 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
3423 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
252b5132 | 3424 | else |
5464f5a1 NN |
3425 | echo "$as_me:$LINENO: result: no" >&5 |
3426 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3427 | fi |
3428 | ||
5464f5a1 | 3429 | RANLIB=$ac_ct_RANLIB |
252b5132 | 3430 | else |
5464f5a1 | 3431 | RANLIB="$ac_cv_prog_RANLIB" |
6be7c12c AO |
3432 | fi |
3433 | ||
252b5132 RH |
3434 | |
3435 | # Check whether --enable-shared or --disable-shared was given. | |
3436 | if test "${enable_shared+set}" = set; then | |
3437 | enableval="$enable_shared" | |
3438 | p=${PACKAGE-default} | |
d7040cdb SE |
3439 | case $enableval in |
3440 | yes) enable_shared=yes ;; | |
3441 | no) enable_shared=no ;; | |
3442 | *) | |
3443 | enable_shared=no | |
3444 | # Look at the argument we got. We use all the common list separators. | |
3445 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3446 | for pkg in $enableval; do | |
3447 | IFS="$lt_save_ifs" | |
3448 | if test "X$pkg" = "X$p"; then | |
3449 | enable_shared=yes | |
3450 | fi | |
3451 | done | |
3452 | IFS="$lt_save_ifs" | |
3453 | ;; | |
3454 | esac | |
252b5132 RH |
3455 | else |
3456 | enable_shared=no | |
5464f5a1 | 3457 | fi; |
252b5132 | 3458 | |
d7040cdb SE |
3459 | |
3460 | ||
3461 | ||
3462 | ||
3463 | ||
3464 | ||
3465 | ||
3466 | ||
cfbc9945 SE |
3467 | ac_ext=c |
3468 | ac_cpp='$CPP $CPPFLAGS' | |
3469 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3470 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3471 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3472 | if test -n "$ac_tool_prefix"; then | |
3473 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3474 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3475 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3476 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3477 | if test "${ac_cv_prog_CC+set}" = set; then | |
3478 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 3479 | else |
cfbc9945 SE |
3480 | if test -n "$CC"; then |
3481 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
b2ef150d | 3482 | else |
cfbc9945 SE |
3483 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3484 | for as_dir in $PATH | |
3485 | do | |
3486 | IFS=$as_save_IFS | |
3487 | test -z "$as_dir" && as_dir=. | |
3488 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3489 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3490 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3491 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3492 | break 2 | |
3493 | fi | |
3494 | done | |
3495 | done | |
c5d1701e | 3496 | |
cfbc9945 SE |
3497 | fi |
3498 | fi | |
3499 | CC=$ac_cv_prog_CC | |
3500 | if test -n "$CC"; then | |
3501 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3502 | echo "${ECHO_T}$CC" >&6 | |
252b5132 | 3503 | else |
cfbc9945 SE |
3504 | echo "$as_me:$LINENO: result: no" >&5 |
3505 | echo "${ECHO_T}no" >&6 | |
252b5132 | 3506 | fi |
cfbc9945 SE |
3507 | |
3508 | fi | |
3509 | if test -z "$ac_cv_prog_CC"; then | |
3510 | ac_ct_CC=$CC | |
3511 | # Extract the first word of "gcc", so it can be a program name with args. | |
3512 | set dummy gcc; ac_word=$2 | |
3513 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3514 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3515 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
5464f5a1 | 3516 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 3517 | else |
cfbc9945 SE |
3518 | if test -n "$ac_ct_CC"; then |
3519 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
252b5132 | 3520 | else |
cfbc9945 SE |
3521 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3522 | for as_dir in $PATH | |
3523 | do | |
3524 | IFS=$as_save_IFS | |
3525 | test -z "$as_dir" && as_dir=. | |
3526 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3527 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3528 | ac_cv_prog_ac_ct_CC="gcc" | |
3529 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3530 | break 2 | |
3531 | fi | |
3532 | done | |
3533 | done | |
3534 | ||
252b5132 RH |
3535 | fi |
3536 | fi | |
cfbc9945 SE |
3537 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3538 | if test -n "$ac_ct_CC"; then | |
3539 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3540 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
252b5132 | 3541 | else |
5464f5a1 NN |
3542 | echo "$as_me:$LINENO: result: no" >&5 |
3543 | echo "${ECHO_T}no" >&6 | |
252b5132 | 3544 | fi |
cfbc9945 SE |
3545 | |
3546 | CC=$ac_ct_CC | |
3547 | else | |
3548 | CC="$ac_cv_prog_CC" | |
3549 | fi | |
3550 | ||
3551 | if test -z "$CC"; then | |
3552 | if test -n "$ac_tool_prefix"; then | |
3553 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3554 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3555 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3556 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3557 | if test "${ac_cv_prog_CC+set}" = set; then | |
5464f5a1 | 3558 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 3559 | else |
cfbc9945 SE |
3560 | if test -n "$CC"; then |
3561 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 3562 | else |
cfbc9945 SE |
3563 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3564 | for as_dir in $PATH | |
3565 | do | |
3566 | IFS=$as_save_IFS | |
3567 | test -z "$as_dir" && as_dir=. | |
3568 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3569 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3570 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3571 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3572 | break 2 | |
3573 | fi | |
3574 | done | |
3575 | done | |
3576 | ||
252b5132 RH |
3577 | fi |
3578 | fi | |
cfbc9945 SE |
3579 | CC=$ac_cv_prog_CC |
3580 | if test -n "$CC"; then | |
3581 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3582 | echo "${ECHO_T}$CC" >&6 | |
ac48eca1 | 3583 | else |
cfbc9945 SE |
3584 | echo "$as_me:$LINENO: result: no" >&5 |
3585 | echo "${ECHO_T}no" >&6 | |
ac48eca1 | 3586 | fi |
ac48eca1 | 3587 | |
cfbc9945 SE |
3588 | fi |
3589 | if test -z "$ac_cv_prog_CC"; then | |
3590 | ac_ct_CC=$CC | |
3591 | # Extract the first word of "cc", so it can be a program name with args. | |
3592 | set dummy cc; ac_word=$2 | |
3593 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3594 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3595 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
5464f5a1 | 3596 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 3597 | else |
cfbc9945 SE |
3598 | if test -n "$ac_ct_CC"; then |
3599 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
252b5132 | 3600 | else |
cfbc9945 SE |
3601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3602 | for as_dir in $PATH | |
3603 | do | |
3604 | IFS=$as_save_IFS | |
3605 | test -z "$as_dir" && as_dir=. | |
3606 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3607 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3608 | ac_cv_prog_ac_ct_CC="cc" | |
3609 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3610 | break 2 | |
3611 | fi | |
3612 | done | |
3613 | done | |
3614 | ||
252b5132 | 3615 | fi |
cfbc9945 SE |
3616 | fi |
3617 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3618 | if test -n "$ac_ct_CC"; then | |
3619 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3620 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3621 | else | |
3622 | echo "$as_me:$LINENO: result: no" >&5 | |
3623 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3624 | fi |
3625 | ||
cfbc9945 SE |
3626 | CC=$ac_ct_CC |
3627 | else | |
3628 | CC="$ac_cv_prog_CC" | |
3629 | fi | |
252b5132 | 3630 | |
cfbc9945 SE |
3631 | fi |
3632 | if test -z "$CC"; then | |
3633 | # Extract the first word of "cc", so it can be a program name with args. | |
3634 | set dummy cc; ac_word=$2 | |
3635 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3636 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3637 | if test "${ac_cv_prog_CC+set}" = set; then | |
3638 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 3639 | else |
cfbc9945 SE |
3640 | if test -n "$CC"; then |
3641 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3642 | else | |
3643 | ac_prog_rejected=no | |
3644 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3645 | for as_dir in $PATH | |
3646 | do | |
3647 | IFS=$as_save_IFS | |
3648 | test -z "$as_dir" && as_dir=. | |
3649 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3650 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3651 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3652 | ac_prog_rejected=yes | |
3653 | continue | |
3654 | fi | |
3655 | ac_cv_prog_CC="cc" | |
3656 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3657 | break 2 | |
3658 | fi | |
3659 | done | |
3660 | done | |
3661 | ||
3662 | if test $ac_prog_rejected = yes; then | |
3663 | # We found a bogon in the path, so make sure we never use it. | |
3664 | set dummy $ac_cv_prog_CC | |
3665 | shift | |
3666 | if test $# != 0; then | |
3667 | # We chose a different compiler from the bogus one. | |
3668 | # However, it has the same basename, so the bogon will be chosen | |
3669 | # first if we set CC to just the basename; use the full file name. | |
3670 | shift | |
3671 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3672 | fi | |
3673 | fi | |
3674 | fi | |
3675 | fi | |
3676 | CC=$ac_cv_prog_CC | |
3677 | if test -n "$CC"; then | |
3678 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3679 | echo "${ECHO_T}$CC" >&6 | |
3680 | else | |
3681 | echo "$as_me:$LINENO: result: no" >&5 | |
3682 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
3683 | fi |
3684 | ||
cfbc9945 SE |
3685 | fi |
3686 | if test -z "$CC"; then | |
3687 | if test -n "$ac_tool_prefix"; then | |
3688 | for ac_prog in cl | |
3689 | do | |
3690 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3691 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3692 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3693 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3694 | if test "${ac_cv_prog_CC+set}" = set; then | |
5464f5a1 | 3695 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac48eca1 | 3696 | else |
cfbc9945 SE |
3697 | if test -n "$CC"; then |
3698 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3699 | else | |
3700 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3701 | for as_dir in $PATH | |
3702 | do | |
3703 | IFS=$as_save_IFS | |
3704 | test -z "$as_dir" && as_dir=. | |
3705 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3706 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3707 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3708 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3709 | break 2 | |
3710 | fi | |
3711 | done | |
3712 | done | |
ac48eca1 | 3713 | |
cfbc9945 SE |
3714 | fi |
3715 | fi | |
3716 | CC=$ac_cv_prog_CC | |
3717 | if test -n "$CC"; then | |
3718 | echo "$as_me:$LINENO: result: $CC" >&5 | |
3719 | echo "${ECHO_T}$CC" >&6 | |
3720 | else | |
3721 | echo "$as_me:$LINENO: result: no" >&5 | |
3722 | echo "${ECHO_T}no" >&6 | |
3723 | fi | |
ac48eca1 | 3724 | |
cfbc9945 SE |
3725 | test -n "$CC" && break |
3726 | done | |
3727 | fi | |
3728 | if test -z "$CC"; then | |
3729 | ac_ct_CC=$CC | |
3730 | for ac_prog in cl | |
3731 | do | |
3732 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3733 | set dummy $ac_prog; ac_word=$2 | |
3734 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3735 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
3736 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
3737 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3738 | else | |
3739 | if test -n "$ac_ct_CC"; then | |
3740 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3741 | else | |
3742 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3743 | for as_dir in $PATH | |
3744 | do | |
3745 | IFS=$as_save_IFS | |
3746 | test -z "$as_dir" && as_dir=. | |
3747 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3748 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3749 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
3750 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3751 | break 2 | |
3752 | fi | |
3753 | done | |
3754 | done | |
ac48eca1 | 3755 | |
cfbc9945 SE |
3756 | fi |
3757 | fi | |
3758 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3759 | if test -n "$ac_ct_CC"; then | |
3760 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3761 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
3762 | else | |
3763 | echo "$as_me:$LINENO: result: no" >&5 | |
3764 | echo "${ECHO_T}no" >&6 | |
3765 | fi | |
ac48eca1 | 3766 | |
cfbc9945 SE |
3767 | test -n "$ac_ct_CC" && break |
3768 | done | |
ac48eca1 | 3769 | |
cfbc9945 SE |
3770 | CC=$ac_ct_CC |
3771 | fi | |
55c80943 | 3772 | |
cfbc9945 | 3773 | fi |
ac48eca1 | 3774 | |
ac48eca1 | 3775 | |
7357c5b6 AM |
3776 | test -z "$CC" && { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
3777 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3778 | { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
cfbc9945 SE |
3779 | See \`config.log' for more details." >&5 |
3780 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
3781 | See \`config.log' for more details." >&2;} | |
7357c5b6 | 3782 | { (exit 1); exit 1; }; }; } |
ac48eca1 | 3783 | |
cfbc9945 SE |
3784 | # Provide some information about the compiler. |
3785 | echo "$as_me:$LINENO:" \ | |
3786 | "checking for C compiler version" >&5 | |
3787 | ac_compiler=`set X $ac_compile; echo $2` | |
3788 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
3789 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
3790 | ac_status=$? | |
3791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3792 | (exit $ac_status); } | |
3793 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
3794 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
3795 | ac_status=$? | |
3796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3797 | (exit $ac_status); } | |
3798 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
3799 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
3800 | ac_status=$? | |
3801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3802 | (exit $ac_status); } | |
ac48eca1 | 3803 | |
cfbc9945 SE |
3804 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3805 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
3806 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
5464f5a1 | 3807 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac48eca1 | 3808 | else |
cfbc9945 SE |
3809 | cat >conftest.$ac_ext <<_ACEOF |
3810 | /* confdefs.h. */ | |
3811 | _ACEOF | |
3812 | cat confdefs.h >>conftest.$ac_ext | |
3813 | cat >>conftest.$ac_ext <<_ACEOF | |
3814 | /* end confdefs.h. */ | |
ac48eca1 | 3815 | |
cfbc9945 SE |
3816 | int |
3817 | main () | |
3818 | { | |
3819 | #ifndef __GNUC__ | |
3820 | choke me | |
3821 | #endif | |
5464f5a1 | 3822 | |
cfbc9945 SE |
3823 | ; |
3824 | return 0; | |
3825 | } | |
3826 | _ACEOF | |
3827 | rm -f conftest.$ac_objext | |
3828 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3829 | (eval $ac_compile) 2>conftest.er1 | |
3830 | ac_status=$? | |
3831 | grep -v '^ *+' conftest.er1 >conftest.err | |
3832 | rm -f conftest.er1 | |
3833 | cat conftest.err >&5 | |
3834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3835 | (exit $ac_status); } && | |
7357c5b6 AM |
3836 | { ac_try='test -z "$ac_c_werror_flag" |
3837 | || test ! -s conftest.err' | |
cfbc9945 SE |
3838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3839 | (eval $ac_try) 2>&5 | |
3840 | ac_status=$? | |
3841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3842 | (exit $ac_status); }; } && | |
3843 | { ac_try='test -s conftest.$ac_objext' | |
3844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3845 | (eval $ac_try) 2>&5 | |
3846 | ac_status=$? | |
3847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3848 | (exit $ac_status); }; }; then | |
3849 | ac_compiler_gnu=yes | |
ac48eca1 | 3850 | else |
cfbc9945 SE |
3851 | echo "$as_me: failed program was:" >&5 |
3852 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3853 | ||
3854 | ac_compiler_gnu=no | |
ac48eca1 | 3855 | fi |
cfbc9945 SE |
3856 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3857 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
ac48eca1 | 3858 | |
5464f5a1 | 3859 | fi |
cfbc9945 SE |
3860 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3861 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
3862 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3863 | ac_test_CFLAGS=${CFLAGS+set} | |
3864 | ac_save_CFLAGS=$CFLAGS | |
3865 | CFLAGS="-g" | |
3866 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3867 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
3868 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
5464f5a1 | 3869 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6be7c12c | 3870 | else |
cfbc9945 SE |
3871 | cat >conftest.$ac_ext <<_ACEOF |
3872 | /* confdefs.h. */ | |
3873 | _ACEOF | |
3874 | cat confdefs.h >>conftest.$ac_ext | |
3875 | cat >>conftest.$ac_ext <<_ACEOF | |
3876 | /* end confdefs.h. */ | |
3877 | ||
3878 | int | |
3879 | main () | |
3880 | { | |
3881 | ||
3882 | ; | |
3883 | return 0; | |
3884 | } | |
3885 | _ACEOF | |
3886 | rm -f conftest.$ac_objext | |
3887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3888 | (eval $ac_compile) 2>conftest.er1 | |
3889 | ac_status=$? | |
3890 | grep -v '^ *+' conftest.er1 >conftest.err | |
3891 | rm -f conftest.er1 | |
3892 | cat conftest.err >&5 | |
3893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3894 | (exit $ac_status); } && | |
7357c5b6 AM |
3895 | { ac_try='test -z "$ac_c_werror_flag" |
3896 | || test ! -s conftest.err' | |
cfbc9945 SE |
3897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3898 | (eval $ac_try) 2>&5 | |
3899 | ac_status=$? | |
3900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3901 | (exit $ac_status); }; } && | |
3902 | { ac_try='test -s conftest.$ac_objext' | |
3903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3904 | (eval $ac_try) 2>&5 | |
3905 | ac_status=$? | |
3906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3907 | (exit $ac_status); }; }; then | |
3908 | ac_cv_prog_cc_g=yes | |
6be7c12c | 3909 | else |
cfbc9945 SE |
3910 | echo "$as_me: failed program was:" >&5 |
3911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5464f5a1 | 3912 | |
cfbc9945 | 3913 | ac_cv_prog_cc_g=no |
ac48eca1 | 3914 | fi |
cfbc9945 | 3915 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
ac48eca1 | 3916 | fi |
cfbc9945 SE |
3917 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3918 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
3919 | if test "$ac_test_CFLAGS" = set; then | |
3920 | CFLAGS=$ac_save_CFLAGS | |
3921 | elif test $ac_cv_prog_cc_g = yes; then | |
3922 | if test "$GCC" = yes; then | |
3923 | CFLAGS="-g -O2" | |
3924 | else | |
3925 | CFLAGS="-g" | |
3926 | fi | |
ac48eca1 | 3927 | else |
cfbc9945 SE |
3928 | if test "$GCC" = yes; then |
3929 | CFLAGS="-O2" | |
3930 | else | |
3931 | CFLAGS= | |
3932 | fi | |
ac48eca1 | 3933 | fi |
cfbc9945 SE |
3934 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
3935 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
3936 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
5464f5a1 | 3937 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
ac48eca1 | 3938 | else |
cfbc9945 SE |
3939 | ac_cv_prog_cc_stdc=no |
3940 | ac_save_CC=$CC | |
3941 | cat >conftest.$ac_ext <<_ACEOF | |
3942 | /* confdefs.h. */ | |
3943 | _ACEOF | |
3944 | cat confdefs.h >>conftest.$ac_ext | |
3945 | cat >>conftest.$ac_ext <<_ACEOF | |
3946 | /* end confdefs.h. */ | |
3947 | #include <stdarg.h> | |
3948 | #include <stdio.h> | |
3949 | #include <sys/types.h> | |
3950 | #include <sys/stat.h> | |
3951 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3952 | struct buf { int x; }; | |
3953 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3954 | static char *e (p, i) | |
3955 | char **p; | |
3956 | int i; | |
3957 | { | |
3958 | return p[i]; | |
3959 | } | |
3960 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3961 | { | |
3962 | char *s; | |
3963 | va_list v; | |
3964 | va_start (v,p); | |
3965 | s = g (p, va_arg (v,int)); | |
3966 | va_end (v); | |
3967 | return s; | |
3968 | } | |
5464f5a1 | 3969 | |
cfbc9945 SE |
3970 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3971 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3972 | These don't provoke an error unfortunately, instead are silently treated | |
3973 | as 'x'. The following induces an error, until -std1 is added to get | |
3974 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3975 | array size at least. It's necessary to write '\x00'==0 to get something | |
3976 | that's true only with -std1. */ | |
3977 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3978 | ||
3979 | int test (int i, double x); | |
3980 | struct s1 {int (*f) (int a);}; | |
3981 | struct s2 {int (*f) (double a);}; | |
3982 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3983 | int argc; | |
3984 | char **argv; | |
3985 | int | |
3986 | main () | |
3987 | { | |
3988 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3989 | ; | |
3990 | return 0; | |
3991 | } | |
3992 | _ACEOF | |
3993 | # Don't try gcc -ansi; that turns off useful extensions and | |
3994 | # breaks some systems' header files. | |
3995 | # AIX -qlanglvl=ansi | |
3996 | # Ultrix and OSF/1 -std1 | |
3997 | # HP-UX 10.20 and later -Ae | |
3998 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
3999 | # SVR4 -Xc -D__EXTENSIONS__ | |
4000 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4001 | do | |
4002 | CC="$ac_save_CC $ac_arg" | |
4003 | rm -f conftest.$ac_objext | |
4004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4005 | (eval $ac_compile) 2>conftest.er1 | |
4006 | ac_status=$? | |
4007 | grep -v '^ *+' conftest.er1 >conftest.err | |
4008 | rm -f conftest.er1 | |
4009 | cat conftest.err >&5 | |
4010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4011 | (exit $ac_status); } && | |
7357c5b6 AM |
4012 | { ac_try='test -z "$ac_c_werror_flag" |
4013 | || test ! -s conftest.err' | |
cfbc9945 SE |
4014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4015 | (eval $ac_try) 2>&5 | |
4016 | ac_status=$? | |
4017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4018 | (exit $ac_status); }; } && | |
4019 | { ac_try='test -s conftest.$ac_objext' | |
4020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4021 | (eval $ac_try) 2>&5 | |
4022 | ac_status=$? | |
4023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4024 | (exit $ac_status); }; }; then | |
4025 | ac_cv_prog_cc_stdc=$ac_arg | |
4026 | break | |
ac48eca1 | 4027 | else |
cfbc9945 SE |
4028 | echo "$as_me: failed program was:" >&5 |
4029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ac48eca1 | 4030 | |
5464f5a1 | 4031 | fi |
cfbc9945 | 4032 | rm -f conftest.err conftest.$ac_objext |
5464f5a1 | 4033 | done |
cfbc9945 SE |
4034 | rm -f conftest.$ac_ext conftest.$ac_objext |
4035 | CC=$ac_save_CC | |
5464f5a1 | 4036 | |
ac48eca1 | 4037 | fi |
252b5132 | 4038 | |
cfbc9945 SE |
4039 | case "x$ac_cv_prog_cc_stdc" in |
4040 | x|xno) | |
4041 | echo "$as_me:$LINENO: result: none needed" >&5 | |
4042 | echo "${ECHO_T}none needed" >&6 ;; | |
4043 | *) | |
4044 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
4045 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
4046 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
4047 | esac | |
6be7c12c | 4048 | |
cfbc9945 SE |
4049 | # Some people use a C++ compiler to compile C. Since we use `exit', |
4050 | # in C++ we need to declare it. In case someone uses the same compiler | |
4051 | # for both compiling C and C++ we need to have the C++ compiler decide | |
4052 | # the declaration of exit, since it's the most demanding environment. | |
4053 | cat >conftest.$ac_ext <<_ACEOF | |
4054 | #ifndef __cplusplus | |
4055 | choke me | |
4056 | #endif | |
4057 | _ACEOF | |
4058 | rm -f conftest.$ac_objext | |
4059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4060 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 | 4061 | ac_status=$? |
cfbc9945 SE |
4062 | grep -v '^ *+' conftest.er1 >conftest.err |
4063 | rm -f conftest.er1 | |
4064 | cat conftest.err >&5 | |
5464f5a1 | 4065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
cfbc9945 | 4066 | (exit $ac_status); } && |
7357c5b6 AM |
4067 | { ac_try='test -z "$ac_c_werror_flag" |
4068 | || test ! -s conftest.err' | |
cfbc9945 SE |
4069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4070 | (eval $ac_try) 2>&5 | |
5464f5a1 NN |
4071 | ac_status=$? |
4072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
cfbc9945 SE |
4073 | (exit $ac_status); }; } && |
4074 | { ac_try='test -s conftest.$ac_objext' | |
4075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4076 | (eval $ac_try) 2>&5 | |
d70c5fc7 NC |
4077 | ac_status=$? |
4078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
cfbc9945 SE |
4079 | (exit $ac_status); }; }; then |
4080 | for ac_declaration in \ | |
4081 | '' \ | |
4082 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
4083 | 'extern "C" void std::exit (int); using std::exit;' \ | |
4084 | 'extern "C" void exit (int) throw ();' \ | |
4085 | 'extern "C" void exit (int);' \ | |
4086 | 'void exit (int);' | |
4087 | do | |
4088 | cat >conftest.$ac_ext <<_ACEOF | |
4089 | /* confdefs.h. */ | |
4090 | _ACEOF | |
4091 | cat confdefs.h >>conftest.$ac_ext | |
4092 | cat >>conftest.$ac_ext <<_ACEOF | |
4093 | /* end confdefs.h. */ | |
4094 | $ac_declaration | |
4095 | #include <stdlib.h> | |
4096 | int | |
4097 | main () | |
4098 | { | |
4099 | exit (42); | |
4100 | ; | |
4101 | return 0; | |
4102 | } | |
4103 | _ACEOF | |
4104 | rm -f conftest.$ac_objext | |
4105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4106 | (eval $ac_compile) 2>conftest.er1 | |
4107 | ac_status=$? | |
4108 | grep -v '^ *+' conftest.er1 >conftest.err | |
4109 | rm -f conftest.er1 | |
4110 | cat conftest.err >&5 | |
4111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4112 | (exit $ac_status); } && | |
7357c5b6 AM |
4113 | { ac_try='test -z "$ac_c_werror_flag" |
4114 | || test ! -s conftest.err' | |
cfbc9945 SE |
4115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4116 | (eval $ac_try) 2>&5 | |
4117 | ac_status=$? | |
4118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4119 | (exit $ac_status); }; } && | |
4120 | { ac_try='test -s conftest.$ac_objext' | |
4121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4122 | (eval $ac_try) 2>&5 | |
4123 | ac_status=$? | |
4124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4125 | (exit $ac_status); }; }; then | |
4126 | : | |
b2ef150d | 4127 | else |
cfbc9945 SE |
4128 | echo "$as_me: failed program was:" >&5 |
4129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5464f5a1 | 4130 | |
cfbc9945 SE |
4131 | continue |
4132 | fi | |
4133 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4134 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
4135 | /* confdefs.h. */ |
4136 | _ACEOF | |
4137 | cat confdefs.h >>conftest.$ac_ext | |
4138 | cat >>conftest.$ac_ext <<_ACEOF | |
4139 | /* end confdefs.h. */ | |
cfbc9945 | 4140 | $ac_declaration |
5464f5a1 NN |
4141 | int |
4142 | main () | |
4143 | { | |
cfbc9945 | 4144 | exit (42); |
5464f5a1 NN |
4145 | ; |
4146 | return 0; | |
4147 | } | |
4148 | _ACEOF | |
cfbc9945 SE |
4149 | rm -f conftest.$ac_objext |
4150 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4151 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
4152 | ac_status=$? |
4153 | grep -v '^ *+' conftest.er1 >conftest.err | |
4154 | rm -f conftest.er1 | |
4155 | cat conftest.err >&5 | |
4156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4157 | (exit $ac_status); } && | |
7357c5b6 AM |
4158 | { ac_try='test -z "$ac_c_werror_flag" |
4159 | || test ! -s conftest.err' | |
5464f5a1 NN |
4160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4161 | (eval $ac_try) 2>&5 | |
4162 | ac_status=$? | |
4163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4164 | (exit $ac_status); }; } && | |
cfbc9945 | 4165 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
4166 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4167 | (eval $ac_try) 2>&5 | |
4168 | ac_status=$? | |
4169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4170 | (exit $ac_status); }; }; then | |
cfbc9945 | 4171 | break |
b2ef150d | 4172 | else |
5464f5a1 NN |
4173 | echo "$as_me: failed program was:" >&5 |
4174 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4175 | ||
b2ef150d | 4176 | fi |
cfbc9945 SE |
4177 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4178 | done | |
4179 | rm -f conftest* | |
4180 | if test -n "$ac_declaration"; then | |
4181 | echo '#ifdef __cplusplus' >>confdefs.h | |
4182 | echo $ac_declaration >>confdefs.h | |
4183 | echo '#endif' >>confdefs.h | |
6ec7057a | 4184 | fi |
cfbc9945 | 4185 | |
92f01d61 | 4186 | else |
cfbc9945 SE |
4187 | echo "$as_me: failed program was:" >&5 |
4188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
92f01d61 | 4189 | |
cfbc9945 SE |
4190 | fi |
4191 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4192 | ac_ext=c | |
4193 | ac_cpp='$CPP $CPPFLAGS' | |
4194 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4195 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4196 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
92f01d61 JM |
4197 | |
4198 | ||
cfbc9945 SE |
4199 | cat >>confdefs.h <<\_ACEOF |
4200 | #define _GNU_SOURCE 1 | |
4201 | _ACEOF | |
a1ac8190 | 4202 | |
c428fa83 | 4203 | |
7357c5b6 AM |
4204 | ac_ext=c |
4205 | ac_cpp='$CPP $CPPFLAGS' | |
4206 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4207 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4208 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4209 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
4210 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
4211 | # On Suns, sometimes $CPP names a directory. | |
4212 | if test -n "$CPP" && test -d "$CPP"; then | |
4213 | CPP= | |
4214 | fi | |
4215 | if test -z "$CPP"; then | |
4216 | if test "${ac_cv_prog_CPP+set}" = set; then | |
4217 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4218 | else | |
4219 | # Double quotes because CPP needs to be expanded | |
4220 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4221 | do | |
4222 | ac_preproc_ok=false | |
4223 | for ac_c_preproc_warn_flag in '' yes | |
4224 | do | |
4225 | # Use a header file that comes with gcc, so configuring glibc | |
4226 | # with a fresh cross-compiler works. | |
4227 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4228 | # <limits.h> exists even on freestanding compilers. | |
4229 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4230 | # not just through cpp. "Syntax error" is here to catch this case. | |
4231 | cat >conftest.$ac_ext <<_ACEOF | |
4232 | /* confdefs.h. */ | |
4233 | _ACEOF | |
4234 | cat confdefs.h >>conftest.$ac_ext | |
4235 | cat >>conftest.$ac_ext <<_ACEOF | |
4236 | /* end confdefs.h. */ | |
4237 | #ifdef __STDC__ | |
4238 | # include <limits.h> | |
4239 | #else | |
4240 | # include <assert.h> | |
4241 | #endif | |
4242 | Syntax error | |
4243 | _ACEOF | |
4244 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4245 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4246 | ac_status=$? | |
4247 | grep -v '^ *+' conftest.er1 >conftest.err | |
4248 | rm -f conftest.er1 | |
4249 | cat conftest.err >&5 | |
4250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4251 | (exit $ac_status); } >/dev/null; then | |
4252 | if test -s conftest.err; then | |
4253 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4254 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4255 | else | |
4256 | ac_cpp_err= | |
4257 | fi | |
4258 | else | |
4259 | ac_cpp_err=yes | |
4260 | fi | |
4261 | if test -z "$ac_cpp_err"; then | |
4262 | : | |
4263 | else | |
4264 | echo "$as_me: failed program was:" >&5 | |
4265 | sed 's/^/| /' conftest.$ac_ext >&5 | |
cfbc9945 | 4266 | |
7357c5b6 AM |
4267 | # Broken: fails on valid input. |
4268 | continue | |
4269 | fi | |
4270 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4271 | |
7357c5b6 AM |
4272 | # OK, works on sane cases. Now check whether non-existent headers |
4273 | # can be detected and how. | |
4274 | cat >conftest.$ac_ext <<_ACEOF | |
4275 | /* confdefs.h. */ | |
4276 | _ACEOF | |
4277 | cat confdefs.h >>conftest.$ac_ext | |
4278 | cat >>conftest.$ac_ext <<_ACEOF | |
4279 | /* end confdefs.h. */ | |
4280 | #include <ac_nonexistent.h> | |
4281 | _ACEOF | |
4282 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4283 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4284 | ac_status=$? | |
4285 | grep -v '^ *+' conftest.er1 >conftest.err | |
4286 | rm -f conftest.er1 | |
4287 | cat conftest.err >&5 | |
4288 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4289 | (exit $ac_status); } >/dev/null; then | |
4290 | if test -s conftest.err; then | |
4291 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4292 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4293 | else | |
4294 | ac_cpp_err= | |
4295 | fi | |
4296 | else | |
4297 | ac_cpp_err=yes | |
4298 | fi | |
4299 | if test -z "$ac_cpp_err"; then | |
4300 | # Broken: success on invalid input. | |
4301 | continue | |
4302 | else | |
4303 | echo "$as_me: failed program was:" >&5 | |
4304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4305 | |
7357c5b6 AM |
4306 | # Passes both tests. |
4307 | ac_preproc_ok=: | |
4308 | break | |
4309 | fi | |
4310 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4311 | |
7357c5b6 AM |
4312 | done |
4313 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4314 | rm -f conftest.err conftest.$ac_ext | |
4315 | if $ac_preproc_ok; then | |
4316 | break | |
4317 | fi | |
d7040cdb | 4318 | |
7357c5b6 AM |
4319 | done |
4320 | ac_cv_prog_CPP=$CPP | |
d7040cdb | 4321 | |
7357c5b6 AM |
4322 | fi |
4323 | CPP=$ac_cv_prog_CPP | |
4324 | else | |
4325 | ac_cv_prog_CPP=$CPP | |
4326 | fi | |
4327 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
4328 | echo "${ECHO_T}$CPP" >&6 | |
4329 | ac_preproc_ok=false | |
4330 | for ac_c_preproc_warn_flag in '' yes | |
4331 | do | |
4332 | # Use a header file that comes with gcc, so configuring glibc | |
4333 | # with a fresh cross-compiler works. | |
4334 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4335 | # <limits.h> exists even on freestanding compilers. | |
4336 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4337 | # not just through cpp. "Syntax error" is here to catch this case. | |
4338 | cat >conftest.$ac_ext <<_ACEOF | |
4339 | /* confdefs.h. */ | |
4340 | _ACEOF | |
4341 | cat confdefs.h >>conftest.$ac_ext | |
4342 | cat >>conftest.$ac_ext <<_ACEOF | |
4343 | /* end confdefs.h. */ | |
4344 | #ifdef __STDC__ | |
4345 | # include <limits.h> | |
4346 | #else | |
4347 | # include <assert.h> | |
4348 | #endif | |
4349 | Syntax error | |
4350 | _ACEOF | |
4351 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4352 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4353 | ac_status=$? | |
4354 | grep -v '^ *+' conftest.er1 >conftest.err | |
4355 | rm -f conftest.er1 | |
4356 | cat conftest.err >&5 | |
4357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4358 | (exit $ac_status); } >/dev/null; then | |
4359 | if test -s conftest.err; then | |
4360 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4361 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4362 | else | |
4363 | ac_cpp_err= | |
4364 | fi | |
4365 | else | |
4366 | ac_cpp_err=yes | |
4367 | fi | |
4368 | if test -z "$ac_cpp_err"; then | |
4369 | : | |
4370 | else | |
4371 | echo "$as_me: failed program was:" >&5 | |
4372 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4373 | |
7357c5b6 AM |
4374 | # Broken: fails on valid input. |
4375 | continue | |
4376 | fi | |
4377 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4378 | |
7357c5b6 AM |
4379 | # OK, works on sane cases. Now check whether non-existent headers |
4380 | # can be detected and how. | |
4381 | cat >conftest.$ac_ext <<_ACEOF | |
4382 | /* confdefs.h. */ | |
4383 | _ACEOF | |
4384 | cat confdefs.h >>conftest.$ac_ext | |
4385 | cat >>conftest.$ac_ext <<_ACEOF | |
4386 | /* end confdefs.h. */ | |
4387 | #include <ac_nonexistent.h> | |
4388 | _ACEOF | |
4389 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4390 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4391 | ac_status=$? | |
4392 | grep -v '^ *+' conftest.er1 >conftest.err | |
4393 | rm -f conftest.er1 | |
4394 | cat conftest.err >&5 | |
4395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4396 | (exit $ac_status); } >/dev/null; then | |
4397 | if test -s conftest.err; then | |
4398 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4399 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4400 | else | |
4401 | ac_cpp_err= | |
4402 | fi | |
4403 | else | |
4404 | ac_cpp_err=yes | |
4405 | fi | |
4406 | if test -z "$ac_cpp_err"; then | |
4407 | # Broken: success on invalid input. | |
4408 | continue | |
4409 | else | |
4410 | echo "$as_me: failed program was:" >&5 | |
4411 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4412 | |
7357c5b6 AM |
4413 | # Passes both tests. |
4414 | ac_preproc_ok=: | |
4415 | break | |
4416 | fi | |
4417 | rm -f conftest.err conftest.$ac_ext | |
d7040cdb | 4418 | |
7357c5b6 AM |
4419 | done |
4420 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
4421 | rm -f conftest.err conftest.$ac_ext | |
4422 | if $ac_preproc_ok; then | |
4423 | : | |
4424 | else | |
4425 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 | |
4426 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4427 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
4428 | See \`config.log' for more details." >&5 | |
4429 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
4430 | See \`config.log' for more details." >&2;} | |
4431 | { (exit 1); exit 1; }; }; } | |
4432 | fi | |
d7040cdb | 4433 | |
7357c5b6 AM |
4434 | ac_ext=c |
4435 | ac_cpp='$CPP $CPPFLAGS' | |
4436 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4437 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4438 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 4439 | |
d7040cdb | 4440 | |
7357c5b6 AM |
4441 | echo "$as_me:$LINENO: checking for egrep" >&5 |
4442 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
4443 | if test "${ac_cv_prog_egrep+set}" = set; then | |
4444 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4445 | else | |
4446 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
4447 | then ac_cv_prog_egrep='grep -E' | |
4448 | else ac_cv_prog_egrep='egrep' | |
4449 | fi | |
4450 | fi | |
4451 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
4452 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
4453 | EGREP=$ac_cv_prog_egrep | |
d7040cdb SE |
4454 | |
4455 | ||
7357c5b6 AM |
4456 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4457 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
4458 | if test "${ac_cv_header_stdc+set}" = set; then | |
4459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4460 | else | |
4461 | cat >conftest.$ac_ext <<_ACEOF | |
4462 | /* confdefs.h. */ | |
4463 | _ACEOF | |
4464 | cat confdefs.h >>conftest.$ac_ext | |
4465 | cat >>conftest.$ac_ext <<_ACEOF | |
4466 | /* end confdefs.h. */ | |
4467 | #include <stdlib.h> | |
4468 | #include <stdarg.h> | |
4469 | #include <string.h> | |
4470 | #include <float.h> | |
d7040cdb | 4471 | |
7357c5b6 AM |
4472 | int |
4473 | main () | |
4474 | { | |
d7040cdb | 4475 | |
7357c5b6 AM |
4476 | ; |
4477 | return 0; | |
4478 | } | |
4479 | _ACEOF | |
4480 | rm -f conftest.$ac_objext | |
4481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4482 | (eval $ac_compile) 2>conftest.er1 | |
4483 | ac_status=$? | |
4484 | grep -v '^ *+' conftest.er1 >conftest.err | |
4485 | rm -f conftest.er1 | |
4486 | cat conftest.err >&5 | |
4487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4488 | (exit $ac_status); } && | |
4489 | { ac_try='test -z "$ac_c_werror_flag" | |
4490 | || test ! -s conftest.err' | |
4491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4492 | (eval $ac_try) 2>&5 | |
4493 | ac_status=$? | |
4494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4495 | (exit $ac_status); }; } && | |
4496 | { ac_try='test -s conftest.$ac_objext' | |
4497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4498 | (eval $ac_try) 2>&5 | |
4499 | ac_status=$? | |
4500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4501 | (exit $ac_status); }; }; then | |
4502 | ac_cv_header_stdc=yes | |
c428fa83 | 4503 | else |
7357c5b6 AM |
4504 | echo "$as_me: failed program was:" >&5 |
4505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4506 | |
7357c5b6 AM |
4507 | ac_cv_header_stdc=no |
4508 | fi | |
4509 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
d7040cdb | 4510 | |
7357c5b6 AM |
4511 | if test $ac_cv_header_stdc = yes; then |
4512 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
4513 | cat >conftest.$ac_ext <<_ACEOF | |
4514 | /* confdefs.h. */ | |
4515 | _ACEOF | |
4516 | cat confdefs.h >>conftest.$ac_ext | |
4517 | cat >>conftest.$ac_ext <<_ACEOF | |
4518 | /* end confdefs.h. */ | |
4519 | #include <string.h> | |
d7040cdb | 4520 | |
7357c5b6 AM |
4521 | _ACEOF |
4522 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4523 | $EGREP "memchr" >/dev/null 2>&1; then | |
4524 | : | |
4525 | else | |
4526 | ac_cv_header_stdc=no | |
4527 | fi | |
4528 | rm -f conftest* | |
d7040cdb | 4529 | |
7357c5b6 | 4530 | fi |
d7040cdb | 4531 | |
7357c5b6 AM |
4532 | if test $ac_cv_header_stdc = yes; then |
4533 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
4534 | cat >conftest.$ac_ext <<_ACEOF | |
4535 | /* confdefs.h. */ | |
4536 | _ACEOF | |
4537 | cat confdefs.h >>conftest.$ac_ext | |
4538 | cat >>conftest.$ac_ext <<_ACEOF | |
4539 | /* end confdefs.h. */ | |
4540 | #include <stdlib.h> | |
d7040cdb | 4541 | |
7357c5b6 AM |
4542 | _ACEOF |
4543 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
4544 | $EGREP "free" >/dev/null 2>&1; then | |
4545 | : | |
4546 | else | |
4547 | ac_cv_header_stdc=no | |
4548 | fi | |
4549 | rm -f conftest* | |
d7040cdb | 4550 | |
7357c5b6 | 4551 | fi |
d7040cdb | 4552 | |
7357c5b6 AM |
4553 | if test $ac_cv_header_stdc = yes; then |
4554 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
4555 | if test "$cross_compiling" = yes; then | |
4556 | : | |
4557 | else | |
4558 | cat >conftest.$ac_ext <<_ACEOF | |
4559 | /* confdefs.h. */ | |
4560 | _ACEOF | |
4561 | cat confdefs.h >>conftest.$ac_ext | |
4562 | cat >>conftest.$ac_ext <<_ACEOF | |
4563 | /* end confdefs.h. */ | |
4564 | #include <ctype.h> | |
4565 | #if ((' ' & 0x0FF) == 0x020) | |
4566 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4567 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4568 | #else | |
4569 | # define ISLOWER(c) \ | |
4570 | (('a' <= (c) && (c) <= 'i') \ | |
4571 | || ('j' <= (c) && (c) <= 'r') \ | |
4572 | || ('s' <= (c) && (c) <= 'z')) | |
4573 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4574 | #endif | |
d7040cdb | 4575 | |
7357c5b6 AM |
4576 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4577 | int | |
4578 | main () | |
4579 | { | |
4580 | int i; | |
4581 | for (i = 0; i < 256; i++) | |
4582 | if (XOR (islower (i), ISLOWER (i)) | |
4583 | || toupper (i) != TOUPPER (i)) | |
4584 | exit(2); | |
4585 | exit (0); | |
4586 | } | |
4587 | _ACEOF | |
4588 | rm -f conftest$ac_exeext | |
4589 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4590 | (eval $ac_link) 2>&5 | |
4591 | ac_status=$? | |
4592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4593 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4594 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4595 | (eval $ac_try) 2>&5 | |
4596 | ac_status=$? | |
4597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4598 | (exit $ac_status); }; }; then | |
4599 | : | |
d7040cdb | 4600 | else |
7357c5b6 AM |
4601 | echo "$as_me: program exited with status $ac_status" >&5 |
4602 | echo "$as_me: failed program was:" >&5 | |
4603 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4604 | |
7357c5b6 AM |
4605 | ( exit $ac_status ) |
4606 | ac_cv_header_stdc=no | |
4607 | fi | |
4608 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
4609 | fi | |
4610 | fi | |
4611 | fi | |
4612 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
4613 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
4614 | if test $ac_cv_header_stdc = yes; then | |
d7040cdb | 4615 | |
7357c5b6 AM |
4616 | cat >>confdefs.h <<\_ACEOF |
4617 | #define STDC_HEADERS 1 | |
4618 | _ACEOF | |
d7040cdb | 4619 | |
7357c5b6 | 4620 | fi |
d7040cdb | 4621 | |
7357c5b6 | 4622 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
d7040cdb SE |
4623 | |
4624 | ||
4625 | ||
4626 | ||
c428fa83 | 4627 | |
d7040cdb SE |
4628 | |
4629 | ||
4630 | ||
4631 | ||
7357c5b6 AM |
4632 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4633 | inttypes.h stdint.h unistd.h | |
4634 | do | |
4635 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4636 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4637 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4638 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4640 | else | |
4641 | cat >conftest.$ac_ext <<_ACEOF | |
4642 | /* confdefs.h. */ | |
4643 | _ACEOF | |
4644 | cat confdefs.h >>conftest.$ac_ext | |
4645 | cat >>conftest.$ac_ext <<_ACEOF | |
4646 | /* end confdefs.h. */ | |
4647 | $ac_includes_default | |
d7040cdb | 4648 | |
7357c5b6 AM |
4649 | #include <$ac_header> |
4650 | _ACEOF | |
4651 | rm -f conftest.$ac_objext | |
4652 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4653 | (eval $ac_compile) 2>conftest.er1 | |
4654 | ac_status=$? | |
4655 | grep -v '^ *+' conftest.er1 >conftest.err | |
4656 | rm -f conftest.er1 | |
4657 | cat conftest.err >&5 | |
4658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4659 | (exit $ac_status); } && | |
4660 | { ac_try='test -z "$ac_c_werror_flag" | |
4661 | || test ! -s conftest.err' | |
4662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4663 | (eval $ac_try) 2>&5 | |
4664 | ac_status=$? | |
4665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4666 | (exit $ac_status); }; } && | |
4667 | { ac_try='test -s conftest.$ac_objext' | |
4668 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4669 | (eval $ac_try) 2>&5 | |
4670 | ac_status=$? | |
4671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4672 | (exit $ac_status); }; }; then | |
4673 | eval "$as_ac_Header=yes" | |
4674 | else | |
4675 | echo "$as_me: failed program was:" >&5 | |
4676 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4677 | |
7357c5b6 AM |
4678 | eval "$as_ac_Header=no" |
4679 | fi | |
4680 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4681 | fi | |
4682 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4683 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4684 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4685 | cat >>confdefs.h <<_ACEOF | |
4686 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4687 | _ACEOF | |
d7040cdb | 4688 | |
7357c5b6 AM |
4689 | fi |
4690 | ||
4691 | done | |
4692 | ||
4693 | ||
4694 | ||
4695 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
4696 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
4697 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 | |
4698 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
d7040cdb | 4699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7357c5b6 AM |
4700 | fi |
4701 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
4702 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 | |
d7040cdb | 4703 | else |
7357c5b6 AM |
4704 | # Is the header compilable? |
4705 | echo "$as_me:$LINENO: checking minix/config.h usability" >&5 | |
4706 | echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6 | |
4707 | cat >conftest.$ac_ext <<_ACEOF | |
4708 | /* confdefs.h. */ | |
4709 | _ACEOF | |
4710 | cat confdefs.h >>conftest.$ac_ext | |
4711 | cat >>conftest.$ac_ext <<_ACEOF | |
4712 | /* end confdefs.h. */ | |
4713 | $ac_includes_default | |
4714 | #include <minix/config.h> | |
4715 | _ACEOF | |
4716 | rm -f conftest.$ac_objext | |
4717 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4718 | (eval $ac_compile) 2>conftest.er1 | |
4719 | ac_status=$? | |
4720 | grep -v '^ *+' conftest.er1 >conftest.err | |
4721 | rm -f conftest.er1 | |
4722 | cat conftest.err >&5 | |
4723 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4724 | (exit $ac_status); } && | |
4725 | { ac_try='test -z "$ac_c_werror_flag" | |
4726 | || test ! -s conftest.err' | |
4727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4728 | (eval $ac_try) 2>&5 | |
4729 | ac_status=$? | |
4730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4731 | (exit $ac_status); }; } && | |
4732 | { ac_try='test -s conftest.$ac_objext' | |
4733 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4734 | (eval $ac_try) 2>&5 | |
4735 | ac_status=$? | |
4736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4737 | (exit $ac_status); }; }; then | |
4738 | ac_header_compiler=yes | |
4739 | else | |
4740 | echo "$as_me: failed program was:" >&5 | |
4741 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4742 | |
7357c5b6 | 4743 | ac_header_compiler=no |
d7040cdb | 4744 | fi |
7357c5b6 AM |
4745 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4746 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4747 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
d7040cdb | 4748 | |
7357c5b6 AM |
4749 | # Is the header present? |
4750 | echo "$as_me:$LINENO: checking minix/config.h presence" >&5 | |
4751 | echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6 | |
4752 | cat >conftest.$ac_ext <<_ACEOF | |
4753 | /* confdefs.h. */ | |
4754 | _ACEOF | |
4755 | cat confdefs.h >>conftest.$ac_ext | |
4756 | cat >>conftest.$ac_ext <<_ACEOF | |
4757 | /* end confdefs.h. */ | |
4758 | #include <minix/config.h> | |
4759 | _ACEOF | |
4760 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4761 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4762 | ac_status=$? | |
4763 | grep -v '^ *+' conftest.er1 >conftest.err | |
4764 | rm -f conftest.er1 | |
4765 | cat conftest.err >&5 | |
4766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4767 | (exit $ac_status); } >/dev/null; then | |
4768 | if test -s conftest.err; then | |
4769 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4770 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4771 | else | |
4772 | ac_cpp_err= | |
4773 | fi | |
4774 | else | |
4775 | ac_cpp_err=yes | |
4776 | fi | |
4777 | if test -z "$ac_cpp_err"; then | |
4778 | ac_header_preproc=yes | |
4779 | else | |
4780 | echo "$as_me: failed program was:" >&5 | |
4781 | sed 's/^/| /' conftest.$ac_ext >&5 | |
d7040cdb | 4782 | |
7357c5b6 AM |
4783 | ac_header_preproc=no |
4784 | fi | |
4785 | rm -f conftest.err conftest.$ac_ext | |
4786 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4787 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
d7040cdb | 4788 | |
7357c5b6 AM |
4789 | # So? What about this header? |
4790 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4791 | yes:no: ) | |
4792 | { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4793 | echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4794 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5 | |
4795 | echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;} | |
4796 | ac_header_preproc=yes | |
4797 | ;; | |
4798 | no:yes:* ) | |
4799 | { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5 | |
4800 | echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;} | |
4801 | { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5 | |
4802 | echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;} | |
4803 | { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5 | |
4804 | echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;} | |
4805 | { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4806 | echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4807 | { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5 | |
4808 | echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;} | |
4809 | { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5 | |
4810 | echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;} | |
4811 | ( | |
4812 | cat <<\_ASBOX | |
4813 | ## ------------------------------------------ ## | |
4814 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4815 | ## ------------------------------------------ ## | |
4816 | _ASBOX | |
4817 | ) | | |
4818 | sed "s/^/$as_me: WARNING: /" >&2 | |
4819 | ;; | |
4820 | esac | |
4821 | echo "$as_me:$LINENO: checking for minix/config.h" >&5 | |
4822 | echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6 | |
4823 | if test "${ac_cv_header_minix_config_h+set}" = set; then | |
4824 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4825 | else | |
4826 | ac_cv_header_minix_config_h=$ac_header_preproc | |
4827 | fi | |
4828 | echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 | |
4829 | echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6 | |
4830 | ||
4831 | fi | |
4832 | if test $ac_cv_header_minix_config_h = yes; then | |
4833 | MINIX=yes | |
4834 | else | |
4835 | MINIX= | |
4836 | fi | |
d7040cdb SE |
4837 | |
4838 | ||
7357c5b6 | 4839 | if test "$MINIX" = yes; then |
d7040cdb | 4840 | |
7357c5b6 AM |
4841 | cat >>confdefs.h <<\_ACEOF |
4842 | #define _POSIX_SOURCE 1 | |
4843 | _ACEOF | |
d7040cdb SE |
4844 | |
4845 | ||
7357c5b6 AM |
4846 | cat >>confdefs.h <<\_ACEOF |
4847 | #define _POSIX_1_SOURCE 2 | |
4848 | _ACEOF | |
d7040cdb SE |
4849 | |
4850 | ||
7357c5b6 AM |
4851 | cat >>confdefs.h <<\_ACEOF |
4852 | #define _MINIX 1 | |
4853 | _ACEOF | |
d7040cdb | 4854 | |
7357c5b6 | 4855 | fi |
d7040cdb SE |
4856 | |
4857 | ||
4858 | ||
7357c5b6 AM |
4859 | echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5 |
4860 | echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6 | |
4861 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then | |
d7040cdb SE |
4862 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4863 | else | |
7357c5b6 AM |
4864 | cat >conftest.$ac_ext <<_ACEOF |
4865 | /* confdefs.h. */ | |
4866 | _ACEOF | |
4867 | cat confdefs.h >>conftest.$ac_ext | |
4868 | cat >>conftest.$ac_ext <<_ACEOF | |
4869 | /* end confdefs.h. */ | |
d7040cdb | 4870 | |
7357c5b6 AM |
4871 | # define __EXTENSIONS__ 1 |
4872 | $ac_includes_default | |
4873 | int | |
4874 | main () | |
4875 | { | |
d7040cdb | 4876 | |
7357c5b6 AM |
4877 | ; |
4878 | return 0; | |
4879 | } | |
4880 | _ACEOF | |
4881 | rm -f conftest.$ac_objext | |
4882 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4883 | (eval $ac_compile) 2>conftest.er1 | |
4884 | ac_status=$? | |
4885 | grep -v '^ *+' conftest.er1 >conftest.err | |
4886 | rm -f conftest.er1 | |
4887 | cat conftest.err >&5 | |
4888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4889 | (exit $ac_status); } && | |
4890 | { ac_try='test -z "$ac_c_werror_flag" | |
4891 | || test ! -s conftest.err' | |
4892 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4893 | (eval $ac_try) 2>&5 | |
4894 | ac_status=$? | |
4895 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4896 | (exit $ac_status); }; } && | |
4897 | { ac_try='test -s conftest.$ac_objext' | |
4898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4899 | (eval $ac_try) 2>&5 | |
4900 | ac_status=$? | |
4901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4902 | (exit $ac_status); }; }; then | |
4903 | ac_cv_safe_to_define___extensions__=yes | |
d7040cdb | 4904 | else |
7357c5b6 AM |
4905 | echo "$as_me: failed program was:" >&5 |
4906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4907 | ||
4908 | ac_cv_safe_to_define___extensions__=no | |
d7040cdb | 4909 | fi |
7357c5b6 AM |
4910 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
4911 | fi | |
4912 | echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 | |
4913 | echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6 | |
4914 | test $ac_cv_safe_to_define___extensions__ = yes && | |
4915 | cat >>confdefs.h <<\_ACEOF | |
4916 | #define __EXTENSIONS__ 1 | |
4917 | _ACEOF | |
d7040cdb | 4918 | |
7357c5b6 AM |
4919 | cat >>confdefs.h <<\_ACEOF |
4920 | #define _ALL_SOURCE 1 | |
4921 | _ACEOF | |
d7040cdb | 4922 | |
7357c5b6 AM |
4923 | cat >>confdefs.h <<\_ACEOF |
4924 | #define _GNU_SOURCE 1 | |
4925 | _ACEOF | |
d7040cdb | 4926 | |
7357c5b6 AM |
4927 | cat >>confdefs.h <<\_ACEOF |
4928 | #define _POSIX_PTHREAD_SEMANTICS 1 | |
4929 | _ACEOF | |
d7040cdb | 4930 | |
7357c5b6 AM |
4931 | cat >>confdefs.h <<\_ACEOF |
4932 | #define _TANDEM_SOURCE 1 | |
4933 | _ACEOF | |
d7040cdb SE |
4934 | |
4935 | ||
08c13eba JB |
4936 | |
4937 | case "${target}" in | |
85f77068 JB |
4938 | sparc-*-solaris*|i[3-7]86-*-solaris*) |
4939 | # On native 32bit sparc and ia32 solaris, large-file and procfs support | |
4940 | # are mutually exclusive; and without procfs support, the elf module | |
08c13eba JB |
4941 | # cannot provide certain routines such as elfcore_write_prpsinfo |
4942 | # or elfcore_write_prstatus. So unless the user explicitly requested | |
4943 | # large-file support through the --enable-largefile switch, disable | |
4944 | # large-file support in favor of procfs support. | |
4945 | if test "${target}" = "${host}" -a "$enable_largefile" != 'yes'; then | |
4946 | enable_largefile="no" | |
4947 | fi | |
4948 | ;; | |
4949 | esac | |
4950 | ||
d053aef8 JK |
4951 | # Check whether --enable-largefile or --disable-largefile was given. |
4952 | if test "${enable_largefile+set}" = set; then | |
4953 | enableval="$enable_largefile" | |
4954 | ||
4955 | fi; | |
4956 | if test "$enable_largefile" != no; then | |
4957 | ||
4958 | echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 | |
4959 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6 | |
4960 | if test "${ac_cv_sys_largefile_CC+set}" = set; then | |
4961 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4962 | else | |
4963 | ac_cv_sys_largefile_CC=no | |
4964 | if test "$GCC" != yes; then | |
4965 | ac_save_CC=$CC | |
4966 | while :; do | |
4967 | # IRIX 6.2 and later do not support large files by default, | |
4968 | # so use the C compiler's -n32 option if that helps. | |
4969 | cat >conftest.$ac_ext <<_ACEOF | |
4970 | /* confdefs.h. */ | |
4971 | _ACEOF | |
4972 | cat confdefs.h >>conftest.$ac_ext | |
4973 | cat >>conftest.$ac_ext <<_ACEOF | |
4974 | /* end confdefs.h. */ | |
4975 | #include <sys/types.h> | |
4976 | /* Check that off_t can represent 2**63 - 1 correctly. | |
4977 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
4978 | since some C++ compilers masquerading as C compilers | |
4979 | incorrectly reject 9223372036854775807. */ | |
4980 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
4981 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
4982 | && LARGE_OFF_T % 2147483647 == 1) | |
4983 | ? 1 : -1]; | |
4984 | int | |
4985 | main () | |
4986 | { | |
4987 | ||
4988 | ; | |
4989 | return 0; | |
4990 | } | |
4991 | _ACEOF | |
4992 | rm -f conftest.$ac_objext | |
4993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4994 | (eval $ac_compile) 2>conftest.er1 | |
4995 | ac_status=$? | |
4996 | grep -v '^ *+' conftest.er1 >conftest.err | |
4997 | rm -f conftest.er1 | |
4998 | cat conftest.err >&5 | |
4999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5000 | (exit $ac_status); } && | |
5001 | { ac_try='test -z "$ac_c_werror_flag" | |
5002 | || test ! -s conftest.err' | |
5003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5004 | (eval $ac_try) 2>&5 | |
5005 | ac_status=$? | |
5006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5007 | (exit $ac_status); }; } && | |
5008 | { ac_try='test -s conftest.$ac_objext' | |
5009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5010 | (eval $ac_try) 2>&5 | |
5011 | ac_status=$? | |
5012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5013 | (exit $ac_status); }; }; then | |
5014 | break | |
5015 | else | |
5016 | echo "$as_me: failed program was:" >&5 | |
5017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5018 | ||
5019 | fi | |
5020 | rm -f conftest.err conftest.$ac_objext | |
5021 | CC="$CC -n32" | |
5022 | rm -f conftest.$ac_objext | |
5023 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5024 | (eval $ac_compile) 2>conftest.er1 | |
5025 | ac_status=$? | |
5026 | grep -v '^ *+' conftest.er1 >conftest.err | |
5027 | rm -f conftest.er1 | |
5028 | cat conftest.err >&5 | |
5029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5030 | (exit $ac_status); } && | |
5031 | { ac_try='test -z "$ac_c_werror_flag" | |
5032 | || test ! -s conftest.err' | |
5033 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5034 | (eval $ac_try) 2>&5 | |
5035 | ac_status=$? | |
5036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5037 | (exit $ac_status); }; } && | |
5038 | { ac_try='test -s conftest.$ac_objext' | |
5039 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5040 | (eval $ac_try) 2>&5 | |
5041 | ac_status=$? | |
5042 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5043 | (exit $ac_status); }; }; then | |
5044 | ac_cv_sys_largefile_CC=' -n32'; break | |
5045 | else | |
5046 | echo "$as_me: failed program was:" >&5 | |
5047 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5048 | ||
5049 | fi | |
5050 | rm -f conftest.err conftest.$ac_objext | |
5051 | break | |
5052 | done | |
5053 | CC=$ac_save_CC | |
5054 | rm -f conftest.$ac_ext | |
5055 | fi | |
5056 | fi | |
5057 | echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 | |
5058 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6 | |
5059 | if test "$ac_cv_sys_largefile_CC" != no; then | |
5060 | CC=$CC$ac_cv_sys_largefile_CC | |
5061 | fi | |
5062 | ||
5063 | echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 | |
5064 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6 | |
5065 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then | |
5066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5067 | else | |
5068 | while :; do | |
5069 | ac_cv_sys_file_offset_bits=no | |
5070 | cat >conftest.$ac_ext <<_ACEOF | |
5071 | /* confdefs.h. */ | |
5072 | _ACEOF | |
5073 | cat confdefs.h >>conftest.$ac_ext | |
5074 | cat >>conftest.$ac_ext <<_ACEOF | |
5075 | /* end confdefs.h. */ | |
5076 | #include <sys/types.h> | |
5077 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5078 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5079 | since some C++ compilers masquerading as C compilers | |
5080 | incorrectly reject 9223372036854775807. */ | |
5081 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5082 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5083 | && LARGE_OFF_T % 2147483647 == 1) | |
5084 | ? 1 : -1]; | |
5085 | int | |
5086 | main () | |
5087 | { | |
5088 | ||
5089 | ; | |
5090 | return 0; | |
5091 | } | |
5092 | _ACEOF | |
5093 | rm -f conftest.$ac_objext | |
5094 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5095 | (eval $ac_compile) 2>conftest.er1 | |
5096 | ac_status=$? | |
5097 | grep -v '^ *+' conftest.er1 >conftest.err | |
5098 | rm -f conftest.er1 | |
5099 | cat conftest.err >&5 | |
5100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5101 | (exit $ac_status); } && | |
5102 | { ac_try='test -z "$ac_c_werror_flag" | |
5103 | || test ! -s conftest.err' | |
5104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5105 | (eval $ac_try) 2>&5 | |
5106 | ac_status=$? | |
5107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5108 | (exit $ac_status); }; } && | |
5109 | { ac_try='test -s conftest.$ac_objext' | |
5110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5111 | (eval $ac_try) 2>&5 | |
5112 | ac_status=$? | |
5113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5114 | (exit $ac_status); }; }; then | |
5115 | break | |
5116 | else | |
5117 | echo "$as_me: failed program was:" >&5 | |
5118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5119 | ||
5120 | fi | |
5121 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5122 | cat >conftest.$ac_ext <<_ACEOF | |
5123 | /* confdefs.h. */ | |
5124 | _ACEOF | |
5125 | cat confdefs.h >>conftest.$ac_ext | |
5126 | cat >>conftest.$ac_ext <<_ACEOF | |
5127 | /* end confdefs.h. */ | |
5128 | #define _FILE_OFFSET_BITS 64 | |
5129 | #include <sys/types.h> | |
5130 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5131 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5132 | since some C++ compilers masquerading as C compilers | |
5133 | incorrectly reject 9223372036854775807. */ | |
5134 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5135 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5136 | && LARGE_OFF_T % 2147483647 == 1) | |
5137 | ? 1 : -1]; | |
5138 | int | |
5139 | main () | |
5140 | { | |
5141 | ||
5142 | ; | |
5143 | return 0; | |
5144 | } | |
5145 | _ACEOF | |
5146 | rm -f conftest.$ac_objext | |
5147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5148 | (eval $ac_compile) 2>conftest.er1 | |
5149 | ac_status=$? | |
5150 | grep -v '^ *+' conftest.er1 >conftest.err | |
5151 | rm -f conftest.er1 | |
5152 | cat conftest.err >&5 | |
5153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5154 | (exit $ac_status); } && | |
5155 | { ac_try='test -z "$ac_c_werror_flag" | |
5156 | || test ! -s conftest.err' | |
5157 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5158 | (eval $ac_try) 2>&5 | |
5159 | ac_status=$? | |
5160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5161 | (exit $ac_status); }; } && | |
5162 | { ac_try='test -s conftest.$ac_objext' | |
5163 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5164 | (eval $ac_try) 2>&5 | |
5165 | ac_status=$? | |
5166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5167 | (exit $ac_status); }; }; then | |
5168 | ac_cv_sys_file_offset_bits=64; break | |
5169 | else | |
5170 | echo "$as_me: failed program was:" >&5 | |
5171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5172 | ||
5173 | fi | |
5174 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5175 | break | |
5176 | done | |
5177 | fi | |
5178 | echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 | |
5179 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6 | |
5180 | if test "$ac_cv_sys_file_offset_bits" != no; then | |
5181 | ||
5182 | cat >>confdefs.h <<_ACEOF | |
5183 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
5184 | _ACEOF | |
5185 | ||
5186 | fi | |
5187 | rm -f conftest* | |
5188 | echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 | |
5189 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6 | |
5190 | if test "${ac_cv_sys_large_files+set}" = set; then | |
5191 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5192 | else | |
5193 | while :; do | |
5194 | ac_cv_sys_large_files=no | |
5195 | cat >conftest.$ac_ext <<_ACEOF | |
5196 | /* confdefs.h. */ | |
5197 | _ACEOF | |
5198 | cat confdefs.h >>conftest.$ac_ext | |
5199 | cat >>conftest.$ac_ext <<_ACEOF | |
5200 | /* end confdefs.h. */ | |
5201 | #include <sys/types.h> | |
5202 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5203 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5204 | since some C++ compilers masquerading as C compilers | |
5205 | incorrectly reject 9223372036854775807. */ | |
5206 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5207 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5208 | && LARGE_OFF_T % 2147483647 == 1) | |
5209 | ? 1 : -1]; | |
5210 | int | |
5211 | main () | |
5212 | { | |
5213 | ||
5214 | ; | |
5215 | return 0; | |
5216 | } | |
5217 | _ACEOF | |
5218 | rm -f conftest.$ac_objext | |
5219 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5220 | (eval $ac_compile) 2>conftest.er1 | |
5221 | ac_status=$? | |
5222 | grep -v '^ *+' conftest.er1 >conftest.err | |
5223 | rm -f conftest.er1 | |
5224 | cat conftest.err >&5 | |
5225 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5226 | (exit $ac_status); } && | |
5227 | { ac_try='test -z "$ac_c_werror_flag" | |
5228 | || test ! -s conftest.err' | |
5229 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5230 | (eval $ac_try) 2>&5 | |
5231 | ac_status=$? | |
5232 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5233 | (exit $ac_status); }; } && | |
5234 | { ac_try='test -s conftest.$ac_objext' | |
5235 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5236 | (eval $ac_try) 2>&5 | |
5237 | ac_status=$? | |
5238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5239 | (exit $ac_status); }; }; then | |
5240 | break | |
5241 | else | |
5242 | echo "$as_me: failed program was:" >&5 | |
5243 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5244 | ||
5245 | fi | |
5246 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5247 | cat >conftest.$ac_ext <<_ACEOF | |
5248 | /* confdefs.h. */ | |
5249 | _ACEOF | |
5250 | cat confdefs.h >>conftest.$ac_ext | |
5251 | cat >>conftest.$ac_ext <<_ACEOF | |
5252 | /* end confdefs.h. */ | |
5253 | #define _LARGE_FILES 1 | |
5254 | #include <sys/types.h> | |
5255 | /* Check that off_t can represent 2**63 - 1 correctly. | |
5256 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
5257 | since some C++ compilers masquerading as C compilers | |
5258 | incorrectly reject 9223372036854775807. */ | |
5259 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) | |
5260 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 | |
5261 | && LARGE_OFF_T % 2147483647 == 1) | |
5262 | ? 1 : -1]; | |
5263 | int | |
5264 | main () | |
5265 | { | |
5266 | ||
5267 | ; | |
5268 | return 0; | |
5269 | } | |
5270 | _ACEOF | |
5271 | rm -f conftest.$ac_objext | |
5272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5273 | (eval $ac_compile) 2>conftest.er1 | |
5274 | ac_status=$? | |
5275 | grep -v '^ *+' conftest.er1 >conftest.err | |
5276 | rm -f conftest.er1 | |
5277 | cat conftest.err >&5 | |
5278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5279 | (exit $ac_status); } && | |
5280 | { ac_try='test -z "$ac_c_werror_flag" | |
5281 | || test ! -s conftest.err' | |
5282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5283 | (eval $ac_try) 2>&5 | |
5284 | ac_status=$? | |
5285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5286 | (exit $ac_status); }; } && | |
5287 | { ac_try='test -s conftest.$ac_objext' | |
5288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5289 | (eval $ac_try) 2>&5 | |
5290 | ac_status=$? | |
5291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5292 | (exit $ac_status); }; }; then | |
5293 | ac_cv_sys_large_files=1; break | |
5294 | else | |
5295 | echo "$as_me: failed program was:" >&5 | |
5296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5297 | ||
5298 | fi | |
5299 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5300 | break | |
5301 | done | |
5302 | fi | |
5303 | echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 | |
5304 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6 | |
5305 | if test "$ac_cv_sys_large_files" != no; then | |
5306 | ||
5307 | cat >>confdefs.h <<_ACEOF | |
5308 | #define _LARGE_FILES $ac_cv_sys_large_files | |
5309 | _ACEOF | |
5310 | ||
5311 | fi | |
5312 | rm -f conftest* | |
5313 | fi | |
5314 | ||
d7040cdb | 5315 | |
718a6fd8 SE |
5316 | case `pwd` in |
5317 | *\ * | *\ *) | |
5318 | { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
5319 | echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
5320 | esac | |
d7040cdb SE |
5321 | |
5322 | ||
7357c5b6 | 5323 | |
718a6fd8 SE |
5324 | macro_version='2.2.6' |
5325 | macro_revision='1.3012' | |
7357c5b6 AM |
5326 | |
5327 | ||
5328 | ||
5329 | ||
5330 | ||
5331 | ||
7357c5b6 AM |
5332 | |
5333 | ||
5334 | ||
5335 | ||
5336 | ||
5337 | ||
5338 | ||
718a6fd8 | 5339 | ltmain="$ac_aux_dir/ltmain.sh" |
7357c5b6 AM |
5340 | |
5341 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
5342 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | |
5343 | if test "${lt_cv_path_SED+set}" = set; then | |
5344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5345 | else | |
5346 | # Loop through the user's path and test for sed and gsed. | |
5347 | # Then use that list of sed's as ones to test for truncation. | |
5348 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5349 | for as_dir in $PATH | |
5350 | do | |
5351 | IFS=$as_save_IFS | |
5352 | test -z "$as_dir" && as_dir=. | |
5353 | for lt_ac_prog in sed gsed; do | |
5354 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5355 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | |
5356 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
5357 | fi | |
5358 | done | |
5359 | done | |
5360 | done | |
5361 | IFS=$as_save_IFS | |
5362 | lt_ac_max=0 | |
5363 | lt_ac_count=0 | |
5364 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
5365 | # along with /bin/sed that truncates output. | |
5366 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
5367 | test ! -f $lt_ac_sed && continue | |
5368 | cat /dev/null > conftest.in | |
5369 | lt_ac_count=0 | |
5370 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
5371 | # Check for GNU sed and select it if it is found. | |
5372 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
5373 | lt_cv_path_SED=$lt_ac_sed | |
5374 | break | |
5375 | fi | |
5376 | while true; do | |
5377 | cat conftest.in conftest.in >conftest.tmp | |
5378 | mv conftest.tmp conftest.in | |
5379 | cp conftest.in conftest.nl | |
5380 | echo >>conftest.nl | |
5381 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
5382 | cmp -s conftest.out conftest.nl || break | |
5383 | # 10000 chars as input seems more than enough | |
5384 | test $lt_ac_count -gt 10 && break | |
5385 | lt_ac_count=`expr $lt_ac_count + 1` | |
5386 | if test $lt_ac_count -gt $lt_ac_max; then | |
5387 | lt_ac_max=$lt_ac_count | |
5388 | lt_cv_path_SED=$lt_ac_sed | |
5389 | fi | |
5390 | done | |
5391 | done | |
5392 | ||
5393 | fi | |
5394 | ||
5395 | SED=$lt_cv_path_SED | |
5396 | ||
5397 | echo "$as_me:$LINENO: result: $SED" >&5 | |
5398 | echo "${ECHO_T}$SED" >&6 | |
5399 | ||
5400 | test -z "$SED" && SED=sed | |
5401 | Xsed="$SED -e 1s/^X//" | |
5402 | ||
5403 | ||
5404 | ||
5405 | ||
5406 | ||
5407 | ||
5408 | ||
5409 | ||
5410 | ||
5411 | ||
5412 | ||
5413 | echo "$as_me:$LINENO: checking for fgrep" >&5 | |
5414 | echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 | |
5415 | if test "${ac_cv_prog_fgrep+set}" = set; then | |
5416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5417 | else | |
5418 | if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1 | |
5419 | then ac_cv_prog_fgrep='grep -F' | |
5420 | else ac_cv_prog_fgrep='fgrep' | |
5421 | fi | |
5422 | fi | |
5423 | echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5 | |
5424 | echo "${ECHO_T}$ac_cv_prog_fgrep" >&6 | |
5425 | FGREP=$ac_cv_prog_fgrep | |
5426 | ||
5427 | ||
5428 | test -z "$GREP" && GREP=grep | |
5429 | ||
5430 | ||
5431 | ||
5432 | ||
5433 | ||
5434 | ||
5435 | ||
5436 | ||
5437 | ||
5438 | ||
5439 | ||
5440 | ||
5441 | ||
5442 | ||
5443 | ||
5444 | ||
5445 | ||
5446 | ||
5447 | ||
5448 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | |
5449 | if test "${with_gnu_ld+set}" = set; then | |
5450 | withval="$with_gnu_ld" | |
5451 | test "$withval" = no || with_gnu_ld=yes | |
5452 | else | |
5453 | with_gnu_ld=no | |
5454 | fi; | |
5455 | ac_prog=ld | |
5456 | if test "$GCC" = yes; then | |
5457 | # Check if gcc -print-prog-name=ld gives a path. | |
5458 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
5459 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | |
5460 | case $host in | |
5461 | *-*-mingw*) | |
5462 | # gcc leaves a trailing carriage return which upsets mingw | |
5463 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5464 | *) | |
5465 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5466 | esac | |
5467 | case $ac_prog in | |
5468 | # Accept absolute paths. | |
5469 | [\\/]* | ?:[\\/]*) | |
5470 | re_direlt='/[^/][^/]*/\.\./' | |
5471 | # Canonicalize the pathname of ld | |
5472 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5473 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
d7040cdb | 5474 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
cfbc9945 SE |
5475 | done |
5476 | test -z "$LD" && LD="$ac_prog" | |
5477 | ;; | |
5bd8253d | 5478 | "") |
cfbc9945 SE |
5479 | # If it fails, then pretend we aren't using GCC. |
5480 | ac_prog=ld | |
5bd8253d L |
5481 | ;; |
5482 | *) | |
cfbc9945 SE |
5483 | # If it is relative, then search for the first ld in PATH. |
5484 | with_gnu_ld=unknown | |
5bd8253d | 5485 | ;; |
cfbc9945 SE |
5486 | esac |
5487 | elif test "$with_gnu_ld" = yes; then | |
5488 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
5489 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | |
5490 | else | |
5491 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
5492 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | |
5493 | fi | |
5494 | if test "${lt_cv_path_LD+set}" = set; then | |
5495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5496 | else | |
5497 | if test -z "$LD"; then | |
d7040cdb | 5498 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
cfbc9945 | 5499 | for ac_dir in $PATH; do |
d7040cdb | 5500 | IFS="$lt_save_ifs" |
cfbc9945 SE |
5501 | test -z "$ac_dir" && ac_dir=. |
5502 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5503 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5504 | # Check to see if the program is GNU ld. I'd rather use --version, | |
d7040cdb | 5505 | # but apparently some variants of GNU ld only accept -v. |
cfbc9945 | 5506 | # Break only if it was the GNU/non-GNU ld that we prefer. |
d7040cdb SE |
5507 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
5508 | *GNU* | *'with BFD'*) | |
cfbc9945 | 5509 | test "$with_gnu_ld" != no && break |
d7040cdb SE |
5510 | ;; |
5511 | *) | |
cfbc9945 | 5512 | test "$with_gnu_ld" != yes && break |
d7040cdb SE |
5513 | ;; |
5514 | esac | |
cfbc9945 SE |
5515 | fi |
5516 | done | |
d7040cdb | 5517 | IFS="$lt_save_ifs" |
cfbc9945 SE |
5518 | else |
5519 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
9e9b66a9 | 5520 | fi |
1ad12f97 NC |
5521 | fi |
5522 | ||
cfbc9945 SE |
5523 | LD="$lt_cv_path_LD" |
5524 | if test -n "$LD"; then | |
5525 | echo "$as_me:$LINENO: result: $LD" >&5 | |
5526 | echo "${ECHO_T}$LD" >&6 | |
5527 | else | |
5528 | echo "$as_me:$LINENO: result: no" >&5 | |
5529 | echo "${ECHO_T}no" >&6 | |
5530 | fi | |
5531 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
5532 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
5533 | { (exit 1); exit 1; }; } | |
5534 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
5535 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | |
5536 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
5537 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5538 | else | |
d7040cdb SE |
5539 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
5540 | case `$LD -v 2>&1 </dev/null` in | |
5541 | *GNU* | *'with BFD'*) | |
cfbc9945 | 5542 | lt_cv_prog_gnu_ld=yes |
d7040cdb SE |
5543 | ;; |
5544 | *) | |
cfbc9945 | 5545 | lt_cv_prog_gnu_ld=no |
d7040cdb SE |
5546 | ;; |
5547 | esac | |
49c96104 | 5548 | fi |
cfbc9945 SE |
5549 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
5550 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | |
5551 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
49c96104 | 5552 | |
9e9b66a9 | 5553 | |
cfbc9945 | 5554 | |
d7040cdb SE |
5555 | |
5556 | ||
5557 | ||
5558 | ||
5559 | ||
5560 | ||
d7040cdb SE |
5561 | echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5562 | echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6 | |
cfbc9945 SE |
5563 | if test "${lt_cv_path_NM+set}" = set; then |
5564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5565 | else | |
5566 | if test -n "$NM"; then | |
5567 | # Let the user override the test. | |
5568 | lt_cv_path_NM="$NM" | |
5569 | else | |
d7040cdb SE |
5570 | lt_nm_to_check="${ac_tool_prefix}nm" |
5571 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5572 | lt_nm_to_check="$lt_nm_to_check nm" | |
5573 | fi | |
5574 | for lt_tmp_nm in $lt_nm_to_check; do | |
5575 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5576 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5577 | IFS="$lt_save_ifs" | |
5578 | test -z "$ac_dir" && ac_dir=. | |
5579 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5580 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5581 | # Check to see if the nm accepts a BSD-compat flag. | |
5582 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5583 | # nm: unknown option "B" ignored | |
5584 | # Tru64's nm complains that /dev/null is an invalid object file | |
5585 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5586 | */dev/null* | *'Invalid file or object type'*) | |
5587 | lt_cv_path_NM="$tmp_nm -B" | |
5588 | break | |
5589 | ;; | |
5590 | *) | |
5591 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5592 | */dev/null*) | |
5593 | lt_cv_path_NM="$tmp_nm -p" | |
5594 | break | |
5595 | ;; | |
5596 | *) | |
5597 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5598 | continue # so that we can try to find one that supports BSD flags | |
5599 | ;; | |
5600 | esac | |
5601 | ;; | |
5602 | esac | |
cfbc9945 | 5603 | fi |
d7040cdb SE |
5604 | done |
5605 | IFS="$lt_save_ifs" | |
cfbc9945 | 5606 | done |
d7040cdb | 5607 | : ${lt_cv_path_NM=no} |
cfbc9945 | 5608 | fi |
a2d91340 | 5609 | fi |
d7040cdb SE |
5610 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
5611 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | |
5612 | if test "$lt_cv_path_NM" != "no"; then | |
5613 | NM="$lt_cv_path_NM" | |
cfbc9945 | 5614 | else |
d7040cdb SE |
5615 | # Didn't find any BSD compatible name lister, look for dumpbin. |
5616 | if test -n "$ac_tool_prefix"; then | |
5617 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
5618 | do | |
5619 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5620 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5621 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5622 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5623 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then | |
cfbc9945 | 5624 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 5625 | else |
d7040cdb SE |
5626 | if test -n "$DUMPBIN"; then |
5627 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5628 | else | |
5629 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5630 | for as_dir in $PATH | |
5631 | do | |
5632 | IFS=$as_save_IFS | |
5633 | test -z "$as_dir" && as_dir=. | |
5634 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5635 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5636 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
5637 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5638 | break 2 | |
5639 | fi | |
5640 | done | |
5641 | done | |
5464f5a1 | 5642 | |
d7040cdb SE |
5643 | fi |
5644 | fi | |
5645 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
5646 | if test -n "$DUMPBIN"; then | |
5647 | echo "$as_me:$LINENO: result: $DUMPBIN" >&5 | |
5648 | echo "${ECHO_T}$DUMPBIN" >&6 | |
5649 | else | |
5650 | echo "$as_me:$LINENO: result: no" >&5 | |
5651 | echo "${ECHO_T}no" >&6 | |
5652 | fi | |
d5fbea21 | 5653 | |
d7040cdb SE |
5654 | test -n "$DUMPBIN" && break |
5655 | done | |
5656 | fi | |
5657 | if test -z "$DUMPBIN"; then | |
5658 | ac_ct_DUMPBIN=$DUMPBIN | |
5659 | for ac_prog in "dumpbin -symbols" "link -dump -symbols" | |
5660 | do | |
5661 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5662 | set dummy $ac_prog; ac_word=$2 | |
5663 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5664 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5665 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then | |
5666 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5667 | else | |
5668 | if test -n "$ac_ct_DUMPBIN"; then | |
5669 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5670 | else | |
5671 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5672 | for as_dir in $PATH | |
5673 | do | |
5674 | IFS=$as_save_IFS | |
5675 | test -z "$as_dir" && as_dir=. | |
5676 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5677 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5678 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
5679 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5680 | break 2 | |
cfbc9945 | 5681 | fi |
d7040cdb SE |
5682 | done |
5683 | done | |
d5fbea21 | 5684 | |
d7040cdb SE |
5685 | fi |
5686 | fi | |
5687 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5688 | if test -n "$ac_ct_DUMPBIN"; then | |
5689 | echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 | |
5690 | echo "${ECHO_T}$ac_ct_DUMPBIN" >&6 | |
5691 | else | |
5692 | echo "$as_me:$LINENO: result: no" >&5 | |
5693 | echo "${ECHO_T}no" >&6 | |
5694 | fi | |
d5fbea21 | 5695 | |
d7040cdb SE |
5696 | test -n "$ac_ct_DUMPBIN" && break |
5697 | done | |
5698 | test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":" | |
24443139 | 5699 | |
d7040cdb SE |
5700 | DUMPBIN=$ac_ct_DUMPBIN |
5701 | fi | |
24443139 | 5702 | |
24443139 | 5703 | |
d7040cdb SE |
5704 | if test "$DUMPBIN" != ":"; then |
5705 | NM="$DUMPBIN" | |
cfbc9945 | 5706 | fi |
d7040cdb SE |
5707 | fi |
5708 | test -z "$NM" && NM=nm | |
a703a6ea | 5709 | |
f5385ebf | 5710 | |
cfbc9945 | 5711 | |
24443139 AS |
5712 | |
5713 | ||
5714 | ||
d7040cdb SE |
5715 | echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 |
5716 | echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6 | |
5717 | if test "${lt_cv_nm_interface+set}" = set; then | |
5718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5719 | else | |
5720 | lt_cv_nm_interface="BSD nm" | |
5721 | echo "int some_variable = 0;" > conftest.$ac_ext | |
29670fb9 | 5722 | (eval echo "\"\$as_me:5722: $ac_compile\"" >&5) |
d7040cdb SE |
5723 | (eval "$ac_compile" 2>conftest.err) |
5724 | cat conftest.err >&5 | |
29670fb9 | 5725 | (eval echo "\"\$as_me:5725: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
d7040cdb SE |
5726 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5727 | cat conftest.err >&5 | |
29670fb9 | 5728 | (eval echo "\"\$as_me:5728: output\"" >&5) |
d7040cdb SE |
5729 | cat conftest.out >&5 |
5730 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5731 | lt_cv_nm_interface="MS dumpbin" | |
5732 | fi | |
5733 | rm -f conftest* | |
cfbc9945 | 5734 | fi |
d7040cdb SE |
5735 | echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 |
5736 | echo "${ECHO_T}$lt_cv_nm_interface" >&6 | |
a703a6ea | 5737 | |
d7040cdb SE |
5738 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
5739 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | |
5740 | LN_S=$as_ln_s | |
5741 | if test "$LN_S" = "ln -s"; then | |
5742 | echo "$as_me:$LINENO: result: yes" >&5 | |
5743 | echo "${ECHO_T}yes" >&6 | |
5744 | else | |
5745 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
5746 | echo "${ECHO_T}no, using $LN_S" >&6 | |
5747 | fi | |
252b5132 | 5748 | |
cfbc9945 SE |
5749 | # find the maximum length of command line arguments |
5750 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
5751 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | |
5752 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
5753 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5754 | else | |
5755 | i=0 | |
5756 | teststring="ABCD" | |
5464f5a1 | 5757 | |
cfbc9945 SE |
5758 | case $build_os in |
5759 | msdosdjgpp*) | |
5760 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5761 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5762 | # during glob expansion). Even if it were fixed, the result of this | |
5763 | # check would be larger than it should be. | |
5764 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5765 | ;; | |
5464f5a1 | 5766 | |
d7040cdb SE |
5767 | gnu*) |
5768 | # Under GNU Hurd, this test is not required because there is | |
5769 | # no limit to the length of command line arguments. | |
5770 | # Libtool will interpret -1 as no limit whatsoever | |
5771 | lt_cv_sys_max_cmd_len=-1; | |
5772 | ;; | |
5773 | ||
718a6fd8 | 5774 | cygwin* | mingw* | cegcc*) |
cfbc9945 SE |
5775 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5776 | # about 5 minutes as the teststring grows exponentially. | |
5777 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5778 | # you end up with a "frozen" computer, even though with patience | |
5779 | # the test eventually succeeds (with a max line length of 256k). | |
5780 | # Instead, let's just punt: use the minimum linelength reported by | |
5781 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5782 | lt_cv_sys_max_cmd_len=8192; | |
5783 | ;; | |
5464f5a1 | 5784 | |
cfbc9945 SE |
5785 | amigaos*) |
5786 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5787 | # So we just punt and use a minimum line length of 8192. | |
5788 | lt_cv_sys_max_cmd_len=8192; | |
5789 | ;; | |
5464f5a1 | 5790 | |
cfbc9945 SE |
5791 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5792 | # This has been around since 386BSD, at least. Likely further. | |
5793 | if test -x /sbin/sysctl; then | |
5794 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5795 | elif test -x /usr/sbin/sysctl; then | |
5796 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5797 | else | |
d7040cdb | 5798 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
cfbc9945 SE |
5799 | fi |
5800 | # And add a safety zone | |
5801 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5802 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5803 | ;; | |
d7040cdb SE |
5804 | |
5805 | interix*) | |
5806 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5807 | lt_cv_sys_max_cmd_len=196608 | |
5808 | ;; | |
5809 | ||
5810 | osf*) | |
5811 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5812 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5813 | # nice to cause kernel panics so lets avoid the loop below. | |
5814 | # First set a reasonable default. | |
5815 | lt_cv_sys_max_cmd_len=16384 | |
5816 | # | |
5817 | if test -x /sbin/sysconfig; then | |
5818 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5819 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5820 | esac | |
5821 | fi | |
5822 | ;; | |
5823 | sco3.2v5*) | |
5824 | lt_cv_sys_max_cmd_len=102400 | |
5825 | ;; | |
5826 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5827 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5828 | if test -n "$kargmax"; then | |
5829 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5830 | else | |
5831 | lt_cv_sys_max_cmd_len=32768 | |
5832 | fi | |
5833 | ;; | |
5834 | *) | |
718a6fd8 SE |
5835 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5836 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
79887925 L |
5837 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5838 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5839 | else | |
5840 | # Make teststring a little bigger before we do anything with it. | |
5841 | # a 1K string should be a reasonable start. | |
5842 | for i in 1 2 3 4 5 6 7 8 ; do | |
5843 | teststring=$teststring$teststring | |
5844 | done | |
5845 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5846 | # If test is not a shell built-in, we'll probably end up computing a | |
5847 | # maximum length that is only half of the actual maximum length, but | |
5848 | # we can't tell. | |
5849 | while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ | |
5850 | = "XX$teststring$teststring"; } >/dev/null 2>&1 && | |
5851 | test $i != 17 # 1/2 MB should be enough | |
5852 | do | |
5853 | i=`expr $i + 1` | |
5854 | teststring=$teststring$teststring | |
5855 | done | |
5856 | # Only check the string length outside the loop. | |
5857 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5858 | teststring= | |
5859 | # Add a significant safety factor because C++ compilers can tack on | |
5860 | # massive amounts of additional arguments before passing them to the | |
5861 | # linker. It appears as though 1/2 is a usable value. | |
5862 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5863 | fi | |
d7040cdb | 5864 | ;; |
cfbc9945 | 5865 | esac |
5464f5a1 | 5866 | |
252b5132 | 5867 | fi |
cfbc9945 | 5868 | |
d7040cdb | 5869 | if test -n $lt_cv_sys_max_cmd_len ; then |
cfbc9945 SE |
5870 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
5871 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | |
5464f5a1 | 5872 | else |
cfbc9945 SE |
5873 | echo "$as_me:$LINENO: result: none" >&5 |
5874 | echo "${ECHO_T}none" >&6 | |
5464f5a1 | 5875 | fi |
d7040cdb | 5876 | max_cmd_len=$lt_cv_sys_max_cmd_len |
252b5132 | 5877 | |
cfbc9945 | 5878 | |
252b5132 | 5879 | |
cfbc9945 | 5880 | |
cfbc9945 | 5881 | |
d7040cdb | 5882 | |
d7040cdb SE |
5883 | : ${CP="cp -f"} |
5884 | : ${MV="mv -f"} | |
5885 | : ${RM="rm -f"} | |
5886 | ||
5887 | echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 | |
5888 | echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6 | |
5889 | # Try some XSI features | |
5890 | xsi_shell=no | |
5891 | ( _lt_dummy="a/b/c" | |
5892 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
718a6fd8 SE |
5893 | = c,a/b,, \ |
5894 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5895 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
d7040cdb SE |
5896 | && xsi_shell=yes |
5897 | echo "$as_me:$LINENO: result: $xsi_shell" >&5 | |
5898 | echo "${ECHO_T}$xsi_shell" >&6 | |
5899 | ||
5900 | ||
5901 | echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 | |
5902 | echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6 | |
5903 | lt_shell_append=no | |
5904 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5905 | >/dev/null 2>&1 \ | |
5906 | && lt_shell_append=yes | |
5907 | echo "$as_me:$LINENO: result: $lt_shell_append" >&5 | |
5908 | echo "${ECHO_T}$lt_shell_append" >&6 | |
5909 | ||
5910 | ||
5911 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5912 | lt_unset=unset | |
5464f5a1 | 5913 | else |
d7040cdb | 5914 | lt_unset=false |
5464f5a1 | 5915 | fi |
252b5132 | 5916 | |
d7040cdb SE |
5917 | |
5918 | ||
5919 | ||
5920 | ||
5921 | # test EBCDIC or ASCII | |
5922 | case `echo X|tr X '\101'` in | |
5923 | A) # ASCII based system | |
5924 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5925 | lt_SP2NL='tr \040 \012' | |
5926 | lt_NL2SP='tr \015\012 \040\040' | |
5927 | ;; | |
5928 | *) # EBCDIC based system | |
5929 | lt_SP2NL='tr \100 \n' | |
5930 | lt_NL2SP='tr \r\n \100\100' | |
5931 | ;; | |
5932 | esac | |
5933 | ||
5934 | ||
5935 | ||
5936 | ||
5937 | ||
5938 | ||
5939 | ||
5940 | ||
5941 | ||
5942 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
5943 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | |
5944 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
5464f5a1 NN |
5945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5946 | else | |
d7040cdb SE |
5947 | lt_cv_ld_reload_flag='-r' |
5948 | fi | |
5949 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
5950 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | |
5951 | reload_flag=$lt_cv_ld_reload_flag | |
5952 | case $reload_flag in | |
5953 | "" | " "*) ;; | |
5954 | *) reload_flag=" $reload_flag" ;; | |
5955 | esac | |
5956 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5957 | case $host_os in | |
5958 | darwin*) | |
5959 | if test "$GCC" = yes; then | |
5960 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5961 | else | |
5962 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5963 | fi | |
5964 | ;; | |
5965 | esac | |
5966 | ||
5967 | ||
5968 | ||
5969 | ||
5970 | ||
5971 | ||
5972 | ||
5973 | ||
5974 | ||
718a6fd8 SE |
5975 | if test -n "$ac_tool_prefix"; then |
5976 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5977 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5978 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
5979 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5980 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then | |
5981 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5982 | else | |
5983 | if test -n "$OBJDUMP"; then | |
5984 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5985 | else | |
5986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5987 | for as_dir in $PATH | |
5988 | do | |
5989 | IFS=$as_save_IFS | |
5990 | test -z "$as_dir" && as_dir=. | |
5991 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5992 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5993 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
5994 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5995 | break 2 | |
5996 | fi | |
5997 | done | |
5998 | done | |
5999 | ||
6000 | fi | |
6001 | fi | |
6002 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
6003 | if test -n "$OBJDUMP"; then | |
6004 | echo "$as_me:$LINENO: result: $OBJDUMP" >&5 | |
6005 | echo "${ECHO_T}$OBJDUMP" >&6 | |
6006 | else | |
6007 | echo "$as_me:$LINENO: result: no" >&5 | |
6008 | echo "${ECHO_T}no" >&6 | |
6009 | fi | |
6010 | ||
6011 | fi | |
6012 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
6013 | ac_ct_OBJDUMP=$OBJDUMP | |
6014 | # Extract the first word of "objdump", so it can be a program name with args. | |
6015 | set dummy objdump; ac_word=$2 | |
6016 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6017 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6018 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then | |
6019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6020 | else | |
6021 | if test -n "$ac_ct_OBJDUMP"; then | |
6022 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
6023 | else | |
6024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6025 | for as_dir in $PATH | |
6026 | do | |
6027 | IFS=$as_save_IFS | |
6028 | test -z "$as_dir" && as_dir=. | |
6029 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6030 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6031 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
6032 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6033 | break 2 | |
6034 | fi | |
6035 | done | |
6036 | done | |
6037 | ||
6038 | test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false" | |
6039 | fi | |
6040 | fi | |
6041 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
6042 | if test -n "$ac_ct_OBJDUMP"; then | |
6043 | echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 | |
6044 | echo "${ECHO_T}$ac_ct_OBJDUMP" >&6 | |
6045 | else | |
6046 | echo "$as_me:$LINENO: result: no" >&5 | |
6047 | echo "${ECHO_T}no" >&6 | |
6048 | fi | |
6049 | ||
6050 | OBJDUMP=$ac_ct_OBJDUMP | |
6051 | else | |
6052 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
6053 | fi | |
6054 | ||
6055 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
6056 | ||
6057 | ||
6058 | ||
6059 | ||
6060 | ||
6061 | ||
6062 | ||
6063 | ||
d7040cdb SE |
6064 | |
6065 | echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 | |
6066 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6 | |
6067 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
6068 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6069 | else | |
6070 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6071 | lt_cv_file_magic_test_file= | |
6072 | lt_cv_deplibs_check_method='unknown' | |
6073 | # Need to set the preceding variable on all platforms that support | |
6074 | # interlibrary dependencies. | |
6075 | # 'none' -- dependencies not supported. | |
6076 | # `unknown' -- same as none, but documents that we really don't know. | |
6077 | # 'pass_all' -- all dependencies passed with no checks. | |
6078 | # 'test_compile' -- check by making test program. | |
6079 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6080 | # which responds to the $file_magic_cmd with a given extended regex. | |
6081 | # If you have `file' or equivalent on your system and you're not sure | |
6082 | # whether `pass_all' will *always* work, you probably want this one. | |
6083 | ||
6084 | case $host_os in | |
e81819a5 | 6085 | aix[4-9]*) |
d7040cdb SE |
6086 | lt_cv_deplibs_check_method=pass_all |
6087 | ;; | |
6088 | ||
6089 | beos*) | |
6090 | lt_cv_deplibs_check_method=pass_all | |
6091 | ;; | |
6092 | ||
6093 | bsdi[45]*) | |
6094 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6095 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6096 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6097 | ;; | |
6098 | ||
6099 | cygwin*) | |
6100 | # func_win32_libid is a shell function defined in ltmain.sh | |
6101 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6102 | lt_cv_file_magic_cmd='func_win32_libid' | |
6103 | ;; | |
6104 | ||
6105 | mingw* | pw32*) | |
6106 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6107 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
6108 | # unless we find 'file', for example because we are cross-compiling. | |
6109 | if ( file / ) >/dev/null 2>&1; then | |
6110 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6111 | lt_cv_file_magic_cmd='func_win32_libid' | |
6112 | else | |
6113 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6114 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6115 | fi | |
6116 | ;; | |
6117 | ||
718a6fd8 SE |
6118 | cegcc) |
6119 | # use the weaker test based on 'objdump'. See mingw*. | |
6120 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
6121 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6122 | ;; | |
6123 | ||
d7040cdb SE |
6124 | darwin* | rhapsody*) |
6125 | lt_cv_deplibs_check_method=pass_all | |
cfbc9945 | 6126 | ;; |
d7040cdb SE |
6127 | |
6128 | freebsd* | dragonfly*) | |
6129 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6130 | case $host_cpu in | |
6131 | i*86 ) | |
6132 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6133 | # Let's accept both of them until this is cleared up. | |
6134 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6135 | lt_cv_file_magic_cmd=/usr/bin/file | |
6136 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6137 | ;; | |
6138 | esac | |
6139 | else | |
6140 | lt_cv_deplibs_check_method=pass_all | |
6141 | fi | |
6142 | ;; | |
6143 | ||
6144 | gnu*) | |
6145 | lt_cv_deplibs_check_method=pass_all | |
cfbc9945 | 6146 | ;; |
d7040cdb SE |
6147 | |
6148 | hpux10.20* | hpux11*) | |
6149 | lt_cv_file_magic_cmd=/usr/bin/file | |
6150 | case $host_cpu in | |
6151 | ia64*) | |
6152 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6153 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6154 | ;; | |
6155 | hppa*64*) | |
6156 | 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]' | |
6157 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6158 | ;; | |
cfbc9945 | 6159 | *) |
d7040cdb SE |
6160 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
6161 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6162 | ;; | |
6163 | esac | |
6164 | ;; | |
6be7c12c | 6165 | |
d7040cdb SE |
6166 | interix[3-9]*) |
6167 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6168 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6169 | ;; | |
cfbc9945 | 6170 | |
d7040cdb SE |
6171 | irix5* | irix6* | nonstopux*) |
6172 | case $LD in | |
6173 | *-32|*"-32 ") libmagic=32-bit;; | |
6174 | *-n32|*"-n32 ") libmagic=N32;; | |
6175 | *-64|*"-64 ") libmagic=64-bit;; | |
6176 | *) libmagic=never-match;; | |
6177 | esac | |
6178 | lt_cv_deplibs_check_method=pass_all | |
cfbc9945 | 6179 | ;; |
cfbc9945 | 6180 | |
d7040cdb | 6181 | # This must be Linux ELF. |
58e24671 | 6182 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
d7040cdb SE |
6183 | lt_cv_deplibs_check_method=pass_all |
6184 | ;; | |
5464f5a1 | 6185 | |
d7040cdb SE |
6186 | netbsd*) |
6187 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6188 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
cfbc9945 | 6189 | else |
d7040cdb | 6190 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
cfbc9945 | 6191 | fi |
d7040cdb SE |
6192 | ;; |
6193 | ||
6194 | newos6*) | |
6195 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6196 | lt_cv_file_magic_cmd=/usr/bin/file | |
6197 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6198 | ;; | |
6199 | ||
6200 | *nto* | *qnx*) | |
6201 | lt_cv_deplibs_check_method=pass_all | |
6202 | ;; | |
cfbc9945 | 6203 | |
d7040cdb SE |
6204 | openbsd*) |
6205 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6206 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6207 | else | |
6208 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
cfbc9945 SE |
6209 | fi |
6210 | ;; | |
d7040cdb SE |
6211 | |
6212 | osf3* | osf4* | osf5*) | |
6213 | lt_cv_deplibs_check_method=pass_all | |
6214 | ;; | |
6215 | ||
6216 | rdos*) | |
6217 | lt_cv_deplibs_check_method=pass_all | |
6218 | ;; | |
6219 | ||
6220 | solaris*) | |
6221 | lt_cv_deplibs_check_method=pass_all | |
6222 | ;; | |
6223 | ||
6224 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6225 | lt_cv_deplibs_check_method=pass_all | |
6226 | ;; | |
6227 | ||
6228 | sysv4 | sysv4.3*) | |
6229 | case $host_vendor in | |
6230 | motorola) | |
6231 | 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]' | |
6232 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6233 | ;; | |
6234 | ncr) | |
6235 | lt_cv_deplibs_check_method=pass_all | |
6236 | ;; | |
6237 | sequent) | |
6238 | lt_cv_file_magic_cmd='/bin/file' | |
6239 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6240 | ;; | |
6241 | sni) | |
6242 | lt_cv_file_magic_cmd='/bin/file' | |
6243 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6244 | lt_cv_file_magic_test_file=/lib/libc.so | |
6245 | ;; | |
6246 | siemens) | |
6247 | lt_cv_deplibs_check_method=pass_all | |
6248 | ;; | |
6249 | pc) | |
6250 | lt_cv_deplibs_check_method=pass_all | |
6251 | ;; | |
6252 | esac | |
6253 | ;; | |
6254 | ||
6255 | tpf*) | |
6256 | lt_cv_deplibs_check_method=pass_all | |
6257 | ;; | |
cfbc9945 SE |
6258 | esac |
6259 | ||
d7040cdb SE |
6260 | fi |
6261 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
6262 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | |
6263 | file_magic_cmd=$lt_cv_file_magic_cmd | |
6264 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6265 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6266 | ||
6267 | ||
6268 | ||
6269 | ||
6270 | ||
6271 | ||
6272 | ||
6273 | ||
6274 | ||
6275 | ||
6276 | ||
6277 | ||
cfbc9945 | 6278 | if test -n "$ac_tool_prefix"; then |
d7040cdb SE |
6279 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
6280 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
5464f5a1 NN |
6281 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6282 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
d7040cdb | 6283 | if test "${ac_cv_prog_AR+set}" = set; then |
5464f5a1 NN |
6284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6285 | else | |
d7040cdb SE |
6286 | if test -n "$AR"; then |
6287 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5464f5a1 NN |
6288 | else |
6289 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6290 | for as_dir in $PATH | |
6291 | do | |
6292 | IFS=$as_save_IFS | |
6293 | test -z "$as_dir" && as_dir=. | |
6294 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6295 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d7040cdb | 6296 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
5464f5a1 NN |
6297 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6298 | break 2 | |
6299 | fi | |
6300 | done | |
6301 | done | |
6302 | ||
6303 | fi | |
6304 | fi | |
d7040cdb SE |
6305 | AR=$ac_cv_prog_AR |
6306 | if test -n "$AR"; then | |
6307 | echo "$as_me:$LINENO: result: $AR" >&5 | |
6308 | echo "${ECHO_T}$AR" >&6 | |
5464f5a1 NN |
6309 | else |
6310 | echo "$as_me:$LINENO: result: no" >&5 | |
6311 | echo "${ECHO_T}no" >&6 | |
6312 | fi | |
6313 | ||
5464f5a1 | 6314 | fi |
d7040cdb SE |
6315 | if test -z "$ac_cv_prog_AR"; then |
6316 | ac_ct_AR=$AR | |
6317 | # Extract the first word of "ar", so it can be a program name with args. | |
6318 | set dummy ar; ac_word=$2 | |
5464f5a1 NN |
6319 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6320 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
d7040cdb | 6321 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
5464f5a1 | 6322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 6323 | else |
d7040cdb SE |
6324 | if test -n "$ac_ct_AR"; then |
6325 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
252b5132 | 6326 | else |
5464f5a1 NN |
6327 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6328 | for as_dir in $PATH | |
6329 | do | |
6330 | IFS=$as_save_IFS | |
6331 | test -z "$as_dir" && as_dir=. | |
6332 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6333 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
d7040cdb | 6334 | ac_cv_prog_ac_ct_AR="ar" |
5464f5a1 NN |
6335 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6336 | break 2 | |
6337 | fi | |
6338 | done | |
6339 | done | |
6340 | ||
d7040cdb | 6341 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" |
5464f5a1 NN |
6342 | fi |
6343 | fi | |
d7040cdb SE |
6344 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6345 | if test -n "$ac_ct_AR"; then | |
6346 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
6347 | echo "${ECHO_T}$ac_ct_AR" >&6 | |
6348 | else | |
6349 | echo "$as_me:$LINENO: result: no" >&5 | |
5464f5a1 NN |
6350 | echo "${ECHO_T}no" >&6 |
6351 | fi | |
6352 | ||
d7040cdb | 6353 | AR=$ac_ct_AR |
cfbc9945 | 6354 | else |
d7040cdb | 6355 | AR="$ac_cv_prog_AR" |
5464f5a1 | 6356 | fi |
cfbc9945 | 6357 | |
d7040cdb SE |
6358 | test -z "$AR" && AR=ar |
6359 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
6360 | ||
6361 | ||
6362 | ||
6363 | ||
6364 | ||
6365 | ||
6366 | ||
6367 | ||
6368 | ||
6369 | ||
6370 | ||
cfbc9945 SE |
6371 | if test -n "$ac_tool_prefix"; then |
6372 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6373 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
5464f5a1 NN |
6374 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6375 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
cfbc9945 | 6376 | if test "${ac_cv_prog_STRIP+set}" = set; then |
5464f5a1 NN |
6377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6378 | else | |
cfbc9945 SE |
6379 | if test -n "$STRIP"; then |
6380 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5464f5a1 NN |
6381 | else |
6382 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6383 | for as_dir in $PATH | |
6384 | do | |
6385 | IFS=$as_save_IFS | |
6386 | test -z "$as_dir" && as_dir=. | |
6387 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6388 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
cfbc9945 | 6389 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
5464f5a1 NN |
6390 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6391 | break 2 | |
6392 | fi | |
6393 | done | |
6394 | done | |
6395 | ||
6396 | fi | |
6397 | fi | |
cfbc9945 SE |
6398 | STRIP=$ac_cv_prog_STRIP |
6399 | if test -n "$STRIP"; then | |
6400 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
6401 | echo "${ECHO_T}$STRIP" >&6 | |
5464f5a1 NN |
6402 | else |
6403 | echo "$as_me:$LINENO: result: no" >&5 | |
6404 | echo "${ECHO_T}no" >&6 | |
6405 | fi | |
6406 | ||
252b5132 | 6407 | fi |
cfbc9945 SE |
6408 | if test -z "$ac_cv_prog_STRIP"; then |
6409 | ac_ct_STRIP=$STRIP | |
6410 | # Extract the first word of "strip", so it can be a program name with args. | |
6411 | set dummy strip; ac_word=$2 | |
5464f5a1 NN |
6412 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6413 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
cfbc9945 | 6414 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
5464f5a1 NN |
6415 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6416 | else | |
cfbc9945 SE |
6417 | if test -n "$ac_ct_STRIP"; then |
6418 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5464f5a1 NN |
6419 | else |
6420 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6421 | for as_dir in $PATH | |
6422 | do | |
6423 | IFS=$as_save_IFS | |
6424 | test -z "$as_dir" && as_dir=. | |
6425 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6426 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
cfbc9945 | 6427 | ac_cv_prog_ac_ct_STRIP="strip" |
5464f5a1 NN |
6428 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6429 | break 2 | |
6430 | fi | |
6431 | done | |
6432 | done | |
6433 | ||
cfbc9945 | 6434 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" |
5464f5a1 NN |
6435 | fi |
6436 | fi | |
cfbc9945 SE |
6437 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6438 | if test -n "$ac_ct_STRIP"; then | |
6439 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
6440 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
5464f5a1 NN |
6441 | else |
6442 | echo "$as_me:$LINENO: result: no" >&5 | |
6443 | echo "${ECHO_T}no" >&6 | |
6444 | fi | |
6445 | ||
cfbc9945 SE |
6446 | STRIP=$ac_ct_STRIP |
6447 | else | |
6448 | STRIP="$ac_cv_prog_STRIP" | |
5464f5a1 NN |
6449 | fi |
6450 | ||
d7040cdb | 6451 | test -z "$STRIP" && STRIP=: |
5464f5a1 | 6452 | |
cfbc9945 SE |
6453 | |
6454 | ||
cfbc9945 | 6455 | |
cfbc9945 SE |
6456 | |
6457 | ||
d7040cdb SE |
6458 | if test -n "$ac_tool_prefix"; then |
6459 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6460 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6461 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6462 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6463 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
6464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
cfbc9945 | 6465 | else |
d7040cdb SE |
6466 | if test -n "$RANLIB"; then |
6467 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6468 | else | |
6469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6470 | for as_dir in $PATH | |
6471 | do | |
6472 | IFS=$as_save_IFS | |
6473 | test -z "$as_dir" && as_dir=. | |
6474 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6475 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6476 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6477 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6478 | break 2 | |
cfbc9945 | 6479 | fi |
d7040cdb SE |
6480 | done |
6481 | done | |
cfbc9945 | 6482 | |
d7040cdb SE |
6483 | fi |
6484 | fi | |
6485 | RANLIB=$ac_cv_prog_RANLIB | |
6486 | if test -n "$RANLIB"; then | |
6487 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
6488 | echo "${ECHO_T}$RANLIB" >&6 | |
6489 | else | |
6490 | echo "$as_me:$LINENO: result: no" >&5 | |
6491 | echo "${ECHO_T}no" >&6 | |
6492 | fi | |
cfbc9945 | 6493 | |
d7040cdb SE |
6494 | fi |
6495 | if test -z "$ac_cv_prog_RANLIB"; then | |
6496 | ac_ct_RANLIB=$RANLIB | |
6497 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6498 | set dummy ranlib; ac_word=$2 | |
6499 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
6500 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
6501 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
6502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6503 | else | |
6504 | if test -n "$ac_ct_RANLIB"; then | |
6505 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6506 | else | |
6507 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6508 | for as_dir in $PATH | |
6509 | do | |
6510 | IFS=$as_save_IFS | |
6511 | test -z "$as_dir" && as_dir=. | |
6512 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6513 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6514 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6515 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6516 | break 2 | |
cfbc9945 | 6517 | fi |
d7040cdb SE |
6518 | done |
6519 | done | |
cfbc9945 | 6520 | |
d7040cdb SE |
6521 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
6522 | fi | |
6523 | fi | |
6524 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6525 | if test -n "$ac_ct_RANLIB"; then | |
6526 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
6527 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
cfbc9945 | 6528 | else |
d7040cdb SE |
6529 | echo "$as_me:$LINENO: result: no" >&5 |
6530 | echo "${ECHO_T}no" >&6 | |
6531 | fi | |
5464f5a1 | 6532 | |
d7040cdb SE |
6533 | RANLIB=$ac_ct_RANLIB |
6534 | else | |
6535 | RANLIB="$ac_cv_prog_RANLIB" | |
6536 | fi | |
5464f5a1 | 6537 | |
d7040cdb | 6538 | test -z "$RANLIB" && RANLIB=: |
5464f5a1 | 6539 | |
5464f5a1 | 6540 | |
5464f5a1 | 6541 | |
cfbc9945 | 6542 | |
cfbc9945 | 6543 | |
d7040cdb SE |
6544 | |
6545 | # Determine commands to create old-style static archives. | |
718a6fd8 | 6546 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
d7040cdb SE |
6547 | old_postinstall_cmds='chmod 644 $oldlib' |
6548 | old_postuninstall_cmds= | |
6549 | ||
6550 | if test -n "$RANLIB"; then | |
6551 | case $host_os in | |
6552 | openbsd*) | |
6553 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6554 | ;; | |
6555 | *) | |
6556 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6557 | ;; | |
6558 | esac | |
6559 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
cfbc9945 | 6560 | fi |
cfbc9945 SE |
6561 | |
6562 | ||
cfbc9945 SE |
6563 | |
6564 | ||
cfbc9945 | 6565 | |
cfbc9945 | 6566 | |
cfbc9945 | 6567 | |
cfbc9945 | 6568 | |
cfbc9945 SE |
6569 | |
6570 | ||
cfbc9945 | 6571 | |
cfbc9945 | 6572 | |
cfbc9945 SE |
6573 | |
6574 | ||
6575 | ||
6576 | ||
6577 | ||
6578 | ||
6579 | ||
5464f5a1 | 6580 | |
5464f5a1 | 6581 | |
cfbc9945 SE |
6582 | |
6583 | ||
6584 | ||
5464f5a1 | 6585 | |
5464f5a1 | 6586 | |
cfbc9945 SE |
6587 | |
6588 | ||
6589 | ||
5464f5a1 | 6590 | |
cfbc9945 SE |
6591 | |
6592 | ||
6593 | ||
6594 | ||
d7040cdb SE |
6595 | # If no C compiler was specified, use CC. |
6596 | LTCC=${LTCC-"$CC"} | |
cfbc9945 | 6597 | |
d7040cdb SE |
6598 | # If no C compiler flags were specified, use CFLAGS. |
6599 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
cfbc9945 | 6600 | |
d7040cdb SE |
6601 | # Allow CC to be a program name with arguments. |
6602 | compiler=$CC | |
cfbc9945 | 6603 | |
cfbc9945 | 6604 | |
d7040cdb SE |
6605 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
6606 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
6607 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | |
6608 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
6609 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6610 | else | |
5464f5a1 | 6611 | |
d7040cdb SE |
6612 | # These are sane defaults that work on at least a few old systems. |
6613 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5464f5a1 | 6614 | |
d7040cdb SE |
6615 | # Character class describing NM global symbol codes. |
6616 | symcode='[BCDEGRST]' | |
6617 | ||
6618 | # Regexp to match symbols that can be accessed directly from C. | |
6619 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6620 | ||
6621 | # Define system-specific variables. | |
6622 | case $host_os in | |
6623 | aix*) | |
6624 | symcode='[BCDT]' | |
6625 | ;; | |
718a6fd8 | 6626 | cygwin* | mingw* | pw32* | cegcc*) |
d7040cdb SE |
6627 | symcode='[ABCDGISTW]' |
6628 | ;; | |
6629 | hpux*) | |
6630 | if test "$host_cpu" = ia64; then | |
6631 | symcode='[ABCDEGRST]' | |
6632 | fi | |
6633 | ;; | |
6634 | irix* | nonstopux*) | |
6635 | symcode='[BCDEGRST]' | |
6636 | ;; | |
6637 | osf*) | |
6638 | symcode='[BCDEGQRST]' | |
6639 | ;; | |
6640 | solaris*) | |
6641 | symcode='[BDRT]' | |
6642 | ;; | |
6643 | sco3.2v5*) | |
6644 | symcode='[DT]' | |
6645 | ;; | |
6646 | sysv4.2uw2*) | |
6647 | symcode='[DT]' | |
6648 | ;; | |
6649 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6650 | symcode='[ABDT]' | |
6651 | ;; | |
6652 | sysv4) | |
6653 | symcode='[DFNSTU]' | |
6654 | ;; | |
cfbc9945 | 6655 | esac |
5464f5a1 | 6656 | |
d7040cdb SE |
6657 | # If we're using GNU nm, then use its standard symbol codes. |
6658 | case `$NM -V 2>&1` in | |
6659 | *GNU* | *'with BFD'*) | |
6660 | symcode='[ABCDGIRSTW]' ;; | |
6661 | esac | |
5464f5a1 | 6662 | |
d7040cdb SE |
6663 | # Transform an extracted symbol line into a proper C declaration. |
6664 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6665 | # so use this general approach. | |
6666 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5464f5a1 | 6667 | |
d7040cdb SE |
6668 | # Transform an extracted symbol line into symbol name and symbol address |
6669 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
718a6fd8 | 6670 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" |
5464f5a1 | 6671 | |
d7040cdb SE |
6672 | # Handle CRLF in mingw tool chain |
6673 | opt_cr= | |
6674 | case $build_os in | |
6675 | mingw*) | |
6676 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6677 | ;; | |
6678 | esac | |
5464f5a1 | 6679 | |
d7040cdb SE |
6680 | # Try without a prefix underscore, then with it. |
6681 | for ac_symprfx in "" "_"; do | |
6682 | ||
6683 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6684 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6685 | ||
6686 | # Write the raw and C identifiers. | |
6687 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6688 | # Fake it for dumpbin and say T for any non-static function | |
6689 | # and D for any global variable. | |
6690 | # Also find C++ and __fastcall symbols from MSVC++, | |
6691 | # which start with @ or ?. | |
6692 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6693 | " {last_section=section; section=\$ 3};"\ | |
6694 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6695 | " \$ 0!~/External *\|/{next};"\ | |
6696 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6697 | " {if(hide[section]) next};"\ | |
6698 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6699 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6700 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6701 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6702 | " ' prfx=^$ac_symprfx" | |
6703 | else | |
6704 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6705 | fi | |
cfbc9945 | 6706 | |
d7040cdb SE |
6707 | # Check to see that the pipe works correctly. |
6708 | pipe_works=no | |
cfbc9945 | 6709 | |
d7040cdb SE |
6710 | rm -f conftest* |
6711 | cat > conftest.$ac_ext <<_LT_EOF | |
6712 | #ifdef __cplusplus | |
6713 | extern "C" { | |
6714 | #endif | |
6715 | char nm_test_var; | |
6716 | void nm_test_func(void); | |
6717 | void nm_test_func(void){} | |
6718 | #ifdef __cplusplus | |
6719 | } | |
6720 | #endif | |
6721 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6722 | _LT_EOF | |
cfbc9945 | 6723 | |
d7040cdb SE |
6724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6725 | (eval $ac_compile) 2>&5 | |
6726 | ac_status=$? | |
6727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6728 | (exit $ac_status); }; then | |
6729 | # Now try to grab the symbols. | |
6730 | nlist=conftest.nm | |
6731 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
6732 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
6733 | ac_status=$? | |
6734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6735 | (exit $ac_status); } && test -s "$nlist"; then | |
6736 | # Try sorting and uniquifying the output. | |
6737 | if sort "$nlist" | uniq > "$nlist"T; then | |
6738 | mv -f "$nlist"T "$nlist" | |
6739 | else | |
6740 | rm -f "$nlist"T | |
6741 | fi | |
cfbc9945 | 6742 | |
d7040cdb SE |
6743 | # Make sure that we snagged all the symbols we need. |
6744 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6745 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6746 | cat <<_LT_EOF > conftest.$ac_ext | |
6747 | #ifdef __cplusplus | |
6748 | extern "C" { | |
6749 | #endif | |
cfbc9945 | 6750 | |
d7040cdb SE |
6751 | _LT_EOF |
6752 | # Now generate the symbol file. | |
6753 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
5464f5a1 | 6754 | |
d7040cdb | 6755 | cat <<_LT_EOF >> conftest.$ac_ext |
cfbc9945 | 6756 | |
d7040cdb SE |
6757 | /* The mapping between symbol names and symbols. */ |
6758 | const struct { | |
6759 | const char *name; | |
6760 | void *address; | |
6761 | } | |
6762 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6763 | { | |
6764 | { "@PROGRAM@", (void *) 0 }, | |
6765 | _LT_EOF | |
6766 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6767 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6768 | {0, (void *) 0} | |
6769 | }; | |
6770 | ||
6771 | /* This works around a problem in FreeBSD linker */ | |
6772 | #ifdef FREEBSD_WORKAROUND | |
6773 | static const void *lt_preloaded_setup() { | |
6774 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6775 | } | |
6776 | #endif | |
cfbc9945 | 6777 | |
d7040cdb SE |
6778 | #ifdef __cplusplus |
6779 | } | |
6780 | #endif | |
6781 | _LT_EOF | |
6782 | # Now try linking the two files. | |
6783 | mv conftest.$ac_objext conftstm.$ac_objext | |
6784 | lt_save_LIBS="$LIBS" | |
6785 | lt_save_CFLAGS="$CFLAGS" | |
6786 | LIBS="conftstm.$ac_objext" | |
6787 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6788 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6789 | (eval $ac_link) 2>&5 | |
6790 | ac_status=$? | |
6791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6792 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
6793 | pipe_works=yes | |
6794 | fi | |
6795 | LIBS="$lt_save_LIBS" | |
6796 | CFLAGS="$lt_save_CFLAGS" | |
6797 | else | |
6798 | echo "cannot find nm_test_func in $nlist" >&5 | |
6799 | fi | |
6800 | else | |
6801 | echo "cannot find nm_test_var in $nlist" >&5 | |
6802 | fi | |
6803 | else | |
6804 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6805 | fi | |
6806 | else | |
6807 | echo "$progname: failed program was:" >&5 | |
6808 | cat conftest.$ac_ext >&5 | |
6809 | fi | |
718a6fd8 | 6810 | rm -rf conftest* conftst* |
cfbc9945 | 6811 | |
d7040cdb SE |
6812 | # Do not use the global_symbol_pipe unless it works. |
6813 | if test "$pipe_works" = yes; then | |
6814 | break | |
6815 | else | |
6816 | lt_cv_sys_global_symbol_pipe= | |
6817 | fi | |
6818 | done | |
cfbc9945 | 6819 | |
252b5132 | 6820 | fi |
5464f5a1 | 6821 | |
d7040cdb SE |
6822 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6823 | lt_cv_sys_global_symbol_to_cdecl= | |
6824 | fi | |
6825 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
6826 | echo "$as_me:$LINENO: result: failed" >&5 | |
6827 | echo "${ECHO_T}failed" >&6 | |
b3baf5d0 | 6828 | else |
d7040cdb SE |
6829 | echo "$as_me:$LINENO: result: ok" >&5 |
6830 | echo "${ECHO_T}ok" >&6 | |
6831 | fi | |
5464f5a1 | 6832 | |
cfbc9945 | 6833 | |
b3baf5d0 | 6834 | |
cfbc9945 SE |
6835 | |
6836 | ||
6837 | ||
6838 | ||
5464f5a1 | 6839 | |
4a2a2686 HPN |
6840 | |
6841 | ||
6842 | ||
cfbc9945 SE |
6843 | |
6844 | ||
cfbc9945 | 6845 | |
cfbc9945 | 6846 | |
718a6fd8 SE |
6847 | |
6848 | ||
6849 | ||
6850 | ||
6851 | ||
9d7cbccd | 6852 | |
20e95c23 | 6853 | |
d7040cdb SE |
6854 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. |
6855 | if test "${enable_libtool_lock+set}" = set; then | |
6856 | enableval="$enable_libtool_lock" | |
20e95c23 | 6857 | |
d7040cdb SE |
6858 | fi; |
6859 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
20e95c23 | 6860 | |
d7040cdb SE |
6861 | # Some flags need to be propagated to the compiler or linker for good |
6862 | # libtool support. | |
6863 | case $host in | |
6864 | ia64-*-hpux*) | |
6865 | # Find out which ABI we are using. | |
6866 | echo 'int i;' > conftest.$ac_ext | |
6867 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6868 | (eval $ac_compile) 2>&5 | |
6869 | ac_status=$? | |
6870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6871 | (exit $ac_status); }; then | |
6872 | case `/usr/bin/file conftest.$ac_objext` in | |
6873 | *ELF-32*) | |
6874 | HPUX_IA64_MODE="32" | |
6875 | ;; | |
6876 | *ELF-64*) | |
6877 | HPUX_IA64_MODE="64" | |
6878 | ;; | |
20e95c23 | 6879 | esac |
d7040cdb SE |
6880 | fi |
6881 | rm -rf conftest* | |
6882 | ;; | |
6883 | *-*-irix6*) | |
6884 | # Find out which ABI we are using. | |
29670fb9 | 6885 | echo '#line 6885 "configure"' > conftest.$ac_ext |
d7040cdb SE |
6886 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6887 | (eval $ac_compile) 2>&5 | |
6888 | ac_status=$? | |
6889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6890 | (exit $ac_status); }; then | |
6891 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
6892 | case `/usr/bin/file conftest.$ac_objext` in | |
6893 | *32-bit*) | |
6894 | LD="${LD-ld} -melf32bsmip" | |
6895 | ;; | |
6896 | *N32*) | |
6897 | LD="${LD-ld} -melf32bmipn32" | |
6898 | ;; | |
6899 | *64-bit*) | |
6900 | LD="${LD-ld} -melf64bmip" | |
6901 | ;; | |
6902 | esac | |
20e95c23 | 6903 | else |
d7040cdb SE |
6904 | case `/usr/bin/file conftest.$ac_objext` in |
6905 | *32-bit*) | |
6906 | LD="${LD-ld} -32" | |
6907 | ;; | |
6908 | *N32*) | |
6909 | LD="${LD-ld} -n32" | |
6910 | ;; | |
6911 | *64-bit*) | |
6912 | LD="${LD-ld} -64" | |
6913 | ;; | |
20e95c23 DJ |
6914 | esac |
6915 | fi | |
d7040cdb SE |
6916 | fi |
6917 | rm -rf conftest* | |
6918 | ;; | |
20e95c23 | 6919 | |
d7040cdb SE |
6920 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
6921 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6922 | # Find out which ABI we are using. | |
6923 | echo 'int i;' > conftest.$ac_ext | |
6924 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6925 | (eval $ac_compile) 2>&5 | |
6926 | ac_status=$? | |
6927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6928 | (exit $ac_status); }; then | |
6929 | case `/usr/bin/file conftest.o` in | |
6930 | *32-bit*) | |
6931 | case $host in | |
6932 | x86_64-*kfreebsd*-gnu) | |
6933 | LD="${LD-ld} -m elf_i386_fbsd" | |
6934 | ;; | |
6935 | x86_64-*linux*) | |
6936 | LD="${LD-ld} -m elf_i386" | |
6937 | ;; | |
6938 | ppc64-*linux*|powerpc64-*linux*) | |
6939 | LD="${LD-ld} -m elf32ppclinux" | |
6940 | ;; | |
6941 | s390x-*linux*) | |
6942 | LD="${LD-ld} -m elf_s390" | |
6943 | ;; | |
6944 | sparc64-*linux*) | |
6945 | LD="${LD-ld} -m elf32_sparc" | |
6946 | ;; | |
6947 | esac | |
6948 | ;; | |
6949 | *64-bit*) | |
6950 | case $host in | |
6951 | x86_64-*kfreebsd*-gnu) | |
6952 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6953 | ;; | |
6954 | x86_64-*linux*) | |
6955 | LD="${LD-ld} -m elf_x86_64" | |
6956 | ;; | |
6957 | ppc*-*linux*|powerpc*-*linux*) | |
6958 | LD="${LD-ld} -m elf64ppc" | |
6959 | ;; | |
6960 | s390*-*linux*|s390*-*tpf*) | |
6961 | LD="${LD-ld} -m elf64_s390" | |
6962 | ;; | |
6963 | sparc*-*linux*) | |
6964 | LD="${LD-ld} -m elf64_sparc" | |
6965 | ;; | |
6966 | esac | |
6967 | ;; | |
20e95c23 DJ |
6968 | esac |
6969 | fi | |
d7040cdb | 6970 | rm -rf conftest* |
7357c5b6 | 6971 | ;; |
d7040cdb | 6972 | |
7357c5b6 AM |
6973 | *-*-sco3.2v5*) |
6974 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6975 | SAVE_CFLAGS="$CFLAGS" | |
6976 | CFLAGS="$CFLAGS -belf" | |
6977 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
6978 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | |
6979 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
6980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
d7040cdb | 6981 | else |
7357c5b6 AM |
6982 | ac_ext=c |
6983 | ac_cpp='$CPP $CPPFLAGS' | |
6984 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6985 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6986 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 6987 | |
7357c5b6 | 6988 | cat >conftest.$ac_ext <<_ACEOF |
d7040cdb SE |
6989 | /* confdefs.h. */ |
6990 | _ACEOF | |
6991 | cat confdefs.h >>conftest.$ac_ext | |
6992 | cat >>conftest.$ac_ext <<_ACEOF | |
6993 | /* end confdefs.h. */ | |
d7040cdb | 6994 | |
d7040cdb SE |
6995 | int |
6996 | main () | |
6997 | { | |
7357c5b6 AM |
6998 | |
6999 | ; | |
7000 | return 0; | |
d7040cdb SE |
7001 | } |
7002 | _ACEOF | |
7357c5b6 | 7003 | rm -f conftest.$ac_objext conftest$ac_exeext |
d7040cdb | 7004 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
7357c5b6 | 7005 | (eval $ac_link) 2>conftest.er1 |
d7040cdb SE |
7006 | ac_status=$? |
7007 | grep -v '^ *+' conftest.er1 >conftest.err | |
7008 | rm -f conftest.er1 | |
7009 | cat conftest.err >&5 | |
7010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7011 | (exit $ac_status); } && | |
7357c5b6 AM |
7012 | { ac_try='test -z "$ac_c_werror_flag" |
7013 | || test ! -s conftest.err' | |
d7040cdb SE |
7014 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7015 | (eval $ac_try) 2>&5 | |
7016 | ac_status=$? | |
7017 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7018 | (exit $ac_status); }; } && | |
7357c5b6 | 7019 | { ac_try='test -s conftest$ac_exeext' |
d7040cdb SE |
7020 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7021 | (eval $ac_try) 2>&5 | |
7022 | ac_status=$? | |
7023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7024 | (exit $ac_status); }; }; then | |
7357c5b6 | 7025 | lt_cv_cc_needs_belf=yes |
d7040cdb SE |
7026 | else |
7027 | echo "$as_me: failed program was:" >&5 | |
7028 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7029 | ||
7357c5b6 | 7030 | lt_cv_cc_needs_belf=no |
d7040cdb | 7031 | fi |
7357c5b6 AM |
7032 | rm -f conftest.err conftest.$ac_objext \ |
7033 | conftest$ac_exeext conftest.$ac_ext | |
7034 | ac_ext=c | |
7035 | ac_cpp='$CPP $CPPFLAGS' | |
7036 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7037 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7038 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb SE |
7039 | |
7040 | fi | |
7357c5b6 AM |
7041 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
7042 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | |
7043 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7044 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7045 | CFLAGS="$SAVE_CFLAGS" | |
7046 | fi | |
7047 | ;; | |
7048 | sparc*-*solaris*) | |
7049 | # Find out which ABI we are using. | |
7050 | echo 'int i;' > conftest.$ac_ext | |
7051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7052 | (eval $ac_compile) 2>&5 | |
7053 | ac_status=$? | |
7054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7055 | (exit $ac_status); }; then | |
7056 | case `/usr/bin/file conftest.o` in | |
7057 | *64-bit*) | |
7058 | case $lt_cv_prog_gnu_ld in | |
7059 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
718a6fd8 SE |
7060 | *) |
7061 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7062 | LD="${LD-ld} -64" | |
7063 | fi | |
7064 | ;; | |
7357c5b6 AM |
7065 | esac |
7066 | ;; | |
7067 | esac | |
7068 | fi | |
7069 | rm -rf conftest* | |
7070 | ;; | |
7071 | esac | |
d7040cdb | 7072 | |
7357c5b6 | 7073 | need_locks="$enable_libtool_lock" |
d7040cdb SE |
7074 | |
7075 | ||
718a6fd8 SE |
7076 | case $host_os in |
7077 | rhapsody* | darwin*) | |
7078 | if test -n "$ac_tool_prefix"; then | |
7079 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7080 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7081 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7082 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7083 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then | |
7084 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7085 | else | |
7086 | if test -n "$DSYMUTIL"; then | |
7087 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7088 | else | |
7089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7090 | for as_dir in $PATH | |
7091 | do | |
7092 | IFS=$as_save_IFS | |
7093 | test -z "$as_dir" && as_dir=. | |
7094 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7095 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7096 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7097 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7098 | break 2 | |
7099 | fi | |
7100 | done | |
7101 | done | |
7102 | ||
7103 | fi | |
7104 | fi | |
7105 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7106 | if test -n "$DSYMUTIL"; then | |
7107 | echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 | |
7108 | echo "${ECHO_T}$DSYMUTIL" >&6 | |
7109 | else | |
7110 | echo "$as_me:$LINENO: result: no" >&5 | |
7111 | echo "${ECHO_T}no" >&6 | |
7112 | fi | |
7113 | ||
7114 | fi | |
7115 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7116 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7117 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7118 | set dummy dsymutil; ac_word=$2 | |
7119 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7120 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7121 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then | |
7122 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7123 | else | |
7124 | if test -n "$ac_ct_DSYMUTIL"; then | |
7125 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7126 | else | |
7127 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7128 | for as_dir in $PATH | |
7129 | do | |
7130 | IFS=$as_save_IFS | |
7131 | test -z "$as_dir" && as_dir=. | |
7132 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7133 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7134 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7135 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7136 | break 2 | |
7137 | fi | |
7138 | done | |
7139 | done | |
7140 | ||
7141 | test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":" | |
7142 | fi | |
7143 | fi | |
7144 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7145 | if test -n "$ac_ct_DSYMUTIL"; then | |
7146 | echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 | |
7147 | echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6 | |
7148 | else | |
7149 | echo "$as_me:$LINENO: result: no" >&5 | |
7150 | echo "${ECHO_T}no" >&6 | |
7151 | fi | |
7152 | ||
7153 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7154 | else | |
7155 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7156 | fi | |
7157 | ||
7158 | if test -n "$ac_tool_prefix"; then | |
7159 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7160 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7161 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7162 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7163 | if test "${ac_cv_prog_NMEDIT+set}" = set; then | |
7164 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7165 | else | |
7166 | if test -n "$NMEDIT"; then | |
7167 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7168 | else | |
7169 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7170 | for as_dir in $PATH | |
7171 | do | |
7172 | IFS=$as_save_IFS | |
7173 | test -z "$as_dir" && as_dir=. | |
7174 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7175 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7176 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7177 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7178 | break 2 | |
7179 | fi | |
7180 | done | |
7181 | done | |
7182 | ||
7183 | fi | |
7184 | fi | |
7185 | NMEDIT=$ac_cv_prog_NMEDIT | |
7186 | if test -n "$NMEDIT"; then | |
7187 | echo "$as_me:$LINENO: result: $NMEDIT" >&5 | |
7188 | echo "${ECHO_T}$NMEDIT" >&6 | |
7189 | else | |
7190 | echo "$as_me:$LINENO: result: no" >&5 | |
7191 | echo "${ECHO_T}no" >&6 | |
7192 | fi | |
7193 | ||
7194 | fi | |
7195 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7196 | ac_ct_NMEDIT=$NMEDIT | |
7197 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7198 | set dummy nmedit; ac_word=$2 | |
7199 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7200 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7201 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then | |
7202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7203 | else | |
7204 | if test -n "$ac_ct_NMEDIT"; then | |
7205 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7206 | else | |
7207 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7208 | for as_dir in $PATH | |
7209 | do | |
7210 | IFS=$as_save_IFS | |
7211 | test -z "$as_dir" && as_dir=. | |
7212 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7213 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7214 | ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7215 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7216 | break 2 | |
7217 | fi | |
7218 | done | |
7219 | done | |
7220 | ||
7221 | test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":" | |
7222 | fi | |
7223 | fi | |
7224 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7225 | if test -n "$ac_ct_NMEDIT"; then | |
7226 | echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 | |
7227 | echo "${ECHO_T}$ac_ct_NMEDIT" >&6 | |
7228 | else | |
7229 | echo "$as_me:$LINENO: result: no" >&5 | |
7230 | echo "${ECHO_T}no" >&6 | |
7231 | fi | |
7232 | ||
7233 | NMEDIT=$ac_ct_NMEDIT | |
7234 | else | |
7235 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7236 | fi | |
7237 | ||
7238 | if test -n "$ac_tool_prefix"; then | |
7239 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7240 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7241 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7242 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7243 | if test "${ac_cv_prog_LIPO+set}" = set; then | |
7244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7245 | else | |
7246 | if test -n "$LIPO"; then | |
7247 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7248 | else | |
7249 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7250 | for as_dir in $PATH | |
7251 | do | |
7252 | IFS=$as_save_IFS | |
7253 | test -z "$as_dir" && as_dir=. | |
7254 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7255 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7256 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7257 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7258 | break 2 | |
7259 | fi | |
7260 | done | |
7261 | done | |
7262 | ||
7263 | fi | |
7264 | fi | |
7265 | LIPO=$ac_cv_prog_LIPO | |
7266 | if test -n "$LIPO"; then | |
7267 | echo "$as_me:$LINENO: result: $LIPO" >&5 | |
7268 | echo "${ECHO_T}$LIPO" >&6 | |
7269 | else | |
7270 | echo "$as_me:$LINENO: result: no" >&5 | |
7271 | echo "${ECHO_T}no" >&6 | |
7272 | fi | |
7273 | ||
7274 | fi | |
7275 | if test -z "$ac_cv_prog_LIPO"; then | |
7276 | ac_ct_LIPO=$LIPO | |
7277 | # Extract the first word of "lipo", so it can be a program name with args. | |
7278 | set dummy lipo; ac_word=$2 | |
7279 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7280 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7281 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then | |
7282 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7283 | else | |
7284 | if test -n "$ac_ct_LIPO"; then | |
7285 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7286 | else | |
7287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7288 | for as_dir in $PATH | |
7289 | do | |
7290 | IFS=$as_save_IFS | |
7291 | test -z "$as_dir" && as_dir=. | |
7292 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7293 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7294 | ac_cv_prog_ac_ct_LIPO="lipo" | |
7295 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7296 | break 2 | |
7297 | fi | |
7298 | done | |
7299 | done | |
7300 | ||
7301 | test -z "$ac_cv_prog_ac_ct_LIPO" && ac_cv_prog_ac_ct_LIPO=":" | |
7302 | fi | |
7303 | fi | |
7304 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7305 | if test -n "$ac_ct_LIPO"; then | |
7306 | echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5 | |
7307 | echo "${ECHO_T}$ac_ct_LIPO" >&6 | |
7308 | else | |
7309 | echo "$as_me:$LINENO: result: no" >&5 | |
7310 | echo "${ECHO_T}no" >&6 | |
7311 | fi | |
7312 | ||
7313 | LIPO=$ac_ct_LIPO | |
7314 | else | |
7315 | LIPO="$ac_cv_prog_LIPO" | |
7316 | fi | |
7317 | ||
7318 | if test -n "$ac_tool_prefix"; then | |
7319 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7320 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7321 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7322 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7323 | if test "${ac_cv_prog_OTOOL+set}" = set; then | |
7324 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7325 | else | |
7326 | if test -n "$OTOOL"; then | |
7327 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7328 | else | |
7329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7330 | for as_dir in $PATH | |
7331 | do | |
7332 | IFS=$as_save_IFS | |
7333 | test -z "$as_dir" && as_dir=. | |
7334 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7335 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7336 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
7337 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7338 | break 2 | |
7339 | fi | |
7340 | done | |
7341 | done | |
7342 | ||
7343 | fi | |
7344 | fi | |
7345 | OTOOL=$ac_cv_prog_OTOOL | |
7346 | if test -n "$OTOOL"; then | |
7347 | echo "$as_me:$LINENO: result: $OTOOL" >&5 | |
7348 | echo "${ECHO_T}$OTOOL" >&6 | |
7349 | else | |
7350 | echo "$as_me:$LINENO: result: no" >&5 | |
7351 | echo "${ECHO_T}no" >&6 | |
7352 | fi | |
7353 | ||
7354 | fi | |
7355 | if test -z "$ac_cv_prog_OTOOL"; then | |
7356 | ac_ct_OTOOL=$OTOOL | |
7357 | # Extract the first word of "otool", so it can be a program name with args. | |
7358 | set dummy otool; ac_word=$2 | |
7359 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7360 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7361 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then | |
7362 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7363 | else | |
7364 | if test -n "$ac_ct_OTOOL"; then | |
7365 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7366 | else | |
7367 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7368 | for as_dir in $PATH | |
7369 | do | |
7370 | IFS=$as_save_IFS | |
7371 | test -z "$as_dir" && as_dir=. | |
7372 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7373 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7374 | ac_cv_prog_ac_ct_OTOOL="otool" | |
7375 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7376 | break 2 | |
7377 | fi | |
7378 | done | |
7379 | done | |
7380 | ||
7381 | test -z "$ac_cv_prog_ac_ct_OTOOL" && ac_cv_prog_ac_ct_OTOOL=":" | |
7382 | fi | |
7383 | fi | |
7384 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7385 | if test -n "$ac_ct_OTOOL"; then | |
7386 | echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5 | |
7387 | echo "${ECHO_T}$ac_ct_OTOOL" >&6 | |
7388 | else | |
7389 | echo "$as_me:$LINENO: result: no" >&5 | |
7390 | echo "${ECHO_T}no" >&6 | |
7391 | fi | |
7392 | ||
7393 | OTOOL=$ac_ct_OTOOL | |
7394 | else | |
7395 | OTOOL="$ac_cv_prog_OTOOL" | |
7396 | fi | |
7397 | ||
7398 | if test -n "$ac_tool_prefix"; then | |
7399 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7400 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
7401 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7402 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7403 | if test "${ac_cv_prog_OTOOL64+set}" = set; then | |
7404 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7405 | else | |
7406 | if test -n "$OTOOL64"; then | |
7407 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7408 | else | |
7409 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7410 | for as_dir in $PATH | |
7411 | do | |
7412 | IFS=$as_save_IFS | |
7413 | test -z "$as_dir" && as_dir=. | |
7414 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7415 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7416 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
7417 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7418 | break 2 | |
7419 | fi | |
7420 | done | |
7421 | done | |
7422 | ||
7423 | fi | |
7424 | fi | |
7425 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7426 | if test -n "$OTOOL64"; then | |
7427 | echo "$as_me:$LINENO: result: $OTOOL64" >&5 | |
7428 | echo "${ECHO_T}$OTOOL64" >&6 | |
7429 | else | |
7430 | echo "$as_me:$LINENO: result: no" >&5 | |
7431 | echo "${ECHO_T}no" >&6 | |
7432 | fi | |
7433 | ||
7434 | fi | |
7435 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7436 | ac_ct_OTOOL64=$OTOOL64 | |
7437 | # Extract the first word of "otool64", so it can be a program name with args. | |
7438 | set dummy otool64; ac_word=$2 | |
7439 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7440 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
7441 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then | |
7442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7443 | else | |
7444 | if test -n "$ac_ct_OTOOL64"; then | |
7445 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7446 | else | |
7447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7448 | for as_dir in $PATH | |
7449 | do | |
7450 | IFS=$as_save_IFS | |
7451 | test -z "$as_dir" && as_dir=. | |
7452 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7453 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7454 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
7455 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7456 | break 2 | |
7457 | fi | |
7458 | done | |
7459 | done | |
7460 | ||
7461 | test -z "$ac_cv_prog_ac_ct_OTOOL64" && ac_cv_prog_ac_ct_OTOOL64=":" | |
7462 | fi | |
7463 | fi | |
7464 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7465 | if test -n "$ac_ct_OTOOL64"; then | |
7466 | echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5 | |
7467 | echo "${ECHO_T}$ac_ct_OTOOL64" >&6 | |
7468 | else | |
7469 | echo "$as_me:$LINENO: result: no" >&5 | |
7470 | echo "${ECHO_T}no" >&6 | |
7471 | fi | |
7472 | ||
7473 | OTOOL64=$ac_ct_OTOOL64 | |
7474 | else | |
7475 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7476 | fi | |
7477 | ||
7478 | ||
7479 | ||
7480 | ||
7481 | ||
7482 | ||
7483 | ||
7484 | ||
7485 | ||
7486 | ||
7487 | ||
7488 | ||
7489 | ||
7490 | ||
7491 | ||
7492 | ||
7493 | ||
7494 | ||
7495 | ||
7496 | ||
7497 | ||
7498 | ||
7499 | ||
7500 | ||
7501 | ||
7502 | ||
7503 | ||
7504 | echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 | |
7505 | echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6 | |
7506 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then | |
7507 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7508 | else | |
7509 | lt_cv_apple_cc_single_mod=no | |
7510 | if test -z "${LT_MULTI_MODULE}"; then | |
7511 | # By default we will add the -single_module flag. You can override | |
7512 | # by either setting the environment variable LT_MULTI_MODULE | |
7513 | # non-empty at configure time, or by adding -multi_module to the | |
7514 | # link flags. | |
7515 | rm -rf libconftest.dylib* | |
7516 | echo "int foo(void){return 1;}" > conftest.c | |
7517 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7518 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7519 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7520 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7521 | _lt_result=$? | |
7522 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7523 | lt_cv_apple_cc_single_mod=yes | |
7524 | else | |
7525 | cat conftest.err >&5 | |
7526 | fi | |
7527 | rm -rf libconftest.dylib* | |
7528 | rm -f conftest.* | |
7529 | fi | |
7530 | fi | |
7531 | echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 | |
7532 | echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6 | |
7533 | echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 | |
7534 | echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6 | |
7535 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then | |
7536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7537 | else | |
7538 | lt_cv_ld_exported_symbols_list=no | |
7539 | save_LDFLAGS=$LDFLAGS | |
7540 | echo "_main" > conftest.sym | |
7541 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
7542 | cat >conftest.$ac_ext <<_ACEOF | |
7543 | /* confdefs.h. */ | |
7544 | _ACEOF | |
7545 | cat confdefs.h >>conftest.$ac_ext | |
7546 | cat >>conftest.$ac_ext <<_ACEOF | |
7547 | /* end confdefs.h. */ | |
7548 | ||
7549 | int | |
7550 | main () | |
7551 | { | |
7552 | ||
7553 | ; | |
7554 | return 0; | |
7555 | } | |
7556 | _ACEOF | |
7557 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7558 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7559 | (eval $ac_link) 2>conftest.er1 | |
7560 | ac_status=$? | |
7561 | grep -v '^ *+' conftest.er1 >conftest.err | |
7562 | rm -f conftest.er1 | |
7563 | cat conftest.err >&5 | |
7564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7565 | (exit $ac_status); } && | |
7566 | { ac_try='test -z "$ac_c_werror_flag" | |
7567 | || test ! -s conftest.err' | |
7568 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7569 | (eval $ac_try) 2>&5 | |
7570 | ac_status=$? | |
7571 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7572 | (exit $ac_status); }; } && | |
7573 | { ac_try='test -s conftest$ac_exeext' | |
7574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7575 | (eval $ac_try) 2>&5 | |
7576 | ac_status=$? | |
7577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7578 | (exit $ac_status); }; }; then | |
7579 | lt_cv_ld_exported_symbols_list=yes | |
7580 | else | |
7581 | echo "$as_me: failed program was:" >&5 | |
7582 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7583 | ||
7584 | lt_cv_ld_exported_symbols_list=no | |
7585 | fi | |
7586 | rm -f conftest.err conftest.$ac_objext \ | |
7587 | conftest$ac_exeext conftest.$ac_ext | |
7588 | LDFLAGS="$save_LDFLAGS" | |
7589 | ||
7590 | fi | |
7591 | echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 | |
7592 | echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6 | |
7593 | case $host_os in | |
7594 | rhapsody* | darwin1.[012]) | |
7595 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7596 | darwin1.*) | |
7597 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7598 | darwin*) # darwin 5.x on | |
7599 | # if running on 10.5 or later, the deployment target defaults | |
7600 | # to the OS version, if on x86, and 10.4, the deployment | |
7601 | # target defaults to 10.4. Don't you love it? | |
7602 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7603 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7604 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7605 | 10.[012]*) | |
7606 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7607 | 10.*) | |
7608 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7609 | esac | |
7610 | ;; | |
7611 | esac | |
7612 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7613 | _lt_dar_single_mod='$single_module' | |
7614 | fi | |
7615 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7616 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7617 | else | |
7618 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7619 | fi | |
7620 | if test "$DSYMUTIL" != ":"; then | |
7621 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
7622 | else | |
7623 | _lt_dsymutil= | |
7624 | fi | |
7625 | ;; | |
7626 | esac | |
7627 | ||
7628 | ||
d7040cdb SE |
7629 | for ac_header in dlfcn.h |
7630 | do | |
7631 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7632 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7633 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7634 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7636 | else | |
7637 | cat >conftest.$ac_ext <<_ACEOF | |
7638 | /* confdefs.h. */ | |
7639 | _ACEOF | |
7640 | cat confdefs.h >>conftest.$ac_ext | |
7641 | cat >>conftest.$ac_ext <<_ACEOF | |
7642 | /* end confdefs.h. */ | |
7643 | $ac_includes_default | |
7644 | ||
7645 | #include <$ac_header> | |
7646 | _ACEOF | |
7647 | rm -f conftest.$ac_objext | |
7648 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7649 | (eval $ac_compile) 2>conftest.er1 | |
7650 | ac_status=$? | |
7651 | grep -v '^ *+' conftest.er1 >conftest.err | |
7652 | rm -f conftest.er1 | |
7653 | cat conftest.err >&5 | |
7654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7655 | (exit $ac_status); } && | |
7357c5b6 AM |
7656 | { ac_try='test -z "$ac_c_werror_flag" |
7657 | || test ! -s conftest.err' | |
d7040cdb SE |
7658 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
7659 | (eval $ac_try) 2>&5 | |
7660 | ac_status=$? | |
7661 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7662 | (exit $ac_status); }; } && | |
7663 | { ac_try='test -s conftest.$ac_objext' | |
7664 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7665 | (eval $ac_try) 2>&5 | |
7666 | ac_status=$? | |
7667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7668 | (exit $ac_status); }; }; then | |
7669 | eval "$as_ac_Header=yes" | |
7670 | else | |
7671 | echo "$as_me: failed program was:" >&5 | |
7672 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7673 | ||
7674 | eval "$as_ac_Header=no" | |
7675 | fi | |
7676 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7677 | fi | |
7678 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7679 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7680 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7681 | cat >>confdefs.h <<_ACEOF | |
7682 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7683 | _ACEOF | |
7684 | ||
7685 | fi | |
7686 | ||
7687 | done | |
7688 | ||
7689 | ||
7690 | ||
718a6fd8 SE |
7691 | # Set options |
7692 | ||
7693 | ||
7694 | ||
7695 | enable_dlopen=no | |
7696 | ||
7697 | ||
7698 | enable_win32_dll=no | |
7699 | ||
7700 | ||
7701 | ||
7702 | # Check whether --enable-static or --disable-static was given. | |
7703 | if test "${enable_static+set}" = set; then | |
7704 | enableval="$enable_static" | |
7705 | p=${PACKAGE-default} | |
7706 | case $enableval in | |
7707 | yes) enable_static=yes ;; | |
7708 | no) enable_static=no ;; | |
7709 | *) | |
7710 | enable_static=no | |
7711 | # Look at the argument we got. We use all the common list separators. | |
7712 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7713 | for pkg in $enableval; do | |
7714 | IFS="$lt_save_ifs" | |
7715 | if test "X$pkg" = "X$p"; then | |
7716 | enable_static=yes | |
7717 | fi | |
7718 | done | |
7719 | IFS="$lt_save_ifs" | |
7720 | ;; | |
7721 | esac | |
7722 | else | |
7723 | enable_static=yes | |
7724 | fi; | |
7725 | ||
7726 | ||
7727 | ||
7728 | ||
7729 | ||
7730 | ||
7731 | ||
7732 | ||
7733 | ||
7734 | # Check whether --with-pic or --without-pic was given. | |
7735 | if test "${with_pic+set}" = set; then | |
7736 | withval="$with_pic" | |
7737 | pic_mode="$withval" | |
7738 | else | |
7739 | pic_mode=default | |
7740 | fi; | |
7741 | ||
7742 | test -z "$pic_mode" && pic_mode=default | |
7743 | ||
7744 | ||
7745 | ||
7746 | ||
7747 | ||
7748 | ||
7749 | ||
7750 | # Check whether --enable-fast-install or --disable-fast-install was given. | |
7751 | if test "${enable_fast_install+set}" = set; then | |
7752 | enableval="$enable_fast_install" | |
7753 | p=${PACKAGE-default} | |
7754 | case $enableval in | |
7755 | yes) enable_fast_install=yes ;; | |
7756 | no) enable_fast_install=no ;; | |
7757 | *) | |
7758 | enable_fast_install=no | |
7759 | # Look at the argument we got. We use all the common list separators. | |
7760 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7761 | for pkg in $enableval; do | |
7762 | IFS="$lt_save_ifs" | |
7763 | if test "X$pkg" = "X$p"; then | |
7764 | enable_fast_install=yes | |
7765 | fi | |
7766 | done | |
7767 | IFS="$lt_save_ifs" | |
7768 | ;; | |
7769 | esac | |
7770 | else | |
7771 | enable_fast_install=yes | |
7772 | fi; | |
7773 | ||
7774 | ||
7775 | ||
7776 | ||
7777 | ||
7778 | ||
7779 | ||
7780 | ||
7781 | ||
7782 | ||
d7040cdb SE |
7783 | # This can be used to rebuild libtool when needed |
7784 | LIBTOOL_DEPS="$ltmain" | |
7785 | ||
7786 | # Always use our own libtool. | |
7787 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
7788 | ||
7789 | ||
7790 | ||
7791 | ||
7792 | ||
7793 | ||
7794 | ||
7795 | ||
7796 | ||
7797 | ||
7798 | ||
7799 | ||
7800 | ||
7801 | ||
7802 | ||
7803 | ||
7804 | ||
7805 | ||
7806 | ||
7807 | ||
7808 | ||
7809 | ||
7810 | ||
7811 | ||
7812 | ||
7813 | test -z "$LN_S" && LN_S="ln -s" | |
7814 | ||
7815 | ||
7816 | ||
7817 | ||
7818 | ||
7819 | ||
7820 | ||
7821 | ||
7822 | ||
7823 | ||
7824 | ||
7825 | ||
7826 | ||
7827 | ||
7828 | if test -n "${ZSH_VERSION+set}" ; then | |
7829 | setopt NO_GLOB_SUBST | |
7830 | fi | |
7831 | ||
7832 | echo "$as_me:$LINENO: checking for objdir" >&5 | |
7833 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | |
7834 | if test "${lt_cv_objdir+set}" = set; then | |
7835 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7836 | else | |
7837 | rm -f .libs 2>/dev/null | |
7838 | mkdir .libs 2>/dev/null | |
7839 | if test -d .libs; then | |
7840 | lt_cv_objdir=.libs | |
7841 | else | |
7842 | # MS-DOS does not allow filenames that begin with a dot. | |
7843 | lt_cv_objdir=_libs | |
7844 | fi | |
7845 | rmdir .libs 2>/dev/null | |
7846 | fi | |
7847 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
7848 | echo "${ECHO_T}$lt_cv_objdir" >&6 | |
7849 | objdir=$lt_cv_objdir | |
7850 | ||
7851 | ||
7852 | ||
7853 | ||
7854 | ||
7855 | cat >>confdefs.h <<_ACEOF | |
7856 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7857 | _ACEOF | |
7858 | ||
7859 | ||
7860 | ||
7861 | ||
7862 | ||
7863 | ||
7864 | ||
7865 | ||
7866 | ||
7867 | ||
7868 | ||
7869 | ||
7870 | ||
7871 | ||
7872 | ||
7873 | ||
7874 | ||
7875 | case $host_os in | |
7876 | aix3*) | |
7877 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7878 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7879 | # vanish in a puff of smoke. | |
7880 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7881 | COLLECT_NAMES= | |
7882 | export COLLECT_NAMES | |
7883 | fi | |
7884 | ;; | |
7885 | esac | |
7886 | ||
7887 | # Sed substitution that helps us do robust quoting. It backslashifies | |
7888 | # metacharacters that are still active within double-quoted strings. | |
7889 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
7890 | ||
7891 | # Same as above, but do not quote variable references. | |
7892 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
7893 | ||
7894 | # Sed substitution to delay expansion of an escaped shell variable in a | |
7895 | # double_quote_subst'ed string. | |
7896 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
7897 | ||
7898 | # Sed substitution to delay expansion of an escaped single quote. | |
7899 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
7900 | ||
7901 | # Sed substitution to avoid accidental globbing in evaled expressions | |
7902 | no_glob_subst='s/\*/\\\*/g' | |
7903 | ||
7904 | # Global variables: | |
7905 | ofile=libtool | |
7906 | can_build_shared=yes | |
7907 | ||
7908 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
7909 | # which needs '.lib'). | |
7910 | libext=a | |
7911 | ||
7912 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
7913 | ||
7914 | old_CC="$CC" | |
7915 | old_CFLAGS="$CFLAGS" | |
7916 | ||
7917 | # Set sane defaults for various variables | |
7918 | test -z "$CC" && CC=cc | |
7919 | test -z "$LTCC" && LTCC=$CC | |
7920 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7921 | test -z "$LD" && LD=ld | |
7922 | test -z "$ac_objext" && ac_objext=o | |
7923 | ||
7924 | for cc_temp in $compiler""; do | |
7925 | case $cc_temp in | |
7926 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7927 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7928 | \-*) ;; | |
7929 | *) break;; | |
7930 | esac | |
7931 | done | |
7932 | cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
7933 | ||
7934 | ||
7935 | # Only perform the check for file, if the check method requires it | |
7936 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7937 | case $deplibs_check_method in | |
7938 | file_magic*) | |
7939 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
7940 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
7941 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | |
7942 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
7943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7944 | else | |
7945 | case $MAGIC_CMD in | |
7946 | [\\/*] | ?:[\\/]*) | |
7947 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7948 | ;; | |
7949 | *) | |
7950 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7951 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7952 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7953 | for ac_dir in $ac_dummy; do | |
7954 | IFS="$lt_save_ifs" | |
7955 | test -z "$ac_dir" && ac_dir=. | |
7956 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7957 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7958 | if test -n "$file_magic_test_file"; then | |
7959 | case $deplibs_check_method in | |
7960 | "file_magic "*) | |
7961 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7962 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7963 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7964 | $EGREP "$file_magic_regex" > /dev/null; then | |
7965 | : | |
7966 | else | |
7967 | cat <<_LT_EOF 1>&2 | |
7968 | ||
7969 | *** Warning: the command libtool uses to detect shared libraries, | |
7970 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7971 | *** The result is that libtool may fail to recognize shared libraries | |
7972 | *** as such. This will affect the creation of libtool libraries that | |
7973 | *** depend on shared libraries, but programs linked with such libtool | |
7974 | *** libraries will work regardless of this problem. Nevertheless, you | |
7975 | *** may want to report the problem to your system manager and/or to | |
7976 | *** bug-libtool@gnu.org | |
7977 | ||
7978 | _LT_EOF | |
7979 | fi ;; | |
7980 | esac | |
7981 | fi | |
7982 | break | |
7983 | fi | |
7984 | done | |
7985 | IFS="$lt_save_ifs" | |
7986 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7987 | ;; | |
7988 | esac | |
7989 | fi | |
7990 | ||
7991 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7992 | if test -n "$MAGIC_CMD"; then | |
7993 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
7994 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
7995 | else | |
7996 | echo "$as_me:$LINENO: result: no" >&5 | |
7997 | echo "${ECHO_T}no" >&6 | |
7998 | fi | |
7999 | ||
8000 | ||
8001 | ||
8002 | ||
8003 | ||
8004 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8005 | if test -n "$ac_tool_prefix"; then | |
8006 | echo "$as_me:$LINENO: checking for file" >&5 | |
8007 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | |
8008 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
8009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8010 | else | |
8011 | case $MAGIC_CMD in | |
8012 | [\\/*] | ?:[\\/]*) | |
8013 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8014 | ;; | |
8015 | *) | |
8016 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8017 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8018 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8019 | for ac_dir in $ac_dummy; do | |
8020 | IFS="$lt_save_ifs" | |
8021 | test -z "$ac_dir" && ac_dir=. | |
8022 | if test -f $ac_dir/file; then | |
8023 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8024 | if test -n "$file_magic_test_file"; then | |
8025 | case $deplibs_check_method in | |
8026 | "file_magic "*) | |
8027 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8028 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8029 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8030 | $EGREP "$file_magic_regex" > /dev/null; then | |
8031 | : | |
8032 | else | |
8033 | cat <<_LT_EOF 1>&2 | |
8034 | ||
8035 | *** Warning: the command libtool uses to detect shared libraries, | |
8036 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8037 | *** The result is that libtool may fail to recognize shared libraries | |
8038 | *** as such. This will affect the creation of libtool libraries that | |
8039 | *** depend on shared libraries, but programs linked with such libtool | |
8040 | *** libraries will work regardless of this problem. Nevertheless, you | |
8041 | *** may want to report the problem to your system manager and/or to | |
8042 | *** bug-libtool@gnu.org | |
8043 | ||
8044 | _LT_EOF | |
8045 | fi ;; | |
8046 | esac | |
8047 | fi | |
8048 | break | |
8049 | fi | |
8050 | done | |
8051 | IFS="$lt_save_ifs" | |
8052 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8053 | ;; | |
8054 | esac | |
8055 | fi | |
8056 | ||
8057 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8058 | if test -n "$MAGIC_CMD"; then | |
8059 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
8060 | echo "${ECHO_T}$MAGIC_CMD" >&6 | |
8061 | else | |
8062 | echo "$as_me:$LINENO: result: no" >&5 | |
8063 | echo "${ECHO_T}no" >&6 | |
8064 | fi | |
8065 | ||
8066 | ||
8067 | else | |
8068 | MAGIC_CMD=: | |
8069 | fi | |
8070 | fi | |
8071 | ||
8072 | fi | |
8073 | ;; | |
8074 | esac | |
8075 | ||
8076 | # Use C for the default configuration in the libtool script | |
8077 | ||
8078 | lt_save_CC="$CC" | |
8079 | ac_ext=c | |
8080 | ac_cpp='$CPP $CPPFLAGS' | |
8081 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8082 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8083 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8084 | ||
8085 | ||
8086 | # Source file extension for C test sources. | |
8087 | ac_ext=c | |
8088 | ||
8089 | # Object file extension for compiled C test sources. | |
8090 | objext=o | |
8091 | objext=$objext | |
8092 | ||
8093 | # Code to be used in simple compile tests | |
8094 | lt_simple_compile_test_code="int some_variable = 0;" | |
8095 | ||
8096 | # Code to be used in simple link tests | |
8097 | lt_simple_link_test_code='int main(){return(0);}' | |
8098 | ||
8099 | ||
8100 | ||
8101 | ||
8102 | ||
8103 | ||
8104 | ||
8105 | # If no C compiler was specified, use CC. | |
8106 | LTCC=${LTCC-"$CC"} | |
8107 | ||
8108 | # If no C compiler flags were specified, use CFLAGS. | |
8109 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8110 | ||
8111 | # Allow CC to be a program name with arguments. | |
8112 | compiler=$CC | |
8113 | ||
8114 | # Save the default compiler, since it gets overwritten when the other | |
8115 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8116 | compiler_DEFAULT=$CC | |
8117 | ||
8118 | # save warnings/boilerplate of simple test code | |
8119 | ac_outfile=conftest.$ac_objext | |
8120 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8121 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8122 | _lt_compiler_boilerplate=`cat conftest.err` | |
8123 | $RM conftest* | |
8124 | ||
8125 | ac_outfile=conftest.$ac_objext | |
8126 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8127 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8128 | _lt_linker_boilerplate=`cat conftest.err` | |
718a6fd8 | 8129 | $RM -r conftest* |
d7040cdb SE |
8130 | |
8131 | ||
8132 | ## CAVEAT EMPTOR: | |
8133 | ## There is no encapsulation within the following macros, do not change | |
8134 | ## the running order or otherwise move them around unless you know exactly | |
8135 | ## what you are doing... | |
8136 | if test -n "$compiler"; then | |
8137 | ||
8138 | lt_prog_compiler_no_builtin_flag= | |
8139 | ||
8140 | if test "$GCC" = yes; then | |
8141 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
8142 | ||
8143 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
8144 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | |
8145 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
8146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8147 | else | |
8148 | lt_cv_prog_compiler_rtti_exceptions=no | |
8149 | ac_outfile=conftest.$ac_objext | |
8150 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8151 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8152 | # Insert the option either (1) after the last *FLAGS variable, or | |
8153 | # (2) before a word containing "conftest.", or (3) at the end. | |
8154 | # Note that $ac_compile itself does not contain backslashes and begins | |
8155 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8156 | # The option is referenced via a variable to avoid confusing sed. | |
8157 | lt_compile=`echo "$ac_compile" | $SED \ | |
8158 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8159 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8160 | -e 's:$: $lt_compiler_flag:'` | |
29670fb9 | 8161 | (eval echo "\"\$as_me:8161: $lt_compile\"" >&5) |
d7040cdb SE |
8162 | (eval "$lt_compile" 2>conftest.err) |
8163 | ac_status=$? | |
8164 | cat conftest.err >&5 | |
29670fb9 | 8165 | echo "$as_me:8165: \$? = $ac_status" >&5 |
d7040cdb SE |
8166 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8167 | # The compiler can only warn and ignore the option if not recognized | |
8168 | # So say no if there are warnings other than the usual output. | |
8169 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8170 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8171 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8172 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8173 | fi | |
8174 | fi | |
8175 | $RM conftest* | |
8176 | ||
8177 | fi | |
8178 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8179 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | |
8180 | ||
8181 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8182 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8183 | else | |
8184 | : | |
8185 | fi | |
8186 | ||
8187 | fi | |
8188 | ||
8189 | ||
8190 | ||
8191 | ||
8192 | ||
8193 | ||
8194 | lt_prog_compiler_wl= | |
8195 | lt_prog_compiler_pic= | |
8196 | lt_prog_compiler_static= | |
8197 | ||
8198 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
8199 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | |
8200 | ||
8201 | if test "$GCC" = yes; then | |
8202 | lt_prog_compiler_wl='-Wl,' | |
8203 | lt_prog_compiler_static='-static' | |
8204 | ||
8205 | case $host_os in | |
8206 | aix*) | |
8207 | # All AIX code is PIC. | |
8208 | if test "$host_cpu" = ia64; then | |
8209 | # AIX 5 now supports IA64 processor | |
8210 | lt_prog_compiler_static='-Bstatic' | |
8211 | fi | |
8212 | ;; | |
8213 | ||
8214 | amigaos*) | |
718a6fd8 SE |
8215 | case $host_cpu in |
8216 | powerpc) | |
8217 | # see comment about AmigaOS4 .so support | |
8218 | lt_prog_compiler_pic='-fPIC' | |
8219 | ;; | |
8220 | m68k) | |
8221 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8222 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8223 | # like `-m68040'. | |
8224 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8225 | ;; | |
8226 | esac | |
d7040cdb SE |
8227 | ;; |
8228 | ||
8229 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8230 | # PIC is the default for these OSes. | |
8231 | ;; | |
8232 | ||
718a6fd8 | 8233 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
d7040cdb SE |
8234 | # This hack is so that the source file can tell whether it is being |
8235 | # built for inclusion in a dll (and should export symbols for example). | |
8236 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8237 | # (--disable-auto-import) libraries | |
8238 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8239 | ;; | |
8240 | ||
8241 | darwin* | rhapsody*) | |
8242 | # PIC is the default on this platform | |
8243 | # Common symbols not allowed in MH_DYLIB files | |
8244 | lt_prog_compiler_pic='-fno-common' | |
8245 | ;; | |
8246 | ||
8247 | hpux*) | |
718a6fd8 SE |
8248 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8249 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8250 | # sets the default TLS model and affects inlining. | |
d7040cdb | 8251 | case $host_cpu in |
718a6fd8 | 8252 | hppa*64*) |
d7040cdb SE |
8253 | # +Z the default |
8254 | ;; | |
8255 | *) | |
8256 | lt_prog_compiler_pic='-fPIC' | |
8257 | ;; | |
8258 | esac | |
8259 | ;; | |
8260 | ||
8261 | interix[3-9]*) | |
8262 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8263 | # Instead, we relocate shared libraries at runtime. | |
8264 | ;; | |
8265 | ||
8266 | msdosdjgpp*) | |
8267 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8268 | # on systems that don't support them. | |
8269 | lt_prog_compiler_can_build_shared=no | |
8270 | enable_shared=no | |
8271 | ;; | |
8272 | ||
8273 | *nto* | *qnx*) | |
8274 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8275 | # it will coredump. | |
8276 | lt_prog_compiler_pic='-fPIC -shared' | |
8277 | ;; | |
8278 | ||
8279 | sysv4*MP*) | |
8280 | if test -d /usr/nec; then | |
8281 | lt_prog_compiler_pic=-Kconform_pic | |
8282 | fi | |
8283 | ;; | |
8284 | ||
8285 | *) | |
8286 | lt_prog_compiler_pic='-fPIC' | |
8287 | ;; | |
8288 | esac | |
8289 | else | |
8290 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8291 | case $host_os in | |
8292 | aix*) | |
8293 | lt_prog_compiler_wl='-Wl,' | |
8294 | if test "$host_cpu" = ia64; then | |
8295 | # AIX 5 now supports IA64 processor | |
8296 | lt_prog_compiler_static='-Bstatic' | |
8297 | else | |
8298 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8299 | fi | |
8300 | ;; | |
d7040cdb | 8301 | |
718a6fd8 | 8302 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
d7040cdb SE |
8303 | # This hack is so that the source file can tell whether it is being |
8304 | # built for inclusion in a dll (and should export symbols for example). | |
8305 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8306 | ;; | |
8307 | ||
8308 | hpux9* | hpux10* | hpux11*) | |
8309 | lt_prog_compiler_wl='-Wl,' | |
8310 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8311 | # not for PA HP-UX. | |
8312 | case $host_cpu in | |
8313 | hppa*64*|ia64*) | |
8314 | # +Z the default | |
8315 | ;; | |
8316 | *) | |
8317 | lt_prog_compiler_pic='+Z' | |
8318 | ;; | |
8319 | esac | |
8320 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8321 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8322 | ;; | |
8323 | ||
8324 | irix5* | irix6* | nonstopux*) | |
8325 | lt_prog_compiler_wl='-Wl,' | |
8326 | # PIC (with -KPIC) is the default. | |
8327 | lt_prog_compiler_static='-non_shared' | |
8328 | ;; | |
8329 | ||
58e24671 | 8330 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
d7040cdb | 8331 | case $cc_basename in |
718a6fd8 SE |
8332 | # old Intel for x86_64 which still supported -KPIC. |
8333 | ecc*) | |
d7040cdb SE |
8334 | lt_prog_compiler_wl='-Wl,' |
8335 | lt_prog_compiler_pic='-KPIC' | |
8336 | lt_prog_compiler_static='-static' | |
8337 | ;; | |
718a6fd8 SE |
8338 | # icc used to be incompatible with GCC. |
8339 | # ICC 10 doesn't accept -KPIC any more. | |
8340 | icc* | ifort*) | |
8341 | lt_prog_compiler_wl='-Wl,' | |
8342 | lt_prog_compiler_pic='-fPIC' | |
8343 | lt_prog_compiler_static='-static' | |
8344 | ;; | |
8345 | # Lahey Fortran 8.1. | |
8346 | lf95*) | |
8347 | lt_prog_compiler_wl='-Wl,' | |
8348 | lt_prog_compiler_pic='--shared' | |
8349 | lt_prog_compiler_static='--static' | |
8350 | ;; | |
d7040cdb SE |
8351 | pgcc* | pgf77* | pgf90* | pgf95*) |
8352 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8353 | # which looks to be a dead project) | |
8354 | lt_prog_compiler_wl='-Wl,' | |
8355 | lt_prog_compiler_pic='-fpic' | |
8356 | lt_prog_compiler_static='-Bstatic' | |
8357 | ;; | |
8358 | ccc*) | |
8359 | lt_prog_compiler_wl='-Wl,' | |
8360 | # All Alpha code is PIC. | |
8361 | lt_prog_compiler_static='-non_shared' | |
8362 | ;; | |
718a6fd8 SE |
8363 | xl*) |
8364 | # IBM XL C 8.0/Fortran 10.1 on PPC | |
8365 | lt_prog_compiler_wl='-Wl,' | |
8366 | lt_prog_compiler_pic='-qpic' | |
8367 | lt_prog_compiler_static='-qstaticlink' | |
8368 | ;; | |
d7040cdb SE |
8369 | *) |
8370 | case `$CC -V 2>&1 | sed 5q` in | |
8371 | *Sun\ C*) | |
8372 | # Sun C 5.9 | |
8373 | lt_prog_compiler_pic='-KPIC' | |
8374 | lt_prog_compiler_static='-Bstatic' | |
8375 | lt_prog_compiler_wl='-Wl,' | |
8376 | ;; | |
8377 | *Sun\ F*) | |
8378 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8379 | lt_prog_compiler_pic='-KPIC' | |
8380 | lt_prog_compiler_static='-Bstatic' | |
8381 | lt_prog_compiler_wl='' | |
8382 | ;; | |
8383 | esac | |
8384 | ;; | |
8385 | esac | |
8386 | ;; | |
8387 | ||
8388 | newsos6) | |
8389 | lt_prog_compiler_pic='-KPIC' | |
8390 | lt_prog_compiler_static='-Bstatic' | |
8391 | ;; | |
8392 | ||
8393 | *nto* | *qnx*) | |
8394 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8395 | # it will coredump. | |
8396 | lt_prog_compiler_pic='-fPIC -shared' | |
8397 | ;; | |
8398 | ||
8399 | osf3* | osf4* | osf5*) | |
8400 | lt_prog_compiler_wl='-Wl,' | |
8401 | # All OSF/1 code is PIC. | |
8402 | lt_prog_compiler_static='-non_shared' | |
8403 | ;; | |
8404 | ||
8405 | rdos*) | |
8406 | lt_prog_compiler_static='-non_shared' | |
8407 | ;; | |
8408 | ||
8409 | solaris*) | |
8410 | lt_prog_compiler_pic='-KPIC' | |
8411 | lt_prog_compiler_static='-Bstatic' | |
8412 | case $cc_basename in | |
8413 | f77* | f90* | f95*) | |
8414 | lt_prog_compiler_wl='-Qoption ld ';; | |
8415 | *) | |
8416 | lt_prog_compiler_wl='-Wl,';; | |
8417 | esac | |
8418 | ;; | |
8419 | ||
8420 | sunos4*) | |
8421 | lt_prog_compiler_wl='-Qoption ld ' | |
8422 | lt_prog_compiler_pic='-PIC' | |
8423 | lt_prog_compiler_static='-Bstatic' | |
8424 | ;; | |
8425 | ||
8426 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8427 | lt_prog_compiler_wl='-Wl,' | |
8428 | lt_prog_compiler_pic='-KPIC' | |
8429 | lt_prog_compiler_static='-Bstatic' | |
8430 | ;; | |
8431 | ||
8432 | sysv4*MP*) | |
8433 | if test -d /usr/nec ;then | |
8434 | lt_prog_compiler_pic='-Kconform_pic' | |
8435 | lt_prog_compiler_static='-Bstatic' | |
8436 | fi | |
8437 | ;; | |
8438 | ||
8439 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8440 | lt_prog_compiler_wl='-Wl,' | |
8441 | lt_prog_compiler_pic='-KPIC' | |
8442 | lt_prog_compiler_static='-Bstatic' | |
8443 | ;; | |
8444 | ||
8445 | unicos*) | |
8446 | lt_prog_compiler_wl='-Wl,' | |
8447 | lt_prog_compiler_can_build_shared=no | |
8448 | ;; | |
8449 | ||
8450 | uts4*) | |
8451 | lt_prog_compiler_pic='-pic' | |
8452 | lt_prog_compiler_static='-Bstatic' | |
8453 | ;; | |
8454 | ||
8455 | *) | |
8456 | lt_prog_compiler_can_build_shared=no | |
8457 | ;; | |
8458 | esac | |
8459 | fi | |
8460 | ||
8461 | case $host_os in | |
8462 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8463 | *djgpp*) | |
8464 | lt_prog_compiler_pic= | |
8465 | ;; | |
8466 | *) | |
8467 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8468 | ;; | |
8469 | esac | |
8470 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
8471 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | |
8472 | ||
8473 | ||
8474 | ||
8475 | ||
8476 | ||
8477 | ||
8478 | # | |
8479 | # Check to make sure the PIC flag actually works. | |
8480 | # | |
8481 | if test -n "$lt_prog_compiler_pic"; then | |
8482 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8483 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | |
718a6fd8 | 8484 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then |
d7040cdb SE |
8485 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8486 | else | |
718a6fd8 | 8487 | lt_cv_prog_compiler_pic_works=no |
d7040cdb SE |
8488 | ac_outfile=conftest.$ac_objext |
8489 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8490 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8491 | # Insert the option either (1) after the last *FLAGS variable, or | |
8492 | # (2) before a word containing "conftest.", or (3) at the end. | |
8493 | # Note that $ac_compile itself does not contain backslashes and begins | |
8494 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8495 | # The option is referenced via a variable to avoid confusing sed. | |
8496 | lt_compile=`echo "$ac_compile" | $SED \ | |
8497 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8498 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8499 | -e 's:$: $lt_compiler_flag:'` | |
29670fb9 | 8500 | (eval echo "\"\$as_me:8500: $lt_compile\"" >&5) |
d7040cdb SE |
8501 | (eval "$lt_compile" 2>conftest.err) |
8502 | ac_status=$? | |
8503 | cat conftest.err >&5 | |
29670fb9 | 8504 | echo "$as_me:8504: \$? = $ac_status" >&5 |
d7040cdb SE |
8505 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8506 | # The compiler can only warn and ignore the option if not recognized | |
8507 | # So say no if there are warnings other than the usual output. | |
8508 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
8509 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8510 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
718a6fd8 | 8511 | lt_cv_prog_compiler_pic_works=yes |
d7040cdb SE |
8512 | fi |
8513 | fi | |
8514 | $RM conftest* | |
8515 | ||
8516 | fi | |
718a6fd8 SE |
8517 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 |
8518 | echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6 | |
d7040cdb | 8519 | |
718a6fd8 | 8520 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
d7040cdb SE |
8521 | case $lt_prog_compiler_pic in |
8522 | "" | " "*) ;; | |
8523 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8524 | esac | |
8525 | else | |
8526 | lt_prog_compiler_pic= | |
8527 | lt_prog_compiler_can_build_shared=no | |
8528 | fi | |
8529 | ||
8530 | fi | |
8531 | ||
8532 | ||
8533 | ||
8534 | ||
8535 | ||
8536 | ||
8537 | # | |
8538 | # Check to make sure the static flag actually works. | |
8539 | # | |
8540 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
8541 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
8542 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 | |
718a6fd8 | 8543 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then |
d7040cdb SE |
8544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8545 | else | |
718a6fd8 | 8546 | lt_cv_prog_compiler_static_works=no |
d7040cdb SE |
8547 | save_LDFLAGS="$LDFLAGS" |
8548 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8549 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8550 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8551 | # The linker can only warn and ignore the option if not recognized | |
8552 | # So say no if there are warnings | |
8553 | if test -s conftest.err; then | |
8554 | # Append any errors to the config.log. | |
8555 | cat conftest.err 1>&5 | |
8556 | $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
8557 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8558 | if diff conftest.exp conftest.er2 >/dev/null; then | |
718a6fd8 | 8559 | lt_cv_prog_compiler_static_works=yes |
d7040cdb SE |
8560 | fi |
8561 | else | |
718a6fd8 | 8562 | lt_cv_prog_compiler_static_works=yes |
d7040cdb SE |
8563 | fi |
8564 | fi | |
718a6fd8 | 8565 | $RM -r conftest* |
d7040cdb SE |
8566 | LDFLAGS="$save_LDFLAGS" |
8567 | ||
8568 | fi | |
718a6fd8 SE |
8569 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 |
8570 | echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6 | |
d7040cdb | 8571 | |
718a6fd8 | 8572 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
d7040cdb SE |
8573 | : |
8574 | else | |
8575 | lt_prog_compiler_static= | |
8576 | fi | |
8577 | ||
8578 | ||
8579 | ||
8580 | ||
8581 | ||
8582 | ||
8583 | ||
8584 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8585 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
8586 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
8587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8588 | else | |
8589 | lt_cv_prog_compiler_c_o=no | |
8590 | $RM -r conftest 2>/dev/null | |
8591 | mkdir conftest | |
8592 | cd conftest | |
8593 | mkdir out | |
8594 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8595 | ||
8596 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8597 | # Insert the option either (1) after the last *FLAGS variable, or | |
8598 | # (2) before a word containing "conftest.", or (3) at the end. | |
8599 | # Note that $ac_compile itself does not contain backslashes and begins | |
8600 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8601 | lt_compile=`echo "$ac_compile" | $SED \ | |
8602 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8603 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8604 | -e 's:$: $lt_compiler_flag:'` | |
29670fb9 | 8605 | (eval echo "\"\$as_me:8605: $lt_compile\"" >&5) |
d7040cdb SE |
8606 | (eval "$lt_compile" 2>out/conftest.err) |
8607 | ac_status=$? | |
8608 | cat out/conftest.err >&5 | |
29670fb9 | 8609 | echo "$as_me:8609: \$? = $ac_status" >&5 |
d7040cdb SE |
8610 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8611 | then | |
8612 | # The compiler can only warn and ignore the option if not recognized | |
8613 | # So say no if there are warnings | |
8614 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8615 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8616 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8617 | lt_cv_prog_compiler_c_o=yes | |
8618 | fi | |
8619 | fi | |
8620 | chmod u+w . 2>&5 | |
8621 | $RM conftest* | |
8622 | # SGI C++ compiler will create directory out/ii_files/ for | |
8623 | # template instantiation | |
8624 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8625 | $RM out/* && rmdir out | |
8626 | cd .. | |
8627 | $RM -r conftest | |
8628 | $RM conftest* | |
8629 | ||
8630 | fi | |
8631 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
8632 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
8633 | ||
8634 | ||
8635 | ||
8636 | ||
8637 | ||
8638 | ||
8639 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8640 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | |
8641 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
8642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8643 | else | |
8644 | lt_cv_prog_compiler_c_o=no | |
8645 | $RM -r conftest 2>/dev/null | |
8646 | mkdir conftest | |
8647 | cd conftest | |
8648 | mkdir out | |
8649 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8650 | ||
8651 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8652 | # Insert the option either (1) after the last *FLAGS variable, or | |
8653 | # (2) before a word containing "conftest.", or (3) at the end. | |
8654 | # Note that $ac_compile itself does not contain backslashes and begins | |
8655 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8656 | lt_compile=`echo "$ac_compile" | $SED \ | |
8657 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8658 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8659 | -e 's:$: $lt_compiler_flag:'` | |
29670fb9 | 8660 | (eval echo "\"\$as_me:8660: $lt_compile\"" >&5) |
d7040cdb SE |
8661 | (eval "$lt_compile" 2>out/conftest.err) |
8662 | ac_status=$? | |
8663 | cat out/conftest.err >&5 | |
29670fb9 | 8664 | echo "$as_me:8664: \$? = $ac_status" >&5 |
d7040cdb SE |
8665 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8666 | then | |
8667 | # The compiler can only warn and ignore the option if not recognized | |
8668 | # So say no if there are warnings | |
8669 | $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
8670 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8671 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8672 | lt_cv_prog_compiler_c_o=yes | |
8673 | fi | |
8674 | fi | |
8675 | chmod u+w . 2>&5 | |
8676 | $RM conftest* | |
8677 | # SGI C++ compiler will create directory out/ii_files/ for | |
8678 | # template instantiation | |
8679 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8680 | $RM out/* && rmdir out | |
8681 | cd .. | |
8682 | $RM -r conftest | |
8683 | $RM conftest* | |
8684 | ||
8685 | fi | |
8686 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
8687 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | |
8688 | ||
8689 | ||
8690 | ||
8691 | ||
8692 | hard_links="nottested" | |
8693 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8694 | # do not overwrite the value of need_locks provided by the user | |
8695 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
8696 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | |
8697 | hard_links=yes | |
8698 | $RM conftest* | |
8699 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8700 | touch conftest.a | |
8701 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8702 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8703 | echo "$as_me:$LINENO: result: $hard_links" >&5 | |
8704 | echo "${ECHO_T}$hard_links" >&6 | |
8705 | if test "$hard_links" = no; then | |
8706 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
8707 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
8708 | need_locks=warn | |
8709 | fi | |
8710 | else | |
8711 | need_locks=no | |
8712 | fi | |
8713 | ||
8714 | ||
8715 | ||
8716 | ||
8717 | ||
8718 | ||
8719 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
8720 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | |
8721 | ||
8722 | runpath_var= | |
8723 | allow_undefined_flag= | |
8724 | always_export_symbols=no | |
8725 | archive_cmds= | |
8726 | archive_expsym_cmds= | |
8727 | compiler_needs_object=no | |
8728 | enable_shared_with_static_runtimes=no | |
8729 | export_dynamic_flag_spec= | |
8730 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8731 | hardcode_automatic=no | |
8732 | hardcode_direct=no | |
8733 | hardcode_direct_absolute=no | |
8734 | hardcode_libdir_flag_spec= | |
8735 | hardcode_libdir_flag_spec_ld= | |
8736 | hardcode_libdir_separator= | |
8737 | hardcode_minus_L=no | |
8738 | hardcode_shlibpath_var=unsupported | |
8739 | inherit_rpath=no | |
8740 | link_all_deplibs=unknown | |
8741 | module_cmds= | |
8742 | module_expsym_cmds= | |
8743 | old_archive_from_new_cmds= | |
8744 | old_archive_from_expsyms_cmds= | |
8745 | thread_safe_flag_spec= | |
8746 | whole_archive_flag_spec= | |
8747 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8748 | # included in the symbol list | |
8749 | include_expsyms= | |
8750 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8751 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8752 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8753 | # as well as any symbol that contains `d'. | |
718a6fd8 | 8754 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
d7040cdb SE |
8755 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8756 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8757 | # the symbol is explicitly referenced. Since portable code cannot | |
8758 | # rely on this symbol name, it's probably fine to never include it in | |
8759 | # preloaded symbol tables. | |
718a6fd8 | 8760 | # Exclude shared library initialization/finalization symbols. |
d7040cdb SE |
8761 | extract_expsyms_cmds= |
8762 | ||
8763 | case $host_os in | |
718a6fd8 | 8764 | cygwin* | mingw* | pw32* | cegcc*) |
d7040cdb SE |
8765 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8766 | # When not using gcc, we currently assume that we are using | |
8767 | # Microsoft Visual C++. | |
8768 | if test "$GCC" != yes; then | |
8769 | with_gnu_ld=no | |
8770 | fi | |
8771 | ;; | |
8772 | interix*) | |
8773 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8774 | with_gnu_ld=yes | |
8775 | ;; | |
8776 | openbsd*) | |
8777 | with_gnu_ld=no | |
8778 | ;; | |
8779 | esac | |
8780 | ||
8781 | ld_shlibs=yes | |
8782 | if test "$with_gnu_ld" = yes; then | |
8783 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
8784 | wlarc='${wl}' | |
8785 | ||
8786 | # Set some defaults for GNU ld with shared library support. These | |
8787 | # are reset later if shared libraries are not supported. Putting them | |
8788 | # here allows them to be overridden if necessary. | |
8789 | runpath_var=LD_RUN_PATH | |
8790 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8791 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8792 | # ancient GNU ld didn't support --whole-archive et. al. | |
8793 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8794 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8795 | else | |
8796 | whole_archive_flag_spec= | |
8797 | fi | |
8798 | supports_anon_versioning=no | |
8799 | case `$LD -v 2>&1` in | |
8800 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
8801 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8802 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8803 | *\ 2.11.*) ;; # other 2.11 versions | |
8804 | *) supports_anon_versioning=yes ;; | |
8805 | esac | |
8806 | ||
8807 | # See if GNU ld supports shared libraries. | |
8808 | case $host_os in | |
e81819a5 | 8809 | aix[3-9]*) |
d7040cdb SE |
8810 | # On AIX/PPC, the GNU linker is very broken |
8811 | if test "$host_cpu" != ia64; then | |
8812 | ld_shlibs=no | |
8813 | cat <<_LT_EOF 1>&2 | |
8814 | ||
8815 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
8816 | *** to be unable to reliably create shared libraries on AIX. | |
8817 | *** Therefore, libtool is disabling shared libraries support. If you | |
8818 | *** really care for shared libraries, you may want to modify your PATH | |
8819 | *** so that a non-GNU linker is found, and then restart. | |
8820 | ||
8821 | _LT_EOF | |
8822 | fi | |
8823 | ;; | |
8824 | ||
8825 | amigaos*) | |
718a6fd8 SE |
8826 | case $host_cpu in |
8827 | powerpc) | |
8828 | # see comment about AmigaOS4 .so support | |
8829 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8830 | archive_expsym_cmds='' | |
8831 | ;; | |
8832 | m68k) | |
8833 | 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)' | |
8834 | hardcode_libdir_flag_spec='-L$libdir' | |
8835 | hardcode_minus_L=yes | |
8836 | ;; | |
8837 | esac | |
d7040cdb SE |
8838 | ;; |
8839 | ||
8840 | beos*) | |
8841 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8842 | allow_undefined_flag=unsupported | |
8843 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8844 | # support --undefined. This deserves some investigation. FIXME | |
8845 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8846 | else | |
8847 | ld_shlibs=no | |
8848 | fi | |
8849 | ;; | |
8850 | ||
718a6fd8 | 8851 | cygwin* | mingw* | pw32* | cegcc*) |
d7040cdb SE |
8852 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
8853 | # as there is no search path for DLLs. | |
8854 | hardcode_libdir_flag_spec='-L$libdir' | |
8855 | allow_undefined_flag=unsupported | |
8856 | always_export_symbols=no | |
8857 | enable_shared_with_static_runtimes=yes | |
8858 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
8859 | ||
8860 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
8861 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8862 | # If the export-symbols file already is a .def file (1st line | |
8863 | # is EXPORTS), use it as is; otherwise, prepend... | |
8864 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8865 | cp $export_symbols $output_objdir/$soname.def; | |
8866 | else | |
8867 | echo EXPORTS > $output_objdir/$soname.def; | |
8868 | cat $export_symbols >> $output_objdir/$soname.def; | |
8869 | fi~ | |
8870 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8871 | else | |
8872 | ld_shlibs=no | |
8873 | fi | |
8874 | ;; | |
8875 | ||
8876 | interix[3-9]*) | |
8877 | hardcode_direct=no | |
8878 | hardcode_shlibpath_var=no | |
8879 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8880 | export_dynamic_flag_spec='${wl}-E' | |
8881 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8882 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8883 | # default) and relocated if they conflict, which is a slow very memory | |
8884 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8885 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8886 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8887 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8888 | 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' | |
8889 | ;; | |
8890 | ||
58e24671 | 8891 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
d7040cdb SE |
8892 | tmp_diet=no |
8893 | if test "$host_os" = linux-dietlibc; then | |
8894 | case $cc_basename in | |
8895 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8896 | esac | |
8897 | fi | |
8898 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8899 | && test "$tmp_diet" = no | |
8900 | then | |
8901 | tmp_addflag= | |
718a6fd8 | 8902 | tmp_sharedflag='-shared' |
d7040cdb SE |
8903 | case $cc_basename,$host_cpu in |
8904 | pgcc*) # Portland Group C compiler | |
8905 | 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' | |
8906 | tmp_addflag=' $pic_flag' | |
8907 | ;; | |
8908 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
8909 | 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' | |
8910 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
8911 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8912 | tmp_addflag=' -i_dynamic' ;; | |
8913 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8914 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8915 | ifc* | ifort*) # Intel Fortran compiler | |
8916 | tmp_addflag=' -nofor_main' ;; | |
718a6fd8 SE |
8917 | lf95*) # Lahey Fortran 8.1 |
8918 | whole_archive_flag_spec= | |
8919 | tmp_sharedflag='--shared' ;; | |
8920 | xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
8921 | tmp_sharedflag='-qmkshrobj' | |
8922 | tmp_addflag= ;; | |
d7040cdb SE |
8923 | esac |
8924 | case `$CC -V 2>&1 | sed 5q` in | |
8925 | *Sun\ C*) # Sun C 5.9 | |
8926 | 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' | |
8927 | compiler_needs_object=yes | |
8928 | tmp_sharedflag='-G' ;; | |
8929 | *Sun\ F*) # Sun Fortran 8.3 | |
8930 | tmp_sharedflag='-G' ;; | |
d7040cdb SE |
8931 | esac |
8932 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8933 | ||
8934 | if test "x$supports_anon_versioning" = xyes; then | |
8935 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8936 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8937 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8938 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8939 | fi | |
718a6fd8 SE |
8940 | |
8941 | case $cc_basename in | |
8942 | xlf*) | |
8943 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
8944 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8945 | hardcode_libdir_flag_spec= | |
8946 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8947 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8948 | if test "x$supports_anon_versioning" = xyes; then | |
8949 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8950 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8951 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8952 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8953 | fi | |
8954 | ;; | |
8955 | esac | |
d7040cdb SE |
8956 | else |
8957 | ld_shlibs=no | |
8958 | fi | |
8959 | ;; | |
8960 | ||
8961 | netbsd*) | |
8962 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8963 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8964 | wlarc= | |
8965 | else | |
8966 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8967 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8968 | fi | |
8969 | ;; | |
8970 | ||
8971 | solaris*) | |
8972 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8973 | ld_shlibs=no | |
8974 | cat <<_LT_EOF 1>&2 | |
8975 | ||
8976 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
8977 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8978 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8979 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8980 | *** your PATH or compiler configuration so that the native linker is | |
8981 | *** used, and then restart. | |
8982 | ||
8983 | _LT_EOF | |
8984 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8985 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8986 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8987 | else | |
8988 | ld_shlibs=no | |
8989 | fi | |
8990 | ;; | |
8991 | ||
8992 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
8993 | case `$LD -v 2>&1` in | |
8994 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8995 | ld_shlibs=no | |
8996 | cat <<_LT_EOF 1>&2 | |
8997 | ||
8998 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
8999 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9000 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9001 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9002 | *** your PATH or compiler configuration so that the native linker is | |
9003 | *** used, and then restart. | |
9004 | ||
9005 | _LT_EOF | |
9006 | ;; | |
9007 | *) | |
9008 | # For security reasons, it is highly recommended that you always | |
9009 | # use absolute paths for naming shared libraries, and exclude the | |
9010 | # DT_RUNPATH tag from executables and libraries. But doing so | |
9011 | # requires that you compile everything twice, which is a pain. | |
9012 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9013 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9014 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9015 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9016 | else | |
9017 | ld_shlibs=no | |
9018 | fi | |
9019 | ;; | |
9020 | esac | |
9021 | ;; | |
9022 | ||
9023 | sunos4*) | |
9024 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9025 | wlarc= | |
9026 | hardcode_direct=yes | |
9027 | hardcode_shlibpath_var=no | |
9028 | ;; | |
9029 | ||
9030 | *) | |
9031 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9032 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9033 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9034 | else | |
9035 | ld_shlibs=no | |
9036 | fi | |
9037 | ;; | |
9038 | esac | |
9039 | ||
9040 | if test "$ld_shlibs" = no; then | |
9041 | runpath_var= | |
9042 | hardcode_libdir_flag_spec= | |
9043 | export_dynamic_flag_spec= | |
9044 | whole_archive_flag_spec= | |
9045 | fi | |
9046 | else | |
9047 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9048 | case $host_os in | |
9049 | aix3*) | |
9050 | allow_undefined_flag=unsupported | |
9051 | always_export_symbols=yes | |
9052 | 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' | |
9053 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9054 | # are no directories specified by -L. | |
9055 | hardcode_minus_L=yes | |
9056 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9057 | # Neither direct hardcoding nor static linking is supported with a | |
9058 | # broken collect2. | |
9059 | hardcode_direct=unsupported | |
9060 | fi | |
9061 | ;; | |
9062 | ||
e81819a5 | 9063 | aix[4-9]*) |
d7040cdb SE |
9064 | if test "$host_cpu" = ia64; then |
9065 | # On IA64, the linker does run time linking by default, so we don't | |
9066 | # have to do anything special. | |
9067 | aix_use_runtimelinking=no | |
9068 | exp_sym_flag='-Bexport' | |
9069 | no_entry_flag="" | |
9070 | else | |
9071 | # If we're using GNU nm, then we don't want the "-C" option. | |
9072 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9073 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9074 | 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' | |
9075 | else | |
9076 | 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' | |
9077 | fi | |
9078 | aix_use_runtimelinking=no | |
9079 | ||
9080 | # Test if we are trying to use run time linking or normal | |
9081 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9082 | # need to do runtime linking. | |
e81819a5 | 9083 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
d7040cdb SE |
9084 | for ld_flag in $LDFLAGS; do |
9085 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9086 | aix_use_runtimelinking=yes | |
9087 | break | |
9088 | fi | |
9089 | done | |
9090 | ;; | |
9091 | esac | |
9092 | ||
9093 | exp_sym_flag='-bexport' | |
9094 | no_entry_flag='-bnoentry' | |
9095 | fi | |
9096 | ||
9097 | # When large executables or shared objects are built, AIX ld can | |
9098 | # have problems creating the table of contents. If linking a library | |
9099 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9100 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9101 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9102 | ||
9103 | archive_cmds='' | |
9104 | hardcode_direct=yes | |
9105 | hardcode_direct_absolute=yes | |
9106 | hardcode_libdir_separator=':' | |
9107 | link_all_deplibs=yes | |
9108 | file_list_spec='${wl}-f,' | |
9109 | ||
9110 | if test "$GCC" = yes; then | |
9111 | case $host_os in aix4.[012]|aix4.[012].*) | |
9112 | # We only want to do this on AIX 4.2 and lower, the check | |
9113 | # below for broken collect2 doesn't work under 4.3+ | |
9114 | collect2name=`${CC} -print-prog-name=collect2` | |
9115 | if test -f "$collect2name" && | |
9116 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9117 | then | |
9118 | # We have reworked collect2 | |
9119 | : | |
9120 | else | |
9121 | # We have old collect2 | |
9122 | hardcode_direct=unsupported | |
9123 | # It fails to find uninstalled libraries when the uninstalled | |
9124 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9125 | # to unsupported forces relinking | |
9126 | hardcode_minus_L=yes | |
9127 | hardcode_libdir_flag_spec='-L$libdir' | |
9128 | hardcode_libdir_separator= | |
9129 | fi | |
9130 | ;; | |
9131 | esac | |
9132 | shared_flag='-shared' | |
9133 | if test "$aix_use_runtimelinking" = yes; then | |
9134 | shared_flag="$shared_flag "'${wl}-G' | |
9135 | fi | |
9136 | else | |
9137 | # not using gcc | |
9138 | if test "$host_cpu" = ia64; then | |
9139 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9140 | # chokes on -Wl,-G. The following line is correct: | |
9141 | shared_flag='-G' | |
9142 | else | |
9143 | if test "$aix_use_runtimelinking" = yes; then | |
9144 | shared_flag='${wl}-G' | |
9145 | else | |
9146 | shared_flag='${wl}-bM:SRE' | |
9147 | fi | |
9148 | fi | |
9149 | fi | |
9150 | ||
718a6fd8 | 9151 | export_dynamic_flag_spec='${wl}-bexpall' |
d7040cdb SE |
9152 | # It seems that -bexpall does not export symbols beginning with |
9153 | # underscore (_), so it is better to generate a list of symbols to export. | |
9154 | always_export_symbols=yes | |
9155 | if test "$aix_use_runtimelinking" = yes; then | |
9156 | # Warning - without using the other runtime loading flags (-brtl), | |
9157 | # -berok will link without error, but may produce a broken library. | |
9158 | allow_undefined_flag='-berok' | |
9159 | # Determine the default libpath from the value encoded in an | |
9160 | # empty executable. | |
9161 | cat >conftest.$ac_ext <<_ACEOF | |
9162 | /* confdefs.h. */ | |
9163 | _ACEOF | |
9164 | cat confdefs.h >>conftest.$ac_ext | |
9165 | cat >>conftest.$ac_ext <<_ACEOF | |
9166 | /* end confdefs.h. */ | |
9167 | ||
9168 | int | |
9169 | main () | |
9170 | { | |
9171 | ||
9172 | ; | |
9173 | return 0; | |
9174 | } | |
9175 | _ACEOF | |
9176 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9177 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9178 | (eval $ac_link) 2>conftest.er1 | |
9179 | ac_status=$? | |
9180 | grep -v '^ *+' conftest.er1 >conftest.err | |
9181 | rm -f conftest.er1 | |
9182 | cat conftest.err >&5 | |
9183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9184 | (exit $ac_status); } && | |
7357c5b6 AM |
9185 | { ac_try='test -z "$ac_c_werror_flag" |
9186 | || test ! -s conftest.err' | |
d7040cdb SE |
9187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9188 | (eval $ac_try) 2>&5 | |
9189 | ac_status=$? | |
9190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9191 | (exit $ac_status); }; } && | |
9192 | { ac_try='test -s conftest$ac_exeext' | |
9193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9194 | (eval $ac_try) 2>&5 | |
9195 | ac_status=$? | |
9196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9197 | (exit $ac_status); }; }; then | |
9198 | ||
9199 | lt_aix_libpath_sed=' | |
9200 | /Import File Strings/,/^$/ { | |
9201 | /^0/ { | |
9202 | s/^0 *\(.*\)$/\1/ | |
9203 | p | |
9204 | } | |
9205 | }' | |
9206 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9207 | # Check for a 64-bit object if we didn't find anything. | |
9208 | if test -z "$aix_libpath"; then | |
9209 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9210 | fi | |
9211 | else | |
9212 | echo "$as_me: failed program was:" >&5 | |
9213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9214 | ||
9215 | fi | |
9216 | rm -f conftest.err conftest.$ac_objext \ | |
9217 | conftest$ac_exeext conftest.$ac_ext | |
9218 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9219 | ||
9220 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9221 | 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" | |
9222 | else | |
9223 | if test "$host_cpu" = ia64; then | |
9224 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9225 | allow_undefined_flag="-z nodefs" | |
9226 | 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" | |
9227 | else | |
9228 | # Determine the default libpath from the value encoded in an | |
9229 | # empty executable. | |
9230 | cat >conftest.$ac_ext <<_ACEOF | |
9231 | /* confdefs.h. */ | |
9232 | _ACEOF | |
9233 | cat confdefs.h >>conftest.$ac_ext | |
9234 | cat >>conftest.$ac_ext <<_ACEOF | |
9235 | /* end confdefs.h. */ | |
9236 | ||
9237 | int | |
9238 | main () | |
9239 | { | |
9240 | ||
9241 | ; | |
9242 | return 0; | |
9243 | } | |
9244 | _ACEOF | |
9245 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9247 | (eval $ac_link) 2>conftest.er1 | |
9248 | ac_status=$? | |
9249 | grep -v '^ *+' conftest.er1 >conftest.err | |
9250 | rm -f conftest.er1 | |
9251 | cat conftest.err >&5 | |
9252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9253 | (exit $ac_status); } && | |
7357c5b6 AM |
9254 | { ac_try='test -z "$ac_c_werror_flag" |
9255 | || test ! -s conftest.err' | |
d7040cdb SE |
9256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9257 | (eval $ac_try) 2>&5 | |
9258 | ac_status=$? | |
9259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9260 | (exit $ac_status); }; } && | |
9261 | { ac_try='test -s conftest$ac_exeext' | |
9262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9263 | (eval $ac_try) 2>&5 | |
9264 | ac_status=$? | |
9265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9266 | (exit $ac_status); }; }; then | |
9267 | ||
9268 | lt_aix_libpath_sed=' | |
9269 | /Import File Strings/,/^$/ { | |
9270 | /^0/ { | |
9271 | s/^0 *\(.*\)$/\1/ | |
9272 | p | |
9273 | } | |
9274 | }' | |
9275 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9276 | # Check for a 64-bit object if we didn't find anything. | |
9277 | if test -z "$aix_libpath"; then | |
9278 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9279 | fi | |
9280 | else | |
9281 | echo "$as_me: failed program was:" >&5 | |
9282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9283 | ||
9284 | fi | |
9285 | rm -f conftest.err conftest.$ac_objext \ | |
9286 | conftest$ac_exeext conftest.$ac_ext | |
9287 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9288 | ||
9289 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9290 | # Warning - without using the other run time loading flags, | |
9291 | # -berok will link without error, but may produce a broken library. | |
9292 | no_undefined_flag=' ${wl}-bernotok' | |
9293 | allow_undefined_flag=' ${wl}-berok' | |
9294 | # Exported symbols can be pulled into shared objects from archives | |
9295 | whole_archive_flag_spec='$convenience' | |
9296 | archive_cmds_need_lc=yes | |
9297 | # This is similar to how AIX traditionally builds its shared libraries. | |
9298 | 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' | |
9299 | fi | |
9300 | fi | |
9301 | ;; | |
9302 | ||
9303 | amigaos*) | |
718a6fd8 SE |
9304 | case $host_cpu in |
9305 | powerpc) | |
9306 | # see comment about AmigaOS4 .so support | |
9307 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9308 | archive_expsym_cmds='' | |
9309 | ;; | |
9310 | m68k) | |
9311 | 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)' | |
9312 | hardcode_libdir_flag_spec='-L$libdir' | |
9313 | hardcode_minus_L=yes | |
9314 | ;; | |
9315 | esac | |
d7040cdb SE |
9316 | ;; |
9317 | ||
9318 | bsdi[45]*) | |
9319 | export_dynamic_flag_spec=-rdynamic | |
9320 | ;; | |
9321 | ||
718a6fd8 | 9322 | cygwin* | mingw* | pw32* | cegcc*) |
d7040cdb SE |
9323 | # When not using gcc, we currently assume that we are using |
9324 | # Microsoft Visual C++. | |
9325 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9326 | # no search path for DLLs. | |
9327 | hardcode_libdir_flag_spec=' ' | |
9328 | allow_undefined_flag=unsupported | |
9329 | # Tell ltmain to make .lib files, not .a files. | |
9330 | libext=lib | |
9331 | # Tell ltmain to make .dll files, not .so files. | |
9332 | shrext_cmds=".dll" | |
9333 | # FIXME: Setting linknames here is a bad hack. | |
9334 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9335 | # The linker will automatically build a .lib file if we build a DLL. | |
9336 | old_archive_from_new_cmds='true' | |
9337 | # FIXME: Should let the user specify the lib program. | |
9338 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9339 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9340 | enable_shared_with_static_runtimes=yes | |
9341 | ;; | |
9342 | ||
9343 | darwin* | rhapsody*) | |
d7040cdb | 9344 | |
718a6fd8 SE |
9345 | |
9346 | archive_cmds_need_lc=no | |
9347 | hardcode_direct=no | |
9348 | hardcode_automatic=yes | |
9349 | hardcode_shlibpath_var=unsupported | |
9350 | whole_archive_flag_spec='' | |
9351 | link_all_deplibs=yes | |
9352 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9353 | case $cc_basename in | |
9354 | ifort*) _lt_dar_can_shared=yes ;; | |
9355 | *) _lt_dar_can_shared=$GCC ;; | |
9356 | esac | |
9357 | if test "$_lt_dar_can_shared" = "yes"; then | |
9358 | output_verbose_link_cmd=echo | |
9359 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9360 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9361 | 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 ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" | |
9362 | module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" | |
9363 | ||
9364 | else | |
9365 | ld_shlibs=no | |
9366 | fi | |
9367 | ||
d7040cdb SE |
9368 | ;; |
9369 | ||
9370 | dgux*) | |
9371 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9372 | hardcode_libdir_flag_spec='-L$libdir' | |
9373 | hardcode_shlibpath_var=no | |
9374 | ;; | |
9375 | ||
9376 | freebsd1*) | |
9377 | ld_shlibs=no | |
9378 | ;; | |
9379 | ||
9380 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9381 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9382 | # does not break anything, and helps significantly (at the cost of a little | |
9383 | # extra space). | |
9384 | freebsd2.2*) | |
9385 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9386 | hardcode_libdir_flag_spec='-R$libdir' | |
9387 | hardcode_direct=yes | |
9388 | hardcode_shlibpath_var=no | |
9389 | ;; | |
9390 | ||
9391 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
9392 | freebsd2*) | |
9393 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9394 | hardcode_direct=yes | |
9395 | hardcode_minus_L=yes | |
9396 | hardcode_shlibpath_var=no | |
9397 | ;; | |
9398 | ||
9399 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9400 | freebsd* | dragonfly*) | |
9401 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9402 | hardcode_libdir_flag_spec='-R$libdir' | |
9403 | hardcode_direct=yes | |
9404 | hardcode_shlibpath_var=no | |
9405 | ;; | |
9406 | ||
9407 | hpux9*) | |
9408 | if test "$GCC" = yes; then | |
9409 | 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' | |
9410 | else | |
9411 | 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' | |
9412 | fi | |
9413 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9414 | hardcode_libdir_separator=: | |
9415 | hardcode_direct=yes | |
9416 | ||
9417 | # hardcode_minus_L: Not really in the search PATH, | |
9418 | # but as the default location of the library. | |
9419 | hardcode_minus_L=yes | |
9420 | export_dynamic_flag_spec='${wl}-E' | |
9421 | ;; | |
9422 | ||
9423 | hpux10*) | |
9424 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9425 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9426 | else | |
9427 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9428 | fi | |
9429 | if test "$with_gnu_ld" = no; then | |
9430 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9431 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9432 | hardcode_libdir_separator=: | |
9433 | hardcode_direct=yes | |
9434 | hardcode_direct_absolute=yes | |
9435 | export_dynamic_flag_spec='${wl}-E' | |
9436 | # hardcode_minus_L: Not really in the search PATH, | |
9437 | # but as the default location of the library. | |
9438 | hardcode_minus_L=yes | |
9439 | fi | |
9440 | ;; | |
9441 | ||
9442 | hpux11*) | |
9443 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
9444 | case $host_cpu in | |
9445 | hppa*64*) | |
9446 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9447 | ;; | |
9448 | ia64*) | |
718a6fd8 | 9449 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
d7040cdb SE |
9450 | ;; |
9451 | *) | |
9452 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9453 | ;; | |
9454 | esac | |
9455 | else | |
9456 | case $host_cpu in | |
9457 | hppa*64*) | |
9458 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9459 | ;; | |
9460 | ia64*) | |
9461 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9462 | ;; | |
9463 | *) | |
9464 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9465 | ;; | |
9466 | esac | |
9467 | fi | |
9468 | if test "$with_gnu_ld" = no; then | |
9469 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9470 | hardcode_libdir_separator=: | |
9471 | ||
9472 | case $host_cpu in | |
9473 | hppa*64*|ia64*) | |
9474 | hardcode_direct=no | |
9475 | hardcode_shlibpath_var=no | |
9476 | ;; | |
9477 | *) | |
9478 | hardcode_direct=yes | |
9479 | hardcode_direct_absolute=yes | |
9480 | export_dynamic_flag_spec='${wl}-E' | |
9481 | ||
9482 | # hardcode_minus_L: Not really in the search PATH, | |
9483 | # but as the default location of the library. | |
9484 | hardcode_minus_L=yes | |
9485 | ;; | |
9486 | esac | |
9487 | fi | |
9488 | ;; | |
9489 | ||
9490 | irix5* | irix6* | nonstopux*) | |
9491 | if test "$GCC" = yes; then | |
9492 | 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' | |
9493 | # Try to use the -exported_symbol ld option, if it does not | |
9494 | # work, assume that -exports_file does not work either and | |
9495 | # implicitly export all symbols. | |
9496 | save_LDFLAGS="$LDFLAGS" | |
9497 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9498 | cat >conftest.$ac_ext <<_ACEOF | |
9499 | int foo(void) {} | |
9500 | _ACEOF | |
9501 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9502 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
9503 | (eval $ac_link) 2>conftest.er1 | |
9504 | ac_status=$? | |
9505 | grep -v '^ *+' conftest.er1 >conftest.err | |
9506 | rm -f conftest.er1 | |
9507 | cat conftest.err >&5 | |
9508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9509 | (exit $ac_status); } && | |
7357c5b6 AM |
9510 | { ac_try='test -z "$ac_c_werror_flag" |
9511 | || test ! -s conftest.err' | |
d7040cdb SE |
9512 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
9513 | (eval $ac_try) 2>&5 | |
9514 | ac_status=$? | |
9515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9516 | (exit $ac_status); }; } && | |
9517 | { ac_try='test -s conftest$ac_exeext' | |
9518 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
9519 | (eval $ac_try) 2>&5 | |
9520 | ac_status=$? | |
9521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9522 | (exit $ac_status); }; }; then | |
9523 | 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' | |
9524 | ||
9525 | else | |
9526 | echo "$as_me: failed program was:" >&5 | |
9527 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9528 | ||
9529 | fi | |
9530 | rm -f conftest.err conftest.$ac_objext \ | |
9531 | conftest$ac_exeext conftest.$ac_ext | |
9532 | LDFLAGS="$save_LDFLAGS" | |
9533 | else | |
9534 | 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' | |
9535 | 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' | |
9536 | fi | |
9537 | archive_cmds_need_lc='no' | |
9538 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9539 | hardcode_libdir_separator=: | |
9540 | inherit_rpath=yes | |
9541 | link_all_deplibs=yes | |
9542 | ;; | |
9543 | ||
9544 | netbsd*) | |
9545 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9546 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9547 | else | |
9548 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9549 | fi | |
9550 | hardcode_libdir_flag_spec='-R$libdir' | |
9551 | hardcode_direct=yes | |
9552 | hardcode_shlibpath_var=no | |
9553 | ;; | |
9554 | ||
9555 | newsos6) | |
9556 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9557 | hardcode_direct=yes | |
9558 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9559 | hardcode_libdir_separator=: | |
9560 | hardcode_shlibpath_var=no | |
9561 | ;; | |
9562 | ||
9563 | *nto* | *qnx*) | |
9564 | ;; | |
9565 | ||
9566 | openbsd*) | |
718a6fd8 SE |
9567 | if test -f /usr/libexec/ld.so; then |
9568 | hardcode_direct=yes | |
9569 | hardcode_shlibpath_var=no | |
9570 | hardcode_direct_absolute=yes | |
9571 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
d7040cdb | 9572 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
718a6fd8 | 9573 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
d7040cdb | 9574 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
718a6fd8 SE |
9575 | export_dynamic_flag_spec='${wl}-E' |
9576 | else | |
9577 | case $host_os in | |
9578 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9579 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9580 | hardcode_libdir_flag_spec='-R$libdir' | |
9581 | ;; | |
9582 | *) | |
9583 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9584 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9585 | ;; | |
9586 | esac | |
9587 | fi | |
9588 | else | |
9589 | ld_shlibs=no | |
d7040cdb SE |
9590 | fi |
9591 | ;; | |
9592 | ||
9593 | os2*) | |
9594 | hardcode_libdir_flag_spec='-L$libdir' | |
9595 | hardcode_minus_L=yes | |
9596 | allow_undefined_flag=unsupported | |
9597 | 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' | |
9598 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
9599 | ;; | |
9600 | ||
9601 | osf3*) | |
9602 | if test "$GCC" = yes; then | |
9603 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9604 | 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' | |
9605 | else | |
9606 | allow_undefined_flag=' -expect_unresolved \*' | |
9607 | 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' | |
9608 | fi | |
9609 | archive_cmds_need_lc='no' | |
9610 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9611 | hardcode_libdir_separator=: | |
9612 | ;; | |
9613 | ||
9614 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9615 | if test "$GCC" = yes; then | |
9616 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9617 | 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' | |
9618 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9619 | else | |
9620 | allow_undefined_flag=' -expect_unresolved \*' | |
9621 | 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' | |
9622 | 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~ | |
9623 | $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' | |
9624 | ||
9625 | # Both c and cxx compiler support -rpath directly | |
9626 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9627 | fi | |
9628 | archive_cmds_need_lc='no' | |
9629 | hardcode_libdir_separator=: | |
9630 | ;; | |
9631 | ||
9632 | solaris*) | |
9633 | no_undefined_flag=' -z defs' | |
9634 | if test "$GCC" = yes; then | |
9635 | wlarc='${wl}' | |
9636 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9637 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9638 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9639 | else | |
9640 | case `$CC -V 2>&1` in | |
9641 | *"Compilers 5.0"*) | |
9642 | wlarc='' | |
9643 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9644 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9645 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9646 | ;; | |
9647 | *) | |
9648 | wlarc='${wl}' | |
9649 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9650 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9651 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9652 | ;; | |
9653 | esac | |
9654 | fi | |
9655 | hardcode_libdir_flag_spec='-R$libdir' | |
9656 | hardcode_shlibpath_var=no | |
9657 | case $host_os in | |
9658 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9659 | *) | |
9660 | # The compiler driver will combine and reorder linker options, | |
9661 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9662 | # but is careful enough not to reorder. | |
9663 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9664 | if test "$GCC" = yes; then | |
9665 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9666 | else | |
9667 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9668 | fi | |
9669 | ;; | |
9670 | esac | |
9671 | link_all_deplibs=yes | |
9672 | ;; | |
9673 | ||
9674 | sunos4*) | |
9675 | if test "x$host_vendor" = xsequent; then | |
9676 | # Use $CC to link under sequent, because it throws in some extra .o | |
9677 | # files that make .init and .fini sections work. | |
9678 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9679 | else | |
9680 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9681 | fi | |
9682 | hardcode_libdir_flag_spec='-L$libdir' | |
9683 | hardcode_direct=yes | |
9684 | hardcode_minus_L=yes | |
9685 | hardcode_shlibpath_var=no | |
9686 | ;; | |
9687 | ||
9688 | sysv4) | |
9689 | case $host_vendor in | |
9690 | sni) | |
9691 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9692 | hardcode_direct=yes # is this really true??? | |
9693 | ;; | |
9694 | siemens) | |
9695 | ## LD is ld it makes a PLAMLIB | |
9696 | ## CC just makes a GrossModule. | |
9697 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9698 | reload_cmds='$CC -r -o $output$reload_objs' | |
9699 | hardcode_direct=no | |
9700 | ;; | |
9701 | motorola) | |
9702 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9703 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9704 | ;; | |
9705 | esac | |
9706 | runpath_var='LD_RUN_PATH' | |
9707 | hardcode_shlibpath_var=no | |
9708 | ;; | |
9709 | ||
9710 | sysv4.3*) | |
9711 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9712 | hardcode_shlibpath_var=no | |
9713 | export_dynamic_flag_spec='-Bexport' | |
9714 | ;; | |
9715 | ||
9716 | sysv4*MP*) | |
9717 | if test -d /usr/nec; then | |
9718 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9719 | hardcode_shlibpath_var=no | |
9720 | runpath_var=LD_RUN_PATH | |
9721 | hardcode_runpath_var=yes | |
9722 | ld_shlibs=yes | |
9723 | fi | |
9724 | ;; | |
9725 | ||
9726 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9727 | no_undefined_flag='${wl}-z,text' | |
9728 | archive_cmds_need_lc=no | |
9729 | hardcode_shlibpath_var=no | |
9730 | runpath_var='LD_RUN_PATH' | |
9731 | ||
9732 | if test "$GCC" = yes; then | |
9733 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9734 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9735 | else | |
9736 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9737 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9738 | fi | |
9739 | ;; | |
9740 | ||
9741 | sysv5* | sco3.2v5* | sco5v6*) | |
9742 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9743 | # link with -lc, and that would cause any symbols used from libc to | |
9744 | # always be unresolved, which means just about no library would | |
9745 | # ever link correctly. If we're not using GNU ld we use -z text | |
9746 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9747 | # as -z defs. | |
9748 | no_undefined_flag='${wl}-z,text' | |
9749 | allow_undefined_flag='${wl}-z,nodefs' | |
9750 | archive_cmds_need_lc=no | |
9751 | hardcode_shlibpath_var=no | |
9752 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9753 | hardcode_libdir_separator=':' | |
9754 | link_all_deplibs=yes | |
9755 | export_dynamic_flag_spec='${wl}-Bexport' | |
9756 | runpath_var='LD_RUN_PATH' | |
9757 | ||
9758 | if test "$GCC" = yes; then | |
9759 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9760 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9761 | else | |
9762 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9763 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9764 | fi | |
9765 | ;; | |
9766 | ||
9767 | uts4*) | |
9768 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9769 | hardcode_libdir_flag_spec='-L$libdir' | |
9770 | hardcode_shlibpath_var=no | |
9771 | ;; | |
9772 | ||
9773 | *) | |
9774 | ld_shlibs=no | |
9775 | ;; | |
9776 | esac | |
9777 | ||
9778 | if test x$host_vendor = xsni; then | |
9779 | case $host in | |
9780 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9781 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9782 | ;; | |
9783 | esac | |
9784 | fi | |
9785 | fi | |
9786 | ||
9787 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
9788 | echo "${ECHO_T}$ld_shlibs" >&6 | |
9789 | test "$ld_shlibs" = no && can_build_shared=no | |
9790 | ||
9791 | with_gnu_ld=$with_gnu_ld | |
9792 | ||
9793 | ||
9794 | ||
9795 | ||
9796 | ||
9797 | ||
9798 | ||
9799 | ||
9800 | ||
9801 | ||
9802 | ||
9803 | ||
9804 | ||
9805 | ||
9806 | ||
9807 | # | |
9808 | # Do we need to explicitly link libc? | |
9809 | # | |
9810 | case "x$archive_cmds_need_lc" in | |
9811 | x|xyes) | |
9812 | # Assume -lc should be added | |
9813 | archive_cmds_need_lc=yes | |
9814 | ||
9815 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
9816 | case $archive_cmds in | |
9817 | *'~'*) | |
9818 | # FIXME: we may have to deal with multi-command sequences. | |
9819 | ;; | |
9820 | '$CC '*) | |
9821 | # Test whether the compiler implicitly links with -lc since on some | |
9822 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9823 | # to ld, don't add -lc before -lgcc. | |
9824 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
9825 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | |
39144654 RW |
9826 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then |
9827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9828 | else | |
9829 | $RM conftest* | |
9830 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9831 | |
39144654 | 9832 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
d7040cdb SE |
9833 | (eval $ac_compile) 2>&5 |
9834 | ac_status=$? | |
9835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9836 | (exit $ac_status); } 2>conftest.err; then | |
39144654 RW |
9837 | soname=conftest |
9838 | lib=conftest | |
9839 | libobjs=conftest.$ac_objext | |
9840 | deplibs= | |
9841 | wl=$lt_prog_compiler_wl | |
9842 | pic_flag=$lt_prog_compiler_pic | |
9843 | compiler_flags=-v | |
9844 | linker_flags=-v | |
9845 | verstring= | |
9846 | output_objdir=. | |
9847 | libname=conftest | |
9848 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9849 | allow_undefined_flag= | |
9850 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
d7040cdb SE |
9851 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9852 | ac_status=$? | |
9853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9854 | (exit $ac_status); } | |
39144654 RW |
9855 | then |
9856 | lt_cv_archive_cmds_need_lc=no | |
9857 | else | |
9858 | lt_cv_archive_cmds_need_lc=yes | |
9859 | fi | |
9860 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9861 | else | |
9862 | cat conftest.err 1>&5 | |
9863 | fi | |
9864 | $RM conftest* | |
9865 | ||
9866 | fi | |
9867 | echo "$as_me:$LINENO: result: $lt_cv_archive_cmds_need_lc" >&5 | |
9868 | echo "${ECHO_T}$lt_cv_archive_cmds_need_lc" >&6 | |
9869 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
d7040cdb SE |
9870 | ;; |
9871 | esac | |
9872 | fi | |
9873 | ;; | |
9874 | esac | |
9875 | ||
9876 | ||
9877 | ||
9878 | ||
9879 | ||
9880 | ||
9881 | ||
9882 | ||
9883 | ||
9884 | ||
9885 | ||
9886 | ||
9887 | ||
9888 | ||
9889 | ||
9890 | ||
9891 | ||
9892 | ||
9893 | ||
9894 | ||
9895 | ||
9896 | ||
9897 | ||
9898 | ||
9899 | ||
9900 | ||
9901 | ||
9902 | ||
9903 | ||
9904 | ||
9905 | ||
9906 | ||
9907 | ||
9908 | ||
9909 | ||
9910 | ||
9911 | ||
9912 | ||
9913 | ||
9914 | ||
9915 | ||
9916 | ||
9917 | ||
9918 | ||
9919 | ||
9920 | ||
9921 | ||
9922 | ||
9923 | ||
9924 | ||
9925 | ||
9926 | ||
9927 | ||
9928 | ||
9929 | ||
9930 | ||
9931 | ||
9932 | ||
9933 | ||
9934 | ||
9935 | ||
9936 | ||
9937 | ||
9938 | ||
9939 | ||
9940 | ||
9941 | ||
9942 | ||
9943 | ||
9944 | ||
9945 | ||
9946 | ||
9947 | ||
9948 | ||
9949 | ||
9950 | ||
9951 | ||
9952 | ||
9953 | ||
9954 | ||
9955 | ||
9956 | ||
9957 | ||
9958 | ||
9959 | ||
9960 | ||
9961 | ||
9962 | ||
9963 | ||
9964 | ||
9965 | ||
9966 | ||
9967 | ||
9968 | ||
9969 | ||
9970 | ||
9971 | ||
9972 | ||
9973 | ||
9974 | ||
9975 | ||
9976 | ||
9977 | ||
9978 | ||
9979 | ||
9980 | ||
9981 | ||
9982 | ||
9983 | ||
9984 | ||
9985 | ||
9986 | ||
9987 | ||
9988 | ||
9989 | ||
9990 | ||
9991 | ||
9992 | ||
9993 | ||
9994 | ||
9995 | ||
9996 | ||
9997 | ||
9998 | ||
9999 | ||
10000 | ||
10001 | ||
10002 | ||
10003 | ||
10004 | ||
10005 | ||
10006 | ||
10007 | ||
10008 | ||
10009 | ||
10010 | ||
10011 | ||
10012 | ||
10013 | ||
10014 | ||
10015 | ||
10016 | ||
10017 | ||
10018 | ||
10019 | ||
10020 | ||
10021 | ||
10022 | ||
10023 | ||
10024 | ||
10025 | ||
10026 | ||
10027 | ||
10028 | ||
10029 | ||
10030 | ||
10031 | ||
10032 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
10033 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | |
718a6fd8 SE |
10034 | |
10035 | if test "$GCC" = yes; then | |
d7040cdb SE |
10036 | case $host_os in |
10037 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10038 | *) lt_awk_arg="/^libraries:/" ;; | |
10039 | esac | |
10040 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
10041 | if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then | |
10042 | # if the path contains ";" then we assume it to be the separator | |
10043 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10044 | # assumed that no part of a normal pathname contains ";" but that should | |
10045 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10046 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` | |
10047 | else | |
10048 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10049 | fi | |
10050 | # Ok, now we have the path, separated by spaces, we can step through it | |
10051 | # and add multilib dir if necessary. | |
10052 | lt_tmp_lt_search_path_spec= | |
10053 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10054 | for lt_sys_path in $lt_search_path_spec; do | |
10055 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10056 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10057 | else | |
10058 | test -d "$lt_sys_path" && \ | |
10059 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10060 | fi | |
10061 | done | |
10062 | lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' | |
10063 | BEGIN {RS=" "; FS="/|\n";} { | |
10064 | lt_foo=""; | |
10065 | lt_count=0; | |
10066 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
10067 | if ($lt_i != "" && $lt_i != ".") { | |
10068 | if ($lt_i == "..") { | |
10069 | lt_count++; | |
10070 | } else { | |
10071 | if (lt_count == 0) { | |
10072 | lt_foo="/" $lt_i lt_foo; | |
10073 | } else { | |
10074 | lt_count--; | |
10075 | } | |
10076 | } | |
10077 | } | |
10078 | } | |
10079 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10080 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10081 | }'` | |
10082 | sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` | |
10083 | else | |
10084 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10085 | fi | |
10086 | library_names_spec= | |
10087 | libname_spec='lib$name' | |
10088 | soname_spec= | |
10089 | shrext_cmds=".so" | |
10090 | postinstall_cmds= | |
10091 | postuninstall_cmds= | |
10092 | finish_cmds= | |
10093 | finish_eval= | |
10094 | shlibpath_var= | |
10095 | shlibpath_overrides_runpath=unknown | |
10096 | version_type=none | |
10097 | dynamic_linker="$host_os ld.so" | |
10098 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10099 | need_lib_prefix=unknown | |
10100 | hardcode_into_libs=no | |
10101 | ||
10102 | # when you set need_version to no, make sure it does not cause -set_version | |
10103 | # flags to be left without arguments | |
10104 | need_version=unknown | |
10105 | ||
10106 | case $host_os in | |
10107 | aix3*) | |
10108 | version_type=linux | |
10109 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10110 | shlibpath_var=LIBPATH | |
10111 | ||
10112 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10113 | soname_spec='${libname}${release}${shared_ext}$major' | |
10114 | ;; | |
10115 | ||
e81819a5 | 10116 | aix[4-9]*) |
d7040cdb SE |
10117 | version_type=linux |
10118 | need_lib_prefix=no | |
10119 | need_version=no | |
10120 | hardcode_into_libs=yes | |
10121 | if test "$host_cpu" = ia64; then | |
10122 | # AIX 5 supports IA64 | |
10123 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10124 | shlibpath_var=LD_LIBRARY_PATH | |
10125 | else | |
10126 | # With GCC up to 2.95.x, collect2 would create an import file | |
10127 | # for dependence libraries. The import file would start with | |
10128 | # the line `#! .'. This would cause the generated library to | |
10129 | # depend on `.', always an invalid library. This was fixed in | |
10130 | # development snapshots of GCC prior to 3.0. | |
10131 | case $host_os in | |
10132 | aix4 | aix4.[01] | aix4.[01].*) | |
10133 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10134 | echo ' yes ' | |
10135 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10136 | : | |
10137 | else | |
10138 | can_build_shared=no | |
10139 | fi | |
10140 | ;; | |
10141 | esac | |
10142 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10143 | # soname into executable. Probably we can add versioning support to | |
10144 | # collect2, so additional links can be useful in future. | |
10145 | if test "$aix_use_runtimelinking" = yes; then | |
10146 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10147 | # instead of lib<name>.a to let people know that these are not | |
10148 | # typical AIX shared libraries. | |
10149 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10150 | else | |
10151 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10152 | # and later when we are not doing run time linking. | |
10153 | library_names_spec='${libname}${release}.a $libname.a' | |
10154 | soname_spec='${libname}${release}${shared_ext}$major' | |
10155 | fi | |
10156 | shlibpath_var=LIBPATH | |
10157 | fi | |
10158 | ;; | |
10159 | ||
10160 | amigaos*) | |
718a6fd8 SE |
10161 | case $host_cpu in |
10162 | powerpc) | |
10163 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10164 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10165 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10166 | ;; | |
10167 | m68k) | |
d7040cdb SE |
10168 | library_names_spec='$libname.ixlibrary $libname.a' |
10169 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10170 | 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' | |
718a6fd8 SE |
10171 | ;; |
10172 | esac | |
d7040cdb SE |
10173 | ;; |
10174 | ||
10175 | beos*) | |
10176 | library_names_spec='${libname}${shared_ext}' | |
10177 | dynamic_linker="$host_os ld.so" | |
10178 | shlibpath_var=LIBRARY_PATH | |
10179 | ;; | |
10180 | ||
10181 | bsdi[45]*) | |
10182 | version_type=linux | |
10183 | need_version=no | |
10184 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10185 | soname_spec='${libname}${release}${shared_ext}$major' | |
10186 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10187 | shlibpath_var=LD_LIBRARY_PATH | |
10188 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10189 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10190 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10191 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10192 | # libtool to hard-code these into programs | |
10193 | ;; | |
10194 | ||
718a6fd8 | 10195 | cygwin* | mingw* | pw32* | cegcc*) |
d7040cdb SE |
10196 | version_type=windows |
10197 | shrext_cmds=".dll" | |
10198 | need_version=no | |
10199 | need_lib_prefix=no | |
10200 | ||
718a6fd8 SE |
10201 | case $GCC,$host_os in |
10202 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
d7040cdb SE |
10203 | library_names_spec='$libname.dll.a' |
10204 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10205 | postinstall_cmds='base_file=`basename \${file}`~ | |
10206 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10207 | dldir=$destdir/`dirname \$dlpath`~ | |
10208 | test -d \$dldir || mkdir -p \$dldir~ | |
10209 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10210 | chmod a+x \$dldir/$dlname~ | |
10211 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10212 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10213 | fi' | |
10214 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10215 | dlpath=$dir/\$dldll~ | |
10216 | $RM \$dlpath' | |
10217 | shlibpath_overrides_runpath=yes | |
10218 | ||
10219 | case $host_os in | |
10220 | cygwin*) | |
10221 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10222 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10223 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
10224 | ;; | |
718a6fd8 | 10225 | mingw* | cegcc*) |
d7040cdb SE |
10226 | # MinGW DLLs use traditional 'lib' prefix |
10227 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10228 | sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
10229 | if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
10230 | # It is most probably a Windows format PATH printed by | |
10231 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
10232 | # path with ; separators, and with drive letters. We can handle the | |
10233 | # drive letters (cygwin fileutils understands them), so leave them, | |
10234 | # especially as we might pass files found there to a mingw objdump, | |
10235 | # which wouldn't understand a cygwinified path. Ahh. | |
10236 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10237 | else | |
10238 | sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10239 | fi | |
10240 | ;; | |
10241 | pw32*) | |
10242 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10243 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10244 | ;; | |
10245 | esac | |
10246 | ;; | |
10247 | ||
10248 | *) | |
10249 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10250 | ;; | |
10251 | esac | |
10252 | dynamic_linker='Win32 ld.exe' | |
10253 | # FIXME: first we should search . and the directory the executable is in | |
10254 | shlibpath_var=PATH | |
10255 | ;; | |
10256 | ||
10257 | darwin* | rhapsody*) | |
10258 | dynamic_linker="$host_os dyld" | |
10259 | version_type=darwin | |
10260 | need_lib_prefix=no | |
10261 | need_version=no | |
10262 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10263 | soname_spec='${libname}${release}${major}$shared_ext' | |
10264 | shlibpath_overrides_runpath=yes | |
10265 | shlibpath_var=DYLD_LIBRARY_PATH | |
10266 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10267 | ||
10268 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10269 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10270 | ;; | |
10271 | ||
10272 | dgux*) | |
10273 | version_type=linux | |
10274 | need_lib_prefix=no | |
10275 | need_version=no | |
10276 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10277 | soname_spec='${libname}${release}${shared_ext}$major' | |
10278 | shlibpath_var=LD_LIBRARY_PATH | |
10279 | ;; | |
10280 | ||
10281 | freebsd1*) | |
10282 | dynamic_linker=no | |
10283 | ;; | |
10284 | ||
10285 | freebsd* | dragonfly*) | |
10286 | # DragonFly does not have aout. When/if they implement a new | |
10287 | # versioning mechanism, adjust this. | |
10288 | if test -x /usr/bin/objformat; then | |
10289 | objformat=`/usr/bin/objformat` | |
10290 | else | |
10291 | case $host_os in | |
10292 | freebsd[123]*) objformat=aout ;; | |
10293 | *) objformat=elf ;; | |
10294 | esac | |
10295 | fi | |
10296 | version_type=freebsd-$objformat | |
10297 | case $version_type in | |
10298 | freebsd-elf*) | |
10299 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10300 | need_version=no | |
10301 | need_lib_prefix=no | |
10302 | ;; | |
10303 | freebsd-*) | |
10304 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10305 | need_version=yes | |
10306 | ;; | |
10307 | esac | |
10308 | shlibpath_var=LD_LIBRARY_PATH | |
10309 | case $host_os in | |
10310 | freebsd2*) | |
10311 | shlibpath_overrides_runpath=yes | |
10312 | ;; | |
10313 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10314 | shlibpath_overrides_runpath=yes | |
10315 | hardcode_into_libs=yes | |
10316 | ;; | |
10317 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10318 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10319 | shlibpath_overrides_runpath=no | |
10320 | hardcode_into_libs=yes | |
10321 | ;; | |
10322 | *) # from 4.6 on, and DragonFly | |
10323 | shlibpath_overrides_runpath=yes | |
10324 | hardcode_into_libs=yes | |
10325 | ;; | |
10326 | esac | |
10327 | ;; | |
10328 | ||
10329 | gnu*) | |
10330 | version_type=linux | |
10331 | need_lib_prefix=no | |
10332 | need_version=no | |
10333 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10334 | soname_spec='${libname}${release}${shared_ext}$major' | |
10335 | shlibpath_var=LD_LIBRARY_PATH | |
10336 | hardcode_into_libs=yes | |
10337 | ;; | |
10338 | ||
10339 | hpux9* | hpux10* | hpux11*) | |
10340 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10341 | # link against other versions. | |
10342 | version_type=sunos | |
10343 | need_lib_prefix=no | |
10344 | need_version=no | |
10345 | case $host_cpu in | |
10346 | ia64*) | |
10347 | shrext_cmds='.so' | |
10348 | hardcode_into_libs=yes | |
10349 | dynamic_linker="$host_os dld.so" | |
10350 | shlibpath_var=LD_LIBRARY_PATH | |
10351 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10352 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10353 | soname_spec='${libname}${release}${shared_ext}$major' | |
10354 | if test "X$HPUX_IA64_MODE" = X32; then | |
10355 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10356 | else | |
10357 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10358 | fi | |
10359 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10360 | ;; | |
10361 | hppa*64*) | |
10362 | shrext_cmds='.sl' | |
10363 | hardcode_into_libs=yes | |
10364 | dynamic_linker="$host_os dld.sl" | |
10365 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10366 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10367 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10368 | soname_spec='${libname}${release}${shared_ext}$major' | |
10369 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10370 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10371 | ;; | |
10372 | *) | |
10373 | shrext_cmds='.sl' | |
10374 | dynamic_linker="$host_os dld.sl" | |
10375 | shlibpath_var=SHLIB_PATH | |
10376 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10377 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10378 | soname_spec='${libname}${release}${shared_ext}$major' | |
10379 | ;; | |
10380 | esac | |
10381 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
10382 | postinstall_cmds='chmod 555 $lib' | |
10383 | ;; | |
10384 | ||
10385 | interix[3-9]*) | |
10386 | version_type=linux | |
10387 | need_lib_prefix=no | |
10388 | need_version=no | |
10389 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10390 | soname_spec='${libname}${release}${shared_ext}$major' | |
10391 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10392 | shlibpath_var=LD_LIBRARY_PATH | |
10393 | shlibpath_overrides_runpath=no | |
10394 | hardcode_into_libs=yes | |
10395 | ;; | |
10396 | ||
10397 | irix5* | irix6* | nonstopux*) | |
10398 | case $host_os in | |
10399 | nonstopux*) version_type=nonstopux ;; | |
10400 | *) | |
10401 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10402 | version_type=linux | |
10403 | else | |
10404 | version_type=irix | |
10405 | fi ;; | |
10406 | esac | |
10407 | need_lib_prefix=no | |
10408 | need_version=no | |
10409 | soname_spec='${libname}${release}${shared_ext}$major' | |
10410 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10411 | case $host_os in | |
10412 | irix5* | nonstopux*) | |
10413 | libsuff= shlibsuff= | |
10414 | ;; | |
10415 | *) | |
10416 | case $LD in # libtool.m4 will add one of these switches to LD | |
10417 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10418 | libsuff= shlibsuff= libmagic=32-bit;; | |
10419 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10420 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10421 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10422 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10423 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10424 | esac | |
10425 | ;; | |
10426 | esac | |
10427 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10428 | shlibpath_overrides_runpath=no | |
10429 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10430 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10431 | hardcode_into_libs=yes | |
10432 | ;; | |
10433 | ||
10434 | # No shared lib support for Linux oldld, aout, or coff. | |
10435 | linux*oldld* | linux*aout* | linux*coff*) | |
10436 | dynamic_linker=no | |
10437 | ;; | |
10438 | ||
10439 | # This must be Linux ELF. | |
58e24671 | 10440 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
d7040cdb SE |
10441 | version_type=linux |
10442 | need_lib_prefix=no | |
10443 | need_version=no | |
10444 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10445 | soname_spec='${libname}${release}${shared_ext}$major' | |
10446 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10447 | shlibpath_var=LD_LIBRARY_PATH | |
10448 | shlibpath_overrides_runpath=no | |
39144654 | 10449 | |
d7040cdb | 10450 | # Some binutils ld are patched to set DT_RUNPATH |
39144654 RW |
10451 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then |
10452 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10453 | else | |
10454 | lt_cv_shlibpath_overrides_runpath=no | |
10455 | save_LDFLAGS=$LDFLAGS | |
10456 | save_libdir=$libdir | |
10457 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10458 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10459 | cat >conftest.$ac_ext <<_ACEOF | |
d7040cdb SE |
10460 | /* confdefs.h. */ |
10461 | _ACEOF | |
10462 | cat confdefs.h >>conftest.$ac_ext | |
10463 | cat >>conftest.$ac_ext <<_ACEOF | |
10464 | /* end confdefs.h. */ | |
10465 | ||
10466 | int | |
10467 | main () | |
10468 | { | |
10469 | ||
10470 | ; | |
10471 | return 0; | |
10472 | } | |
10473 | _ACEOF | |
10474 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10475 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10476 | (eval $ac_link) 2>conftest.er1 | |
10477 | ac_status=$? | |
10478 | grep -v '^ *+' conftest.er1 >conftest.err | |
10479 | rm -f conftest.er1 | |
10480 | cat conftest.err >&5 | |
10481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10482 | (exit $ac_status); } && | |
7357c5b6 AM |
10483 | { ac_try='test -z "$ac_c_werror_flag" |
10484 | || test ! -s conftest.err' | |
d7040cdb SE |
10485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10486 | (eval $ac_try) 2>&5 | |
10487 | ac_status=$? | |
10488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10489 | (exit $ac_status); }; } && | |
10490 | { ac_try='test -s conftest$ac_exeext' | |
10491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10492 | (eval $ac_try) 2>&5 | |
10493 | ac_status=$? | |
10494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10495 | (exit $ac_status); }; }; then | |
718a6fd8 | 10496 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then |
39144654 | 10497 | lt_cv_shlibpath_overrides_runpath=yes |
d7040cdb SE |
10498 | fi |
10499 | ||
10500 | else | |
10501 | echo "$as_me: failed program was:" >&5 | |
10502 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10503 | ||
10504 | fi | |
10505 | rm -f conftest.err conftest.$ac_objext \ | |
10506 | conftest$ac_exeext conftest.$ac_ext | |
39144654 RW |
10507 | LDFLAGS=$save_LDFLAGS |
10508 | libdir=$save_libdir | |
10509 | ||
10510 | fi | |
10511 | ||
10512 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
d7040cdb SE |
10513 | |
10514 | # This implies no fast_install, which is unacceptable. | |
10515 | # Some rework will be needed to allow for fast_install | |
10516 | # before this can be enabled. | |
10517 | hardcode_into_libs=yes | |
10518 | ||
10519 | # Append ld.so.conf contents to the search path | |
10520 | if test -f /etc/ld.so.conf; then | |
718a6fd8 | 10521 | 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
d7040cdb SE |
10522 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
10523 | fi | |
10524 | ||
10525 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10526 | # powerpc, because MkLinux only supported shared libraries with the | |
10527 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10528 | # most powerpc-linux boxes support dynamic linking these days and | |
10529 | # people can always --disable-shared, the test was removed, and we | |
10530 | # assume the GNU/Linux dynamic linker is in use. | |
10531 | dynamic_linker='GNU/Linux ld.so' | |
10532 | ;; | |
10533 | ||
10534 | netbsd*) | |
10535 | version_type=sunos | |
10536 | need_lib_prefix=no | |
10537 | need_version=no | |
10538 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10539 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10540 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10541 | dynamic_linker='NetBSD (a.out) ld.so' | |
10542 | else | |
10543 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10544 | soname_spec='${libname}${release}${shared_ext}$major' | |
10545 | dynamic_linker='NetBSD ld.elf_so' | |
10546 | fi | |
10547 | shlibpath_var=LD_LIBRARY_PATH | |
10548 | shlibpath_overrides_runpath=yes | |
10549 | hardcode_into_libs=yes | |
10550 | ;; | |
10551 | ||
10552 | newsos6) | |
10553 | version_type=linux | |
10554 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10555 | shlibpath_var=LD_LIBRARY_PATH | |
10556 | shlibpath_overrides_runpath=yes | |
10557 | ;; | |
10558 | ||
10559 | *nto* | *qnx*) | |
10560 | version_type=qnx | |
10561 | need_lib_prefix=no | |
10562 | need_version=no | |
10563 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10564 | soname_spec='${libname}${release}${shared_ext}$major' | |
10565 | shlibpath_var=LD_LIBRARY_PATH | |
10566 | shlibpath_overrides_runpath=no | |
10567 | hardcode_into_libs=yes | |
10568 | dynamic_linker='ldqnx.so' | |
10569 | ;; | |
10570 | ||
10571 | openbsd*) | |
10572 | version_type=sunos | |
10573 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10574 | need_lib_prefix=no | |
10575 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10576 | case $host_os in | |
10577 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10578 | *) need_version=no ;; | |
10579 | esac | |
10580 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10581 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10582 | shlibpath_var=LD_LIBRARY_PATH | |
10583 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10584 | case $host_os in | |
10585 | openbsd2.[89] | openbsd2.[89].*) | |
10586 | shlibpath_overrides_runpath=no | |
10587 | ;; | |
10588 | *) | |
10589 | shlibpath_overrides_runpath=yes | |
10590 | ;; | |
10591 | esac | |
10592 | else | |
10593 | shlibpath_overrides_runpath=yes | |
10594 | fi | |
10595 | ;; | |
10596 | ||
10597 | os2*) | |
10598 | libname_spec='$name' | |
10599 | shrext_cmds=".dll" | |
10600 | need_lib_prefix=no | |
10601 | library_names_spec='$libname${shared_ext} $libname.a' | |
10602 | dynamic_linker='OS/2 ld.exe' | |
10603 | shlibpath_var=LIBPATH | |
10604 | ;; | |
10605 | ||
10606 | osf3* | osf4* | osf5*) | |
10607 | version_type=osf | |
10608 | need_lib_prefix=no | |
10609 | need_version=no | |
10610 | soname_spec='${libname}${release}${shared_ext}$major' | |
10611 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10612 | shlibpath_var=LD_LIBRARY_PATH | |
10613 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10614 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10615 | ;; | |
10616 | ||
10617 | rdos*) | |
10618 | dynamic_linker=no | |
10619 | ;; | |
10620 | ||
10621 | solaris*) | |
10622 | version_type=linux | |
10623 | need_lib_prefix=no | |
10624 | need_version=no | |
10625 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10626 | soname_spec='${libname}${release}${shared_ext}$major' | |
10627 | shlibpath_var=LD_LIBRARY_PATH | |
10628 | shlibpath_overrides_runpath=yes | |
10629 | hardcode_into_libs=yes | |
10630 | # ldd complains unless libraries are executable | |
10631 | postinstall_cmds='chmod +x $lib' | |
10632 | ;; | |
10633 | ||
10634 | sunos4*) | |
10635 | version_type=sunos | |
10636 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10637 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10638 | shlibpath_var=LD_LIBRARY_PATH | |
10639 | shlibpath_overrides_runpath=yes | |
10640 | if test "$with_gnu_ld" = yes; then | |
10641 | need_lib_prefix=no | |
10642 | fi | |
10643 | need_version=yes | |
10644 | ;; | |
10645 | ||
10646 | sysv4 | sysv4.3*) | |
10647 | version_type=linux | |
10648 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10649 | soname_spec='${libname}${release}${shared_ext}$major' | |
10650 | shlibpath_var=LD_LIBRARY_PATH | |
10651 | case $host_vendor in | |
10652 | sni) | |
10653 | shlibpath_overrides_runpath=no | |
10654 | need_lib_prefix=no | |
10655 | runpath_var=LD_RUN_PATH | |
10656 | ;; | |
10657 | siemens) | |
10658 | need_lib_prefix=no | |
10659 | ;; | |
10660 | motorola) | |
10661 | need_lib_prefix=no | |
10662 | need_version=no | |
10663 | shlibpath_overrides_runpath=no | |
10664 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10665 | ;; | |
10666 | esac | |
10667 | ;; | |
10668 | ||
10669 | sysv4*MP*) | |
10670 | if test -d /usr/nec ;then | |
10671 | version_type=linux | |
10672 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10673 | soname_spec='$libname${shared_ext}.$major' | |
10674 | shlibpath_var=LD_LIBRARY_PATH | |
10675 | fi | |
10676 | ;; | |
10677 | ||
10678 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10679 | version_type=freebsd-elf | |
10680 | need_lib_prefix=no | |
10681 | need_version=no | |
10682 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10683 | soname_spec='${libname}${release}${shared_ext}$major' | |
10684 | shlibpath_var=LD_LIBRARY_PATH | |
10685 | shlibpath_overrides_runpath=yes | |
10686 | hardcode_into_libs=yes | |
10687 | if test "$with_gnu_ld" = yes; then | |
10688 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10689 | else | |
10690 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10691 | case $host_os in | |
10692 | sco3.2v5*) | |
10693 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10694 | ;; | |
10695 | esac | |
10696 | fi | |
10697 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10698 | ;; | |
10699 | ||
10700 | tpf*) | |
10701 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10702 | version_type=linux | |
10703 | need_lib_prefix=no | |
10704 | need_version=no | |
718a6fd8 | 10705 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
d7040cdb SE |
10706 | shlibpath_var=LD_LIBRARY_PATH |
10707 | shlibpath_overrides_runpath=no | |
10708 | hardcode_into_libs=yes | |
10709 | ;; | |
10710 | ||
10711 | uts4*) | |
10712 | version_type=linux | |
10713 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10714 | soname_spec='${libname}${release}${shared_ext}$major' | |
10715 | shlibpath_var=LD_LIBRARY_PATH | |
10716 | ;; | |
10717 | ||
10718 | *) | |
10719 | dynamic_linker=no | |
10720 | ;; | |
10721 | esac | |
10722 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
10723 | echo "${ECHO_T}$dynamic_linker" >&6 | |
10724 | test "$dynamic_linker" = no && can_build_shared=no | |
10725 | ||
10726 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10727 | if test "$GCC" = yes; then | |
10728 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10729 | fi | |
10730 | ||
718a6fd8 SE |
10731 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10732 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10733 | fi | |
10734 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10735 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10736 | fi | |
10737 | ||
d7040cdb SE |
10738 | |
10739 | ||
10740 | ||
10741 | ||
10742 | ||
10743 | ||
10744 | ||
10745 | ||
10746 | ||
10747 | ||
10748 | ||
10749 | ||
10750 | ||
10751 | ||
10752 | ||
10753 | ||
10754 | ||
10755 | ||
10756 | ||
10757 | ||
10758 | ||
10759 | ||
10760 | ||
10761 | ||
10762 | ||
10763 | ||
10764 | ||
10765 | ||
10766 | ||
10767 | ||
10768 | ||
10769 | ||
10770 | ||
10771 | ||
10772 | ||
10773 | ||
10774 | ||
10775 | ||
10776 | ||
10777 | ||
10778 | ||
10779 | ||
10780 | ||
10781 | ||
10782 | ||
10783 | ||
10784 | ||
10785 | ||
10786 | ||
10787 | ||
10788 | ||
10789 | ||
10790 | ||
10791 | ||
10792 | ||
10793 | ||
10794 | ||
10795 | ||
10796 | ||
10797 | ||
10798 | ||
10799 | ||
10800 | ||
10801 | ||
10802 | ||
10803 | ||
10804 | ||
10805 | ||
10806 | ||
10807 | ||
10808 | ||
10809 | ||
10810 | ||
10811 | ||
10812 | ||
10813 | ||
10814 | ||
10815 | ||
10816 | ||
10817 | ||
10818 | ||
10819 | ||
10820 | ||
10821 | ||
10822 | ||
10823 | ||
10824 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
10825 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | |
10826 | hardcode_action= | |
10827 | if test -n "$hardcode_libdir_flag_spec" || | |
10828 | test -n "$runpath_var" || | |
10829 | test "X$hardcode_automatic" = "Xyes" ; then | |
10830 | ||
10831 | # We can hardcode non-existent directories. | |
10832 | if test "$hardcode_direct" != no && | |
10833 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10834 | # have to relink, otherwise we might link with an installed library | |
10835 | # when we should be linking with a yet-to-be-installed one | |
10836 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10837 | test "$hardcode_minus_L" != no; then | |
10838 | # Linking always hardcodes the temporary library directory. | |
10839 | hardcode_action=relink | |
10840 | else | |
10841 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10842 | hardcode_action=immediate | |
10843 | fi | |
10844 | else | |
10845 | # We cannot hardcode anything, or else we can only hardcode existing | |
10846 | # directories. | |
10847 | hardcode_action=unsupported | |
10848 | fi | |
10849 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
10850 | echo "${ECHO_T}$hardcode_action" >&6 | |
10851 | ||
10852 | if test "$hardcode_action" = relink || | |
10853 | test "$inherit_rpath" = yes; then | |
10854 | # Fast installation is not supported | |
10855 | enable_fast_install=no | |
10856 | elif test "$shlibpath_overrides_runpath" = yes || | |
10857 | test "$enable_shared" = no; then | |
10858 | # Fast installation is not necessary | |
10859 | enable_fast_install=needless | |
10860 | fi | |
10861 | ||
10862 | ||
10863 | ||
10864 | ||
10865 | ||
10866 | ||
10867 | if test "x$enable_dlopen" != xyes; then | |
10868 | enable_dlopen=unknown | |
10869 | enable_dlopen_self=unknown | |
10870 | enable_dlopen_self_static=unknown | |
10871 | else | |
10872 | lt_cv_dlopen=no | |
10873 | lt_cv_dlopen_libs= | |
10874 | ||
10875 | case $host_os in | |
10876 | beos*) | |
10877 | lt_cv_dlopen="load_add_on" | |
10878 | lt_cv_dlopen_libs= | |
10879 | lt_cv_dlopen_self=yes | |
10880 | ;; | |
10881 | ||
718a6fd8 | 10882 | mingw* | pw32* | cegcc*) |
d7040cdb SE |
10883 | lt_cv_dlopen="LoadLibrary" |
10884 | lt_cv_dlopen_libs= | |
10885 | ;; | |
10886 | ||
10887 | cygwin*) | |
10888 | lt_cv_dlopen="dlopen" | |
10889 | lt_cv_dlopen_libs= | |
10890 | ;; | |
10891 | ||
10892 | darwin*) | |
10893 | # if libdl is installed we need to link against it | |
10894 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
10895 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
10896 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
10897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10898 | else | |
10899 | ac_check_lib_save_LIBS=$LIBS | |
10900 | LIBS="-ldl $LIBS" | |
10901 | cat >conftest.$ac_ext <<_ACEOF | |
10902 | /* confdefs.h. */ | |
10903 | _ACEOF | |
10904 | cat confdefs.h >>conftest.$ac_ext | |
10905 | cat >>conftest.$ac_ext <<_ACEOF | |
10906 | /* end confdefs.h. */ | |
10907 | ||
10908 | /* Override any gcc2 internal prototype to avoid an error. */ | |
10909 | #ifdef __cplusplus | |
10910 | extern "C" | |
10911 | #endif | |
10912 | /* We use char because int might match the return type of a gcc2 | |
10913 | builtin and then its argument prototype would still apply. */ | |
10914 | char dlopen (); | |
10915 | int | |
10916 | main () | |
10917 | { | |
10918 | dlopen (); | |
10919 | ; | |
10920 | return 0; | |
10921 | } | |
10922 | _ACEOF | |
10923 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10924 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
10925 | (eval $ac_link) 2>conftest.er1 | |
10926 | ac_status=$? | |
10927 | grep -v '^ *+' conftest.er1 >conftest.err | |
10928 | rm -f conftest.er1 | |
10929 | cat conftest.err >&5 | |
10930 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10931 | (exit $ac_status); } && | |
7357c5b6 AM |
10932 | { ac_try='test -z "$ac_c_werror_flag" |
10933 | || test ! -s conftest.err' | |
d7040cdb SE |
10934 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
10935 | (eval $ac_try) 2>&5 | |
10936 | ac_status=$? | |
10937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10938 | (exit $ac_status); }; } && | |
10939 | { ac_try='test -s conftest$ac_exeext' | |
10940 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
10941 | (eval $ac_try) 2>&5 | |
10942 | ac_status=$? | |
10943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10944 | (exit $ac_status); }; }; then | |
10945 | ac_cv_lib_dl_dlopen=yes | |
10946 | else | |
10947 | echo "$as_me: failed program was:" >&5 | |
10948 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10949 | ||
10950 | ac_cv_lib_dl_dlopen=no | |
10951 | fi | |
10952 | rm -f conftest.err conftest.$ac_objext \ | |
10953 | conftest$ac_exeext conftest.$ac_ext | |
10954 | LIBS=$ac_check_lib_save_LIBS | |
10955 | fi | |
10956 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
10957 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
10958 | if test $ac_cv_lib_dl_dlopen = yes; then | |
10959 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10960 | else | |
10961 | ||
10962 | lt_cv_dlopen="dyld" | |
10963 | lt_cv_dlopen_libs= | |
10964 | lt_cv_dlopen_self=yes | |
10965 | ||
10966 | fi | |
10967 | ||
10968 | ;; | |
10969 | ||
10970 | *) | |
10971 | echo "$as_me:$LINENO: checking for shl_load" >&5 | |
10972 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | |
10973 | if test "${ac_cv_func_shl_load+set}" = set; then | |
10974 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
10975 | else | |
10976 | cat >conftest.$ac_ext <<_ACEOF | |
10977 | /* confdefs.h. */ | |
10978 | _ACEOF | |
10979 | cat confdefs.h >>conftest.$ac_ext | |
10980 | cat >>conftest.$ac_ext <<_ACEOF | |
10981 | /* end confdefs.h. */ | |
10982 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
10983 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
10984 | #define shl_load innocuous_shl_load | |
10985 | ||
10986 | /* System header to define __stub macros and hopefully few prototypes, | |
10987 | which can conflict with char shl_load (); below. | |
10988 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
10989 | <limits.h> exists even on freestanding compilers. */ | |
10990 | ||
10991 | #ifdef __STDC__ | |
10992 | # include <limits.h> | |
10993 | #else | |
10994 | # include <assert.h> | |
10995 | #endif | |
10996 | ||
10997 | #undef shl_load | |
10998 | ||
10999 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11000 | #ifdef __cplusplus | |
11001 | extern "C" | |
11002 | { | |
11003 | #endif | |
11004 | /* We use char because int might match the return type of a gcc2 | |
11005 | builtin and then its argument prototype would still apply. */ | |
11006 | char shl_load (); | |
11007 | /* The GNU C library defines this for functions which it implements | |
11008 | to always fail with ENOSYS. Some functions are actually named | |
11009 | something starting with __ and the normal name is an alias. */ | |
11010 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | |
11011 | choke me | |
11012 | #else | |
11013 | char (*f) () = shl_load; | |
11014 | #endif | |
11015 | #ifdef __cplusplus | |
11016 | } | |
11017 | #endif | |
11018 | ||
11019 | int | |
11020 | main () | |
11021 | { | |
11022 | return f != shl_load; | |
11023 | ; | |
11024 | return 0; | |
11025 | } | |
11026 | _ACEOF | |
11027 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11028 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11029 | (eval $ac_link) 2>conftest.er1 | |
11030 | ac_status=$? | |
11031 | grep -v '^ *+' conftest.er1 >conftest.err | |
11032 | rm -f conftest.er1 | |
11033 | cat conftest.err >&5 | |
11034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11035 | (exit $ac_status); } && | |
7357c5b6 AM |
11036 | { ac_try='test -z "$ac_c_werror_flag" |
11037 | || test ! -s conftest.err' | |
d7040cdb SE |
11038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11039 | (eval $ac_try) 2>&5 | |
11040 | ac_status=$? | |
11041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11042 | (exit $ac_status); }; } && | |
11043 | { ac_try='test -s conftest$ac_exeext' | |
11044 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11045 | (eval $ac_try) 2>&5 | |
11046 | ac_status=$? | |
11047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11048 | (exit $ac_status); }; }; then | |
11049 | ac_cv_func_shl_load=yes | |
11050 | else | |
11051 | echo "$as_me: failed program was:" >&5 | |
11052 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11053 | ||
11054 | ac_cv_func_shl_load=no | |
11055 | fi | |
11056 | rm -f conftest.err conftest.$ac_objext \ | |
11057 | conftest$ac_exeext conftest.$ac_ext | |
11058 | fi | |
11059 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
11060 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | |
11061 | if test $ac_cv_func_shl_load = yes; then | |
11062 | lt_cv_dlopen="shl_load" | |
11063 | else | |
11064 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
11065 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | |
11066 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
11067 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11068 | else | |
11069 | ac_check_lib_save_LIBS=$LIBS | |
11070 | LIBS="-ldld $LIBS" | |
11071 | cat >conftest.$ac_ext <<_ACEOF | |
11072 | /* confdefs.h. */ | |
11073 | _ACEOF | |
11074 | cat confdefs.h >>conftest.$ac_ext | |
11075 | cat >>conftest.$ac_ext <<_ACEOF | |
11076 | /* end confdefs.h. */ | |
11077 | ||
11078 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11079 | #ifdef __cplusplus | |
11080 | extern "C" | |
11081 | #endif | |
11082 | /* We use char because int might match the return type of a gcc2 | |
11083 | builtin and then its argument prototype would still apply. */ | |
11084 | char shl_load (); | |
11085 | int | |
11086 | main () | |
11087 | { | |
11088 | shl_load (); | |
11089 | ; | |
11090 | return 0; | |
11091 | } | |
11092 | _ACEOF | |
11093 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11094 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11095 | (eval $ac_link) 2>conftest.er1 | |
11096 | ac_status=$? | |
11097 | grep -v '^ *+' conftest.er1 >conftest.err | |
11098 | rm -f conftest.er1 | |
11099 | cat conftest.err >&5 | |
11100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11101 | (exit $ac_status); } && | |
7357c5b6 AM |
11102 | { ac_try='test -z "$ac_c_werror_flag" |
11103 | || test ! -s conftest.err' | |
d7040cdb SE |
11104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11105 | (eval $ac_try) 2>&5 | |
11106 | ac_status=$? | |
11107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11108 | (exit $ac_status); }; } && | |
11109 | { ac_try='test -s conftest$ac_exeext' | |
11110 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11111 | (eval $ac_try) 2>&5 | |
11112 | ac_status=$? | |
11113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11114 | (exit $ac_status); }; }; then | |
11115 | ac_cv_lib_dld_shl_load=yes | |
11116 | else | |
11117 | echo "$as_me: failed program was:" >&5 | |
11118 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11119 | ||
11120 | ac_cv_lib_dld_shl_load=no | |
11121 | fi | |
11122 | rm -f conftest.err conftest.$ac_objext \ | |
11123 | conftest$ac_exeext conftest.$ac_ext | |
11124 | LIBS=$ac_check_lib_save_LIBS | |
11125 | fi | |
11126 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
11127 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | |
11128 | if test $ac_cv_lib_dld_shl_load = yes; then | |
718a6fd8 | 11129 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
d7040cdb SE |
11130 | else |
11131 | echo "$as_me:$LINENO: checking for dlopen" >&5 | |
11132 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | |
11133 | if test "${ac_cv_func_dlopen+set}" = set; then | |
11134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11135 | else | |
11136 | cat >conftest.$ac_ext <<_ACEOF | |
11137 | /* confdefs.h. */ | |
11138 | _ACEOF | |
11139 | cat confdefs.h >>conftest.$ac_ext | |
11140 | cat >>conftest.$ac_ext <<_ACEOF | |
11141 | /* end confdefs.h. */ | |
11142 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
11143 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11144 | #define dlopen innocuous_dlopen | |
11145 | ||
11146 | /* System header to define __stub macros and hopefully few prototypes, | |
11147 | which can conflict with char dlopen (); below. | |
11148 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11149 | <limits.h> exists even on freestanding compilers. */ | |
11150 | ||
11151 | #ifdef __STDC__ | |
11152 | # include <limits.h> | |
11153 | #else | |
11154 | # include <assert.h> | |
11155 | #endif | |
11156 | ||
11157 | #undef dlopen | |
11158 | ||
11159 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11160 | #ifdef __cplusplus | |
11161 | extern "C" | |
11162 | { | |
11163 | #endif | |
11164 | /* We use char because int might match the return type of a gcc2 | |
11165 | builtin and then its argument prototype would still apply. */ | |
11166 | char dlopen (); | |
11167 | /* The GNU C library defines this for functions which it implements | |
11168 | to always fail with ENOSYS. Some functions are actually named | |
11169 | something starting with __ and the normal name is an alias. */ | |
11170 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | |
11171 | choke me | |
11172 | #else | |
11173 | char (*f) () = dlopen; | |
11174 | #endif | |
11175 | #ifdef __cplusplus | |
11176 | } | |
11177 | #endif | |
11178 | ||
11179 | int | |
11180 | main () | |
11181 | { | |
11182 | return f != dlopen; | |
11183 | ; | |
11184 | return 0; | |
11185 | } | |
11186 | _ACEOF | |
11187 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11189 | (eval $ac_link) 2>conftest.er1 | |
11190 | ac_status=$? | |
11191 | grep -v '^ *+' conftest.er1 >conftest.err | |
11192 | rm -f conftest.er1 | |
11193 | cat conftest.err >&5 | |
11194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11195 | (exit $ac_status); } && | |
7357c5b6 AM |
11196 | { ac_try='test -z "$ac_c_werror_flag" |
11197 | || test ! -s conftest.err' | |
d7040cdb SE |
11198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11199 | (eval $ac_try) 2>&5 | |
11200 | ac_status=$? | |
11201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11202 | (exit $ac_status); }; } && | |
11203 | { ac_try='test -s conftest$ac_exeext' | |
11204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11205 | (eval $ac_try) 2>&5 | |
11206 | ac_status=$? | |
11207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11208 | (exit $ac_status); }; }; then | |
11209 | ac_cv_func_dlopen=yes | |
11210 | else | |
11211 | echo "$as_me: failed program was:" >&5 | |
11212 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11213 | ||
11214 | ac_cv_func_dlopen=no | |
11215 | fi | |
11216 | rm -f conftest.err conftest.$ac_objext \ | |
11217 | conftest$ac_exeext conftest.$ac_ext | |
11218 | fi | |
11219 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
11220 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | |
11221 | if test $ac_cv_func_dlopen = yes; then | |
11222 | lt_cv_dlopen="dlopen" | |
11223 | else | |
11224 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
11225 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | |
11226 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
11227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11228 | else | |
11229 | ac_check_lib_save_LIBS=$LIBS | |
11230 | LIBS="-ldl $LIBS" | |
11231 | cat >conftest.$ac_ext <<_ACEOF | |
11232 | /* confdefs.h. */ | |
11233 | _ACEOF | |
11234 | cat confdefs.h >>conftest.$ac_ext | |
11235 | cat >>conftest.$ac_ext <<_ACEOF | |
11236 | /* end confdefs.h. */ | |
11237 | ||
11238 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11239 | #ifdef __cplusplus | |
11240 | extern "C" | |
11241 | #endif | |
11242 | /* We use char because int might match the return type of a gcc2 | |
11243 | builtin and then its argument prototype would still apply. */ | |
11244 | char dlopen (); | |
11245 | int | |
11246 | main () | |
11247 | { | |
11248 | dlopen (); | |
11249 | ; | |
11250 | return 0; | |
11251 | } | |
11252 | _ACEOF | |
11253 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11254 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11255 | (eval $ac_link) 2>conftest.er1 | |
11256 | ac_status=$? | |
11257 | grep -v '^ *+' conftest.er1 >conftest.err | |
11258 | rm -f conftest.er1 | |
11259 | cat conftest.err >&5 | |
11260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11261 | (exit $ac_status); } && | |
7357c5b6 AM |
11262 | { ac_try='test -z "$ac_c_werror_flag" |
11263 | || test ! -s conftest.err' | |
d7040cdb SE |
11264 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11265 | (eval $ac_try) 2>&5 | |
11266 | ac_status=$? | |
11267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11268 | (exit $ac_status); }; } && | |
11269 | { ac_try='test -s conftest$ac_exeext' | |
11270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11271 | (eval $ac_try) 2>&5 | |
11272 | ac_status=$? | |
11273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11274 | (exit $ac_status); }; }; then | |
11275 | ac_cv_lib_dl_dlopen=yes | |
11276 | else | |
11277 | echo "$as_me: failed program was:" >&5 | |
11278 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11279 | ||
11280 | ac_cv_lib_dl_dlopen=no | |
11281 | fi | |
11282 | rm -f conftest.err conftest.$ac_objext \ | |
11283 | conftest$ac_exeext conftest.$ac_ext | |
11284 | LIBS=$ac_check_lib_save_LIBS | |
11285 | fi | |
11286 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
11287 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | |
11288 | if test $ac_cv_lib_dl_dlopen = yes; then | |
11289 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11290 | else | |
11291 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
11292 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | |
11293 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
11294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11295 | else | |
11296 | ac_check_lib_save_LIBS=$LIBS | |
11297 | LIBS="-lsvld $LIBS" | |
11298 | cat >conftest.$ac_ext <<_ACEOF | |
11299 | /* confdefs.h. */ | |
11300 | _ACEOF | |
11301 | cat confdefs.h >>conftest.$ac_ext | |
11302 | cat >>conftest.$ac_ext <<_ACEOF | |
11303 | /* end confdefs.h. */ | |
11304 | ||
11305 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11306 | #ifdef __cplusplus | |
11307 | extern "C" | |
11308 | #endif | |
11309 | /* We use char because int might match the return type of a gcc2 | |
11310 | builtin and then its argument prototype would still apply. */ | |
11311 | char dlopen (); | |
11312 | int | |
11313 | main () | |
11314 | { | |
11315 | dlopen (); | |
11316 | ; | |
11317 | return 0; | |
11318 | } | |
11319 | _ACEOF | |
11320 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11321 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11322 | (eval $ac_link) 2>conftest.er1 | |
11323 | ac_status=$? | |
11324 | grep -v '^ *+' conftest.er1 >conftest.err | |
11325 | rm -f conftest.er1 | |
11326 | cat conftest.err >&5 | |
11327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11328 | (exit $ac_status); } && | |
7357c5b6 AM |
11329 | { ac_try='test -z "$ac_c_werror_flag" |
11330 | || test ! -s conftest.err' | |
d7040cdb SE |
11331 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11332 | (eval $ac_try) 2>&5 | |
11333 | ac_status=$? | |
11334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11335 | (exit $ac_status); }; } && | |
11336 | { ac_try='test -s conftest$ac_exeext' | |
11337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11338 | (eval $ac_try) 2>&5 | |
11339 | ac_status=$? | |
11340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11341 | (exit $ac_status); }; }; then | |
11342 | ac_cv_lib_svld_dlopen=yes | |
11343 | else | |
11344 | echo "$as_me: failed program was:" >&5 | |
11345 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11346 | ||
11347 | ac_cv_lib_svld_dlopen=no | |
11348 | fi | |
11349 | rm -f conftest.err conftest.$ac_objext \ | |
11350 | conftest$ac_exeext conftest.$ac_ext | |
11351 | LIBS=$ac_check_lib_save_LIBS | |
11352 | fi | |
11353 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
11354 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | |
11355 | if test $ac_cv_lib_svld_dlopen = yes; then | |
11356 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
11357 | else | |
11358 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
11359 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | |
11360 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
11361 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11362 | else | |
11363 | ac_check_lib_save_LIBS=$LIBS | |
11364 | LIBS="-ldld $LIBS" | |
11365 | cat >conftest.$ac_ext <<_ACEOF | |
11366 | /* confdefs.h. */ | |
11367 | _ACEOF | |
11368 | cat confdefs.h >>conftest.$ac_ext | |
11369 | cat >>conftest.$ac_ext <<_ACEOF | |
11370 | /* end confdefs.h. */ | |
11371 | ||
11372 | /* Override any gcc2 internal prototype to avoid an error. */ | |
11373 | #ifdef __cplusplus | |
11374 | extern "C" | |
11375 | #endif | |
11376 | /* We use char because int might match the return type of a gcc2 | |
11377 | builtin and then its argument prototype would still apply. */ | |
11378 | char dld_link (); | |
11379 | int | |
11380 | main () | |
11381 | { | |
11382 | dld_link (); | |
11383 | ; | |
11384 | return 0; | |
11385 | } | |
11386 | _ACEOF | |
11387 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11388 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11389 | (eval $ac_link) 2>conftest.er1 | |
11390 | ac_status=$? | |
11391 | grep -v '^ *+' conftest.er1 >conftest.err | |
11392 | rm -f conftest.er1 | |
11393 | cat conftest.err >&5 | |
11394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11395 | (exit $ac_status); } && | |
7357c5b6 AM |
11396 | { ac_try='test -z "$ac_c_werror_flag" |
11397 | || test ! -s conftest.err' | |
d7040cdb SE |
11398 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
11399 | (eval $ac_try) 2>&5 | |
11400 | ac_status=$? | |
11401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11402 | (exit $ac_status); }; } && | |
11403 | { ac_try='test -s conftest$ac_exeext' | |
11404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
11405 | (eval $ac_try) 2>&5 | |
11406 | ac_status=$? | |
11407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11408 | (exit $ac_status); }; }; then | |
11409 | ac_cv_lib_dld_dld_link=yes | |
11410 | else | |
11411 | echo "$as_me: failed program was:" >&5 | |
11412 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11413 | ||
11414 | ac_cv_lib_dld_dld_link=no | |
11415 | fi | |
11416 | rm -f conftest.err conftest.$ac_objext \ | |
11417 | conftest$ac_exeext conftest.$ac_ext | |
11418 | LIBS=$ac_check_lib_save_LIBS | |
11419 | fi | |
11420 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
11421 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | |
11422 | if test $ac_cv_lib_dld_dld_link = yes; then | |
718a6fd8 | 11423 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
d7040cdb SE |
11424 | fi |
11425 | ||
11426 | ||
11427 | fi | |
11428 | ||
11429 | ||
11430 | fi | |
11431 | ||
11432 | ||
11433 | fi | |
11434 | ||
11435 | ||
11436 | fi | |
11437 | ||
11438 | ||
11439 | fi | |
11440 | ||
11441 | ;; | |
11442 | esac | |
11443 | ||
11444 | if test "x$lt_cv_dlopen" != xno; then | |
11445 | enable_dlopen=yes | |
20e95c23 | 11446 | else |
d7040cdb | 11447 | enable_dlopen=no |
252b5132 | 11448 | fi |
5464f5a1 | 11449 | |
d7040cdb SE |
11450 | case $lt_cv_dlopen in |
11451 | dlopen) | |
11452 | save_CPPFLAGS="$CPPFLAGS" | |
11453 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11454 | ||
11455 | save_LDFLAGS="$LDFLAGS" | |
11456 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11457 | ||
11458 | save_LIBS="$LIBS" | |
11459 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11460 | ||
11461 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
11462 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | |
11463 | if test "${lt_cv_dlopen_self+set}" = set; then | |
11464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20e95c23 | 11465 | else |
d7040cdb SE |
11466 | if test "$cross_compiling" = yes; then : |
11467 | lt_cv_dlopen_self=cross | |
11468 | else | |
11469 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11470 | lt_status=$lt_dlunknown | |
11471 | cat > conftest.$ac_ext <<_LT_EOF | |
29670fb9 | 11472 | #line 11472 "configure" |
d7040cdb SE |
11473 | #include "confdefs.h" |
11474 | ||
11475 | #if HAVE_DLFCN_H | |
11476 | #include <dlfcn.h> | |
11477 | #endif | |
11478 | ||
11479 | #include <stdio.h> | |
11480 | ||
11481 | #ifdef RTLD_GLOBAL | |
11482 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11483 | #else | |
11484 | # ifdef DL_GLOBAL | |
11485 | # define LT_DLGLOBAL DL_GLOBAL | |
11486 | # else | |
11487 | # define LT_DLGLOBAL 0 | |
11488 | # endif | |
11489 | #endif | |
11490 | ||
11491 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11492 | find out it does not work in some platform. */ | |
11493 | #ifndef LT_DLLAZY_OR_NOW | |
11494 | # ifdef RTLD_LAZY | |
11495 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11496 | # else | |
11497 | # ifdef DL_LAZY | |
11498 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11499 | # else | |
11500 | # ifdef RTLD_NOW | |
11501 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11502 | # else | |
11503 | # ifdef DL_NOW | |
11504 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11505 | # else | |
11506 | # define LT_DLLAZY_OR_NOW 0 | |
11507 | # endif | |
11508 | # endif | |
11509 | # endif | |
11510 | # endif | |
11511 | #endif | |
11512 | ||
d7040cdb SE |
11513 | void fnord() { int i=42;} |
11514 | int main () | |
11515 | { | |
11516 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11517 | int status = $lt_dlunknown; | |
11518 | ||
11519 | if (self) | |
11520 | { | |
11521 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11522 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11523 | /* dlclose (self); */ | |
11524 | } | |
11525 | else | |
11526 | puts (dlerror ()); | |
11527 | ||
718a6fd8 | 11528 | return status; |
d7040cdb SE |
11529 | } |
11530 | _LT_EOF | |
11531 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11532 | (eval $ac_link) 2>&5 | |
11533 | ac_status=$? | |
11534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11535 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11536 | (./conftest; exit; ) >&5 2>/dev/null | |
11537 | lt_status=$? | |
11538 | case x$lt_status in | |
11539 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11540 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11541 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11542 | esac | |
11543 | else : | |
11544 | # compilation failed | |
11545 | lt_cv_dlopen_self=no | |
11546 | fi | |
252b5132 | 11547 | fi |
d7040cdb | 11548 | rm -fr conftest* |
20e95c23 | 11549 | |
d7040cdb SE |
11550 | |
11551 | fi | |
11552 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
11553 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | |
11554 | ||
11555 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11556 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11557 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
11558 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | |
11559 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
20e95c23 DJ |
11560 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11561 | else | |
d7040cdb SE |
11562 | if test "$cross_compiling" = yes; then : |
11563 | lt_cv_dlopen_self_static=cross | |
11564 | else | |
11565 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11566 | lt_status=$lt_dlunknown | |
11567 | cat > conftest.$ac_ext <<_LT_EOF | |
29670fb9 | 11568 | #line 11568 "configure" |
d7040cdb SE |
11569 | #include "confdefs.h" |
11570 | ||
11571 | #if HAVE_DLFCN_H | |
11572 | #include <dlfcn.h> | |
11573 | #endif | |
11574 | ||
11575 | #include <stdio.h> | |
11576 | ||
11577 | #ifdef RTLD_GLOBAL | |
11578 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11579 | #else | |
11580 | # ifdef DL_GLOBAL | |
11581 | # define LT_DLGLOBAL DL_GLOBAL | |
11582 | # else | |
11583 | # define LT_DLGLOBAL 0 | |
11584 | # endif | |
11585 | #endif | |
11586 | ||
11587 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11588 | find out it does not work in some platform. */ | |
11589 | #ifndef LT_DLLAZY_OR_NOW | |
11590 | # ifdef RTLD_LAZY | |
11591 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11592 | # else | |
11593 | # ifdef DL_LAZY | |
11594 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11595 | # else | |
11596 | # ifdef RTLD_NOW | |
11597 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11598 | # else | |
11599 | # ifdef DL_NOW | |
11600 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11601 | # else | |
11602 | # define LT_DLLAZY_OR_NOW 0 | |
11603 | # endif | |
11604 | # endif | |
11605 | # endif | |
11606 | # endif | |
11607 | #endif | |
11608 | ||
d7040cdb SE |
11609 | void fnord() { int i=42;} |
11610 | int main () | |
11611 | { | |
11612 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11613 | int status = $lt_dlunknown; | |
11614 | ||
11615 | if (self) | |
11616 | { | |
11617 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11618 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11619 | /* dlclose (self); */ | |
11620 | } | |
11621 | else | |
11622 | puts (dlerror ()); | |
11623 | ||
718a6fd8 | 11624 | return status; |
d7040cdb SE |
11625 | } |
11626 | _LT_EOF | |
11627 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11628 | (eval $ac_link) 2>&5 | |
11629 | ac_status=$? | |
11630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11631 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11632 | (./conftest; exit; ) >&5 2>/dev/null | |
11633 | lt_status=$? | |
11634 | case x$lt_status in | |
11635 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11636 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11637 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11638 | esac | |
11639 | else : | |
11640 | # compilation failed | |
11641 | lt_cv_dlopen_self_static=no | |
11642 | fi | |
11643 | fi | |
11644 | rm -fr conftest* | |
11645 | ||
11646 | ||
11647 | fi | |
11648 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
11649 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | |
11650 | fi | |
11651 | ||
11652 | CPPFLAGS="$save_CPPFLAGS" | |
11653 | LDFLAGS="$save_LDFLAGS" | |
11654 | LIBS="$save_LIBS" | |
11655 | ;; | |
11656 | esac | |
11657 | ||
11658 | case $lt_cv_dlopen_self in | |
11659 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11660 | *) enable_dlopen_self=unknown ;; | |
11661 | esac | |
11662 | ||
11663 | case $lt_cv_dlopen_self_static in | |
11664 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11665 | *) enable_dlopen_self_static=unknown ;; | |
11666 | esac | |
11667 | fi | |
11668 | ||
11669 | ||
11670 | ||
11671 | ||
11672 | ||
11673 | ||
11674 | ||
11675 | ||
11676 | ||
11677 | ||
11678 | ||
11679 | ||
11680 | ||
11681 | ||
11682 | ||
11683 | ||
11684 | ||
11685 | striplib= | |
11686 | old_striplib= | |
11687 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
11688 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | |
11689 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11690 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11691 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11692 | echo "$as_me:$LINENO: result: yes" >&5 | |
11693 | echo "${ECHO_T}yes" >&6 | |
11694 | else | |
11695 | # FIXME - insert some real tests, host_os isn't really good enough | |
11696 | case $host_os in | |
11697 | darwin*) | |
11698 | if test -n "$STRIP" ; then | |
11699 | striplib="$STRIP -x" | |
11700 | old_striplib="$STRIP -S" | |
11701 | echo "$as_me:$LINENO: result: yes" >&5 | |
11702 | echo "${ECHO_T}yes" >&6 | |
11703 | else | |
11704 | echo "$as_me:$LINENO: result: no" >&5 | |
11705 | echo "${ECHO_T}no" >&6 | |
11706 | fi | |
20e95c23 DJ |
11707 | ;; |
11708 | *) | |
d7040cdb SE |
11709 | echo "$as_me:$LINENO: result: no" >&5 |
11710 | echo "${ECHO_T}no" >&6 | |
11711 | ;; | |
11712 | esac | |
11713 | fi | |
11714 | ||
11715 | ||
11716 | ||
11717 | ||
11718 | ||
11719 | ||
11720 | ||
11721 | ||
11722 | ||
11723 | ||
11724 | ||
11725 | ||
11726 | # Report which library types will actually be built | |
11727 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
11728 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | |
11729 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
11730 | echo "${ECHO_T}$can_build_shared" >&6 | |
11731 | ||
11732 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
11733 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | |
11734 | test "$can_build_shared" = "no" && enable_shared=no | |
11735 | ||
11736 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11737 | # are all built from PIC. | |
11738 | case $host_os in | |
11739 | aix3*) | |
11740 | test "$enable_shared" = yes && enable_static=no | |
11741 | if test -n "$RANLIB"; then | |
11742 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11743 | postinstall_cmds='$RANLIB $lib' | |
11744 | fi | |
11745 | ;; | |
11746 | ||
e81819a5 | 11747 | aix[4-9]*) |
d7040cdb SE |
11748 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11749 | test "$enable_shared" = yes && enable_static=no | |
11750 | fi | |
20e95c23 | 11751 | ;; |
d7040cdb SE |
11752 | esac |
11753 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
11754 | echo "${ECHO_T}$enable_shared" >&6 | |
11755 | ||
11756 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
11757 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | |
11758 | # Make sure either enable_shared or enable_static is yes. | |
11759 | test "$enable_shared" = yes || enable_static=yes | |
11760 | echo "$as_me:$LINENO: result: $enable_static" >&5 | |
11761 | echo "${ECHO_T}$enable_static" >&6 | |
11762 | ||
11763 | ||
11764 | ||
11765 | ||
11766 | fi | |
11767 | ac_ext=c | |
11768 | ac_cpp='$CPP $CPPFLAGS' | |
11769 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11770 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11771 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11772 | ||
11773 | CC="$lt_save_CC" | |
11774 | ||
11775 | ||
11776 | ||
11777 | ||
11778 | ||
11779 | ||
11780 | ||
11781 | ||
11782 | ||
11783 | ||
11784 | ||
11785 | ||
11786 | ||
11787 | ac_config_commands="$ac_config_commands libtool" | |
11788 | ||
11789 | ||
11790 | ||
11791 | ||
11792 | # Only expand once: | |
11793 | ||
11794 | ||
11795 | ||
11796 | # Check whether --enable-64-bit-bfd or --disable-64-bit-bfd was given. | |
11797 | if test "${enable_64_bit_bfd+set}" = set; then | |
11798 | enableval="$enable_64_bit_bfd" | |
11799 | case "${enableval}" in | |
11800 | yes) want64=true ;; | |
11801 | no) want64=false ;; | |
11802 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for 64-bit-bfd option" >&5 | |
11803 | echo "$as_me: error: bad value ${enableval} for 64-bit-bfd option" >&2;} | |
11804 | { (exit 1); exit 1; }; } ;; | |
11805 | esac | |
11806 | else | |
11807 | want64=false | |
504b7d20 NC |
11808 | fi; |
11809 | # Check whether --enable-targets or --disable-targets was given. | |
d7040cdb SE |
11810 | if test "${enable_targets+set}" = set; then |
11811 | enableval="$enable_targets" | |
11812 | case "${enableval}" in | |
11813 | yes | "") { { echo "$as_me:$LINENO: error: enable-targets option must specify target names or 'all'" >&5 | |
11814 | echo "$as_me: error: enable-targets option must specify target names or 'all'" >&2;} | |
11815 | { (exit 1); exit 1; }; } | |
11816 | ;; | |
11817 | no) enable_targets= ;; | |
11818 | *) enable_targets=$enableval ;; | |
11819 | esac | |
504b7d20 | 11820 | fi; |
504b7d20 | 11821 | |
d7040cdb SE |
11822 | # Check whether --with-mmap or --without-mmap was given. |
11823 | if test "${with_mmap+set}" = set; then | |
11824 | withval="$with_mmap" | |
11825 | case "${withval}" in | |
11826 | yes) want_mmap=true ;; | |
11827 | no) want_mmap=false ;; | |
11828 | *) { { echo "$as_me:$LINENO: error: bad value ${withval} for BFD with-mmap option" >&5 | |
11829 | echo "$as_me: error: bad value ${withval} for BFD with-mmap option" >&2;} | |
11830 | { (exit 1); exit 1; }; } ;; | |
20e95c23 | 11831 | esac |
252b5132 | 11832 | else |
d7040cdb SE |
11833 | want_mmap=false |
11834 | fi; | |
11835 | # Check whether --enable-secureplt or --disable-secureplt was given. | |
11836 | if test "${enable_secureplt+set}" = set; then | |
11837 | enableval="$enable_secureplt" | |
11838 | case "${enableval}" in | |
11839 | yes) use_secureplt=true ;; | |
11840 | no) use_secureplt=false ;; | |
11841 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for secureplt option" >&5 | |
11842 | echo "$as_me: error: bad value ${enableval} for secureplt option" >&2;} | |
11843 | { (exit 1); exit 1; }; } ;; | |
11844 | esac | |
252b5132 | 11845 | else |
d7040cdb SE |
11846 | use_secureplt=false |
11847 | fi; if test $use_secureplt = true; then | |
11848 | ||
11849 | cat >>confdefs.h <<\_ACEOF | |
11850 | #define USE_SECUREPLT 1 | |
11851 | _ACEOF | |
5464f5a1 | 11852 | |
252b5132 | 11853 | fi |
20e95c23 | 11854 | |
0d4a1476 AS |
11855 | DEBUGDIR=${libdir}/debug |
11856 | ||
0d4a1476 AS |
11857 | # Check whether --with-separate-debug-dir or --without-separate-debug-dir was given. |
11858 | if test "${with_separate_debug_dir+set}" = set; then | |
11859 | withval="$with_separate_debug_dir" | |
11860 | DEBUGDIR="${withval}" | |
11861 | fi; | |
11862 | ||
11863 | ||
504b7d20 NC |
11864 | # Check to see if we should allow the generation of |
11865 | # symbols with the ELF standard's STT_COMMON type. | |
11866 | # Check whether --enable-elf-stt-common or --disable-elf-stt-common was given. | |
11867 | if test "${enable_elf_stt_common+set}" = set; then | |
11868 | enableval="$enable_elf_stt_common" | |
11869 | case "${enableval}" in | |
11870 | yes) want_elf_stt_common=true ;; | |
11871 | no) want_elf_stt_common=false ;; | |
11872 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for ELF STT_COMMON option" >&5 | |
11873 | echo "$as_me: error: bad value ${enableval} for ELF STT_COMMON option" >&2;} | |
11874 | { (exit 1); exit 1; }; } ;; | |
11875 | esac | |
11876 | else | |
11877 | # We have to choose a default behaviour. For native builds we could | |
8bc9c892 NC |
11878 | # test whether the loader supports the STT_COMMON type, but that would |
11879 | # mean that built binaries could not be exported to older systems where | |
11880 | # the loader does not support it. So by default we always choose to | |
11881 | # disable this feature. | |
504b7d20 | 11882 | want_elf_stt_common=false |
504b7d20 NC |
11883 | fi; if test $want_elf_stt_common = true; then |
11884 | ||
11885 | cat >>confdefs.h <<\_ACEOF | |
11886 | #define USE_STT_COMMON 1 | |
11887 | _ACEOF | |
11888 | ||
11889 | fi | |
11890 | ||
11891 | ||
d7040cdb | 11892 | |
d7040cdb SE |
11893 | # Check whether --with-pkgversion or --without-pkgversion was given. |
11894 | if test "${with_pkgversion+set}" = set; then | |
11895 | withval="$with_pkgversion" | |
11896 | case "$withval" in | |
11897 | yes) { { echo "$as_me:$LINENO: error: package version not specified" >&5 | |
11898 | echo "$as_me: error: package version not specified" >&2;} | |
11899 | { (exit 1); exit 1; }; } ;; | |
11900 | no) PKGVERSION= ;; | |
11901 | *) PKGVERSION="($withval) " ;; | |
11902 | esac | |
252b5132 | 11903 | else |
d7040cdb | 11904 | PKGVERSION="(GNU Binutils) " |
252b5132 | 11905 | |
d7040cdb | 11906 | fi; |
20e95c23 DJ |
11907 | |
11908 | ||
5464f5a1 | 11909 | |
20e95c23 | 11910 | |
d7040cdb SE |
11911 | # Check whether --with-bugurl or --without-bugurl was given. |
11912 | if test "${with_bugurl+set}" = set; then | |
11913 | withval="$with_bugurl" | |
11914 | case "$withval" in | |
11915 | yes) { { echo "$as_me:$LINENO: error: bug URL not specified" >&5 | |
11916 | echo "$as_me: error: bug URL not specified" >&2;} | |
11917 | { (exit 1); exit 1; }; } ;; | |
11918 | no) BUGURL= | |
11919 | ;; | |
11920 | *) BUGURL="$withval" | |
11921 | ;; | |
11922 | esac | |
252b5132 | 11923 | else |
d7040cdb SE |
11924 | BUGURL="http://www.sourceware.org/bugzilla/" |
11925 | ||
11926 | fi; | |
11927 | case ${BUGURL} in | |
11928 | "") | |
11929 | REPORT_BUGS_TO= | |
11930 | REPORT_BUGS_TEXI= | |
20e95c23 DJ |
11931 | ;; |
11932 | *) | |
d7040cdb SE |
11933 | REPORT_BUGS_TO="<$BUGURL>" |
11934 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
20e95c23 | 11935 | ;; |
d7040cdb SE |
11936 | esac; |
11937 | ||
11938 | ||
11939 | ||
11940 | ||
11941 | ||
11942 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" | |
11943 | ||
11944 | # Check whether --enable-werror or --disable-werror was given. | |
11945 | if test "${enable_werror+set}" = set; then | |
11946 | enableval="$enable_werror" | |
11947 | case "${enableval}" in | |
11948 | yes | y) ERROR_ON_WARNING="yes" ;; | |
11949 | no | n) ERROR_ON_WARNING="no" ;; | |
11950 | *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-werror" >&5 | |
11951 | echo "$as_me: error: bad value ${enableval} for --enable-werror" >&2;} | |
11952 | { (exit 1); exit 1; }; } ;; | |
11953 | esac | |
11954 | fi; | |
11955 | ||
bb8541b9 L |
11956 | # Enable -Wno-format by default when using gcc on mingw |
11957 | case "${host}" in | |
11958 | *-*-mingw32*) | |
11959 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
11960 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
11961 | fi | |
11962 | ;; | |
11963 | *) ;; | |
11964 | esac | |
11965 | ||
d7040cdb SE |
11966 | # Enable -Werror by default when using gcc |
11967 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
11968 | ERROR_ON_WARNING=yes | |
11969 | fi | |
11970 | ||
11971 | NO_WERROR= | |
11972 | if test "${ERROR_ON_WARNING}" = yes ; then | |
11973 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" | |
11974 | NO_WERROR="-Wno-error" | |
11975 | fi | |
11976 | ||
11977 | if test "${GCC}" = yes ; then | |
11978 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
11979 | fi | |
11980 | ||
11981 | # Check whether --enable-build-warnings or --disable-build-warnings was given. | |
11982 | if test "${enable_build_warnings+set}" = set; then | |
11983 | enableval="$enable_build_warnings" | |
11984 | case "${enableval}" in | |
11985 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}";; | |
11986 | no) if test "${GCC}" = yes ; then | |
11987 | WARN_CFLAGS="-w" | |
11988 | fi;; | |
11989 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
11990 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}";; | |
11991 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
11992 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}";; | |
11993 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
20e95c23 | 11994 | esac |
d7040cdb SE |
11995 | fi; |
11996 | ||
11997 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then | |
11998 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
20e95c23 | 11999 | fi |
d7040cdb SE |
12000 | |
12001 | ||
12002 | ||
12003 | ||
12004 | ||
12005 | ac_config_headers="$ac_config_headers config.h:config.in" | |
12006 | ||
12007 | ||
12008 | if test -z "$target" ; then | |
12009 | { { echo "$as_me:$LINENO: error: Unrecognized target system type; please check config.sub." >&5 | |
12010 | echo "$as_me: error: Unrecognized target system type; please check config.sub." >&2;} | |
12011 | { (exit 1); exit 1; }; } | |
20e95c23 DJ |
12012 | fi |
12013 | ||
d7040cdb SE |
12014 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
12015 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
12016 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
12017 | if test "${enable_maintainer_mode+set}" = set; then | |
12018 | enableval="$enable_maintainer_mode" | |
12019 | USE_MAINTAINER_MODE=$enableval | |
12020 | else | |
12021 | USE_MAINTAINER_MODE=no | |
12022 | fi; | |
12023 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
12024 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
20e95c23 DJ |
12025 | |
12026 | ||
d7040cdb SE |
12027 | if test $USE_MAINTAINER_MODE = yes; then |
12028 | MAINTAINER_MODE_TRUE= | |
12029 | MAINTAINER_MODE_FALSE='#' | |
12030 | else | |
12031 | MAINTAINER_MODE_TRUE='#' | |
12032 | MAINTAINER_MODE_FALSE= | |
6be7c12c | 12033 | fi |
5464f5a1 | 12034 | |
d7040cdb SE |
12035 | MAINT=$MAINTAINER_MODE_TRUE |
12036 | ||
12037 | ||
12038 | ||
12039 | ||
12040 | if false; then | |
12041 | GENINSRC_NEVER_TRUE= | |
12042 | GENINSRC_NEVER_FALSE='#' | |
20e95c23 | 12043 | else |
d7040cdb SE |
12044 | GENINSRC_NEVER_TRUE='#' |
12045 | GENINSRC_NEVER_FALSE= | |
5464f5a1 | 12046 | fi |
5464f5a1 | 12047 | |
d7040cdb SE |
12048 | case ${build_alias} in |
12049 | "") build_noncanonical=${build} ;; | |
12050 | *) build_noncanonical=${build_alias} ;; | |
20e95c23 | 12051 | esac |
d7040cdb SE |
12052 | |
12053 | case ${host_alias} in | |
12054 | "") host_noncanonical=${build_noncanonical} ;; | |
12055 | *) host_noncanonical=${host_alias} ;; | |
12056 | esac | |
12057 | ||
12058 | case ${target_alias} in | |
12059 | "") target_noncanonical=${host_noncanonical} ;; | |
12060 | *) target_noncanonical=${target_alias} ;; | |
12061 | esac | |
12062 | ||
12063 | echo "$as_me:$LINENO: checking whether to install libbfd" >&5 | |
12064 | echo $ECHO_N "checking whether to install libbfd... $ECHO_C" >&6 | |
12065 | # Check whether --enable-install-libbfd or --disable-install-libbfd was given. | |
12066 | if test "${enable_install_libbfd+set}" = set; then | |
12067 | enableval="$enable_install_libbfd" | |
12068 | install_libbfd_p=$enableval | |
252b5132 | 12069 | else |
d7040cdb SE |
12070 | if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then |
12071 | install_libbfd_p=yes | |
12072 | else | |
12073 | install_libbfd_p=no | |
12074 | fi | |
12075 | fi; | |
12076 | echo "$as_me:$LINENO: result: $install_libbfd_p" >&5 | |
12077 | echo "${ECHO_T}$install_libbfd_p" >&6 | |
12078 | ||
12079 | ||
12080 | if test $install_libbfd_p = yes; then | |
12081 | INSTALL_LIBBFD_TRUE= | |
12082 | INSTALL_LIBBFD_FALSE='#' | |
12083 | else | |
12084 | INSTALL_LIBBFD_TRUE='#' | |
12085 | INSTALL_LIBBFD_FALSE= | |
5464f5a1 | 12086 | fi |
5464f5a1 | 12087 | |
d7040cdb | 12088 | # Need _noncanonical variables for this. |
5464f5a1 | 12089 | |
5464f5a1 | 12090 | |
d7040cdb SE |
12091 | |
12092 | ||
12093 | # libbfd.a is a host library containing target dependent code | |
12094 | bfdlibdir='$(libdir)' | |
12095 | bfdincludedir='$(includedir)' | |
12096 | if test "${host}" != "${target}"; then | |
12097 | bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib' | |
12098 | bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include' | |
20e95c23 | 12099 | fi |
6be7c12c | 12100 | |
5464f5a1 | 12101 | |
5464f5a1 NN |
12102 | |
12103 | ||
5464f5a1 | 12104 | |
ac48eca1 | 12105 | |
d7040cdb SE |
12106 | host64=false |
12107 | target64=false | |
12108 | bfd_default_target_size=32 | |
252b5132 | 12109 | |
d7040cdb | 12110 | # host stuff: |
20e95c23 | 12111 | |
8cc9115f | 12112 | ALL_LINGUAS="fr tr ja es sv da zh_CN ro rw vi fi id" |
d7040cdb SE |
12113 | # If we haven't got the data from the intl directory, |
12114 | # assume NLS is disabled. | |
12115 | USE_NLS=no | |
12116 | LIBINTL= | |
12117 | LIBINTL_DEP= | |
12118 | INCINTL= | |
12119 | XGETTEXT= | |
12120 | GMSGFMT= | |
12121 | POSUB= | |
12122 | ||
12123 | if test -f ../intl/config.intl; then | |
12124 | . ../intl/config.intl | |
252b5132 | 12125 | fi |
d7040cdb SE |
12126 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
12127 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
12128 | if test x"$USE_NLS" != xyes; then | |
12129 | echo "$as_me:$LINENO: result: no" >&5 | |
12130 | echo "${ECHO_T}no" >&6 | |
12131 | else | |
12132 | echo "$as_me:$LINENO: result: yes" >&5 | |
12133 | echo "${ECHO_T}yes" >&6 | |
5464f5a1 | 12134 | |
d7040cdb SE |
12135 | cat >>confdefs.h <<\_ACEOF |
12136 | #define ENABLE_NLS 1 | |
12137 | _ACEOF | |
252b5132 | 12138 | |
6be7c12c | 12139 | |
d7040cdb SE |
12140 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
12141 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
12142 | # Look for .po and .gmo files in the source directory. | |
12143 | CATALOGS= | |
12144 | XLINGUAS= | |
12145 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
12146 | # If there aren't any .gmo files the shell will give us the | |
12147 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
12148 | # weeded out. | |
12149 | case "$cat" in *\**) | |
12150 | continue;; | |
12151 | esac | |
12152 | # The quadruple backslash is collapsed to a double backslash | |
12153 | # by the backticks, then collapsed again by the double quotes, | |
12154 | # leaving us with one backslash in the sed expression (right | |
12155 | # before the dot that mustn't act as a wildcard). | |
12156 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
12157 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
12158 | # The user is allowed to set LINGUAS to a list of languages to | |
12159 | # install catalogs for. If it's empty that means "all of them." | |
12160 | if test "x$LINGUAS" = x; then | |
12161 | CATALOGS="$CATALOGS $cat" | |
12162 | XLINGUAS="$XLINGUAS $lang" | |
12163 | else | |
12164 | case "$LINGUAS" in *$lang*) | |
12165 | CATALOGS="$CATALOGS $cat" | |
12166 | XLINGUAS="$XLINGUAS $lang" | |
12167 | ;; | |
12168 | esac | |
12169 | fi | |
12170 | done | |
12171 | LINGUAS="$XLINGUAS" | |
12172 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 | |
12173 | echo "${ECHO_T}$LINGUAS" >&6 | |
12174 | ||
252b5132 | 12175 | |
d7040cdb | 12176 | DATADIRNAME=share |
252b5132 | 12177 | |
d7040cdb | 12178 | INSTOBJEXT=.mo |
5464f5a1 | 12179 | |
d7040cdb | 12180 | GENCAT=gencat |
20e95c23 | 12181 | |
d7040cdb | 12182 | CATOBJEXT=.gmo |
5464f5a1 | 12183 | |
20e95c23 | 12184 | fi |
5464f5a1 | 12185 | |
d7040cdb SE |
12186 | MKINSTALLDIRS= |
12187 | if test -n "$ac_aux_dir"; then | |
12188 | case "$ac_aux_dir" in | |
12189 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
12190 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
12191 | esac | |
12192 | fi | |
12193 | if test -z "$MKINSTALLDIRS"; then | |
12194 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
5464f5a1 | 12195 | fi |
5464f5a1 | 12196 | |
5464f5a1 | 12197 | |
d7040cdb SE |
12198 | |
12199 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 | |
12200 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
12201 | # Check whether --enable-nls or --disable-nls was given. | |
12202 | if test "${enable_nls+set}" = set; then | |
12203 | enableval="$enable_nls" | |
12204 | USE_NLS=$enableval | |
252b5132 | 12205 | else |
d7040cdb SE |
12206 | USE_NLS=yes |
12207 | fi; | |
12208 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
12209 | echo "${ECHO_T}$USE_NLS" >&6 | |
5464f5a1 | 12210 | |
252b5132 | 12211 | |
5464f5a1 | 12212 | |
252b5132 | 12213 | |
d7040cdb SE |
12214 | |
12215 | ||
12216 | # Prepare PATH_SEPARATOR. | |
12217 | # The user is always right. | |
12218 | if test "${PATH_SEPARATOR+set}" != set; then | |
12219 | echo "#! /bin/sh" >conf$$.sh | |
12220 | echo "exit 0" >>conf$$.sh | |
12221 | chmod +x conf$$.sh | |
12222 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12223 | PATH_SEPARATOR=';' | |
20e95c23 | 12224 | else |
d7040cdb | 12225 | PATH_SEPARATOR=: |
20e95c23 | 12226 | fi |
d7040cdb SE |
12227 | rm -f conf$$.sh |
12228 | fi | |
12229 | ||
12230 | # Find out how to test for executable files. Don't use a zero-byte file, | |
12231 | # as systems may use methods other than mode bits to determine executability. | |
12232 | cat >conf$$.file <<_ASEOF | |
12233 | #! /bin/sh | |
12234 | exit 0 | |
12235 | _ASEOF | |
12236 | chmod +x conf$$.file | |
12237 | if test -x conf$$.file >/dev/null 2>&1; then | |
12238 | ac_executable_p="test -x" | |
20e95c23 | 12239 | else |
d7040cdb | 12240 | ac_executable_p="test -f" |
20e95c23 | 12241 | fi |
d7040cdb | 12242 | rm -f conf$$.file |
5464f5a1 | 12243 | |
d7040cdb SE |
12244 | # Extract the first word of "msgfmt", so it can be a program name with args. |
12245 | set dummy msgfmt; ac_word=$2 | |
12246 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12247 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12248 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
12249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12250 | else | |
12251 | case "$MSGFMT" in | |
12252 | [\\/]* | ?:[\\/]*) | |
12253 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
12254 | ;; | |
12255 | *) | |
12256 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
12257 | for ac_dir in $PATH; do | |
12258 | IFS="$ac_save_IFS" | |
12259 | test -z "$ac_dir" && ac_dir=. | |
12260 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12261 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
12262 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
12263 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
12264 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
12265 | break 2 | |
12266 | fi | |
12267 | fi | |
12268 | done | |
12269 | done | |
12270 | IFS="$ac_save_IFS" | |
12271 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
12272 | ;; | |
12273 | esac | |
5464f5a1 | 12274 | fi |
d7040cdb SE |
12275 | MSGFMT="$ac_cv_path_MSGFMT" |
12276 | if test "$MSGFMT" != ":"; then | |
12277 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 | |
12278 | echo "${ECHO_T}$MSGFMT" >&6 | |
20e95c23 | 12279 | else |
d7040cdb SE |
12280 | echo "$as_me:$LINENO: result: no" >&5 |
12281 | echo "${ECHO_T}no" >&6 | |
252b5132 | 12282 | fi |
d7040cdb SE |
12283 | |
12284 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
12285 | set dummy gmsgfmt; ac_word=$2 | |
12286 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12287 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12288 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
12289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 12290 | else |
d7040cdb SE |
12291 | case $GMSGFMT in |
12292 | [\\/]* | ?:[\\/]*) | |
12293 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
12294 | ;; | |
12295 | *) | |
12296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12297 | for as_dir in $PATH | |
12298 | do | |
12299 | IFS=$as_save_IFS | |
12300 | test -z "$as_dir" && as_dir=. | |
12301 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12302 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
12303 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
12304 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
12305 | break 2 | |
12306 | fi | |
12307 | done | |
12308 | done | |
5464f5a1 | 12309 | |
d7040cdb SE |
12310 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
12311 | ;; | |
12312 | esac | |
252b5132 | 12313 | fi |
d7040cdb | 12314 | GMSGFMT=$ac_cv_path_GMSGFMT |
5464f5a1 | 12315 | |
d7040cdb SE |
12316 | if test -n "$GMSGFMT"; then |
12317 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 | |
12318 | echo "${ECHO_T}$GMSGFMT" >&6 | |
252b5132 | 12319 | else |
d7040cdb SE |
12320 | echo "$as_me:$LINENO: result: no" >&5 |
12321 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
12322 | fi |
12323 | ||
20e95c23 DJ |
12324 | |
12325 | ||
d7040cdb SE |
12326 | # Prepare PATH_SEPARATOR. |
12327 | # The user is always right. | |
12328 | if test "${PATH_SEPARATOR+set}" != set; then | |
12329 | echo "#! /bin/sh" >conf$$.sh | |
12330 | echo "exit 0" >>conf$$.sh | |
12331 | chmod +x conf$$.sh | |
12332 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12333 | PATH_SEPARATOR=';' | |
12334 | else | |
12335 | PATH_SEPARATOR=: | |
12336 | fi | |
12337 | rm -f conf$$.sh | |
252b5132 | 12338 | fi |
20e95c23 | 12339 | |
d7040cdb SE |
12340 | # Find out how to test for executable files. Don't use a zero-byte file, |
12341 | # as systems may use methods other than mode bits to determine executability. | |
12342 | cat >conf$$.file <<_ASEOF | |
12343 | #! /bin/sh | |
12344 | exit 0 | |
12345 | _ASEOF | |
12346 | chmod +x conf$$.file | |
12347 | if test -x conf$$.file >/dev/null 2>&1; then | |
12348 | ac_executable_p="test -x" | |
12349 | else | |
12350 | ac_executable_p="test -f" | |
12351 | fi | |
12352 | rm -f conf$$.file | |
252b5132 | 12353 | |
d7040cdb SE |
12354 | # Extract the first word of "xgettext", so it can be a program name with args. |
12355 | set dummy xgettext; ac_word=$2 | |
12356 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12357 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12358 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
20e95c23 DJ |
12359 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12360 | else | |
d7040cdb SE |
12361 | case "$XGETTEXT" in |
12362 | [\\/]* | ?:[\\/]*) | |
12363 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
12364 | ;; | |
12365 | *) | |
12366 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
12367 | for ac_dir in $PATH; do | |
12368 | IFS="$ac_save_IFS" | |
12369 | test -z "$ac_dir" && ac_dir=. | |
12370 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12371 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
12372 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
12373 | (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 | |
12374 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
12375 | break 2 | |
12376 | fi | |
12377 | fi | |
12378 | done | |
12379 | done | |
12380 | IFS="$ac_save_IFS" | |
12381 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
12382 | ;; | |
12383 | esac | |
12384 | fi | |
12385 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
12386 | if test "$XGETTEXT" != ":"; then | |
12387 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 | |
12388 | echo "${ECHO_T}$XGETTEXT" >&6 | |
252b5132 | 12389 | else |
d7040cdb SE |
12390 | echo "$as_me:$LINENO: result: no" >&5 |
12391 | echo "${ECHO_T}no" >&6 | |
252b5132 RH |
12392 | fi |
12393 | ||
d7040cdb | 12394 | rm -f messages.po |
5464f5a1 | 12395 | |
252b5132 | 12396 | |
d7040cdb SE |
12397 | # Prepare PATH_SEPARATOR. |
12398 | # The user is always right. | |
12399 | if test "${PATH_SEPARATOR+set}" != set; then | |
12400 | echo "#! /bin/sh" >conf$$.sh | |
12401 | echo "exit 0" >>conf$$.sh | |
12402 | chmod +x conf$$.sh | |
12403 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12404 | PATH_SEPARATOR=';' | |
12405 | else | |
12406 | PATH_SEPARATOR=: | |
12407 | fi | |
12408 | rm -f conf$$.sh | |
252b5132 RH |
12409 | fi |
12410 | ||
d7040cdb SE |
12411 | # Find out how to test for executable files. Don't use a zero-byte file, |
12412 | # as systems may use methods other than mode bits to determine executability. | |
12413 | cat >conf$$.file <<_ASEOF | |
12414 | #! /bin/sh | |
12415 | exit 0 | |
12416 | _ASEOF | |
12417 | chmod +x conf$$.file | |
12418 | if test -x conf$$.file >/dev/null 2>&1; then | |
12419 | ac_executable_p="test -x" | |
5464f5a1 | 12420 | else |
d7040cdb | 12421 | ac_executable_p="test -f" |
20e95c23 | 12422 | fi |
d7040cdb | 12423 | rm -f conf$$.file |
5464f5a1 | 12424 | |
d7040cdb SE |
12425 | # Extract the first word of "msgmerge", so it can be a program name with args. |
12426 | set dummy msgmerge; ac_word=$2 | |
12427 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
12428 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
12429 | if test "${ac_cv_path_MSGMERGE+set}" = set; then | |
12430 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12431 | else | |
12432 | case "$MSGMERGE" in | |
12433 | [\\/]* | ?:[\\/]*) | |
12434 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
12435 | ;; | |
12436 | *) | |
12437 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
12438 | for ac_dir in $PATH; do | |
12439 | IFS="$ac_save_IFS" | |
12440 | test -z "$ac_dir" && ac_dir=. | |
12441 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12442 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
12443 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
12444 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
12445 | break 2 | |
12446 | fi | |
12447 | fi | |
12448 | done | |
12449 | done | |
12450 | IFS="$ac_save_IFS" | |
12451 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
12452 | ;; | |
12453 | esac | |
5464f5a1 | 12454 | fi |
d7040cdb SE |
12455 | MSGMERGE="$ac_cv_path_MSGMERGE" |
12456 | if test "$MSGMERGE" != ":"; then | |
12457 | echo "$as_me:$LINENO: result: $MSGMERGE" >&5 | |
12458 | echo "${ECHO_T}$MSGMERGE" >&6 | |
20e95c23 | 12459 | else |
d7040cdb SE |
12460 | echo "$as_me:$LINENO: result: no" >&5 |
12461 | echo "${ECHO_T}no" >&6 | |
12462 | fi | |
20e95c23 | 12463 | |
5464f5a1 | 12464 | |
d7040cdb SE |
12465 | if test "$GMSGFMT" != ":"; then |
12466 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
12467 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
12468 | : ; | |
12469 | else | |
12470 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
12471 | echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 | |
12472 | echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6 | |
12473 | GMSGFMT=":" | |
12474 | fi | |
12475 | fi | |
252b5132 | 12476 | |
d7040cdb SE |
12477 | if test "$XGETTEXT" != ":"; then |
12478 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
12479 | (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 | |
12480 | : ; | |
12481 | else | |
12482 | echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5 | |
12483 | echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6 | |
12484 | XGETTEXT=":" | |
12485 | fi | |
12486 | rm -f messages.po | |
12487 | fi | |
6be7c12c | 12488 | |
d7040cdb | 12489 | ac_config_commands="$ac_config_commands default-1" |
5464f5a1 | 12490 | |
252b5132 | 12491 | |
5464f5a1 | 12492 | |
d7040cdb SE |
12493 | # Permit host specific settings. |
12494 | . ${srcdir}/configure.host | |
12495 | ||
12496 | ||
12497 | # Find a good install program. We prefer a C program (faster), | |
12498 | # so one script is as good as another. But avoid the broken or | |
12499 | # incompatible versions: | |
12500 | # SysV /etc/install, /usr/sbin/install | |
12501 | # SunOS /usr/etc/install | |
12502 | # IRIX /sbin/install | |
12503 | # AIX /bin/install | |
12504 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
12505 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
12506 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
12507 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
12508 | # OS/2's system install, which has a completely different semantic | |
12509 | # ./install, which can be erroneously created by make from ./install.sh. | |
58c85be7 | 12510 | # Reject install programs that cannot install multiple files. |
d7040cdb SE |
12511 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
12512 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
12513 | if test -z "$INSTALL"; then | |
12514 | if test "${ac_cv_path_install+set}" = set; then | |
12515 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12516 | else | |
12517 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12518 | for as_dir in $PATH | |
12519 | do | |
12520 | IFS=$as_save_IFS | |
12521 | test -z "$as_dir" && as_dir=. | |
12522 | # Account for people who put trailing slashes in PATH elements. | |
12523 | case $as_dir/ in | |
12524 | ./ | .// | /cC/* | \ | |
12525 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
12526 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
12527 | /usr/ucb/* ) ;; | |
12528 | *) | |
12529 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
12530 | # Don't use installbsd from OSF since it installs stuff as root | |
12531 | # by default. | |
12532 | for ac_prog in ginstall scoinst install; do | |
12533 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12534 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
12535 | if test $ac_prog = install && | |
12536 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12537 | # AIX install. It has an incompatible calling convention. | |
12538 | : | |
12539 | elif test $ac_prog = install && | |
12540 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
12541 | # program-specific install script used by HP pwplus--don't use. | |
12542 | : | |
12543 | else | |
58c85be7 RW |
12544 | rm -rf conftest.one conftest.two conftest.dir |
12545 | echo one > conftest.one | |
12546 | echo two > conftest.two | |
12547 | mkdir conftest.dir | |
12548 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
12549 | test -s conftest.one && test -s conftest.two && | |
12550 | test -s conftest.dir/conftest.one && | |
12551 | test -s conftest.dir/conftest.two | |
12552 | then | |
12553 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
12554 | break 3 | |
12555 | fi | |
d7040cdb SE |
12556 | fi |
12557 | fi | |
12558 | done | |
12559 | done | |
12560 | ;; | |
12561 | esac | |
12562 | done | |
12563 | ||
58c85be7 | 12564 | rm -rf conftest.one conftest.two conftest.dir |
252b5132 | 12565 | |
d7040cdb SE |
12566 | fi |
12567 | if test "${ac_cv_path_install+set}" = set; then | |
12568 | INSTALL=$ac_cv_path_install | |
12569 | else | |
58c85be7 RW |
12570 | # As a last resort, use the slow shell script. Don't cache a |
12571 | # value for INSTALL within a source directory, because that will | |
d7040cdb | 12572 | # break other packages using the cache if that directory is |
58c85be7 | 12573 | # removed, or if the value is a relative name. |
d7040cdb SE |
12574 | INSTALL=$ac_install_sh |
12575 | fi | |
12576 | fi | |
12577 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
12578 | echo "${ECHO_T}$INSTALL" >&6 | |
5464f5a1 | 12579 | |
d7040cdb SE |
12580 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
12581 | # It thinks the first close brace ends the variable substitution. | |
12582 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
252b5132 | 12583 | |
d7040cdb | 12584 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
5464f5a1 | 12585 | |
d7040cdb | 12586 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
252b5132 | 12587 | |
252b5132 | 12588 | |
d7040cdb | 12589 | BFD_HOST_64BIT_LONG=0 |
d2df793a | 12590 | BFD_HOST_64BIT_LONG_LONG=0 |
d7040cdb SE |
12591 | BFD_HOST_64_BIT_DEFINED=0 |
12592 | BFD_HOST_64_BIT= | |
12593 | BFD_HOST_U_64_BIT= | |
d2df793a | 12594 | BFD_HOSTPTR_T="unsigned long" |
6be7c12c | 12595 | |
d7040cdb SE |
12596 | echo "$as_me:$LINENO: checking for long long" >&5 |
12597 | echo $ECHO_N "checking for long long... $ECHO_C" >&6 | |
2ba49b59 | 12598 | if test "${ac_cv_type_long_long+set}" = set; then |
5464f5a1 | 12599 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6726e1ea | 12600 | else |
5464f5a1 NN |
12601 | cat >conftest.$ac_ext <<_ACEOF |
12602 | /* confdefs.h. */ | |
12603 | _ACEOF | |
12604 | cat confdefs.h >>conftest.$ac_ext | |
12605 | cat >>conftest.$ac_ext <<_ACEOF | |
12606 | /* end confdefs.h. */ | |
2ba49b59 | 12607 | $ac_includes_default |
5464f5a1 NN |
12608 | int |
12609 | main () | |
12610 | { | |
2ba49b59 KC |
12611 | if ((long long *) 0) |
12612 | return 0; | |
12613 | if (sizeof (long long)) | |
12614 | return 0; | |
5464f5a1 NN |
12615 | ; |
12616 | return 0; | |
12617 | } | |
12618 | _ACEOF | |
12619 | rm -f conftest.$ac_objext | |
12620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12621 | (eval $ac_compile) 2>conftest.er1 | |
12622 | ac_status=$? | |
12623 | grep -v '^ *+' conftest.er1 >conftest.err | |
12624 | rm -f conftest.er1 | |
12625 | cat conftest.err >&5 | |
12626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12627 | (exit $ac_status); } && | |
7357c5b6 AM |
12628 | { ac_try='test -z "$ac_c_werror_flag" |
12629 | || test ! -s conftest.err' | |
5464f5a1 NN |
12630 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12631 | (eval $ac_try) 2>&5 | |
12632 | ac_status=$? | |
12633 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12634 | (exit $ac_status); }; } && | |
12635 | { ac_try='test -s conftest.$ac_objext' | |
12636 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12637 | (eval $ac_try) 2>&5 | |
12638 | ac_status=$? | |
12639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12640 | (exit $ac_status); }; }; then | |
2ba49b59 | 12641 | ac_cv_type_long_long=yes |
6726e1ea | 12642 | else |
5464f5a1 NN |
12643 | echo "$as_me: failed program was:" >&5 |
12644 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12645 | ||
2ba49b59 | 12646 | ac_cv_type_long_long=no |
6726e1ea | 12647 | fi |
5464f5a1 | 12648 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
6726e1ea | 12649 | fi |
2ba49b59 KC |
12650 | echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5 |
12651 | echo "${ECHO_T}$ac_cv_type_long_long" >&6 | |
6726e1ea | 12652 | |
2ba49b59 KC |
12653 | echo "$as_me:$LINENO: checking size of long long" >&5 |
12654 | echo $ECHO_N "checking size of long long... $ECHO_C" >&6 | |
12655 | if test "${ac_cv_sizeof_long_long+set}" = set; then | |
5464f5a1 | 12656 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6726e1ea | 12657 | else |
2ba49b59 KC |
12658 | if test "$ac_cv_type_long_long" = yes; then |
12659 | # The cast to unsigned long works around a bug in the HP C Compiler | |
12660 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12661 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12662 | # This bug is HP SR number 8606223364. | |
12663 | if test "$cross_compiling" = yes; then | |
12664 | # Depending upon the size, compute the lo and hi bounds. | |
12665 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
12666 | /* confdefs.h. */ |
12667 | _ACEOF | |
12668 | cat confdefs.h >>conftest.$ac_ext | |
12669 | cat >>conftest.$ac_ext <<_ACEOF | |
12670 | /* end confdefs.h. */ | |
2ba49b59 KC |
12671 | $ac_includes_default |
12672 | int | |
12673 | main () | |
12674 | { | |
12675 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)]; | |
12676 | test_array [0] = 0 | |
6726e1ea | 12677 | |
2ba49b59 KC |
12678 | ; |
12679 | return 0; | |
12680 | } | |
12681 | _ACEOF | |
12682 | rm -f conftest.$ac_objext | |
12683 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12684 | (eval $ac_compile) 2>conftest.er1 | |
12685 | ac_status=$? | |
12686 | grep -v '^ *+' conftest.er1 >conftest.err | |
12687 | rm -f conftest.er1 | |
12688 | cat conftest.err >&5 | |
12689 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12690 | (exit $ac_status); } && | |
7357c5b6 AM |
12691 | { ac_try='test -z "$ac_c_werror_flag" |
12692 | || test ! -s conftest.err' | |
2ba49b59 KC |
12693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12694 | (eval $ac_try) 2>&5 | |
12695 | ac_status=$? | |
12696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12697 | (exit $ac_status); }; } && | |
12698 | { ac_try='test -s conftest.$ac_objext' | |
12699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12700 | (eval $ac_try) 2>&5 | |
12701 | ac_status=$? | |
12702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12703 | (exit $ac_status); }; }; then | |
12704 | ac_lo=0 ac_mid=0 | |
12705 | while :; do | |
12706 | cat >conftest.$ac_ext <<_ACEOF | |
12707 | /* confdefs.h. */ | |
12708 | _ACEOF | |
12709 | cat confdefs.h >>conftest.$ac_ext | |
12710 | cat >>conftest.$ac_ext <<_ACEOF | |
12711 | /* end confdefs.h. */ | |
12712 | $ac_includes_default | |
5464f5a1 NN |
12713 | int |
12714 | main () | |
12715 | { | |
2ba49b59 KC |
12716 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; |
12717 | test_array [0] = 0 | |
12718 | ||
5464f5a1 NN |
12719 | ; |
12720 | return 0; | |
12721 | } | |
12722 | _ACEOF | |
12723 | rm -f conftest.$ac_objext | |
12724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12725 | (eval $ac_compile) 2>conftest.er1 | |
12726 | ac_status=$? | |
12727 | grep -v '^ *+' conftest.er1 >conftest.err | |
12728 | rm -f conftest.er1 | |
12729 | cat conftest.err >&5 | |
12730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12731 | (exit $ac_status); } && | |
7357c5b6 AM |
12732 | { ac_try='test -z "$ac_c_werror_flag" |
12733 | || test ! -s conftest.err' | |
5464f5a1 NN |
12734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12735 | (eval $ac_try) 2>&5 | |
12736 | ac_status=$? | |
12737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12738 | (exit $ac_status); }; } && | |
12739 | { ac_try='test -s conftest.$ac_objext' | |
12740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12741 | (eval $ac_try) 2>&5 | |
12742 | ac_status=$? | |
12743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12744 | (exit $ac_status); }; }; then | |
2ba49b59 | 12745 | ac_hi=$ac_mid; break |
6726e1ea | 12746 | else |
5464f5a1 NN |
12747 | echo "$as_me: failed program was:" >&5 |
12748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12749 | ||
2ba49b59 KC |
12750 | ac_lo=`expr $ac_mid + 1` |
12751 | if test $ac_lo -le $ac_mid; then | |
12752 | ac_lo= ac_hi= | |
12753 | break | |
12754 | fi | |
12755 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
6726e1ea | 12756 | fi |
5464f5a1 | 12757 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2ba49b59 | 12758 | done |
252b5132 | 12759 | else |
2ba49b59 KC |
12760 | echo "$as_me: failed program was:" >&5 |
12761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5464f5a1 | 12762 | |
5464f5a1 NN |
12763 | cat >conftest.$ac_ext <<_ACEOF |
12764 | /* confdefs.h. */ | |
12765 | _ACEOF | |
12766 | cat confdefs.h >>conftest.$ac_ext | |
12767 | cat >>conftest.$ac_ext <<_ACEOF | |
12768 | /* end confdefs.h. */ | |
12769 | $ac_includes_default | |
2ba49b59 KC |
12770 | int |
12771 | main () | |
12772 | { | |
12773 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)]; | |
12774 | test_array [0] = 0 | |
12775 | ||
12776 | ; | |
12777 | return 0; | |
12778 | } | |
5464f5a1 NN |
12779 | _ACEOF |
12780 | rm -f conftest.$ac_objext | |
12781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12782 | (eval $ac_compile) 2>conftest.er1 | |
12783 | ac_status=$? | |
12784 | grep -v '^ *+' conftest.er1 >conftest.err | |
12785 | rm -f conftest.er1 | |
12786 | cat conftest.err >&5 | |
12787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12788 | (exit $ac_status); } && | |
7357c5b6 AM |
12789 | { ac_try='test -z "$ac_c_werror_flag" |
12790 | || test ! -s conftest.err' | |
5464f5a1 NN |
12791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12792 | (eval $ac_try) 2>&5 | |
12793 | ac_status=$? | |
12794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12795 | (exit $ac_status); }; } && | |
12796 | { ac_try='test -s conftest.$ac_objext' | |
12797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12798 | (eval $ac_try) 2>&5 | |
12799 | ac_status=$? | |
12800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12801 | (exit $ac_status); }; }; then | |
2ba49b59 KC |
12802 | ac_hi=-1 ac_mid=-1 |
12803 | while :; do | |
12804 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
12805 | /* confdefs.h. */ |
12806 | _ACEOF | |
12807 | cat confdefs.h >>conftest.$ac_ext | |
12808 | cat >>conftest.$ac_ext <<_ACEOF | |
12809 | /* end confdefs.h. */ | |
2ba49b59 KC |
12810 | $ac_includes_default |
12811 | int | |
12812 | main () | |
12813 | { | |
12814 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)]; | |
12815 | test_array [0] = 0 | |
12816 | ||
12817 | ; | |
12818 | return 0; | |
12819 | } | |
5464f5a1 | 12820 | _ACEOF |
2ba49b59 KC |
12821 | rm -f conftest.$ac_objext |
12822 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12823 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
12824 | ac_status=$? |
12825 | grep -v '^ *+' conftest.er1 >conftest.err | |
12826 | rm -f conftest.er1 | |
12827 | cat conftest.err >&5 | |
12828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2ba49b59 | 12829 | (exit $ac_status); } && |
7357c5b6 AM |
12830 | { ac_try='test -z "$ac_c_werror_flag" |
12831 | || test ! -s conftest.err' | |
2ba49b59 KC |
12832 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12833 | (eval $ac_try) 2>&5 | |
12834 | ac_status=$? | |
12835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12836 | (exit $ac_status); }; } && | |
12837 | { ac_try='test -s conftest.$ac_objext' | |
12838 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12839 | (eval $ac_try) 2>&5 | |
12840 | ac_status=$? | |
12841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12842 | (exit $ac_status); }; }; then | |
12843 | ac_lo=$ac_mid; break | |
252b5132 | 12844 | else |
2ba49b59 KC |
12845 | echo "$as_me: failed program was:" >&5 |
12846 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12847 | ||
12848 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
12849 | if test $ac_mid -le $ac_hi; then | |
12850 | ac_lo= ac_hi= | |
12851 | break | |
12852 | fi | |
12853 | ac_mid=`expr 2 '*' $ac_mid` | |
252b5132 | 12854 | fi |
2ba49b59 KC |
12855 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12856 | done | |
5464f5a1 NN |
12857 | else |
12858 | echo "$as_me: failed program was:" >&5 | |
12859 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12860 | ||
2ba49b59 | 12861 | ac_lo= ac_hi= |
252b5132 | 12862 | fi |
2ba49b59 KC |
12863 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
12864 | fi | |
12865 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
12866 | # Binary search between lo and hi bounds. | |
12867 | while test "x$ac_lo" != "x$ac_hi"; do | |
12868 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
12869 | cat >conftest.$ac_ext <<_ACEOF | |
12870 | /* confdefs.h. */ | |
12871 | _ACEOF | |
12872 | cat confdefs.h >>conftest.$ac_ext | |
12873 | cat >>conftest.$ac_ext <<_ACEOF | |
12874 | /* end confdefs.h. */ | |
12875 | $ac_includes_default | |
12876 | int | |
12877 | main () | |
12878 | { | |
12879 | static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)]; | |
12880 | test_array [0] = 0 | |
5464f5a1 | 12881 | |
2ba49b59 KC |
12882 | ; |
12883 | return 0; | |
12884 | } | |
5464f5a1 NN |
12885 | _ACEOF |
12886 | rm -f conftest.$ac_objext | |
12887 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
12888 | (eval $ac_compile) 2>conftest.er1 | |
12889 | ac_status=$? | |
12890 | grep -v '^ *+' conftest.er1 >conftest.err | |
12891 | rm -f conftest.er1 | |
12892 | cat conftest.err >&5 | |
12893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12894 | (exit $ac_status); } && | |
7357c5b6 AM |
12895 | { ac_try='test -z "$ac_c_werror_flag" |
12896 | || test ! -s conftest.err' | |
5464f5a1 NN |
12897 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
12898 | (eval $ac_try) 2>&5 | |
12899 | ac_status=$? | |
12900 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12901 | (exit $ac_status); }; } && | |
12902 | { ac_try='test -s conftest.$ac_objext' | |
12903 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12904 | (eval $ac_try) 2>&5 | |
12905 | ac_status=$? | |
12906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12907 | (exit $ac_status); }; }; then | |
2ba49b59 | 12908 | ac_hi=$ac_mid |
5464f5a1 NN |
12909 | else |
12910 | echo "$as_me: failed program was:" >&5 | |
12911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
12912 | ||
2ba49b59 | 12913 | ac_lo=`expr '(' $ac_mid ')' + 1` |
5464f5a1 NN |
12914 | fi |
12915 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2ba49b59 KC |
12916 | done |
12917 | case $ac_lo in | |
12918 | ?*) ac_cv_sizeof_long_long=$ac_lo;; | |
7357c5b6 AM |
12919 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
12920 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12921 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 | |
2ba49b59 KC |
12922 | See \`config.log' for more details." >&5 |
12923 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
12924 | See \`config.log' for more details." >&2;} | |
7357c5b6 | 12925 | { (exit 1); exit 1; }; }; } ;; |
2ba49b59 KC |
12926 | esac |
12927 | else | |
12928 | if test "$cross_compiling" = yes; then | |
7357c5b6 AM |
12929 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
12930 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12931 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
12932 | See \`config.log' for more details." >&5 | |
12933 | echo "$as_me: error: cannot run test program while cross compiling | |
12934 | See \`config.log' for more details." >&2;} | |
12935 | { (exit 1); exit 1; }; }; } | |
2ba49b59 KC |
12936 | else |
12937 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
12938 | /* confdefs.h. */ |
12939 | _ACEOF | |
12940 | cat confdefs.h >>conftest.$ac_ext | |
12941 | cat >>conftest.$ac_ext <<_ACEOF | |
12942 | /* end confdefs.h. */ | |
2ba49b59 KC |
12943 | $ac_includes_default |
12944 | long longval () { return (long) (sizeof (long long)); } | |
12945 | unsigned long ulongval () { return (long) (sizeof (long long)); } | |
12946 | #include <stdio.h> | |
12947 | #include <stdlib.h> | |
12948 | int | |
12949 | main () | |
12950 | { | |
12951 | ||
12952 | FILE *f = fopen ("conftest.val", "w"); | |
12953 | if (! f) | |
12954 | exit (1); | |
12955 | if (((long) (sizeof (long long))) < 0) | |
12956 | { | |
12957 | long i = longval (); | |
12958 | if (i != ((long) (sizeof (long long)))) | |
12959 | exit (1); | |
12960 | fprintf (f, "%ld\n", i); | |
12961 | } | |
12962 | else | |
12963 | { | |
12964 | unsigned long i = ulongval (); | |
12965 | if (i != ((long) (sizeof (long long)))) | |
12966 | exit (1); | |
12967 | fprintf (f, "%lu\n", i); | |
12968 | } | |
12969 | exit (ferror (f) || fclose (f) != 0); | |
12970 | ||
12971 | ; | |
12972 | return 0; | |
12973 | } | |
5464f5a1 | 12974 | _ACEOF |
2ba49b59 KC |
12975 | rm -f conftest$ac_exeext |
12976 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
12977 | (eval $ac_link) 2>&5 | |
5464f5a1 | 12978 | ac_status=$? |
5464f5a1 | 12979 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2ba49b59 KC |
12980 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
12981 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
12982 | (eval $ac_try) 2>&5 | |
12983 | ac_status=$? | |
12984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12985 | (exit $ac_status); }; }; then | |
12986 | ac_cv_sizeof_long_long=`cat conftest.val` | |
5464f5a1 | 12987 | else |
2ba49b59 KC |
12988 | echo "$as_me: program exited with status $ac_status" >&5 |
12989 | echo "$as_me: failed program was:" >&5 | |
5464f5a1 NN |
12990 | sed 's/^/| /' conftest.$ac_ext >&5 |
12991 | ||
2ba49b59 | 12992 | ( exit $ac_status ) |
7357c5b6 AM |
12993 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
12994 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2ba49b59 KC |
12995 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77 |
12996 | See \`config.log' for more details." >&5 | |
12997 | echo "$as_me: error: cannot compute sizeof (long long), 77 | |
12998 | See \`config.log' for more details." >&2;} | |
7357c5b6 | 12999 | { (exit 1); exit 1; }; }; } |
252b5132 | 13000 | fi |
2ba49b59 KC |
13001 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
13002 | fi | |
13003 | fi | |
13004 | rm -f conftest.val | |
6be7c12c | 13005 | else |
2ba49b59 | 13006 | ac_cv_sizeof_long_long=0 |
5464f5a1 | 13007 | fi |
5464f5a1 | 13008 | fi |
2ba49b59 KC |
13009 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5 |
13010 | echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6 | |
13011 | cat >>confdefs.h <<_ACEOF | |
13012 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
5464f5a1 NN |
13013 | _ACEOF |
13014 | ||
5464f5a1 | 13015 | |
d2df793a NC |
13016 | echo "$as_me:$LINENO: checking for void *" >&5 |
13017 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
13018 | if test "${ac_cv_type_void_p+set}" = set; then | |
13019 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13020 | else | |
13021 | cat >conftest.$ac_ext <<_ACEOF | |
13022 | /* confdefs.h. */ | |
13023 | _ACEOF | |
13024 | cat confdefs.h >>conftest.$ac_ext | |
13025 | cat >>conftest.$ac_ext <<_ACEOF | |
13026 | /* end confdefs.h. */ | |
13027 | $ac_includes_default | |
13028 | int | |
13029 | main () | |
13030 | { | |
13031 | if ((void * *) 0) | |
13032 | return 0; | |
13033 | if (sizeof (void *)) | |
13034 | return 0; | |
13035 | ; | |
13036 | return 0; | |
13037 | } | |
13038 | _ACEOF | |
13039 | rm -f conftest.$ac_objext | |
13040 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13041 | (eval $ac_compile) 2>conftest.er1 | |
13042 | ac_status=$? | |
13043 | grep -v '^ *+' conftest.er1 >conftest.err | |
13044 | rm -f conftest.er1 | |
13045 | cat conftest.err >&5 | |
13046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13047 | (exit $ac_status); } && | |
7357c5b6 AM |
13048 | { ac_try='test -z "$ac_c_werror_flag" |
13049 | || test ! -s conftest.err' | |
d2df793a NC |
13050 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13051 | (eval $ac_try) 2>&5 | |
13052 | ac_status=$? | |
13053 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13054 | (exit $ac_status); }; } && | |
13055 | { ac_try='test -s conftest.$ac_objext' | |
13056 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13057 | (eval $ac_try) 2>&5 | |
13058 | ac_status=$? | |
13059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13060 | (exit $ac_status); }; }; then | |
13061 | ac_cv_type_void_p=yes | |
13062 | else | |
13063 | echo "$as_me: failed program was:" >&5 | |
13064 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13065 | ||
13066 | ac_cv_type_void_p=no | |
13067 | fi | |
13068 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13069 | fi | |
13070 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
13071 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
13072 | ||
13073 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
13074 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
13075 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
13076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13077 | else | |
13078 | if test "$ac_cv_type_void_p" = yes; then | |
13079 | # The cast to unsigned long works around a bug in the HP C Compiler | |
13080 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13081 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13082 | # This bug is HP SR number 8606223364. | |
13083 | if test "$cross_compiling" = yes; then | |
13084 | # Depending upon the size, compute the lo and hi bounds. | |
13085 | cat >conftest.$ac_ext <<_ACEOF | |
13086 | /* confdefs.h. */ | |
13087 | _ACEOF | |
13088 | cat confdefs.h >>conftest.$ac_ext | |
13089 | cat >>conftest.$ac_ext <<_ACEOF | |
13090 | /* end confdefs.h. */ | |
13091 | $ac_includes_default | |
13092 | int | |
13093 | main () | |
13094 | { | |
13095 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
13096 | test_array [0] = 0 | |
13097 | ||
13098 | ; | |
13099 | return 0; | |
13100 | } | |
13101 | _ACEOF | |
13102 | rm -f conftest.$ac_objext | |
13103 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13104 | (eval $ac_compile) 2>conftest.er1 | |
13105 | ac_status=$? | |
13106 | grep -v '^ *+' conftest.er1 >conftest.err | |
13107 | rm -f conftest.er1 | |
13108 | cat conftest.err >&5 | |
13109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13110 | (exit $ac_status); } && | |
7357c5b6 AM |
13111 | { ac_try='test -z "$ac_c_werror_flag" |
13112 | || test ! -s conftest.err' | |
d2df793a NC |
13113 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13114 | (eval $ac_try) 2>&5 | |
13115 | ac_status=$? | |
13116 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13117 | (exit $ac_status); }; } && | |
13118 | { ac_try='test -s conftest.$ac_objext' | |
13119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13120 | (eval $ac_try) 2>&5 | |
13121 | ac_status=$? | |
13122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13123 | (exit $ac_status); }; }; then | |
13124 | ac_lo=0 ac_mid=0 | |
13125 | while :; do | |
13126 | cat >conftest.$ac_ext <<_ACEOF | |
13127 | /* confdefs.h. */ | |
13128 | _ACEOF | |
13129 | cat confdefs.h >>conftest.$ac_ext | |
13130 | cat >>conftest.$ac_ext <<_ACEOF | |
13131 | /* end confdefs.h. */ | |
13132 | $ac_includes_default | |
13133 | int | |
13134 | main () | |
13135 | { | |
13136 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
13137 | test_array [0] = 0 | |
13138 | ||
13139 | ; | |
13140 | return 0; | |
13141 | } | |
13142 | _ACEOF | |
13143 | rm -f conftest.$ac_objext | |
13144 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13145 | (eval $ac_compile) 2>conftest.er1 | |
13146 | ac_status=$? | |
13147 | grep -v '^ *+' conftest.er1 >conftest.err | |
13148 | rm -f conftest.er1 | |
13149 | cat conftest.err >&5 | |
13150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13151 | (exit $ac_status); } && | |
7357c5b6 AM |
13152 | { ac_try='test -z "$ac_c_werror_flag" |
13153 | || test ! -s conftest.err' | |
d2df793a NC |
13154 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13155 | (eval $ac_try) 2>&5 | |
13156 | ac_status=$? | |
13157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13158 | (exit $ac_status); }; } && | |
13159 | { ac_try='test -s conftest.$ac_objext' | |
13160 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13161 | (eval $ac_try) 2>&5 | |
13162 | ac_status=$? | |
13163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13164 | (exit $ac_status); }; }; then | |
13165 | ac_hi=$ac_mid; break | |
13166 | else | |
13167 | echo "$as_me: failed program was:" >&5 | |
13168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13169 | ||
13170 | ac_lo=`expr $ac_mid + 1` | |
13171 | if test $ac_lo -le $ac_mid; then | |
13172 | ac_lo= ac_hi= | |
13173 | break | |
13174 | fi | |
13175 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
13176 | fi | |
13177 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13178 | done | |
13179 | else | |
13180 | echo "$as_me: failed program was:" >&5 | |
13181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13182 | ||
13183 | cat >conftest.$ac_ext <<_ACEOF | |
13184 | /* confdefs.h. */ | |
13185 | _ACEOF | |
13186 | cat confdefs.h >>conftest.$ac_ext | |
13187 | cat >>conftest.$ac_ext <<_ACEOF | |
13188 | /* end confdefs.h. */ | |
13189 | $ac_includes_default | |
13190 | int | |
13191 | main () | |
13192 | { | |
13193 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
13194 | test_array [0] = 0 | |
13195 | ||
13196 | ; | |
13197 | return 0; | |
13198 | } | |
13199 | _ACEOF | |
13200 | rm -f conftest.$ac_objext | |
13201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13202 | (eval $ac_compile) 2>conftest.er1 | |
13203 | ac_status=$? | |
13204 | grep -v '^ *+' conftest.er1 >conftest.err | |
13205 | rm -f conftest.er1 | |
13206 | cat conftest.err >&5 | |
13207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13208 | (exit $ac_status); } && | |
7357c5b6 AM |
13209 | { ac_try='test -z "$ac_c_werror_flag" |
13210 | || test ! -s conftest.err' | |
d2df793a NC |
13211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13212 | (eval $ac_try) 2>&5 | |
13213 | ac_status=$? | |
13214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13215 | (exit $ac_status); }; } && | |
13216 | { ac_try='test -s conftest.$ac_objext' | |
13217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13218 | (eval $ac_try) 2>&5 | |
13219 | ac_status=$? | |
13220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13221 | (exit $ac_status); }; }; then | |
13222 | ac_hi=-1 ac_mid=-1 | |
13223 | while :; do | |
13224 | cat >conftest.$ac_ext <<_ACEOF | |
13225 | /* confdefs.h. */ | |
13226 | _ACEOF | |
13227 | cat confdefs.h >>conftest.$ac_ext | |
13228 | cat >>conftest.$ac_ext <<_ACEOF | |
13229 | /* end confdefs.h. */ | |
13230 | $ac_includes_default | |
13231 | int | |
13232 | main () | |
13233 | { | |
13234 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
13235 | test_array [0] = 0 | |
13236 | ||
13237 | ; | |
13238 | return 0; | |
13239 | } | |
13240 | _ACEOF | |
13241 | rm -f conftest.$ac_objext | |
13242 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13243 | (eval $ac_compile) 2>conftest.er1 | |
13244 | ac_status=$? | |
13245 | grep -v '^ *+' conftest.er1 >conftest.err | |
13246 | rm -f conftest.er1 | |
13247 | cat conftest.err >&5 | |
13248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13249 | (exit $ac_status); } && | |
7357c5b6 AM |
13250 | { ac_try='test -z "$ac_c_werror_flag" |
13251 | || test ! -s conftest.err' | |
d2df793a NC |
13252 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13253 | (eval $ac_try) 2>&5 | |
13254 | ac_status=$? | |
13255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13256 | (exit $ac_status); }; } && | |
13257 | { ac_try='test -s conftest.$ac_objext' | |
13258 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13259 | (eval $ac_try) 2>&5 | |
13260 | ac_status=$? | |
13261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13262 | (exit $ac_status); }; }; then | |
13263 | ac_lo=$ac_mid; break | |
13264 | else | |
13265 | echo "$as_me: failed program was:" >&5 | |
13266 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13267 | ||
13268 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
13269 | if test $ac_mid -le $ac_hi; then | |
13270 | ac_lo= ac_hi= | |
13271 | break | |
13272 | fi | |
13273 | ac_mid=`expr 2 '*' $ac_mid` | |
13274 | fi | |
13275 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13276 | done | |
13277 | else | |
13278 | echo "$as_me: failed program was:" >&5 | |
13279 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13280 | ||
13281 | ac_lo= ac_hi= | |
13282 | fi | |
13283 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13284 | fi | |
13285 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13286 | # Binary search between lo and hi bounds. | |
13287 | while test "x$ac_lo" != "x$ac_hi"; do | |
13288 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13289 | cat >conftest.$ac_ext <<_ACEOF | |
13290 | /* confdefs.h. */ | |
13291 | _ACEOF | |
13292 | cat confdefs.h >>conftest.$ac_ext | |
13293 | cat >>conftest.$ac_ext <<_ACEOF | |
13294 | /* end confdefs.h. */ | |
13295 | $ac_includes_default | |
13296 | int | |
13297 | main () | |
13298 | { | |
13299 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
13300 | test_array [0] = 0 | |
13301 | ||
13302 | ; | |
13303 | return 0; | |
13304 | } | |
13305 | _ACEOF | |
13306 | rm -f conftest.$ac_objext | |
13307 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13308 | (eval $ac_compile) 2>conftest.er1 | |
13309 | ac_status=$? | |
13310 | grep -v '^ *+' conftest.er1 >conftest.err | |
13311 | rm -f conftest.er1 | |
13312 | cat conftest.err >&5 | |
13313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13314 | (exit $ac_status); } && | |
7357c5b6 AM |
13315 | { ac_try='test -z "$ac_c_werror_flag" |
13316 | || test ! -s conftest.err' | |
d2df793a NC |
13317 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13318 | (eval $ac_try) 2>&5 | |
13319 | ac_status=$? | |
13320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13321 | (exit $ac_status); }; } && | |
13322 | { ac_try='test -s conftest.$ac_objext' | |
13323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13324 | (eval $ac_try) 2>&5 | |
13325 | ac_status=$? | |
13326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13327 | (exit $ac_status); }; }; then | |
13328 | ac_hi=$ac_mid | |
13329 | else | |
13330 | echo "$as_me: failed program was:" >&5 | |
13331 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13332 | ||
13333 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
13334 | fi | |
13335 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13336 | done | |
13337 | case $ac_lo in | |
13338 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
7357c5b6 AM |
13339 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
13340 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13341 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
d2df793a NC |
13342 | See \`config.log' for more details." >&5 |
13343 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
13344 | See \`config.log' for more details." >&2;} | |
7357c5b6 | 13345 | { (exit 1); exit 1; }; }; } ;; |
d2df793a NC |
13346 | esac |
13347 | else | |
13348 | if test "$cross_compiling" = yes; then | |
7357c5b6 AM |
13349 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
13350 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13351 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
13352 | See \`config.log' for more details." >&5 | |
13353 | echo "$as_me: error: cannot run test program while cross compiling | |
13354 | See \`config.log' for more details." >&2;} | |
13355 | { (exit 1); exit 1; }; }; } | |
d2df793a NC |
13356 | else |
13357 | cat >conftest.$ac_ext <<_ACEOF | |
13358 | /* confdefs.h. */ | |
13359 | _ACEOF | |
13360 | cat confdefs.h >>conftest.$ac_ext | |
13361 | cat >>conftest.$ac_ext <<_ACEOF | |
13362 | /* end confdefs.h. */ | |
13363 | $ac_includes_default | |
13364 | long longval () { return (long) (sizeof (void *)); } | |
13365 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
13366 | #include <stdio.h> | |
13367 | #include <stdlib.h> | |
13368 | int | |
13369 | main () | |
13370 | { | |
13371 | ||
13372 | FILE *f = fopen ("conftest.val", "w"); | |
13373 | if (! f) | |
13374 | exit (1); | |
13375 | if (((long) (sizeof (void *))) < 0) | |
13376 | { | |
13377 | long i = longval (); | |
13378 | if (i != ((long) (sizeof (void *)))) | |
13379 | exit (1); | |
13380 | fprintf (f, "%ld\n", i); | |
13381 | } | |
13382 | else | |
13383 | { | |
13384 | unsigned long i = ulongval (); | |
13385 | if (i != ((long) (sizeof (void *)))) | |
13386 | exit (1); | |
13387 | fprintf (f, "%lu\n", i); | |
13388 | } | |
13389 | exit (ferror (f) || fclose (f) != 0); | |
13390 | ||
13391 | ; | |
13392 | return 0; | |
13393 | } | |
13394 | _ACEOF | |
13395 | rm -f conftest$ac_exeext | |
13396 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13397 | (eval $ac_link) 2>&5 | |
13398 | ac_status=$? | |
13399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13400 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
13401 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13402 | (eval $ac_try) 2>&5 | |
13403 | ac_status=$? | |
13404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13405 | (exit $ac_status); }; }; then | |
13406 | ac_cv_sizeof_void_p=`cat conftest.val` | |
13407 | else | |
13408 | echo "$as_me: program exited with status $ac_status" >&5 | |
13409 | echo "$as_me: failed program was:" >&5 | |
13410 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13411 | ||
13412 | ( exit $ac_status ) | |
7357c5b6 AM |
13413 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
13414 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d2df793a NC |
13415 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
13416 | See \`config.log' for more details." >&5 | |
13417 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
13418 | See \`config.log' for more details." >&2;} | |
7357c5b6 | 13419 | { (exit 1); exit 1; }; }; } |
d2df793a NC |
13420 | fi |
13421 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
13422 | fi | |
13423 | fi | |
13424 | rm -f conftest.val | |
13425 | else | |
13426 | ac_cv_sizeof_void_p=0 | |
13427 | fi | |
13428 | fi | |
13429 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
13430 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
13431 | cat >>confdefs.h <<_ACEOF | |
13432 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
13433 | _ACEOF | |
13434 | ||
13435 | ||
2ba49b59 KC |
13436 | echo "$as_me:$LINENO: checking for long" >&5 |
13437 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
13438 | if test "${ac_cv_type_long+set}" = set; then | |
5464f5a1 NN |
13439 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13440 | else | |
13441 | cat >conftest.$ac_ext <<_ACEOF | |
13442 | /* confdefs.h. */ | |
13443 | _ACEOF | |
13444 | cat confdefs.h >>conftest.$ac_ext | |
13445 | cat >>conftest.$ac_ext <<_ACEOF | |
13446 | /* end confdefs.h. */ | |
2ba49b59 | 13447 | $ac_includes_default |
5464f5a1 NN |
13448 | int |
13449 | main () | |
13450 | { | |
2ba49b59 KC |
13451 | if ((long *) 0) |
13452 | return 0; | |
13453 | if (sizeof (long)) | |
13454 | return 0; | |
5464f5a1 NN |
13455 | ; |
13456 | return 0; | |
13457 | } | |
13458 | _ACEOF | |
13459 | rm -f conftest.$ac_objext | |
13460 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13461 | (eval $ac_compile) 2>conftest.er1 | |
13462 | ac_status=$? | |
13463 | grep -v '^ *+' conftest.er1 >conftest.err | |
13464 | rm -f conftest.er1 | |
13465 | cat conftest.err >&5 | |
13466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13467 | (exit $ac_status); } && | |
7357c5b6 AM |
13468 | { ac_try='test -z "$ac_c_werror_flag" |
13469 | || test ! -s conftest.err' | |
5464f5a1 NN |
13470 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13471 | (eval $ac_try) 2>&5 | |
13472 | ac_status=$? | |
13473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13474 | (exit $ac_status); }; } && | |
13475 | { ac_try='test -s conftest.$ac_objext' | |
13476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13477 | (eval $ac_try) 2>&5 | |
13478 | ac_status=$? | |
13479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13480 | (exit $ac_status); }; }; then | |
2ba49b59 | 13481 | ac_cv_type_long=yes |
252b5132 | 13482 | else |
5464f5a1 NN |
13483 | echo "$as_me: failed program was:" >&5 |
13484 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13485 | ||
2ba49b59 | 13486 | ac_cv_type_long=no |
252b5132 | 13487 | fi |
5464f5a1 | 13488 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 13489 | fi |
2ba49b59 KC |
13490 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 |
13491 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
5464f5a1 | 13492 | |
2ba49b59 KC |
13493 | echo "$as_me:$LINENO: checking size of long" >&5 |
13494 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
13495 | if test "${ac_cv_sizeof_long+set}" = set; then | |
5464f5a1 NN |
13496 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13497 | else | |
2ba49b59 KC |
13498 | if test "$ac_cv_type_long" = yes; then |
13499 | # The cast to unsigned long works around a bug in the HP C Compiler | |
13500 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
13501 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
13502 | # This bug is HP SR number 8606223364. | |
13503 | if test "$cross_compiling" = yes; then | |
13504 | # Depending upon the size, compute the lo and hi bounds. | |
13505 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
13506 | /* confdefs.h. */ |
13507 | _ACEOF | |
13508 | cat confdefs.h >>conftest.$ac_ext | |
13509 | cat >>conftest.$ac_ext <<_ACEOF | |
13510 | /* end confdefs.h. */ | |
2ba49b59 | 13511 | $ac_includes_default |
5464f5a1 NN |
13512 | int |
13513 | main () | |
13514 | { | |
2ba49b59 KC |
13515 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; |
13516 | test_array [0] = 0 | |
13517 | ||
5464f5a1 NN |
13518 | ; |
13519 | return 0; | |
13520 | } | |
13521 | _ACEOF | |
13522 | rm -f conftest.$ac_objext | |
13523 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13524 | (eval $ac_compile) 2>conftest.er1 | |
13525 | ac_status=$? | |
13526 | grep -v '^ *+' conftest.er1 >conftest.err | |
13527 | rm -f conftest.er1 | |
13528 | cat conftest.err >&5 | |
13529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13530 | (exit $ac_status); } && | |
7357c5b6 AM |
13531 | { ac_try='test -z "$ac_c_werror_flag" |
13532 | || test ! -s conftest.err' | |
5464f5a1 NN |
13533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13534 | (eval $ac_try) 2>&5 | |
13535 | ac_status=$? | |
13536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13537 | (exit $ac_status); }; } && | |
13538 | { ac_try='test -s conftest.$ac_objext' | |
13539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13540 | (eval $ac_try) 2>&5 | |
13541 | ac_status=$? | |
13542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13543 | (exit $ac_status); }; }; then | |
2ba49b59 KC |
13544 | ac_lo=0 ac_mid=0 |
13545 | while :; do | |
13546 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
13547 | /* confdefs.h. */ |
13548 | _ACEOF | |
13549 | cat confdefs.h >>conftest.$ac_ext | |
13550 | cat >>conftest.$ac_ext <<_ACEOF | |
13551 | /* end confdefs.h. */ | |
2ba49b59 | 13552 | $ac_includes_default |
5464f5a1 NN |
13553 | int |
13554 | main () | |
13555 | { | |
2ba49b59 KC |
13556 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
13557 | test_array [0] = 0 | |
13558 | ||
5464f5a1 NN |
13559 | ; |
13560 | return 0; | |
13561 | } | |
13562 | _ACEOF | |
2ba49b59 KC |
13563 | rm -f conftest.$ac_objext |
13564 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13565 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
13566 | ac_status=$? |
13567 | grep -v '^ *+' conftest.er1 >conftest.err | |
13568 | rm -f conftest.er1 | |
13569 | cat conftest.err >&5 | |
13570 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13571 | (exit $ac_status); } && | |
7357c5b6 AM |
13572 | { ac_try='test -z "$ac_c_werror_flag" |
13573 | || test ! -s conftest.err' | |
5464f5a1 NN |
13574 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13575 | (eval $ac_try) 2>&5 | |
13576 | ac_status=$? | |
13577 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13578 | (exit $ac_status); }; } && | |
2ba49b59 | 13579 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
13580 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13581 | (eval $ac_try) 2>&5 | |
13582 | ac_status=$? | |
13583 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13584 | (exit $ac_status); }; }; then | |
2ba49b59 | 13585 | ac_hi=$ac_mid; break |
5464f5a1 NN |
13586 | else |
13587 | echo "$as_me: failed program was:" >&5 | |
13588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13589 | ||
2ba49b59 KC |
13590 | ac_lo=`expr $ac_mid + 1` |
13591 | if test $ac_lo -le $ac_mid; then | |
13592 | ac_lo= ac_hi= | |
13593 | break | |
13594 | fi | |
13595 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
5464f5a1 | 13596 | fi |
2ba49b59 KC |
13597 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13598 | done | |
13599 | else | |
13600 | echo "$as_me: failed program was:" >&5 | |
13601 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13602 | ||
13603 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
13604 | /* confdefs.h. */ |
13605 | _ACEOF | |
13606 | cat confdefs.h >>conftest.$ac_ext | |
13607 | cat >>conftest.$ac_ext <<_ACEOF | |
13608 | /* end confdefs.h. */ | |
2ba49b59 | 13609 | $ac_includes_default |
5464f5a1 NN |
13610 | int |
13611 | main () | |
13612 | { | |
2ba49b59 KC |
13613 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; |
13614 | test_array [0] = 0 | |
13615 | ||
5464f5a1 NN |
13616 | ; |
13617 | return 0; | |
13618 | } | |
13619 | _ACEOF | |
2ba49b59 KC |
13620 | rm -f conftest.$ac_objext |
13621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13622 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
13623 | ac_status=$? |
13624 | grep -v '^ *+' conftest.er1 >conftest.err | |
13625 | rm -f conftest.er1 | |
13626 | cat conftest.err >&5 | |
13627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13628 | (exit $ac_status); } && | |
7357c5b6 AM |
13629 | { ac_try='test -z "$ac_c_werror_flag" |
13630 | || test ! -s conftest.err' | |
5464f5a1 NN |
13631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13632 | (eval $ac_try) 2>&5 | |
13633 | ac_status=$? | |
13634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13635 | (exit $ac_status); }; } && | |
2ba49b59 | 13636 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
13637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13638 | (eval $ac_try) 2>&5 | |
13639 | ac_status=$? | |
13640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13641 | (exit $ac_status); }; }; then | |
2ba49b59 KC |
13642 | ac_hi=-1 ac_mid=-1 |
13643 | while :; do | |
13644 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
13645 | /* confdefs.h. */ |
13646 | _ACEOF | |
13647 | cat confdefs.h >>conftest.$ac_ext | |
13648 | cat >>conftest.$ac_ext <<_ACEOF | |
13649 | /* end confdefs.h. */ | |
2ba49b59 | 13650 | $ac_includes_default |
5464f5a1 NN |
13651 | int |
13652 | main () | |
13653 | { | |
2ba49b59 KC |
13654 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; |
13655 | test_array [0] = 0 | |
13656 | ||
5464f5a1 NN |
13657 | ; |
13658 | return 0; | |
13659 | } | |
13660 | _ACEOF | |
2ba49b59 KC |
13661 | rm -f conftest.$ac_objext |
13662 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13663 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
13664 | ac_status=$? |
13665 | grep -v '^ *+' conftest.er1 >conftest.err | |
13666 | rm -f conftest.er1 | |
13667 | cat conftest.err >&5 | |
13668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13669 | (exit $ac_status); } && | |
7357c5b6 AM |
13670 | { ac_try='test -z "$ac_c_werror_flag" |
13671 | || test ! -s conftest.err' | |
5464f5a1 NN |
13672 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13673 | (eval $ac_try) 2>&5 | |
13674 | ac_status=$? | |
13675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13676 | (exit $ac_status); }; } && | |
2ba49b59 | 13677 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
13678 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13679 | (eval $ac_try) 2>&5 | |
13680 | ac_status=$? | |
13681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13682 | (exit $ac_status); }; }; then | |
2ba49b59 | 13683 | ac_lo=$ac_mid; break |
5464f5a1 NN |
13684 | else |
13685 | echo "$as_me: failed program was:" >&5 | |
13686 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13687 | ||
2ba49b59 KC |
13688 | ac_hi=`expr '(' $ac_mid ')' - 1` |
13689 | if test $ac_mid -le $ac_hi; then | |
13690 | ac_lo= ac_hi= | |
13691 | break | |
13692 | fi | |
13693 | ac_mid=`expr 2 '*' $ac_mid` | |
5464f5a1 | 13694 | fi |
2ba49b59 KC |
13695 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13696 | done | |
13697 | else | |
13698 | echo "$as_me: failed program was:" >&5 | |
13699 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13700 | ||
13701 | ac_lo= ac_hi= | |
13702 | fi | |
13703 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13704 | fi | |
13705 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13706 | # Binary search between lo and hi bounds. | |
13707 | while test "x$ac_lo" != "x$ac_hi"; do | |
13708 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
13709 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
13710 | /* confdefs.h. */ |
13711 | _ACEOF | |
13712 | cat confdefs.h >>conftest.$ac_ext | |
13713 | cat >>conftest.$ac_ext <<_ACEOF | |
13714 | /* end confdefs.h. */ | |
2ba49b59 | 13715 | $ac_includes_default |
5464f5a1 NN |
13716 | int |
13717 | main () | |
13718 | { | |
2ba49b59 KC |
13719 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; |
13720 | test_array [0] = 0 | |
13721 | ||
5464f5a1 NN |
13722 | ; |
13723 | return 0; | |
13724 | } | |
13725 | _ACEOF | |
2ba49b59 KC |
13726 | rm -f conftest.$ac_objext |
13727 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13728 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
13729 | ac_status=$? |
13730 | grep -v '^ *+' conftest.er1 >conftest.err | |
13731 | rm -f conftest.er1 | |
13732 | cat conftest.err >&5 | |
13733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13734 | (exit $ac_status); } && | |
7357c5b6 AM |
13735 | { ac_try='test -z "$ac_c_werror_flag" |
13736 | || test ! -s conftest.err' | |
5464f5a1 NN |
13737 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13738 | (eval $ac_try) 2>&5 | |
13739 | ac_status=$? | |
13740 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13741 | (exit $ac_status); }; } && | |
2ba49b59 | 13742 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
13743 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13744 | (eval $ac_try) 2>&5 | |
13745 | ac_status=$? | |
13746 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13747 | (exit $ac_status); }; }; then | |
2ba49b59 | 13748 | ac_hi=$ac_mid |
5464f5a1 NN |
13749 | else |
13750 | echo "$as_me: failed program was:" >&5 | |
13751 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13752 | ||
2ba49b59 | 13753 | ac_lo=`expr '(' $ac_mid ')' + 1` |
5464f5a1 | 13754 | fi |
2ba49b59 KC |
13755 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
13756 | done | |
13757 | case $ac_lo in | |
13758 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
7357c5b6 AM |
13759 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
13760 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13761 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
2ba49b59 KC |
13762 | See \`config.log' for more details." >&5 |
13763 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
13764 | See \`config.log' for more details." >&2;} | |
7357c5b6 | 13765 | { (exit 1); exit 1; }; }; } ;; |
2ba49b59 KC |
13766 | esac |
13767 | else | |
13768 | if test "$cross_compiling" = yes; then | |
7357c5b6 AM |
13769 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
13770 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
13771 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
13772 | See \`config.log' for more details." >&5 | |
13773 | echo "$as_me: error: cannot run test program while cross compiling | |
13774 | See \`config.log' for more details." >&2;} | |
13775 | { (exit 1); exit 1; }; }; } | |
2e0fbf77 JW |
13776 | else |
13777 | cat >conftest.$ac_ext <<_ACEOF | |
13778 | /* confdefs.h. */ | |
13779 | _ACEOF | |
13780 | cat confdefs.h >>conftest.$ac_ext | |
13781 | cat >>conftest.$ac_ext <<_ACEOF | |
13782 | /* end confdefs.h. */ | |
2ba49b59 KC |
13783 | $ac_includes_default |
13784 | long longval () { return (long) (sizeof (long)); } | |
13785 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
13786 | #include <stdio.h> | |
13787 | #include <stdlib.h> | |
2e0fbf77 JW |
13788 | int |
13789 | main () | |
13790 | { | |
13791 | ||
2ba49b59 KC |
13792 | FILE *f = fopen ("conftest.val", "w"); |
13793 | if (! f) | |
13794 | exit (1); | |
13795 | if (((long) (sizeof (long))) < 0) | |
13796 | { | |
13797 | long i = longval (); | |
13798 | if (i != ((long) (sizeof (long)))) | |
13799 | exit (1); | |
13800 | fprintf (f, "%ld\n", i); | |
13801 | } | |
13802 | else | |
13803 | { | |
13804 | unsigned long i = ulongval (); | |
13805 | if (i != ((long) (sizeof (long)))) | |
13806 | exit (1); | |
13807 | fprintf (f, "%lu\n", i); | |
13808 | } | |
13809 | exit (ferror (f) || fclose (f) != 0); | |
13810 | ||
2e0fbf77 JW |
13811 | ; |
13812 | return 0; | |
13813 | } | |
13814 | _ACEOF | |
2ba49b59 KC |
13815 | rm -f conftest$ac_exeext |
13816 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
13817 | (eval $ac_link) 2>&5 | |
2e0fbf77 JW |
13818 | ac_status=$? |
13819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2ba49b59 | 13820 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
2e0fbf77 JW |
13821 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13822 | (eval $ac_try) 2>&5 | |
13823 | ac_status=$? | |
13824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13825 | (exit $ac_status); }; }; then | |
2ba49b59 | 13826 | ac_cv_sizeof_long=`cat conftest.val` |
2e0fbf77 | 13827 | else |
2ba49b59 KC |
13828 | echo "$as_me: program exited with status $ac_status" >&5 |
13829 | echo "$as_me: failed program was:" >&5 | |
2e0fbf77 JW |
13830 | sed 's/^/| /' conftest.$ac_ext >&5 |
13831 | ||
2ba49b59 | 13832 | ( exit $ac_status ) |
7357c5b6 AM |
13833 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
13834 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2ba49b59 KC |
13835 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
13836 | See \`config.log' for more details." >&5 | |
13837 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
13838 | See \`config.log' for more details." >&2;} | |
7357c5b6 | 13839 | { (exit 1); exit 1; }; }; } |
2e0fbf77 | 13840 | fi |
2ba49b59 | 13841 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
2e0fbf77 | 13842 | fi |
2ba49b59 KC |
13843 | fi |
13844 | rm -f conftest.val | |
13845 | else | |
13846 | ac_cv_sizeof_long=0 | |
13847 | fi | |
13848 | fi | |
13849 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
13850 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
13851 | cat >>confdefs.h <<_ACEOF | |
13852 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
13853 | _ACEOF | |
13854 | ||
13855 | ||
d2df793a NC |
13856 | |
13857 | if test "x${ac_cv_sizeof_void_p}" = "x8"; then | |
2ba49b59 | 13858 | host64=true |
bce5e5c9 AM |
13859 | fi |
13860 | ||
13861 | if test "x${ac_cv_sizeof_long}" = "x8"; then | |
2ba49b59 KC |
13862 | BFD_HOST_64BIT_LONG=1 |
13863 | test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long" | |
13864 | test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long" | |
13865 | elif test "x${ac_cv_sizeof_long_long}" = "x8"; then | |
bce5e5c9 | 13866 | BFD_HOST_64BIT_LONG_LONG=1 |
2ba49b59 KC |
13867 | test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long" |
13868 | test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long" | |
bce5e5c9 AM |
13869 | if test "x${ac_cv_sizeof_void_p}" = "x8"; then |
13870 | BFD_HOSTPTR_T="unsigned long long" | |
13871 | fi | |
2ba49b59 KC |
13872 | fi |
13873 | ||
13874 | if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then | |
13875 | BFD_HOST_64_BIT_DEFINED=1 | |
13876 | BFD_HOST_64_BIT="${HOST_64BIT_TYPE}" | |
13877 | BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}" | |
13878 | fi | |
13879 | ||
13880 | ||
13881 | ||
13882 | ||
13883 | ||
13884 | ||
13885 | ||
d2df793a | 13886 | |
2ba49b59 KC |
13887 | # Put a plausible default for CC_FOR_BUILD in Makefile. |
13888 | if test -z "$CC_FOR_BUILD"; then | |
13889 | if test "x$cross_compiling" = "xno"; then | |
13890 | CC_FOR_BUILD='$(CC)' | |
13891 | else | |
13892 | CC_FOR_BUILD=gcc | |
13893 | fi | |
13894 | fi | |
13895 | ||
13896 | # Also set EXEEXT_FOR_BUILD. | |
13897 | if test "x$cross_compiling" = "xno"; then | |
13898 | EXEEXT_FOR_BUILD='$(EXEEXT)' | |
13899 | else | |
13900 | echo "$as_me:$LINENO: checking for build system executable suffix" >&5 | |
13901 | echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6 | |
13902 | if test "${bfd_cv_build_exeext+set}" = set; then | |
13903 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13904 | else | |
13905 | rm -f conftest* | |
13906 | echo 'int main () { return 0; }' > conftest.c | |
13907 | bfd_cv_build_exeext= | |
13908 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 | |
13909 | for file in conftest.*; do | |
13910 | case $file in | |
13911 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
13912 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; | |
13913 | esac | |
13914 | done | |
13915 | rm -f conftest* | |
13916 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no | |
13917 | fi | |
13918 | echo "$as_me:$LINENO: result: $bfd_cv_build_exeext" >&5 | |
13919 | echo "${ECHO_T}$bfd_cv_build_exeext" >&6 | |
13920 | EXEEXT_FOR_BUILD="" | |
13921 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} | |
13922 | fi | |
13923 | ||
13924 | ||
13925 | ||
13926 | ||
13927 | ||
13928 | ||
13929 | ||
13930 | ||
8bc9c892 NC |
13931 | |
13932 | for ac_header in alloca.h stddef.h string.h strings.h stdlib.h time.h unistd.h | |
2ba49b59 KC |
13933 | do |
13934 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
13935 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13936 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
13937 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
13938 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
13939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
13940 | fi | |
13941 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
13942 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
13943 | else | |
13944 | # Is the header compilable? | |
13945 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
13946 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
13947 | cat >conftest.$ac_ext <<_ACEOF | |
13948 | /* confdefs.h. */ | |
13949 | _ACEOF | |
13950 | cat confdefs.h >>conftest.$ac_ext | |
13951 | cat >>conftest.$ac_ext <<_ACEOF | |
13952 | /* end confdefs.h. */ | |
13953 | $ac_includes_default | |
13954 | #include <$ac_header> | |
13955 | _ACEOF | |
13956 | rm -f conftest.$ac_objext | |
13957 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13958 | (eval $ac_compile) 2>conftest.er1 | |
13959 | ac_status=$? | |
13960 | grep -v '^ *+' conftest.er1 >conftest.err | |
13961 | rm -f conftest.er1 | |
13962 | cat conftest.err >&5 | |
13963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13964 | (exit $ac_status); } && | |
7357c5b6 AM |
13965 | { ac_try='test -z "$ac_c_werror_flag" |
13966 | || test ! -s conftest.err' | |
2ba49b59 KC |
13967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
13968 | (eval $ac_try) 2>&5 | |
13969 | ac_status=$? | |
13970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13971 | (exit $ac_status); }; } && | |
13972 | { ac_try='test -s conftest.$ac_objext' | |
13973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
13974 | (eval $ac_try) 2>&5 | |
13975 | ac_status=$? | |
13976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13977 | (exit $ac_status); }; }; then | |
13978 | ac_header_compiler=yes | |
13979 | else | |
13980 | echo "$as_me: failed program was:" >&5 | |
13981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13982 | ||
13983 | ac_header_compiler=no | |
13984 | fi | |
13985 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
13986 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
13987 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
13988 | ||
13989 | # Is the header present? | |
13990 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
13991 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
13992 | cat >conftest.$ac_ext <<_ACEOF | |
13993 | /* confdefs.h. */ | |
13994 | _ACEOF | |
13995 | cat confdefs.h >>conftest.$ac_ext | |
13996 | cat >>conftest.$ac_ext <<_ACEOF | |
13997 | /* end confdefs.h. */ | |
13998 | #include <$ac_header> | |
13999 | _ACEOF | |
14000 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14001 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14002 | ac_status=$? | |
14003 | grep -v '^ *+' conftest.er1 >conftest.err | |
14004 | rm -f conftest.er1 | |
14005 | cat conftest.err >&5 | |
14006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14007 | (exit $ac_status); } >/dev/null; then | |
14008 | if test -s conftest.err; then | |
14009 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14010 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
14011 | else | |
14012 | ac_cpp_err= | |
14013 | fi | |
14014 | else | |
14015 | ac_cpp_err=yes | |
14016 | fi | |
14017 | if test -z "$ac_cpp_err"; then | |
14018 | ac_header_preproc=yes | |
14019 | else | |
14020 | echo "$as_me: failed program was:" >&5 | |
14021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14022 | ||
14023 | ac_header_preproc=no | |
14024 | fi | |
14025 | rm -f conftest.err conftest.$ac_ext | |
14026 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14027 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14028 | ||
14029 | # So? What about this header? | |
14030 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14031 | yes:no: ) | |
14032 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14033 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14034 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14035 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14036 | ac_header_preproc=yes | |
14037 | ;; | |
14038 | no:yes:* ) | |
14039 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14040 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14041 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14042 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14043 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14044 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14045 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14046 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14047 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14048 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14049 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14050 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
14051 | ( | |
14052 | cat <<\_ASBOX | |
14053 | ## ------------------------------------------ ## | |
14054 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
14055 | ## ------------------------------------------ ## | |
14056 | _ASBOX | |
14057 | ) | | |
14058 | sed "s/^/$as_me: WARNING: /" >&2 | |
14059 | ;; | |
14060 | esac | |
14061 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14062 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14063 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14065 | else | |
14066 | eval "$as_ac_Header=\$ac_header_preproc" | |
14067 | fi | |
14068 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14069 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14070 | ||
14071 | fi | |
14072 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14073 | cat >>confdefs.h <<_ACEOF | |
14074 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14075 | _ACEOF | |
14076 | ||
14077 | fi | |
14078 | ||
14079 | done | |
14080 | ||
14081 | ||
14082 | ||
14083 | ||
14084 | for ac_header in fcntl.h sys/file.h sys/time.h | |
14085 | do | |
14086 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
14087 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14088 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14089 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14090 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14092 | fi | |
14093 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14094 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14095 | else | |
14096 | # Is the header compilable? | |
14097 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
14098 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
14099 | cat >conftest.$ac_ext <<_ACEOF | |
14100 | /* confdefs.h. */ | |
14101 | _ACEOF | |
14102 | cat confdefs.h >>conftest.$ac_ext | |
14103 | cat >>conftest.$ac_ext <<_ACEOF | |
14104 | /* end confdefs.h. */ | |
14105 | $ac_includes_default | |
14106 | #include <$ac_header> | |
14107 | _ACEOF | |
14108 | rm -f conftest.$ac_objext | |
14109 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14110 | (eval $ac_compile) 2>conftest.er1 | |
14111 | ac_status=$? | |
14112 | grep -v '^ *+' conftest.er1 >conftest.err | |
14113 | rm -f conftest.er1 | |
14114 | cat conftest.err >&5 | |
14115 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14116 | (exit $ac_status); } && | |
7357c5b6 AM |
14117 | { ac_try='test -z "$ac_c_werror_flag" |
14118 | || test ! -s conftest.err' | |
2ba49b59 KC |
14119 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14120 | (eval $ac_try) 2>&5 | |
14121 | ac_status=$? | |
14122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14123 | (exit $ac_status); }; } && | |
14124 | { ac_try='test -s conftest.$ac_objext' | |
14125 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14126 | (eval $ac_try) 2>&5 | |
14127 | ac_status=$? | |
14128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14129 | (exit $ac_status); }; }; then | |
14130 | ac_header_compiler=yes | |
14131 | else | |
14132 | echo "$as_me: failed program was:" >&5 | |
14133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14134 | ||
14135 | ac_header_compiler=no | |
14136 | fi | |
14137 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14138 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
14139 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
14140 | ||
14141 | # Is the header present? | |
14142 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
14143 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
14144 | cat >conftest.$ac_ext <<_ACEOF | |
14145 | /* confdefs.h. */ | |
14146 | _ACEOF | |
14147 | cat confdefs.h >>conftest.$ac_ext | |
14148 | cat >>conftest.$ac_ext <<_ACEOF | |
14149 | /* end confdefs.h. */ | |
14150 | #include <$ac_header> | |
14151 | _ACEOF | |
14152 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
14153 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
14154 | ac_status=$? | |
14155 | grep -v '^ *+' conftest.er1 >conftest.err | |
14156 | rm -f conftest.er1 | |
14157 | cat conftest.err >&5 | |
14158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14159 | (exit $ac_status); } >/dev/null; then | |
14160 | if test -s conftest.err; then | |
14161 | ac_cpp_err=$ac_c_preproc_warn_flag | |
14162 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
14163 | else | |
14164 | ac_cpp_err= | |
14165 | fi | |
14166 | else | |
14167 | ac_cpp_err=yes | |
14168 | fi | |
14169 | if test -z "$ac_cpp_err"; then | |
14170 | ac_header_preproc=yes | |
14171 | else | |
14172 | echo "$as_me: failed program was:" >&5 | |
14173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14174 | ||
14175 | ac_header_preproc=no | |
14176 | fi | |
14177 | rm -f conftest.err conftest.$ac_ext | |
14178 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
14179 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
14180 | ||
14181 | # So? What about this header? | |
14182 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
14183 | yes:no: ) | |
14184 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
14185 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
14186 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
14187 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
14188 | ac_header_preproc=yes | |
14189 | ;; | |
14190 | no:yes:* ) | |
14191 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
14192 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
14193 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
14194 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
14195 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
14196 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
14197 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
14198 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
14199 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
14200 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
14201 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
14202 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
14203 | ( | |
14204 | cat <<\_ASBOX | |
14205 | ## ------------------------------------------ ## | |
14206 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
14207 | ## ------------------------------------------ ## | |
14208 | _ASBOX | |
14209 | ) | | |
14210 | sed "s/^/$as_me: WARNING: /" >&2 | |
14211 | ;; | |
14212 | esac | |
14213 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
14214 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
14215 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
14216 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14217 | else | |
14218 | eval "$as_ac_Header=\$ac_header_preproc" | |
14219 | fi | |
14220 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
14221 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
14222 | ||
14223 | fi | |
14224 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
14225 | cat >>confdefs.h <<_ACEOF | |
14226 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
14227 | _ACEOF | |
14228 | ||
14229 | fi | |
14230 | ||
14231 | done | |
14232 | ||
d5efd9fc AM |
14233 | |
14234 | ||
14235 | inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` | |
14236 | ||
14237 | acx_cv_header_stdint=stddef.h | |
14238 | acx_cv_header_stdint_kind="(already complete)" | |
14239 | for i in stdint.h $inttype_headers; do | |
14240 | unset ac_cv_type_uintptr_t | |
14241 | unset ac_cv_type_uintmax_t | |
14242 | unset ac_cv_type_int_least32_t | |
14243 | unset ac_cv_type_int_fast32_t | |
14244 | unset ac_cv_type_uint64_t | |
14245 | echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6 | |
14246 | echo "$as_me:$LINENO: checking for uintmax_t" >&5 | |
14247 | echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6 | |
14248 | if test "${ac_cv_type_uintmax_t+set}" = set; then | |
14249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14250 | else | |
14251 | cat >conftest.$ac_ext <<_ACEOF | |
14252 | /* confdefs.h. */ | |
14253 | _ACEOF | |
14254 | cat confdefs.h >>conftest.$ac_ext | |
14255 | cat >>conftest.$ac_ext <<_ACEOF | |
14256 | /* end confdefs.h. */ | |
14257 | #include <sys/types.h> | |
14258 | #include <$i> | |
14259 | ||
14260 | int | |
14261 | main () | |
14262 | { | |
14263 | if ((uintmax_t *) 0) | |
14264 | return 0; | |
14265 | if (sizeof (uintmax_t)) | |
14266 | return 0; | |
14267 | ; | |
14268 | return 0; | |
14269 | } | |
14270 | _ACEOF | |
14271 | rm -f conftest.$ac_objext | |
14272 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14273 | (eval $ac_compile) 2>conftest.er1 | |
14274 | ac_status=$? | |
14275 | grep -v '^ *+' conftest.er1 >conftest.err | |
14276 | rm -f conftest.er1 | |
14277 | cat conftest.err >&5 | |
14278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14279 | (exit $ac_status); } && | |
7357c5b6 AM |
14280 | { ac_try='test -z "$ac_c_werror_flag" |
14281 | || test ! -s conftest.err' | |
d5efd9fc AM |
14282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14283 | (eval $ac_try) 2>&5 | |
14284 | ac_status=$? | |
14285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14286 | (exit $ac_status); }; } && | |
14287 | { ac_try='test -s conftest.$ac_objext' | |
14288 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14289 | (eval $ac_try) 2>&5 | |
14290 | ac_status=$? | |
14291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14292 | (exit $ac_status); }; }; then | |
14293 | ac_cv_type_uintmax_t=yes | |
14294 | else | |
14295 | echo "$as_me: failed program was:" >&5 | |
14296 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14297 | ||
14298 | ac_cv_type_uintmax_t=no | |
14299 | fi | |
14300 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14301 | fi | |
14302 | echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 | |
14303 | echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6 | |
14304 | if test $ac_cv_type_uintmax_t = yes; then | |
14305 | acx_cv_header_stdint=$i | |
14306 | else | |
14307 | continue | |
14308 | fi | |
14309 | ||
14310 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 | |
14311 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
14312 | if test "${ac_cv_type_uintptr_t+set}" = set; then | |
14313 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14314 | else | |
14315 | cat >conftest.$ac_ext <<_ACEOF | |
14316 | /* confdefs.h. */ | |
14317 | _ACEOF | |
14318 | cat confdefs.h >>conftest.$ac_ext | |
14319 | cat >>conftest.$ac_ext <<_ACEOF | |
14320 | /* end confdefs.h. */ | |
14321 | #include <sys/types.h> | |
14322 | #include <$i> | |
14323 | ||
14324 | int | |
14325 | main () | |
14326 | { | |
14327 | if ((uintptr_t *) 0) | |
14328 | return 0; | |
14329 | if (sizeof (uintptr_t)) | |
14330 | return 0; | |
14331 | ; | |
14332 | return 0; | |
14333 | } | |
14334 | _ACEOF | |
14335 | rm -f conftest.$ac_objext | |
14336 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14337 | (eval $ac_compile) 2>conftest.er1 | |
14338 | ac_status=$? | |
14339 | grep -v '^ *+' conftest.er1 >conftest.err | |
14340 | rm -f conftest.er1 | |
14341 | cat conftest.err >&5 | |
14342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14343 | (exit $ac_status); } && | |
7357c5b6 AM |
14344 | { ac_try='test -z "$ac_c_werror_flag" |
14345 | || test ! -s conftest.err' | |
d5efd9fc AM |
14346 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14347 | (eval $ac_try) 2>&5 | |
14348 | ac_status=$? | |
14349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14350 | (exit $ac_status); }; } && | |
14351 | { ac_try='test -s conftest.$ac_objext' | |
14352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14353 | (eval $ac_try) 2>&5 | |
14354 | ac_status=$? | |
14355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14356 | (exit $ac_status); }; }; then | |
14357 | ac_cv_type_uintptr_t=yes | |
14358 | else | |
14359 | echo "$as_me: failed program was:" >&5 | |
14360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14361 | ||
14362 | ac_cv_type_uintptr_t=no | |
14363 | fi | |
14364 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14365 | fi | |
14366 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 | |
14367 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
14368 | if test $ac_cv_type_uintptr_t = yes; then | |
14369 | : | |
14370 | else | |
14371 | acx_cv_header_stdint_kind="(mostly complete)" | |
14372 | fi | |
14373 | ||
14374 | echo "$as_me:$LINENO: checking for int_least32_t" >&5 | |
14375 | echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6 | |
14376 | if test "${ac_cv_type_int_least32_t+set}" = set; then | |
14377 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14378 | else | |
14379 | cat >conftest.$ac_ext <<_ACEOF | |
14380 | /* confdefs.h. */ | |
14381 | _ACEOF | |
14382 | cat confdefs.h >>conftest.$ac_ext | |
14383 | cat >>conftest.$ac_ext <<_ACEOF | |
14384 | /* end confdefs.h. */ | |
14385 | #include <sys/types.h> | |
14386 | #include <$i> | |
14387 | ||
14388 | int | |
14389 | main () | |
14390 | { | |
14391 | if ((int_least32_t *) 0) | |
14392 | return 0; | |
14393 | if (sizeof (int_least32_t)) | |
14394 | return 0; | |
14395 | ; | |
14396 | return 0; | |
14397 | } | |
14398 | _ACEOF | |
14399 | rm -f conftest.$ac_objext | |
14400 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14401 | (eval $ac_compile) 2>conftest.er1 | |
14402 | ac_status=$? | |
14403 | grep -v '^ *+' conftest.er1 >conftest.err | |
14404 | rm -f conftest.er1 | |
14405 | cat conftest.err >&5 | |
14406 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14407 | (exit $ac_status); } && | |
7357c5b6 AM |
14408 | { ac_try='test -z "$ac_c_werror_flag" |
14409 | || test ! -s conftest.err' | |
d5efd9fc AM |
14410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14411 | (eval $ac_try) 2>&5 | |
14412 | ac_status=$? | |
14413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14414 | (exit $ac_status); }; } && | |
14415 | { ac_try='test -s conftest.$ac_objext' | |
14416 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14417 | (eval $ac_try) 2>&5 | |
14418 | ac_status=$? | |
14419 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14420 | (exit $ac_status); }; }; then | |
14421 | ac_cv_type_int_least32_t=yes | |
14422 | else | |
14423 | echo "$as_me: failed program was:" >&5 | |
14424 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14425 | ||
14426 | ac_cv_type_int_least32_t=no | |
14427 | fi | |
14428 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14429 | fi | |
14430 | echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5 | |
14431 | echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6 | |
14432 | if test $ac_cv_type_int_least32_t = yes; then | |
14433 | : | |
14434 | else | |
14435 | acx_cv_header_stdint_kind="(mostly complete)" | |
14436 | fi | |
14437 | ||
14438 | echo "$as_me:$LINENO: checking for int_fast32_t" >&5 | |
14439 | echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6 | |
14440 | if test "${ac_cv_type_int_fast32_t+set}" = set; then | |
14441 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14442 | else | |
14443 | cat >conftest.$ac_ext <<_ACEOF | |
14444 | /* confdefs.h. */ | |
14445 | _ACEOF | |
14446 | cat confdefs.h >>conftest.$ac_ext | |
14447 | cat >>conftest.$ac_ext <<_ACEOF | |
14448 | /* end confdefs.h. */ | |
14449 | #include <sys/types.h> | |
14450 | #include <$i> | |
14451 | ||
14452 | int | |
14453 | main () | |
14454 | { | |
14455 | if ((int_fast32_t *) 0) | |
14456 | return 0; | |
14457 | if (sizeof (int_fast32_t)) | |
14458 | return 0; | |
14459 | ; | |
14460 | return 0; | |
14461 | } | |
14462 | _ACEOF | |
14463 | rm -f conftest.$ac_objext | |
14464 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14465 | (eval $ac_compile) 2>conftest.er1 | |
14466 | ac_status=$? | |
14467 | grep -v '^ *+' conftest.er1 >conftest.err | |
14468 | rm -f conftest.er1 | |
14469 | cat conftest.err >&5 | |
14470 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14471 | (exit $ac_status); } && | |
7357c5b6 AM |
14472 | { ac_try='test -z "$ac_c_werror_flag" |
14473 | || test ! -s conftest.err' | |
d5efd9fc AM |
14474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14475 | (eval $ac_try) 2>&5 | |
14476 | ac_status=$? | |
14477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14478 | (exit $ac_status); }; } && | |
14479 | { ac_try='test -s conftest.$ac_objext' | |
14480 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14481 | (eval $ac_try) 2>&5 | |
14482 | ac_status=$? | |
14483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14484 | (exit $ac_status); }; }; then | |
14485 | ac_cv_type_int_fast32_t=yes | |
14486 | else | |
14487 | echo "$as_me: failed program was:" >&5 | |
14488 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14489 | ||
14490 | ac_cv_type_int_fast32_t=no | |
14491 | fi | |
14492 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14493 | fi | |
14494 | echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5 | |
14495 | echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6 | |
14496 | if test $ac_cv_type_int_fast32_t = yes; then | |
14497 | : | |
14498 | else | |
14499 | acx_cv_header_stdint_kind="(mostly complete)" | |
14500 | fi | |
14501 | ||
14502 | echo "$as_me:$LINENO: checking for uint64_t" >&5 | |
14503 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
14504 | if test "${ac_cv_type_uint64_t+set}" = set; then | |
14505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14506 | else | |
14507 | cat >conftest.$ac_ext <<_ACEOF | |
14508 | /* confdefs.h. */ | |
14509 | _ACEOF | |
14510 | cat confdefs.h >>conftest.$ac_ext | |
14511 | cat >>conftest.$ac_ext <<_ACEOF | |
14512 | /* end confdefs.h. */ | |
14513 | #include <sys/types.h> | |
14514 | #include <$i> | |
14515 | ||
14516 | int | |
14517 | main () | |
14518 | { | |
14519 | if ((uint64_t *) 0) | |
14520 | return 0; | |
14521 | if (sizeof (uint64_t)) | |
14522 | return 0; | |
14523 | ; | |
14524 | return 0; | |
14525 | } | |
14526 | _ACEOF | |
14527 | rm -f conftest.$ac_objext | |
14528 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14529 | (eval $ac_compile) 2>conftest.er1 | |
14530 | ac_status=$? | |
14531 | grep -v '^ *+' conftest.er1 >conftest.err | |
14532 | rm -f conftest.er1 | |
14533 | cat conftest.err >&5 | |
14534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14535 | (exit $ac_status); } && | |
7357c5b6 AM |
14536 | { ac_try='test -z "$ac_c_werror_flag" |
14537 | || test ! -s conftest.err' | |
d5efd9fc AM |
14538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14539 | (eval $ac_try) 2>&5 | |
14540 | ac_status=$? | |
14541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14542 | (exit $ac_status); }; } && | |
14543 | { ac_try='test -s conftest.$ac_objext' | |
14544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14545 | (eval $ac_try) 2>&5 | |
14546 | ac_status=$? | |
14547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14548 | (exit $ac_status); }; }; then | |
14549 | ac_cv_type_uint64_t=yes | |
14550 | else | |
14551 | echo "$as_me: failed program was:" >&5 | |
14552 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14553 | ||
14554 | ac_cv_type_uint64_t=no | |
14555 | fi | |
14556 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14557 | fi | |
14558 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | |
14559 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
14560 | if test $ac_cv_type_uint64_t = yes; then | |
14561 | : | |
14562 | else | |
14563 | acx_cv_header_stdint_kind="(lacks uint64_t)" | |
14564 | fi | |
14565 | ||
14566 | break | |
14567 | done | |
14568 | if test "$acx_cv_header_stdint" = stddef.h; then | |
14569 | acx_cv_header_stdint_kind="(lacks uintmax_t)" | |
14570 | for i in stdint.h $inttype_headers; do | |
14571 | unset ac_cv_type_uintptr_t | |
14572 | unset ac_cv_type_uint32_t | |
14573 | unset ac_cv_type_uint64_t | |
14574 | echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6 | |
14575 | echo "$as_me:$LINENO: checking for uint32_t" >&5 | |
14576 | echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 | |
14577 | if test "${ac_cv_type_uint32_t+set}" = set; then | |
14578 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14579 | else | |
14580 | cat >conftest.$ac_ext <<_ACEOF | |
14581 | /* confdefs.h. */ | |
14582 | _ACEOF | |
14583 | cat confdefs.h >>conftest.$ac_ext | |
14584 | cat >>conftest.$ac_ext <<_ACEOF | |
14585 | /* end confdefs.h. */ | |
14586 | #include <sys/types.h> | |
14587 | #include <$i> | |
14588 | ||
14589 | int | |
14590 | main () | |
14591 | { | |
14592 | if ((uint32_t *) 0) | |
14593 | return 0; | |
14594 | if (sizeof (uint32_t)) | |
14595 | return 0; | |
14596 | ; | |
14597 | return 0; | |
14598 | } | |
14599 | _ACEOF | |
14600 | rm -f conftest.$ac_objext | |
14601 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14602 | (eval $ac_compile) 2>conftest.er1 | |
14603 | ac_status=$? | |
14604 | grep -v '^ *+' conftest.er1 >conftest.err | |
14605 | rm -f conftest.er1 | |
14606 | cat conftest.err >&5 | |
14607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14608 | (exit $ac_status); } && | |
7357c5b6 AM |
14609 | { ac_try='test -z "$ac_c_werror_flag" |
14610 | || test ! -s conftest.err' | |
d5efd9fc AM |
14611 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14612 | (eval $ac_try) 2>&5 | |
14613 | ac_status=$? | |
14614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14615 | (exit $ac_status); }; } && | |
14616 | { ac_try='test -s conftest.$ac_objext' | |
14617 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14618 | (eval $ac_try) 2>&5 | |
14619 | ac_status=$? | |
14620 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14621 | (exit $ac_status); }; }; then | |
14622 | ac_cv_type_uint32_t=yes | |
14623 | else | |
14624 | echo "$as_me: failed program was:" >&5 | |
14625 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14626 | ||
14627 | ac_cv_type_uint32_t=no | |
14628 | fi | |
14629 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14630 | fi | |
14631 | echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 | |
14632 | echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 | |
14633 | if test $ac_cv_type_uint32_t = yes; then | |
14634 | acx_cv_header_stdint=$i | |
14635 | else | |
14636 | continue | |
14637 | fi | |
14638 | ||
14639 | echo "$as_me:$LINENO: checking for uint64_t" >&5 | |
14640 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
14641 | if test "${ac_cv_type_uint64_t+set}" = set; then | |
14642 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14643 | else | |
14644 | cat >conftest.$ac_ext <<_ACEOF | |
14645 | /* confdefs.h. */ | |
14646 | _ACEOF | |
14647 | cat confdefs.h >>conftest.$ac_ext | |
14648 | cat >>conftest.$ac_ext <<_ACEOF | |
14649 | /* end confdefs.h. */ | |
14650 | #include <sys/types.h> | |
14651 | #include <$i> | |
14652 | ||
14653 | int | |
14654 | main () | |
14655 | { | |
14656 | if ((uint64_t *) 0) | |
14657 | return 0; | |
14658 | if (sizeof (uint64_t)) | |
14659 | return 0; | |
14660 | ; | |
14661 | return 0; | |
14662 | } | |
14663 | _ACEOF | |
14664 | rm -f conftest.$ac_objext | |
14665 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14666 | (eval $ac_compile) 2>conftest.er1 | |
14667 | ac_status=$? | |
14668 | grep -v '^ *+' conftest.er1 >conftest.err | |
14669 | rm -f conftest.er1 | |
14670 | cat conftest.err >&5 | |
14671 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14672 | (exit $ac_status); } && | |
7357c5b6 AM |
14673 | { ac_try='test -z "$ac_c_werror_flag" |
14674 | || test ! -s conftest.err' | |
d5efd9fc AM |
14675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14676 | (eval $ac_try) 2>&5 | |
14677 | ac_status=$? | |
14678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14679 | (exit $ac_status); }; } && | |
14680 | { ac_try='test -s conftest.$ac_objext' | |
14681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14682 | (eval $ac_try) 2>&5 | |
14683 | ac_status=$? | |
14684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14685 | (exit $ac_status); }; }; then | |
14686 | ac_cv_type_uint64_t=yes | |
14687 | else | |
14688 | echo "$as_me: failed program was:" >&5 | |
14689 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14690 | ||
14691 | ac_cv_type_uint64_t=no | |
14692 | fi | |
14693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14694 | fi | |
14695 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | |
14696 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
14697 | ||
14698 | echo "$as_me:$LINENO: checking for uintptr_t" >&5 | |
14699 | echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 | |
14700 | if test "${ac_cv_type_uintptr_t+set}" = set; then | |
14701 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14702 | else | |
14703 | cat >conftest.$ac_ext <<_ACEOF | |
14704 | /* confdefs.h. */ | |
14705 | _ACEOF | |
14706 | cat confdefs.h >>conftest.$ac_ext | |
14707 | cat >>conftest.$ac_ext <<_ACEOF | |
14708 | /* end confdefs.h. */ | |
14709 | #include <sys/types.h> | |
14710 | #include <$i> | |
14711 | ||
14712 | int | |
14713 | main () | |
14714 | { | |
14715 | if ((uintptr_t *) 0) | |
14716 | return 0; | |
14717 | if (sizeof (uintptr_t)) | |
14718 | return 0; | |
14719 | ; | |
14720 | return 0; | |
14721 | } | |
14722 | _ACEOF | |
14723 | rm -f conftest.$ac_objext | |
14724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14725 | (eval $ac_compile) 2>conftest.er1 | |
14726 | ac_status=$? | |
14727 | grep -v '^ *+' conftest.er1 >conftest.err | |
14728 | rm -f conftest.er1 | |
14729 | cat conftest.err >&5 | |
14730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14731 | (exit $ac_status); } && | |
7357c5b6 AM |
14732 | { ac_try='test -z "$ac_c_werror_flag" |
14733 | || test ! -s conftest.err' | |
d5efd9fc AM |
14734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14735 | (eval $ac_try) 2>&5 | |
14736 | ac_status=$? | |
14737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14738 | (exit $ac_status); }; } && | |
14739 | { ac_try='test -s conftest.$ac_objext' | |
14740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14741 | (eval $ac_try) 2>&5 | |
14742 | ac_status=$? | |
14743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14744 | (exit $ac_status); }; }; then | |
14745 | ac_cv_type_uintptr_t=yes | |
14746 | else | |
14747 | echo "$as_me: failed program was:" >&5 | |
14748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14749 | ||
14750 | ac_cv_type_uintptr_t=no | |
14751 | fi | |
14752 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14753 | fi | |
14754 | echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 | |
14755 | echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 | |
14756 | ||
14757 | break | |
14758 | done | |
14759 | fi | |
14760 | if test "$acx_cv_header_stdint" = stddef.h; then | |
14761 | acx_cv_header_stdint_kind="(u_intXX_t style)" | |
14762 | for i in sys/types.h $inttype_headers; do | |
14763 | unset ac_cv_type_u_int32_t | |
14764 | unset ac_cv_type_u_int64_t | |
14765 | echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6 | |
14766 | echo "$as_me:$LINENO: checking for u_int32_t" >&5 | |
14767 | echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 | |
14768 | if test "${ac_cv_type_u_int32_t+set}" = set; then | |
14769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14770 | else | |
14771 | cat >conftest.$ac_ext <<_ACEOF | |
14772 | /* confdefs.h. */ | |
14773 | _ACEOF | |
14774 | cat confdefs.h >>conftest.$ac_ext | |
14775 | cat >>conftest.$ac_ext <<_ACEOF | |
14776 | /* end confdefs.h. */ | |
14777 | #include <sys/types.h> | |
14778 | #include <$i> | |
14779 | ||
14780 | int | |
14781 | main () | |
14782 | { | |
14783 | if ((u_int32_t *) 0) | |
14784 | return 0; | |
14785 | if (sizeof (u_int32_t)) | |
14786 | return 0; | |
14787 | ; | |
14788 | return 0; | |
14789 | } | |
14790 | _ACEOF | |
14791 | rm -f conftest.$ac_objext | |
14792 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14793 | (eval $ac_compile) 2>conftest.er1 | |
14794 | ac_status=$? | |
14795 | grep -v '^ *+' conftest.er1 >conftest.err | |
14796 | rm -f conftest.er1 | |
14797 | cat conftest.err >&5 | |
14798 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14799 | (exit $ac_status); } && | |
7357c5b6 AM |
14800 | { ac_try='test -z "$ac_c_werror_flag" |
14801 | || test ! -s conftest.err' | |
d5efd9fc AM |
14802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14803 | (eval $ac_try) 2>&5 | |
14804 | ac_status=$? | |
14805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14806 | (exit $ac_status); }; } && | |
14807 | { ac_try='test -s conftest.$ac_objext' | |
14808 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14809 | (eval $ac_try) 2>&5 | |
14810 | ac_status=$? | |
14811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14812 | (exit $ac_status); }; }; then | |
14813 | ac_cv_type_u_int32_t=yes | |
14814 | else | |
14815 | echo "$as_me: failed program was:" >&5 | |
14816 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14817 | ||
14818 | ac_cv_type_u_int32_t=no | |
14819 | fi | |
14820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14821 | fi | |
14822 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 | |
14823 | echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 | |
14824 | if test $ac_cv_type_u_int32_t = yes; then | |
14825 | acx_cv_header_stdint=$i | |
14826 | else | |
14827 | continue | |
14828 | fi | |
14829 | ||
14830 | echo "$as_me:$LINENO: checking for u_int64_t" >&5 | |
14831 | echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 | |
14832 | if test "${ac_cv_type_u_int64_t+set}" = set; then | |
14833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14834 | else | |
14835 | cat >conftest.$ac_ext <<_ACEOF | |
14836 | /* confdefs.h. */ | |
14837 | _ACEOF | |
14838 | cat confdefs.h >>conftest.$ac_ext | |
14839 | cat >>conftest.$ac_ext <<_ACEOF | |
14840 | /* end confdefs.h. */ | |
14841 | #include <sys/types.h> | |
14842 | #include <$i> | |
14843 | ||
14844 | int | |
14845 | main () | |
14846 | { | |
14847 | if ((u_int64_t *) 0) | |
14848 | return 0; | |
14849 | if (sizeof (u_int64_t)) | |
14850 | return 0; | |
14851 | ; | |
14852 | return 0; | |
14853 | } | |
14854 | _ACEOF | |
14855 | rm -f conftest.$ac_objext | |
14856 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14857 | (eval $ac_compile) 2>conftest.er1 | |
14858 | ac_status=$? | |
14859 | grep -v '^ *+' conftest.er1 >conftest.err | |
14860 | rm -f conftest.er1 | |
14861 | cat conftest.err >&5 | |
14862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14863 | (exit $ac_status); } && | |
7357c5b6 AM |
14864 | { ac_try='test -z "$ac_c_werror_flag" |
14865 | || test ! -s conftest.err' | |
d5efd9fc AM |
14866 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14867 | (eval $ac_try) 2>&5 | |
14868 | ac_status=$? | |
14869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14870 | (exit $ac_status); }; } && | |
14871 | { ac_try='test -s conftest.$ac_objext' | |
14872 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14873 | (eval $ac_try) 2>&5 | |
14874 | ac_status=$? | |
14875 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14876 | (exit $ac_status); }; }; then | |
14877 | ac_cv_type_u_int64_t=yes | |
14878 | else | |
14879 | echo "$as_me: failed program was:" >&5 | |
14880 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14881 | ||
14882 | ac_cv_type_u_int64_t=no | |
14883 | fi | |
14884 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14885 | fi | |
14886 | echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 | |
14887 | echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 | |
14888 | ||
14889 | break | |
14890 | done | |
14891 | fi | |
14892 | if test "$acx_cv_header_stdint" = stddef.h; then | |
14893 | acx_cv_header_stdint_kind="(using manual detection)" | |
14894 | fi | |
14895 | ||
14896 | test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no | |
14897 | test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no | |
14898 | test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no | |
14899 | test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no | |
14900 | test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no | |
14901 | ||
14902 | # ----------------- Summarize what we found so far | |
14903 | ||
14904 | echo "$as_me:$LINENO: checking what to include in bfd_stdint.h" >&5 | |
14905 | echo $ECHO_N "checking what to include in bfd_stdint.h... $ECHO_C" >&6 | |
14906 | ||
14907 | case `$as_basename bfd_stdint.h || | |
14908 | $as_expr X/bfd_stdint.h : '.*/\([^/][^/]*\)/*$' \| \ | |
14909 | Xbfd_stdint.h : 'X\(//\)$' \| \ | |
14910 | Xbfd_stdint.h : 'X\(/\)$' \| \ | |
14911 | . : '\(.\)' 2>/dev/null || | |
14912 | echo X/bfd_stdint.h | | |
14913 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
14914 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
14915 | /^X\/\(\/\).*/{ s//\1/; q; } | |
14916 | s/.*/./; q'` in | |
14917 | stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 | |
14918 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
14919 | inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 | |
14920 | echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; | |
14921 | *) ;; | |
14922 | esac | |
14923 | ||
14924 | echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 | |
14925 | echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6 | |
14926 | ||
14927 | # ----------------- done included file, check C basic types -------- | |
14928 | ||
14929 | # Lacking an uintptr_t? Test size of void * | |
14930 | case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in | |
14931 | stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5 | |
14932 | echo $ECHO_N "checking for void *... $ECHO_C" >&6 | |
14933 | if test "${ac_cv_type_void_p+set}" = set; then | |
14934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14935 | else | |
14936 | cat >conftest.$ac_ext <<_ACEOF | |
14937 | /* confdefs.h. */ | |
14938 | _ACEOF | |
14939 | cat confdefs.h >>conftest.$ac_ext | |
14940 | cat >>conftest.$ac_ext <<_ACEOF | |
14941 | /* end confdefs.h. */ | |
14942 | $ac_includes_default | |
14943 | int | |
14944 | main () | |
14945 | { | |
14946 | if ((void * *) 0) | |
14947 | return 0; | |
14948 | if (sizeof (void *)) | |
14949 | return 0; | |
14950 | ; | |
14951 | return 0; | |
14952 | } | |
14953 | _ACEOF | |
14954 | rm -f conftest.$ac_objext | |
14955 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14956 | (eval $ac_compile) 2>conftest.er1 | |
14957 | ac_status=$? | |
14958 | grep -v '^ *+' conftest.er1 >conftest.err | |
14959 | rm -f conftest.er1 | |
14960 | cat conftest.err >&5 | |
14961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14962 | (exit $ac_status); } && | |
7357c5b6 AM |
14963 | { ac_try='test -z "$ac_c_werror_flag" |
14964 | || test ! -s conftest.err' | |
d5efd9fc AM |
14965 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
14966 | (eval $ac_try) 2>&5 | |
14967 | ac_status=$? | |
14968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14969 | (exit $ac_status); }; } && | |
14970 | { ac_try='test -s conftest.$ac_objext' | |
14971 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
14972 | (eval $ac_try) 2>&5 | |
14973 | ac_status=$? | |
14974 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14975 | (exit $ac_status); }; }; then | |
14976 | ac_cv_type_void_p=yes | |
14977 | else | |
14978 | echo "$as_me: failed program was:" >&5 | |
14979 | sed 's/^/| /' conftest.$ac_ext >&5 | |
14980 | ||
14981 | ac_cv_type_void_p=no | |
14982 | fi | |
14983 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
14984 | fi | |
14985 | echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 | |
14986 | echo "${ECHO_T}$ac_cv_type_void_p" >&6 | |
14987 | ||
14988 | echo "$as_me:$LINENO: checking size of void *" >&5 | |
14989 | echo $ECHO_N "checking size of void *... $ECHO_C" >&6 | |
14990 | if test "${ac_cv_sizeof_void_p+set}" = set; then | |
14991 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14992 | else | |
14993 | if test "$ac_cv_type_void_p" = yes; then | |
14994 | # The cast to unsigned long works around a bug in the HP C Compiler | |
14995 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14996 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14997 | # This bug is HP SR number 8606223364. | |
14998 | if test "$cross_compiling" = yes; then | |
14999 | # Depending upon the size, compute the lo and hi bounds. | |
15000 | cat >conftest.$ac_ext <<_ACEOF | |
15001 | /* confdefs.h. */ | |
15002 | _ACEOF | |
15003 | cat confdefs.h >>conftest.$ac_ext | |
15004 | cat >>conftest.$ac_ext <<_ACEOF | |
15005 | /* end confdefs.h. */ | |
15006 | $ac_includes_default | |
15007 | int | |
15008 | main () | |
15009 | { | |
15010 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; | |
15011 | test_array [0] = 0 | |
15012 | ||
15013 | ; | |
15014 | return 0; | |
15015 | } | |
15016 | _ACEOF | |
15017 | rm -f conftest.$ac_objext | |
15018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15019 | (eval $ac_compile) 2>conftest.er1 | |
15020 | ac_status=$? | |
15021 | grep -v '^ *+' conftest.er1 >conftest.err | |
15022 | rm -f conftest.er1 | |
15023 | cat conftest.err >&5 | |
15024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15025 | (exit $ac_status); } && | |
7357c5b6 AM |
15026 | { ac_try='test -z "$ac_c_werror_flag" |
15027 | || test ! -s conftest.err' | |
d5efd9fc AM |
15028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15029 | (eval $ac_try) 2>&5 | |
15030 | ac_status=$? | |
15031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15032 | (exit $ac_status); }; } && | |
15033 | { ac_try='test -s conftest.$ac_objext' | |
15034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15035 | (eval $ac_try) 2>&5 | |
15036 | ac_status=$? | |
15037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15038 | (exit $ac_status); }; }; then | |
15039 | ac_lo=0 ac_mid=0 | |
15040 | while :; do | |
15041 | cat >conftest.$ac_ext <<_ACEOF | |
15042 | /* confdefs.h. */ | |
15043 | _ACEOF | |
15044 | cat confdefs.h >>conftest.$ac_ext | |
15045 | cat >>conftest.$ac_ext <<_ACEOF | |
15046 | /* end confdefs.h. */ | |
15047 | $ac_includes_default | |
15048 | int | |
15049 | main () | |
15050 | { | |
15051 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15052 | test_array [0] = 0 | |
15053 | ||
15054 | ; | |
15055 | return 0; | |
15056 | } | |
15057 | _ACEOF | |
15058 | rm -f conftest.$ac_objext | |
15059 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15060 | (eval $ac_compile) 2>conftest.er1 | |
15061 | ac_status=$? | |
15062 | grep -v '^ *+' conftest.er1 >conftest.err | |
15063 | rm -f conftest.er1 | |
15064 | cat conftest.err >&5 | |
15065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15066 | (exit $ac_status); } && | |
7357c5b6 AM |
15067 | { ac_try='test -z "$ac_c_werror_flag" |
15068 | || test ! -s conftest.err' | |
d5efd9fc AM |
15069 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15070 | (eval $ac_try) 2>&5 | |
15071 | ac_status=$? | |
15072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15073 | (exit $ac_status); }; } && | |
15074 | { ac_try='test -s conftest.$ac_objext' | |
15075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15076 | (eval $ac_try) 2>&5 | |
15077 | ac_status=$? | |
15078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15079 | (exit $ac_status); }; }; then | |
15080 | ac_hi=$ac_mid; break | |
15081 | else | |
15082 | echo "$as_me: failed program was:" >&5 | |
15083 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15084 | ||
15085 | ac_lo=`expr $ac_mid + 1` | |
15086 | if test $ac_lo -le $ac_mid; then | |
15087 | ac_lo= ac_hi= | |
15088 | break | |
15089 | fi | |
15090 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
15091 | fi | |
15092 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15093 | done | |
15094 | else | |
15095 | echo "$as_me: failed program was:" >&5 | |
15096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15097 | ||
15098 | cat >conftest.$ac_ext <<_ACEOF | |
15099 | /* confdefs.h. */ | |
15100 | _ACEOF | |
15101 | cat confdefs.h >>conftest.$ac_ext | |
15102 | cat >>conftest.$ac_ext <<_ACEOF | |
15103 | /* end confdefs.h. */ | |
15104 | $ac_includes_default | |
15105 | int | |
15106 | main () | |
15107 | { | |
15108 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; | |
15109 | test_array [0] = 0 | |
15110 | ||
15111 | ; | |
15112 | return 0; | |
15113 | } | |
15114 | _ACEOF | |
15115 | rm -f conftest.$ac_objext | |
15116 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15117 | (eval $ac_compile) 2>conftest.er1 | |
15118 | ac_status=$? | |
15119 | grep -v '^ *+' conftest.er1 >conftest.err | |
15120 | rm -f conftest.er1 | |
15121 | cat conftest.err >&5 | |
15122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15123 | (exit $ac_status); } && | |
7357c5b6 AM |
15124 | { ac_try='test -z "$ac_c_werror_flag" |
15125 | || test ! -s conftest.err' | |
d5efd9fc AM |
15126 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15127 | (eval $ac_try) 2>&5 | |
15128 | ac_status=$? | |
15129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15130 | (exit $ac_status); }; } && | |
15131 | { ac_try='test -s conftest.$ac_objext' | |
15132 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15133 | (eval $ac_try) 2>&5 | |
15134 | ac_status=$? | |
15135 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15136 | (exit $ac_status); }; }; then | |
15137 | ac_hi=-1 ac_mid=-1 | |
15138 | while :; do | |
15139 | cat >conftest.$ac_ext <<_ACEOF | |
15140 | /* confdefs.h. */ | |
15141 | _ACEOF | |
15142 | cat confdefs.h >>conftest.$ac_ext | |
15143 | cat >>conftest.$ac_ext <<_ACEOF | |
15144 | /* end confdefs.h. */ | |
15145 | $ac_includes_default | |
15146 | int | |
15147 | main () | |
15148 | { | |
15149 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; | |
15150 | test_array [0] = 0 | |
15151 | ||
15152 | ; | |
15153 | return 0; | |
15154 | } | |
15155 | _ACEOF | |
15156 | rm -f conftest.$ac_objext | |
15157 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15158 | (eval $ac_compile) 2>conftest.er1 | |
15159 | ac_status=$? | |
15160 | grep -v '^ *+' conftest.er1 >conftest.err | |
15161 | rm -f conftest.er1 | |
15162 | cat conftest.err >&5 | |
15163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15164 | (exit $ac_status); } && | |
7357c5b6 AM |
15165 | { ac_try='test -z "$ac_c_werror_flag" |
15166 | || test ! -s conftest.err' | |
d5efd9fc AM |
15167 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15168 | (eval $ac_try) 2>&5 | |
15169 | ac_status=$? | |
15170 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15171 | (exit $ac_status); }; } && | |
15172 | { ac_try='test -s conftest.$ac_objext' | |
15173 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15174 | (eval $ac_try) 2>&5 | |
15175 | ac_status=$? | |
15176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15177 | (exit $ac_status); }; }; then | |
15178 | ac_lo=$ac_mid; break | |
15179 | else | |
15180 | echo "$as_me: failed program was:" >&5 | |
15181 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15182 | ||
15183 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15184 | if test $ac_mid -le $ac_hi; then | |
15185 | ac_lo= ac_hi= | |
15186 | break | |
15187 | fi | |
15188 | ac_mid=`expr 2 '*' $ac_mid` | |
15189 | fi | |
15190 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15191 | done | |
15192 | else | |
15193 | echo "$as_me: failed program was:" >&5 | |
15194 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15195 | ||
15196 | ac_lo= ac_hi= | |
15197 | fi | |
15198 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15199 | fi | |
15200 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15201 | # Binary search between lo and hi bounds. | |
15202 | while test "x$ac_lo" != "x$ac_hi"; do | |
15203 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15204 | cat >conftest.$ac_ext <<_ACEOF | |
15205 | /* confdefs.h. */ | |
15206 | _ACEOF | |
15207 | cat confdefs.h >>conftest.$ac_ext | |
15208 | cat >>conftest.$ac_ext <<_ACEOF | |
15209 | /* end confdefs.h. */ | |
15210 | $ac_includes_default | |
15211 | int | |
15212 | main () | |
15213 | { | |
15214 | static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; | |
15215 | test_array [0] = 0 | |
15216 | ||
15217 | ; | |
15218 | return 0; | |
15219 | } | |
15220 | _ACEOF | |
15221 | rm -f conftest.$ac_objext | |
15222 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15223 | (eval $ac_compile) 2>conftest.er1 | |
15224 | ac_status=$? | |
15225 | grep -v '^ *+' conftest.er1 >conftest.err | |
15226 | rm -f conftest.er1 | |
15227 | cat conftest.err >&5 | |
15228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15229 | (exit $ac_status); } && | |
7357c5b6 AM |
15230 | { ac_try='test -z "$ac_c_werror_flag" |
15231 | || test ! -s conftest.err' | |
d5efd9fc AM |
15232 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15233 | (eval $ac_try) 2>&5 | |
15234 | ac_status=$? | |
15235 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15236 | (exit $ac_status); }; } && | |
15237 | { ac_try='test -s conftest.$ac_objext' | |
15238 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15239 | (eval $ac_try) 2>&5 | |
15240 | ac_status=$? | |
15241 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15242 | (exit $ac_status); }; }; then | |
15243 | ac_hi=$ac_mid | |
15244 | else | |
15245 | echo "$as_me: failed program was:" >&5 | |
15246 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15247 | ||
15248 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15249 | fi | |
15250 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15251 | done | |
15252 | case $ac_lo in | |
15253 | ?*) ac_cv_sizeof_void_p=$ac_lo;; | |
7357c5b6 AM |
15254 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
15255 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15256 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 | |
d5efd9fc AM |
15257 | See \`config.log' for more details." >&5 |
15258 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15259 | See \`config.log' for more details." >&2;} | |
7357c5b6 | 15260 | { (exit 1); exit 1; }; }; } ;; |
d5efd9fc AM |
15261 | esac |
15262 | else | |
15263 | if test "$cross_compiling" = yes; then | |
7357c5b6 AM |
15264 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
15265 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15266 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15267 | See \`config.log' for more details." >&5 | |
15268 | echo "$as_me: error: cannot run test program while cross compiling | |
15269 | See \`config.log' for more details." >&2;} | |
15270 | { (exit 1); exit 1; }; }; } | |
d5efd9fc AM |
15271 | else |
15272 | cat >conftest.$ac_ext <<_ACEOF | |
15273 | /* confdefs.h. */ | |
15274 | _ACEOF | |
15275 | cat confdefs.h >>conftest.$ac_ext | |
15276 | cat >>conftest.$ac_ext <<_ACEOF | |
15277 | /* end confdefs.h. */ | |
15278 | $ac_includes_default | |
15279 | long longval () { return (long) (sizeof (void *)); } | |
15280 | unsigned long ulongval () { return (long) (sizeof (void *)); } | |
15281 | #include <stdio.h> | |
15282 | #include <stdlib.h> | |
15283 | int | |
15284 | main () | |
15285 | { | |
15286 | ||
15287 | FILE *f = fopen ("conftest.val", "w"); | |
15288 | if (! f) | |
15289 | exit (1); | |
15290 | if (((long) (sizeof (void *))) < 0) | |
15291 | { | |
15292 | long i = longval (); | |
15293 | if (i != ((long) (sizeof (void *)))) | |
15294 | exit (1); | |
15295 | fprintf (f, "%ld\n", i); | |
15296 | } | |
15297 | else | |
15298 | { | |
15299 | unsigned long i = ulongval (); | |
15300 | if (i != ((long) (sizeof (void *)))) | |
15301 | exit (1); | |
15302 | fprintf (f, "%lu\n", i); | |
15303 | } | |
15304 | exit (ferror (f) || fclose (f) != 0); | |
15305 | ||
15306 | ; | |
15307 | return 0; | |
15308 | } | |
15309 | _ACEOF | |
15310 | rm -f conftest$ac_exeext | |
15311 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15312 | (eval $ac_link) 2>&5 | |
15313 | ac_status=$? | |
15314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15315 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15316 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15317 | (eval $ac_try) 2>&5 | |
15318 | ac_status=$? | |
15319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15320 | (exit $ac_status); }; }; then | |
15321 | ac_cv_sizeof_void_p=`cat conftest.val` | |
15322 | else | |
15323 | echo "$as_me: program exited with status $ac_status" >&5 | |
15324 | echo "$as_me: failed program was:" >&5 | |
15325 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15326 | ||
15327 | ( exit $ac_status ) | |
7357c5b6 AM |
15328 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
15329 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d5efd9fc AM |
15330 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 |
15331 | See \`config.log' for more details." >&5 | |
15332 | echo "$as_me: error: cannot compute sizeof (void *), 77 | |
15333 | See \`config.log' for more details." >&2;} | |
7357c5b6 | 15334 | { (exit 1); exit 1; }; }; } |
d5efd9fc AM |
15335 | fi |
15336 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15337 | fi | |
15338 | fi | |
15339 | rm -f conftest.val | |
15340 | else | |
15341 | ac_cv_sizeof_void_p=0 | |
15342 | fi | |
15343 | fi | |
15344 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 | |
15345 | echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 | |
15346 | cat >>confdefs.h <<_ACEOF | |
15347 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
15348 | _ACEOF | |
15349 | ||
15350 | ;; | |
15351 | esac | |
15352 | ||
15353 | # Lacking an uint64_t? Test size of long | |
15354 | case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in | |
15355 | stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5 | |
15356 | echo $ECHO_N "checking for long... $ECHO_C" >&6 | |
15357 | if test "${ac_cv_type_long+set}" = set; then | |
15358 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15359 | else | |
15360 | cat >conftest.$ac_ext <<_ACEOF | |
15361 | /* confdefs.h. */ | |
15362 | _ACEOF | |
15363 | cat confdefs.h >>conftest.$ac_ext | |
15364 | cat >>conftest.$ac_ext <<_ACEOF | |
15365 | /* end confdefs.h. */ | |
15366 | $ac_includes_default | |
15367 | int | |
15368 | main () | |
15369 | { | |
15370 | if ((long *) 0) | |
15371 | return 0; | |
15372 | if (sizeof (long)) | |
15373 | return 0; | |
15374 | ; | |
15375 | return 0; | |
15376 | } | |
15377 | _ACEOF | |
15378 | rm -f conftest.$ac_objext | |
15379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15380 | (eval $ac_compile) 2>conftest.er1 | |
15381 | ac_status=$? | |
15382 | grep -v '^ *+' conftest.er1 >conftest.err | |
15383 | rm -f conftest.er1 | |
15384 | cat conftest.err >&5 | |
15385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15386 | (exit $ac_status); } && | |
7357c5b6 AM |
15387 | { ac_try='test -z "$ac_c_werror_flag" |
15388 | || test ! -s conftest.err' | |
d5efd9fc AM |
15389 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15390 | (eval $ac_try) 2>&5 | |
15391 | ac_status=$? | |
15392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15393 | (exit $ac_status); }; } && | |
15394 | { ac_try='test -s conftest.$ac_objext' | |
15395 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15396 | (eval $ac_try) 2>&5 | |
15397 | ac_status=$? | |
15398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15399 | (exit $ac_status); }; }; then | |
15400 | ac_cv_type_long=yes | |
15401 | else | |
15402 | echo "$as_me: failed program was:" >&5 | |
15403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15404 | ||
15405 | ac_cv_type_long=no | |
15406 | fi | |
15407 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15408 | fi | |
15409 | echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 | |
15410 | echo "${ECHO_T}$ac_cv_type_long" >&6 | |
15411 | ||
15412 | echo "$as_me:$LINENO: checking size of long" >&5 | |
15413 | echo $ECHO_N "checking size of long... $ECHO_C" >&6 | |
15414 | if test "${ac_cv_sizeof_long+set}" = set; then | |
15415 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15416 | else | |
15417 | if test "$ac_cv_type_long" = yes; then | |
15418 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15419 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15420 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15421 | # This bug is HP SR number 8606223364. | |
15422 | if test "$cross_compiling" = yes; then | |
15423 | # Depending upon the size, compute the lo and hi bounds. | |
15424 | cat >conftest.$ac_ext <<_ACEOF | |
15425 | /* confdefs.h. */ | |
15426 | _ACEOF | |
15427 | cat confdefs.h >>conftest.$ac_ext | |
15428 | cat >>conftest.$ac_ext <<_ACEOF | |
15429 | /* end confdefs.h. */ | |
15430 | $ac_includes_default | |
15431 | int | |
15432 | main () | |
15433 | { | |
15434 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; | |
15435 | test_array [0] = 0 | |
15436 | ||
15437 | ; | |
15438 | return 0; | |
15439 | } | |
15440 | _ACEOF | |
15441 | rm -f conftest.$ac_objext | |
15442 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15443 | (eval $ac_compile) 2>conftest.er1 | |
15444 | ac_status=$? | |
15445 | grep -v '^ *+' conftest.er1 >conftest.err | |
15446 | rm -f conftest.er1 | |
15447 | cat conftest.err >&5 | |
15448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15449 | (exit $ac_status); } && | |
7357c5b6 AM |
15450 | { ac_try='test -z "$ac_c_werror_flag" |
15451 | || test ! -s conftest.err' | |
d5efd9fc AM |
15452 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15453 | (eval $ac_try) 2>&5 | |
15454 | ac_status=$? | |
15455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15456 | (exit $ac_status); }; } && | |
15457 | { ac_try='test -s conftest.$ac_objext' | |
15458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15459 | (eval $ac_try) 2>&5 | |
15460 | ac_status=$? | |
15461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15462 | (exit $ac_status); }; }; then | |
15463 | ac_lo=0 ac_mid=0 | |
15464 | while :; do | |
15465 | cat >conftest.$ac_ext <<_ACEOF | |
15466 | /* confdefs.h. */ | |
15467 | _ACEOF | |
15468 | cat confdefs.h >>conftest.$ac_ext | |
15469 | cat >>conftest.$ac_ext <<_ACEOF | |
15470 | /* end confdefs.h. */ | |
15471 | $ac_includes_default | |
15472 | int | |
15473 | main () | |
15474 | { | |
15475 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15476 | test_array [0] = 0 | |
15477 | ||
15478 | ; | |
15479 | return 0; | |
15480 | } | |
15481 | _ACEOF | |
15482 | rm -f conftest.$ac_objext | |
15483 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15484 | (eval $ac_compile) 2>conftest.er1 | |
15485 | ac_status=$? | |
15486 | grep -v '^ *+' conftest.er1 >conftest.err | |
15487 | rm -f conftest.er1 | |
15488 | cat conftest.err >&5 | |
15489 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15490 | (exit $ac_status); } && | |
7357c5b6 AM |
15491 | { ac_try='test -z "$ac_c_werror_flag" |
15492 | || test ! -s conftest.err' | |
d5efd9fc AM |
15493 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15494 | (eval $ac_try) 2>&5 | |
15495 | ac_status=$? | |
15496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15497 | (exit $ac_status); }; } && | |
15498 | { ac_try='test -s conftest.$ac_objext' | |
15499 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15500 | (eval $ac_try) 2>&5 | |
15501 | ac_status=$? | |
15502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15503 | (exit $ac_status); }; }; then | |
15504 | ac_hi=$ac_mid; break | |
15505 | else | |
15506 | echo "$as_me: failed program was:" >&5 | |
15507 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15508 | ||
15509 | ac_lo=`expr $ac_mid + 1` | |
15510 | if test $ac_lo -le $ac_mid; then | |
15511 | ac_lo= ac_hi= | |
15512 | break | |
15513 | fi | |
15514 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
15515 | fi | |
15516 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15517 | done | |
15518 | else | |
15519 | echo "$as_me: failed program was:" >&5 | |
15520 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15521 | ||
15522 | cat >conftest.$ac_ext <<_ACEOF | |
15523 | /* confdefs.h. */ | |
15524 | _ACEOF | |
15525 | cat confdefs.h >>conftest.$ac_ext | |
15526 | cat >>conftest.$ac_ext <<_ACEOF | |
15527 | /* end confdefs.h. */ | |
15528 | $ac_includes_default | |
15529 | int | |
15530 | main () | |
15531 | { | |
15532 | static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; | |
15533 | test_array [0] = 0 | |
15534 | ||
15535 | ; | |
15536 | return 0; | |
15537 | } | |
15538 | _ACEOF | |
15539 | rm -f conftest.$ac_objext | |
15540 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15541 | (eval $ac_compile) 2>conftest.er1 | |
15542 | ac_status=$? | |
15543 | grep -v '^ *+' conftest.er1 >conftest.err | |
15544 | rm -f conftest.er1 | |
15545 | cat conftest.err >&5 | |
15546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15547 | (exit $ac_status); } && | |
7357c5b6 AM |
15548 | { ac_try='test -z "$ac_c_werror_flag" |
15549 | || test ! -s conftest.err' | |
d5efd9fc AM |
15550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15551 | (eval $ac_try) 2>&5 | |
15552 | ac_status=$? | |
15553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15554 | (exit $ac_status); }; } && | |
15555 | { ac_try='test -s conftest.$ac_objext' | |
15556 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15557 | (eval $ac_try) 2>&5 | |
15558 | ac_status=$? | |
15559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15560 | (exit $ac_status); }; }; then | |
15561 | ac_hi=-1 ac_mid=-1 | |
15562 | while :; do | |
15563 | cat >conftest.$ac_ext <<_ACEOF | |
15564 | /* confdefs.h. */ | |
15565 | _ACEOF | |
15566 | cat confdefs.h >>conftest.$ac_ext | |
15567 | cat >>conftest.$ac_ext <<_ACEOF | |
15568 | /* end confdefs.h. */ | |
15569 | $ac_includes_default | |
15570 | int | |
15571 | main () | |
15572 | { | |
15573 | static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; | |
15574 | test_array [0] = 0 | |
15575 | ||
15576 | ; | |
15577 | return 0; | |
15578 | } | |
15579 | _ACEOF | |
15580 | rm -f conftest.$ac_objext | |
15581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15582 | (eval $ac_compile) 2>conftest.er1 | |
15583 | ac_status=$? | |
15584 | grep -v '^ *+' conftest.er1 >conftest.err | |
15585 | rm -f conftest.er1 | |
15586 | cat conftest.err >&5 | |
15587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15588 | (exit $ac_status); } && | |
7357c5b6 AM |
15589 | { ac_try='test -z "$ac_c_werror_flag" |
15590 | || test ! -s conftest.err' | |
d5efd9fc AM |
15591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15592 | (eval $ac_try) 2>&5 | |
15593 | ac_status=$? | |
15594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15595 | (exit $ac_status); }; } && | |
15596 | { ac_try='test -s conftest.$ac_objext' | |
15597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15598 | (eval $ac_try) 2>&5 | |
15599 | ac_status=$? | |
15600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15601 | (exit $ac_status); }; }; then | |
15602 | ac_lo=$ac_mid; break | |
15603 | else | |
15604 | echo "$as_me: failed program was:" >&5 | |
15605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15606 | ||
15607 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
15608 | if test $ac_mid -le $ac_hi; then | |
15609 | ac_lo= ac_hi= | |
15610 | break | |
15611 | fi | |
15612 | ac_mid=`expr 2 '*' $ac_mid` | |
15613 | fi | |
15614 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15615 | done | |
15616 | else | |
15617 | echo "$as_me: failed program was:" >&5 | |
15618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15619 | ||
15620 | ac_lo= ac_hi= | |
15621 | fi | |
15622 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15623 | fi | |
15624 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15625 | # Binary search between lo and hi bounds. | |
15626 | while test "x$ac_lo" != "x$ac_hi"; do | |
15627 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
15628 | cat >conftest.$ac_ext <<_ACEOF | |
15629 | /* confdefs.h. */ | |
15630 | _ACEOF | |
15631 | cat confdefs.h >>conftest.$ac_ext | |
15632 | cat >>conftest.$ac_ext <<_ACEOF | |
15633 | /* end confdefs.h. */ | |
15634 | $ac_includes_default | |
15635 | int | |
15636 | main () | |
15637 | { | |
15638 | static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; | |
15639 | test_array [0] = 0 | |
15640 | ||
15641 | ; | |
15642 | return 0; | |
15643 | } | |
15644 | _ACEOF | |
15645 | rm -f conftest.$ac_objext | |
15646 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15647 | (eval $ac_compile) 2>conftest.er1 | |
15648 | ac_status=$? | |
15649 | grep -v '^ *+' conftest.er1 >conftest.err | |
15650 | rm -f conftest.er1 | |
15651 | cat conftest.err >&5 | |
15652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15653 | (exit $ac_status); } && | |
7357c5b6 AM |
15654 | { ac_try='test -z "$ac_c_werror_flag" |
15655 | || test ! -s conftest.err' | |
d5efd9fc AM |
15656 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15657 | (eval $ac_try) 2>&5 | |
15658 | ac_status=$? | |
15659 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15660 | (exit $ac_status); }; } && | |
15661 | { ac_try='test -s conftest.$ac_objext' | |
15662 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15663 | (eval $ac_try) 2>&5 | |
15664 | ac_status=$? | |
15665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15666 | (exit $ac_status); }; }; then | |
15667 | ac_hi=$ac_mid | |
15668 | else | |
15669 | echo "$as_me: failed program was:" >&5 | |
15670 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15671 | ||
15672 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
15673 | fi | |
15674 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15675 | done | |
15676 | case $ac_lo in | |
15677 | ?*) ac_cv_sizeof_long=$ac_lo;; | |
7357c5b6 AM |
15678 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
15679 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15680 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 | |
d5efd9fc AM |
15681 | See \`config.log' for more details." >&5 |
15682 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
15683 | See \`config.log' for more details." >&2;} | |
7357c5b6 | 15684 | { (exit 1); exit 1; }; }; } ;; |
d5efd9fc AM |
15685 | esac |
15686 | else | |
15687 | if test "$cross_compiling" = yes; then | |
7357c5b6 AM |
15688 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
15689 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
15690 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
15691 | See \`config.log' for more details." >&5 | |
15692 | echo "$as_me: error: cannot run test program while cross compiling | |
15693 | See \`config.log' for more details." >&2;} | |
15694 | { (exit 1); exit 1; }; }; } | |
d5efd9fc AM |
15695 | else |
15696 | cat >conftest.$ac_ext <<_ACEOF | |
15697 | /* confdefs.h. */ | |
15698 | _ACEOF | |
15699 | cat confdefs.h >>conftest.$ac_ext | |
15700 | cat >>conftest.$ac_ext <<_ACEOF | |
15701 | /* end confdefs.h. */ | |
15702 | $ac_includes_default | |
15703 | long longval () { return (long) (sizeof (long)); } | |
15704 | unsigned long ulongval () { return (long) (sizeof (long)); } | |
15705 | #include <stdio.h> | |
15706 | #include <stdlib.h> | |
15707 | int | |
15708 | main () | |
15709 | { | |
15710 | ||
15711 | FILE *f = fopen ("conftest.val", "w"); | |
15712 | if (! f) | |
15713 | exit (1); | |
15714 | if (((long) (sizeof (long))) < 0) | |
15715 | { | |
15716 | long i = longval (); | |
15717 | if (i != ((long) (sizeof (long)))) | |
15718 | exit (1); | |
15719 | fprintf (f, "%ld\n", i); | |
15720 | } | |
15721 | else | |
15722 | { | |
15723 | unsigned long i = ulongval (); | |
15724 | if (i != ((long) (sizeof (long)))) | |
15725 | exit (1); | |
15726 | fprintf (f, "%lu\n", i); | |
15727 | } | |
15728 | exit (ferror (f) || fclose (f) != 0); | |
15729 | ||
15730 | ; | |
15731 | return 0; | |
15732 | } | |
15733 | _ACEOF | |
15734 | rm -f conftest$ac_exeext | |
15735 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
15736 | (eval $ac_link) 2>&5 | |
15737 | ac_status=$? | |
15738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15739 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
15740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15741 | (eval $ac_try) 2>&5 | |
15742 | ac_status=$? | |
15743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15744 | (exit $ac_status); }; }; then | |
15745 | ac_cv_sizeof_long=`cat conftest.val` | |
15746 | else | |
15747 | echo "$as_me: program exited with status $ac_status" >&5 | |
15748 | echo "$as_me: failed program was:" >&5 | |
15749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15750 | ||
15751 | ( exit $ac_status ) | |
7357c5b6 AM |
15752 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
15753 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d5efd9fc AM |
15754 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 |
15755 | See \`config.log' for more details." >&5 | |
15756 | echo "$as_me: error: cannot compute sizeof (long), 77 | |
15757 | See \`config.log' for more details." >&2;} | |
7357c5b6 | 15758 | { (exit 1); exit 1; }; }; } |
d5efd9fc AM |
15759 | fi |
15760 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
15761 | fi | |
15762 | fi | |
15763 | rm -f conftest.val | |
15764 | else | |
15765 | ac_cv_sizeof_long=0 | |
15766 | fi | |
15767 | fi | |
15768 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 | |
15769 | echo "${ECHO_T}$ac_cv_sizeof_long" >&6 | |
15770 | cat >>confdefs.h <<_ACEOF | |
15771 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
15772 | _ACEOF | |
15773 | ||
15774 | ;; | |
15775 | esac | |
15776 | ||
15777 | if test $acx_cv_header_stdint = stddef.h; then | |
15778 | # Lacking a good header? Test size of everything and deduce all types. | |
15779 | echo "$as_me:$LINENO: checking for int" >&5 | |
15780 | echo $ECHO_N "checking for int... $ECHO_C" >&6 | |
15781 | if test "${ac_cv_type_int+set}" = set; then | |
15782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15783 | else | |
15784 | cat >conftest.$ac_ext <<_ACEOF | |
15785 | /* confdefs.h. */ | |
15786 | _ACEOF | |
15787 | cat confdefs.h >>conftest.$ac_ext | |
15788 | cat >>conftest.$ac_ext <<_ACEOF | |
15789 | /* end confdefs.h. */ | |
15790 | $ac_includes_default | |
15791 | int | |
15792 | main () | |
15793 | { | |
15794 | if ((int *) 0) | |
15795 | return 0; | |
15796 | if (sizeof (int)) | |
15797 | return 0; | |
15798 | ; | |
15799 | return 0; | |
15800 | } | |
15801 | _ACEOF | |
15802 | rm -f conftest.$ac_objext | |
15803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15804 | (eval $ac_compile) 2>conftest.er1 | |
15805 | ac_status=$? | |
15806 | grep -v '^ *+' conftest.er1 >conftest.err | |
15807 | rm -f conftest.er1 | |
15808 | cat conftest.err >&5 | |
15809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15810 | (exit $ac_status); } && | |
7357c5b6 AM |
15811 | { ac_try='test -z "$ac_c_werror_flag" |
15812 | || test ! -s conftest.err' | |
d5efd9fc AM |
15813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15814 | (eval $ac_try) 2>&5 | |
15815 | ac_status=$? | |
15816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15817 | (exit $ac_status); }; } && | |
15818 | { ac_try='test -s conftest.$ac_objext' | |
15819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15820 | (eval $ac_try) 2>&5 | |
15821 | ac_status=$? | |
15822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15823 | (exit $ac_status); }; }; then | |
15824 | ac_cv_type_int=yes | |
15825 | else | |
15826 | echo "$as_me: failed program was:" >&5 | |
15827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15828 | ||
15829 | ac_cv_type_int=no | |
15830 | fi | |
15831 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15832 | fi | |
15833 | echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 | |
15834 | echo "${ECHO_T}$ac_cv_type_int" >&6 | |
15835 | ||
15836 | echo "$as_me:$LINENO: checking size of int" >&5 | |
15837 | echo $ECHO_N "checking size of int... $ECHO_C" >&6 | |
15838 | if test "${ac_cv_sizeof_int+set}" = set; then | |
15839 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15840 | else | |
15841 | if test "$ac_cv_type_int" = yes; then | |
15842 | # The cast to unsigned long works around a bug in the HP C Compiler | |
15843 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
15844 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
15845 | # This bug is HP SR number 8606223364. | |
15846 | if test "$cross_compiling" = yes; then | |
15847 | # Depending upon the size, compute the lo and hi bounds. | |
15848 | cat >conftest.$ac_ext <<_ACEOF | |
15849 | /* confdefs.h. */ | |
15850 | _ACEOF | |
15851 | cat confdefs.h >>conftest.$ac_ext | |
15852 | cat >>conftest.$ac_ext <<_ACEOF | |
15853 | /* end confdefs.h. */ | |
15854 | $ac_includes_default | |
15855 | int | |
15856 | main () | |
15857 | { | |
15858 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; | |
15859 | test_array [0] = 0 | |
15860 | ||
15861 | ; | |
15862 | return 0; | |
15863 | } | |
15864 | _ACEOF | |
15865 | rm -f conftest.$ac_objext | |
15866 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15867 | (eval $ac_compile) 2>conftest.er1 | |
15868 | ac_status=$? | |
15869 | grep -v '^ *+' conftest.er1 >conftest.err | |
15870 | rm -f conftest.er1 | |
15871 | cat conftest.err >&5 | |
15872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15873 | (exit $ac_status); } && | |
7357c5b6 AM |
15874 | { ac_try='test -z "$ac_c_werror_flag" |
15875 | || test ! -s conftest.err' | |
d5efd9fc AM |
15876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15877 | (eval $ac_try) 2>&5 | |
15878 | ac_status=$? | |
15879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15880 | (exit $ac_status); }; } && | |
15881 | { ac_try='test -s conftest.$ac_objext' | |
15882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15883 | (eval $ac_try) 2>&5 | |
15884 | ac_status=$? | |
15885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15886 | (exit $ac_status); }; }; then | |
15887 | ac_lo=0 ac_mid=0 | |
15888 | while :; do | |
15889 | cat >conftest.$ac_ext <<_ACEOF | |
15890 | /* confdefs.h. */ | |
15891 | _ACEOF | |
15892 | cat confdefs.h >>conftest.$ac_ext | |
15893 | cat >>conftest.$ac_ext <<_ACEOF | |
15894 | /* end confdefs.h. */ | |
15895 | $ac_includes_default | |
15896 | int | |
15897 | main () | |
15898 | { | |
15899 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
15900 | test_array [0] = 0 | |
15901 | ||
15902 | ; | |
15903 | return 0; | |
15904 | } | |
15905 | _ACEOF | |
15906 | rm -f conftest.$ac_objext | |
15907 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15908 | (eval $ac_compile) 2>conftest.er1 | |
15909 | ac_status=$? | |
15910 | grep -v '^ *+' conftest.er1 >conftest.err | |
15911 | rm -f conftest.er1 | |
15912 | cat conftest.err >&5 | |
15913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15914 | (exit $ac_status); } && | |
7357c5b6 AM |
15915 | { ac_try='test -z "$ac_c_werror_flag" |
15916 | || test ! -s conftest.err' | |
d5efd9fc AM |
15917 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
15918 | (eval $ac_try) 2>&5 | |
15919 | ac_status=$? | |
15920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15921 | (exit $ac_status); }; } && | |
15922 | { ac_try='test -s conftest.$ac_objext' | |
15923 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
15924 | (eval $ac_try) 2>&5 | |
15925 | ac_status=$? | |
15926 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
15927 | (exit $ac_status); }; }; then | |
15928 | ac_hi=$ac_mid; break | |
15929 | else | |
15930 | echo "$as_me: failed program was:" >&5 | |
15931 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15932 | ||
15933 | ac_lo=`expr $ac_mid + 1` | |
15934 | if test $ac_lo -le $ac_mid; then | |
15935 | ac_lo= ac_hi= | |
15936 | break | |
15937 | fi | |
15938 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
15939 | fi | |
15940 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
15941 | done | |
15942 | else | |
15943 | echo "$as_me: failed program was:" >&5 | |
15944 | sed 's/^/| /' conftest.$ac_ext >&5 | |
15945 | ||
15946 | cat >conftest.$ac_ext <<_ACEOF | |
15947 | /* confdefs.h. */ | |
15948 | _ACEOF | |
15949 | cat confdefs.h >>conftest.$ac_ext | |
15950 | cat >>conftest.$ac_ext <<_ACEOF | |
15951 | /* end confdefs.h. */ | |
15952 | $ac_includes_default | |
15953 | int | |
15954 | main () | |
15955 | { | |
15956 | static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; | |
15957 | test_array [0] = 0 | |
15958 | ||
15959 | ; | |
15960 | return 0; | |
15961 | } | |
15962 | _ACEOF | |
15963 | rm -f conftest.$ac_objext | |
15964 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
15965 | (eval $ac_compile) 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); } && | |
7357c5b6 AM |
15972 | { ac_try='test -z "$ac_c_werror_flag" |
15973 | || test ! -s conftest.err' | |
d5efd9fc AM |
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_objext' | |
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_hi=-1 ac_mid=-1 | |
15986 | while :; do | |
15987 | cat >conftest.$ac_ext <<_ACEOF | |
15988 | /* confdefs.h. */ | |
15989 | _ACEOF | |
15990 | cat confdefs.h >>conftest.$ac_ext | |
15991 | cat >>conftest.$ac_ext <<_ACEOF | |
15992 | /* end confdefs.h. */ | |
15993 | $ac_includes_default | |
15994 | int | |
15995 | main () | |
15996 | { | |
15997 | static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; | |
15998 | test_array [0] = 0 | |
15999 | ||
16000 | ; | |
16001 | return 0; | |
16002 | } | |
16003 | _ACEOF | |
16004 | rm -f conftest.$ac_objext | |
16005 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16006 | (eval $ac_compile) 2>conftest.er1 | |
16007 | ac_status=$? | |
16008 | grep -v '^ *+' conftest.er1 >conftest.err | |
16009 | rm -f conftest.er1 | |
16010 | cat conftest.err >&5 | |
16011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16012 | (exit $ac_status); } && | |
7357c5b6 AM |
16013 | { ac_try='test -z "$ac_c_werror_flag" |
16014 | || test ! -s conftest.err' | |
d5efd9fc AM |
16015 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16016 | (eval $ac_try) 2>&5 | |
16017 | ac_status=$? | |
16018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16019 | (exit $ac_status); }; } && | |
16020 | { ac_try='test -s conftest.$ac_objext' | |
16021 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16022 | (eval $ac_try) 2>&5 | |
16023 | ac_status=$? | |
16024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16025 | (exit $ac_status); }; }; then | |
16026 | ac_lo=$ac_mid; break | |
16027 | else | |
16028 | echo "$as_me: failed program was:" >&5 | |
16029 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16030 | ||
16031 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
16032 | if test $ac_mid -le $ac_hi; then | |
16033 | ac_lo= ac_hi= | |
16034 | break | |
16035 | fi | |
16036 | ac_mid=`expr 2 '*' $ac_mid` | |
16037 | fi | |
16038 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16039 | done | |
16040 | else | |
16041 | echo "$as_me: failed program was:" >&5 | |
16042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16043 | ||
16044 | ac_lo= ac_hi= | |
16045 | fi | |
16046 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16047 | fi | |
16048 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16049 | # Binary search between lo and hi bounds. | |
16050 | while test "x$ac_lo" != "x$ac_hi"; do | |
16051 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16052 | cat >conftest.$ac_ext <<_ACEOF | |
16053 | /* confdefs.h. */ | |
16054 | _ACEOF | |
16055 | cat confdefs.h >>conftest.$ac_ext | |
16056 | cat >>conftest.$ac_ext <<_ACEOF | |
16057 | /* end confdefs.h. */ | |
16058 | $ac_includes_default | |
16059 | int | |
16060 | main () | |
16061 | { | |
16062 | static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; | |
16063 | test_array [0] = 0 | |
16064 | ||
16065 | ; | |
16066 | return 0; | |
16067 | } | |
16068 | _ACEOF | |
16069 | rm -f conftest.$ac_objext | |
16070 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16071 | (eval $ac_compile) 2>conftest.er1 | |
16072 | ac_status=$? | |
16073 | grep -v '^ *+' conftest.er1 >conftest.err | |
16074 | rm -f conftest.er1 | |
16075 | cat conftest.err >&5 | |
16076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16077 | (exit $ac_status); } && | |
7357c5b6 AM |
16078 | { ac_try='test -z "$ac_c_werror_flag" |
16079 | || test ! -s conftest.err' | |
d5efd9fc AM |
16080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16081 | (eval $ac_try) 2>&5 | |
16082 | ac_status=$? | |
16083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16084 | (exit $ac_status); }; } && | |
16085 | { ac_try='test -s conftest.$ac_objext' | |
16086 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16087 | (eval $ac_try) 2>&5 | |
16088 | ac_status=$? | |
16089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16090 | (exit $ac_status); }; }; then | |
16091 | ac_hi=$ac_mid | |
16092 | else | |
16093 | echo "$as_me: failed program was:" >&5 | |
16094 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16095 | ||
16096 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16097 | fi | |
16098 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16099 | done | |
16100 | case $ac_lo in | |
16101 | ?*) ac_cv_sizeof_int=$ac_lo;; | |
7357c5b6 AM |
16102 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
16103 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16104 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 | |
d5efd9fc AM |
16105 | See \`config.log' for more details." >&5 |
16106 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
16107 | See \`config.log' for more details." >&2;} | |
7357c5b6 | 16108 | { (exit 1); exit 1; }; }; } ;; |
d5efd9fc AM |
16109 | esac |
16110 | else | |
16111 | if test "$cross_compiling" = yes; then | |
7357c5b6 AM |
16112 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
16113 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16114 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16115 | See \`config.log' for more details." >&5 | |
16116 | echo "$as_me: error: cannot run test program while cross compiling | |
16117 | See \`config.log' for more details." >&2;} | |
16118 | { (exit 1); exit 1; }; }; } | |
d5efd9fc AM |
16119 | else |
16120 | cat >conftest.$ac_ext <<_ACEOF | |
16121 | /* confdefs.h. */ | |
16122 | _ACEOF | |
16123 | cat confdefs.h >>conftest.$ac_ext | |
16124 | cat >>conftest.$ac_ext <<_ACEOF | |
16125 | /* end confdefs.h. */ | |
16126 | $ac_includes_default | |
16127 | long longval () { return (long) (sizeof (int)); } | |
16128 | unsigned long ulongval () { return (long) (sizeof (int)); } | |
16129 | #include <stdio.h> | |
16130 | #include <stdlib.h> | |
16131 | int | |
16132 | main () | |
16133 | { | |
16134 | ||
16135 | FILE *f = fopen ("conftest.val", "w"); | |
16136 | if (! f) | |
16137 | exit (1); | |
16138 | if (((long) (sizeof (int))) < 0) | |
16139 | { | |
16140 | long i = longval (); | |
16141 | if (i != ((long) (sizeof (int)))) | |
16142 | exit (1); | |
16143 | fprintf (f, "%ld\n", i); | |
16144 | } | |
16145 | else | |
16146 | { | |
16147 | unsigned long i = ulongval (); | |
16148 | if (i != ((long) (sizeof (int)))) | |
16149 | exit (1); | |
16150 | fprintf (f, "%lu\n", i); | |
16151 | } | |
16152 | exit (ferror (f) || fclose (f) != 0); | |
16153 | ||
16154 | ; | |
16155 | return 0; | |
16156 | } | |
16157 | _ACEOF | |
16158 | rm -f conftest$ac_exeext | |
16159 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16160 | (eval $ac_link) 2>&5 | |
16161 | ac_status=$? | |
16162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16163 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16164 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16165 | (eval $ac_try) 2>&5 | |
16166 | ac_status=$? | |
16167 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16168 | (exit $ac_status); }; }; then | |
16169 | ac_cv_sizeof_int=`cat conftest.val` | |
16170 | else | |
16171 | echo "$as_me: program exited with status $ac_status" >&5 | |
16172 | echo "$as_me: failed program was:" >&5 | |
16173 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16174 | ||
16175 | ( exit $ac_status ) | |
7357c5b6 AM |
16176 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
16177 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d5efd9fc AM |
16178 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 |
16179 | See \`config.log' for more details." >&5 | |
16180 | echo "$as_me: error: cannot compute sizeof (int), 77 | |
16181 | See \`config.log' for more details." >&2;} | |
7357c5b6 | 16182 | { (exit 1); exit 1; }; }; } |
d5efd9fc AM |
16183 | fi |
16184 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16185 | fi | |
16186 | fi | |
16187 | rm -f conftest.val | |
16188 | else | |
16189 | ac_cv_sizeof_int=0 | |
16190 | fi | |
16191 | fi | |
16192 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 | |
16193 | echo "${ECHO_T}$ac_cv_sizeof_int" >&6 | |
16194 | cat >>confdefs.h <<_ACEOF | |
16195 | #define SIZEOF_INT $ac_cv_sizeof_int | |
16196 | _ACEOF | |
16197 | ||
16198 | ||
16199 | echo "$as_me:$LINENO: checking for short" >&5 | |
16200 | echo $ECHO_N "checking for short... $ECHO_C" >&6 | |
16201 | if test "${ac_cv_type_short+set}" = set; then | |
16202 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16203 | else | |
16204 | cat >conftest.$ac_ext <<_ACEOF | |
16205 | /* confdefs.h. */ | |
16206 | _ACEOF | |
16207 | cat confdefs.h >>conftest.$ac_ext | |
16208 | cat >>conftest.$ac_ext <<_ACEOF | |
16209 | /* end confdefs.h. */ | |
16210 | $ac_includes_default | |
16211 | int | |
16212 | main () | |
16213 | { | |
16214 | if ((short *) 0) | |
16215 | return 0; | |
16216 | if (sizeof (short)) | |
16217 | return 0; | |
16218 | ; | |
16219 | return 0; | |
16220 | } | |
16221 | _ACEOF | |
16222 | rm -f conftest.$ac_objext | |
16223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16224 | (eval $ac_compile) 2>conftest.er1 | |
16225 | ac_status=$? | |
16226 | grep -v '^ *+' conftest.er1 >conftest.err | |
16227 | rm -f conftest.er1 | |
16228 | cat conftest.err >&5 | |
16229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16230 | (exit $ac_status); } && | |
7357c5b6 AM |
16231 | { ac_try='test -z "$ac_c_werror_flag" |
16232 | || test ! -s conftest.err' | |
d5efd9fc AM |
16233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16234 | (eval $ac_try) 2>&5 | |
16235 | ac_status=$? | |
16236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16237 | (exit $ac_status); }; } && | |
16238 | { ac_try='test -s conftest.$ac_objext' | |
16239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16240 | (eval $ac_try) 2>&5 | |
16241 | ac_status=$? | |
16242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16243 | (exit $ac_status); }; }; then | |
16244 | ac_cv_type_short=yes | |
16245 | else | |
16246 | echo "$as_me: failed program was:" >&5 | |
16247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16248 | ||
16249 | ac_cv_type_short=no | |
16250 | fi | |
16251 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16252 | fi | |
16253 | echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 | |
16254 | echo "${ECHO_T}$ac_cv_type_short" >&6 | |
16255 | ||
16256 | echo "$as_me:$LINENO: checking size of short" >&5 | |
16257 | echo $ECHO_N "checking size of short... $ECHO_C" >&6 | |
16258 | if test "${ac_cv_sizeof_short+set}" = set; then | |
16259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16260 | else | |
16261 | if test "$ac_cv_type_short" = yes; then | |
16262 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16263 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16264 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16265 | # This bug is HP SR number 8606223364. | |
16266 | if test "$cross_compiling" = yes; then | |
16267 | # Depending upon the size, compute the lo and hi bounds. | |
16268 | cat >conftest.$ac_ext <<_ACEOF | |
16269 | /* confdefs.h. */ | |
16270 | _ACEOF | |
16271 | cat confdefs.h >>conftest.$ac_ext | |
16272 | cat >>conftest.$ac_ext <<_ACEOF | |
16273 | /* end confdefs.h. */ | |
16274 | $ac_includes_default | |
16275 | int | |
16276 | main () | |
16277 | { | |
16278 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; | |
16279 | test_array [0] = 0 | |
16280 | ||
16281 | ; | |
16282 | return 0; | |
16283 | } | |
16284 | _ACEOF | |
16285 | rm -f conftest.$ac_objext | |
16286 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16287 | (eval $ac_compile) 2>conftest.er1 | |
16288 | ac_status=$? | |
16289 | grep -v '^ *+' conftest.er1 >conftest.err | |
16290 | rm -f conftest.er1 | |
16291 | cat conftest.err >&5 | |
16292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16293 | (exit $ac_status); } && | |
7357c5b6 AM |
16294 | { ac_try='test -z "$ac_c_werror_flag" |
16295 | || test ! -s conftest.err' | |
d5efd9fc AM |
16296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16297 | (eval $ac_try) 2>&5 | |
16298 | ac_status=$? | |
16299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16300 | (exit $ac_status); }; } && | |
16301 | { ac_try='test -s conftest.$ac_objext' | |
16302 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16303 | (eval $ac_try) 2>&5 | |
16304 | ac_status=$? | |
16305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16306 | (exit $ac_status); }; }; then | |
16307 | ac_lo=0 ac_mid=0 | |
16308 | while :; do | |
16309 | cat >conftest.$ac_ext <<_ACEOF | |
16310 | /* confdefs.h. */ | |
16311 | _ACEOF | |
16312 | cat confdefs.h >>conftest.$ac_ext | |
16313 | cat >>conftest.$ac_ext <<_ACEOF | |
16314 | /* end confdefs.h. */ | |
16315 | $ac_includes_default | |
16316 | int | |
16317 | main () | |
16318 | { | |
16319 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
16320 | test_array [0] = 0 | |
16321 | ||
16322 | ; | |
16323 | return 0; | |
16324 | } | |
16325 | _ACEOF | |
16326 | rm -f conftest.$ac_objext | |
16327 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16328 | (eval $ac_compile) 2>conftest.er1 | |
16329 | ac_status=$? | |
16330 | grep -v '^ *+' conftest.er1 >conftest.err | |
16331 | rm -f conftest.er1 | |
16332 | cat conftest.err >&5 | |
16333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16334 | (exit $ac_status); } && | |
7357c5b6 AM |
16335 | { ac_try='test -z "$ac_c_werror_flag" |
16336 | || test ! -s conftest.err' | |
d5efd9fc AM |
16337 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16338 | (eval $ac_try) 2>&5 | |
16339 | ac_status=$? | |
16340 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16341 | (exit $ac_status); }; } && | |
16342 | { ac_try='test -s conftest.$ac_objext' | |
16343 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16344 | (eval $ac_try) 2>&5 | |
16345 | ac_status=$? | |
16346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16347 | (exit $ac_status); }; }; then | |
16348 | ac_hi=$ac_mid; break | |
16349 | else | |
16350 | echo "$as_me: failed program was:" >&5 | |
16351 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16352 | ||
16353 | ac_lo=`expr $ac_mid + 1` | |
16354 | if test $ac_lo -le $ac_mid; then | |
16355 | ac_lo= ac_hi= | |
16356 | break | |
16357 | fi | |
16358 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
16359 | fi | |
16360 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16361 | done | |
16362 | else | |
16363 | echo "$as_me: failed program was:" >&5 | |
16364 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16365 | ||
16366 | cat >conftest.$ac_ext <<_ACEOF | |
16367 | /* confdefs.h. */ | |
16368 | _ACEOF | |
16369 | cat confdefs.h >>conftest.$ac_ext | |
16370 | cat >>conftest.$ac_ext <<_ACEOF | |
16371 | /* end confdefs.h. */ | |
16372 | $ac_includes_default | |
16373 | int | |
16374 | main () | |
16375 | { | |
16376 | static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; | |
16377 | test_array [0] = 0 | |
16378 | ||
16379 | ; | |
16380 | return 0; | |
16381 | } | |
16382 | _ACEOF | |
16383 | rm -f conftest.$ac_objext | |
16384 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16385 | (eval $ac_compile) 2>conftest.er1 | |
16386 | ac_status=$? | |
16387 | grep -v '^ *+' conftest.er1 >conftest.err | |
16388 | rm -f conftest.er1 | |
16389 | cat conftest.err >&5 | |
16390 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16391 | (exit $ac_status); } && | |
7357c5b6 AM |
16392 | { ac_try='test -z "$ac_c_werror_flag" |
16393 | || test ! -s conftest.err' | |
d5efd9fc AM |
16394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16395 | (eval $ac_try) 2>&5 | |
16396 | ac_status=$? | |
16397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16398 | (exit $ac_status); }; } && | |
16399 | { ac_try='test -s conftest.$ac_objext' | |
16400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16401 | (eval $ac_try) 2>&5 | |
16402 | ac_status=$? | |
16403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16404 | (exit $ac_status); }; }; then | |
16405 | ac_hi=-1 ac_mid=-1 | |
16406 | while :; do | |
16407 | cat >conftest.$ac_ext <<_ACEOF | |
16408 | /* confdefs.h. */ | |
16409 | _ACEOF | |
16410 | cat confdefs.h >>conftest.$ac_ext | |
16411 | cat >>conftest.$ac_ext <<_ACEOF | |
16412 | /* end confdefs.h. */ | |
16413 | $ac_includes_default | |
16414 | int | |
16415 | main () | |
16416 | { | |
16417 | static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; | |
16418 | test_array [0] = 0 | |
16419 | ||
16420 | ; | |
16421 | return 0; | |
16422 | } | |
16423 | _ACEOF | |
16424 | rm -f conftest.$ac_objext | |
16425 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16426 | (eval $ac_compile) 2>conftest.er1 | |
16427 | ac_status=$? | |
16428 | grep -v '^ *+' conftest.er1 >conftest.err | |
16429 | rm -f conftest.er1 | |
16430 | cat conftest.err >&5 | |
16431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16432 | (exit $ac_status); } && | |
7357c5b6 AM |
16433 | { ac_try='test -z "$ac_c_werror_flag" |
16434 | || test ! -s conftest.err' | |
d5efd9fc AM |
16435 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16436 | (eval $ac_try) 2>&5 | |
16437 | ac_status=$? | |
16438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16439 | (exit $ac_status); }; } && | |
16440 | { ac_try='test -s conftest.$ac_objext' | |
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); }; }; then | |
16446 | ac_lo=$ac_mid; break | |
16447 | else | |
16448 | echo "$as_me: failed program was:" >&5 | |
16449 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16450 | ||
16451 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
16452 | if test $ac_mid -le $ac_hi; then | |
16453 | ac_lo= ac_hi= | |
16454 | break | |
16455 | fi | |
16456 | ac_mid=`expr 2 '*' $ac_mid` | |
16457 | fi | |
16458 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16459 | done | |
16460 | else | |
16461 | echo "$as_me: failed program was:" >&5 | |
16462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16463 | ||
16464 | ac_lo= ac_hi= | |
16465 | fi | |
16466 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16467 | fi | |
16468 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16469 | # Binary search between lo and hi bounds. | |
16470 | while test "x$ac_lo" != "x$ac_hi"; do | |
16471 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16472 | cat >conftest.$ac_ext <<_ACEOF | |
16473 | /* confdefs.h. */ | |
16474 | _ACEOF | |
16475 | cat confdefs.h >>conftest.$ac_ext | |
16476 | cat >>conftest.$ac_ext <<_ACEOF | |
16477 | /* end confdefs.h. */ | |
16478 | $ac_includes_default | |
16479 | int | |
16480 | main () | |
16481 | { | |
16482 | static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; | |
16483 | test_array [0] = 0 | |
16484 | ||
16485 | ; | |
16486 | return 0; | |
16487 | } | |
16488 | _ACEOF | |
16489 | rm -f conftest.$ac_objext | |
16490 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16491 | (eval $ac_compile) 2>conftest.er1 | |
16492 | ac_status=$? | |
16493 | grep -v '^ *+' conftest.er1 >conftest.err | |
16494 | rm -f conftest.er1 | |
16495 | cat conftest.err >&5 | |
16496 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16497 | (exit $ac_status); } && | |
7357c5b6 AM |
16498 | { ac_try='test -z "$ac_c_werror_flag" |
16499 | || test ! -s conftest.err' | |
d5efd9fc AM |
16500 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16501 | (eval $ac_try) 2>&5 | |
16502 | ac_status=$? | |
16503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16504 | (exit $ac_status); }; } && | |
16505 | { ac_try='test -s conftest.$ac_objext' | |
16506 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16507 | (eval $ac_try) 2>&5 | |
16508 | ac_status=$? | |
16509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16510 | (exit $ac_status); }; }; then | |
16511 | ac_hi=$ac_mid | |
16512 | else | |
16513 | echo "$as_me: failed program was:" >&5 | |
16514 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16515 | ||
16516 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16517 | fi | |
16518 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16519 | done | |
16520 | case $ac_lo in | |
16521 | ?*) ac_cv_sizeof_short=$ac_lo;; | |
7357c5b6 AM |
16522 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
16523 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16524 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 | |
d5efd9fc AM |
16525 | See \`config.log' for more details." >&5 |
16526 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
16527 | See \`config.log' for more details." >&2;} | |
7357c5b6 | 16528 | { (exit 1); exit 1; }; }; } ;; |
d5efd9fc AM |
16529 | esac |
16530 | else | |
16531 | if test "$cross_compiling" = yes; then | |
7357c5b6 AM |
16532 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
16533 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16534 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16535 | See \`config.log' for more details." >&5 | |
16536 | echo "$as_me: error: cannot run test program while cross compiling | |
16537 | See \`config.log' for more details." >&2;} | |
16538 | { (exit 1); exit 1; }; }; } | |
d5efd9fc AM |
16539 | else |
16540 | cat >conftest.$ac_ext <<_ACEOF | |
16541 | /* confdefs.h. */ | |
16542 | _ACEOF | |
16543 | cat confdefs.h >>conftest.$ac_ext | |
16544 | cat >>conftest.$ac_ext <<_ACEOF | |
16545 | /* end confdefs.h. */ | |
16546 | $ac_includes_default | |
16547 | long longval () { return (long) (sizeof (short)); } | |
16548 | unsigned long ulongval () { return (long) (sizeof (short)); } | |
16549 | #include <stdio.h> | |
16550 | #include <stdlib.h> | |
16551 | int | |
16552 | main () | |
16553 | { | |
16554 | ||
16555 | FILE *f = fopen ("conftest.val", "w"); | |
16556 | if (! f) | |
16557 | exit (1); | |
16558 | if (((long) (sizeof (short))) < 0) | |
16559 | { | |
16560 | long i = longval (); | |
16561 | if (i != ((long) (sizeof (short)))) | |
16562 | exit (1); | |
16563 | fprintf (f, "%ld\n", i); | |
16564 | } | |
16565 | else | |
16566 | { | |
16567 | unsigned long i = ulongval (); | |
16568 | if (i != ((long) (sizeof (short)))) | |
16569 | exit (1); | |
16570 | fprintf (f, "%lu\n", i); | |
16571 | } | |
16572 | exit (ferror (f) || fclose (f) != 0); | |
16573 | ||
16574 | ; | |
16575 | return 0; | |
16576 | } | |
16577 | _ACEOF | |
16578 | rm -f conftest$ac_exeext | |
16579 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
16580 | (eval $ac_link) 2>&5 | |
16581 | ac_status=$? | |
16582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16583 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
16584 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16585 | (eval $ac_try) 2>&5 | |
16586 | ac_status=$? | |
16587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16588 | (exit $ac_status); }; }; then | |
16589 | ac_cv_sizeof_short=`cat conftest.val` | |
16590 | else | |
16591 | echo "$as_me: program exited with status $ac_status" >&5 | |
16592 | echo "$as_me: failed program was:" >&5 | |
16593 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16594 | ||
16595 | ( exit $ac_status ) | |
7357c5b6 AM |
16596 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
16597 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d5efd9fc AM |
16598 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 |
16599 | See \`config.log' for more details." >&5 | |
16600 | echo "$as_me: error: cannot compute sizeof (short), 77 | |
16601 | See \`config.log' for more details." >&2;} | |
7357c5b6 | 16602 | { (exit 1); exit 1; }; }; } |
d5efd9fc AM |
16603 | fi |
16604 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
16605 | fi | |
16606 | fi | |
16607 | rm -f conftest.val | |
16608 | else | |
16609 | ac_cv_sizeof_short=0 | |
16610 | fi | |
16611 | fi | |
16612 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 | |
16613 | echo "${ECHO_T}$ac_cv_sizeof_short" >&6 | |
16614 | cat >>confdefs.h <<_ACEOF | |
16615 | #define SIZEOF_SHORT $ac_cv_sizeof_short | |
16616 | _ACEOF | |
16617 | ||
16618 | ||
16619 | echo "$as_me:$LINENO: checking for char" >&5 | |
16620 | echo $ECHO_N "checking for char... $ECHO_C" >&6 | |
16621 | if test "${ac_cv_type_char+set}" = set; then | |
16622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16623 | else | |
16624 | cat >conftest.$ac_ext <<_ACEOF | |
16625 | /* confdefs.h. */ | |
16626 | _ACEOF | |
16627 | cat confdefs.h >>conftest.$ac_ext | |
16628 | cat >>conftest.$ac_ext <<_ACEOF | |
16629 | /* end confdefs.h. */ | |
16630 | $ac_includes_default | |
16631 | int | |
16632 | main () | |
16633 | { | |
16634 | if ((char *) 0) | |
16635 | return 0; | |
16636 | if (sizeof (char)) | |
16637 | return 0; | |
16638 | ; | |
16639 | return 0; | |
16640 | } | |
16641 | _ACEOF | |
16642 | rm -f conftest.$ac_objext | |
16643 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16644 | (eval $ac_compile) 2>conftest.er1 | |
16645 | ac_status=$? | |
16646 | grep -v '^ *+' conftest.er1 >conftest.err | |
16647 | rm -f conftest.er1 | |
16648 | cat conftest.err >&5 | |
16649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16650 | (exit $ac_status); } && | |
7357c5b6 AM |
16651 | { ac_try='test -z "$ac_c_werror_flag" |
16652 | || test ! -s conftest.err' | |
d5efd9fc AM |
16653 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16654 | (eval $ac_try) 2>&5 | |
16655 | ac_status=$? | |
16656 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16657 | (exit $ac_status); }; } && | |
16658 | { ac_try='test -s conftest.$ac_objext' | |
16659 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16660 | (eval $ac_try) 2>&5 | |
16661 | ac_status=$? | |
16662 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16663 | (exit $ac_status); }; }; then | |
16664 | ac_cv_type_char=yes | |
16665 | else | |
16666 | echo "$as_me: failed program was:" >&5 | |
16667 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16668 | ||
16669 | ac_cv_type_char=no | |
16670 | fi | |
16671 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16672 | fi | |
16673 | echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 | |
16674 | echo "${ECHO_T}$ac_cv_type_char" >&6 | |
16675 | ||
16676 | echo "$as_me:$LINENO: checking size of char" >&5 | |
16677 | echo $ECHO_N "checking size of char... $ECHO_C" >&6 | |
16678 | if test "${ac_cv_sizeof_char+set}" = set; then | |
16679 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16680 | else | |
16681 | if test "$ac_cv_type_char" = yes; then | |
16682 | # The cast to unsigned long works around a bug in the HP C Compiler | |
16683 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
16684 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
16685 | # This bug is HP SR number 8606223364. | |
16686 | if test "$cross_compiling" = yes; then | |
16687 | # Depending upon the size, compute the lo and hi bounds. | |
16688 | cat >conftest.$ac_ext <<_ACEOF | |
16689 | /* confdefs.h. */ | |
16690 | _ACEOF | |
16691 | cat confdefs.h >>conftest.$ac_ext | |
16692 | cat >>conftest.$ac_ext <<_ACEOF | |
16693 | /* end confdefs.h. */ | |
16694 | $ac_includes_default | |
16695 | int | |
16696 | main () | |
16697 | { | |
16698 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; | |
16699 | test_array [0] = 0 | |
16700 | ||
16701 | ; | |
16702 | return 0; | |
16703 | } | |
16704 | _ACEOF | |
16705 | rm -f conftest.$ac_objext | |
16706 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16707 | (eval $ac_compile) 2>conftest.er1 | |
16708 | ac_status=$? | |
16709 | grep -v '^ *+' conftest.er1 >conftest.err | |
16710 | rm -f conftest.er1 | |
16711 | cat conftest.err >&5 | |
16712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16713 | (exit $ac_status); } && | |
7357c5b6 AM |
16714 | { ac_try='test -z "$ac_c_werror_flag" |
16715 | || test ! -s conftest.err' | |
d5efd9fc AM |
16716 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16717 | (eval $ac_try) 2>&5 | |
16718 | ac_status=$? | |
16719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16720 | (exit $ac_status); }; } && | |
16721 | { ac_try='test -s conftest.$ac_objext' | |
16722 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16723 | (eval $ac_try) 2>&5 | |
16724 | ac_status=$? | |
16725 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16726 | (exit $ac_status); }; }; then | |
16727 | ac_lo=0 ac_mid=0 | |
16728 | while :; do | |
16729 | cat >conftest.$ac_ext <<_ACEOF | |
16730 | /* confdefs.h. */ | |
16731 | _ACEOF | |
16732 | cat confdefs.h >>conftest.$ac_ext | |
16733 | cat >>conftest.$ac_ext <<_ACEOF | |
16734 | /* end confdefs.h. */ | |
16735 | $ac_includes_default | |
16736 | int | |
16737 | main () | |
16738 | { | |
16739 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
16740 | test_array [0] = 0 | |
16741 | ||
16742 | ; | |
16743 | return 0; | |
16744 | } | |
16745 | _ACEOF | |
16746 | rm -f conftest.$ac_objext | |
16747 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16748 | (eval $ac_compile) 2>conftest.er1 | |
16749 | ac_status=$? | |
16750 | grep -v '^ *+' conftest.er1 >conftest.err | |
16751 | rm -f conftest.er1 | |
16752 | cat conftest.err >&5 | |
16753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16754 | (exit $ac_status); } && | |
7357c5b6 AM |
16755 | { ac_try='test -z "$ac_c_werror_flag" |
16756 | || test ! -s conftest.err' | |
d5efd9fc AM |
16757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16758 | (eval $ac_try) 2>&5 | |
16759 | ac_status=$? | |
16760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16761 | (exit $ac_status); }; } && | |
16762 | { ac_try='test -s conftest.$ac_objext' | |
16763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16764 | (eval $ac_try) 2>&5 | |
16765 | ac_status=$? | |
16766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16767 | (exit $ac_status); }; }; then | |
16768 | ac_hi=$ac_mid; break | |
16769 | else | |
16770 | echo "$as_me: failed program was:" >&5 | |
16771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16772 | ||
16773 | ac_lo=`expr $ac_mid + 1` | |
16774 | if test $ac_lo -le $ac_mid; then | |
16775 | ac_lo= ac_hi= | |
16776 | break | |
16777 | fi | |
16778 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
16779 | fi | |
16780 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16781 | done | |
16782 | else | |
16783 | echo "$as_me: failed program was:" >&5 | |
16784 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16785 | ||
16786 | cat >conftest.$ac_ext <<_ACEOF | |
16787 | /* confdefs.h. */ | |
16788 | _ACEOF | |
16789 | cat confdefs.h >>conftest.$ac_ext | |
16790 | cat >>conftest.$ac_ext <<_ACEOF | |
16791 | /* end confdefs.h. */ | |
16792 | $ac_includes_default | |
16793 | int | |
16794 | main () | |
16795 | { | |
16796 | static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; | |
16797 | test_array [0] = 0 | |
16798 | ||
16799 | ; | |
16800 | return 0; | |
16801 | } | |
16802 | _ACEOF | |
16803 | rm -f conftest.$ac_objext | |
16804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16805 | (eval $ac_compile) 2>conftest.er1 | |
16806 | ac_status=$? | |
16807 | grep -v '^ *+' conftest.er1 >conftest.err | |
16808 | rm -f conftest.er1 | |
16809 | cat conftest.err >&5 | |
16810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16811 | (exit $ac_status); } && | |
7357c5b6 AM |
16812 | { ac_try='test -z "$ac_c_werror_flag" |
16813 | || test ! -s conftest.err' | |
d5efd9fc AM |
16814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16815 | (eval $ac_try) 2>&5 | |
16816 | ac_status=$? | |
16817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16818 | (exit $ac_status); }; } && | |
16819 | { ac_try='test -s conftest.$ac_objext' | |
16820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16821 | (eval $ac_try) 2>&5 | |
16822 | ac_status=$? | |
16823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16824 | (exit $ac_status); }; }; then | |
16825 | ac_hi=-1 ac_mid=-1 | |
16826 | while :; do | |
16827 | cat >conftest.$ac_ext <<_ACEOF | |
16828 | /* confdefs.h. */ | |
16829 | _ACEOF | |
16830 | cat confdefs.h >>conftest.$ac_ext | |
16831 | cat >>conftest.$ac_ext <<_ACEOF | |
16832 | /* end confdefs.h. */ | |
16833 | $ac_includes_default | |
16834 | int | |
16835 | main () | |
16836 | { | |
16837 | static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; | |
16838 | test_array [0] = 0 | |
16839 | ||
16840 | ; | |
16841 | return 0; | |
16842 | } | |
16843 | _ACEOF | |
16844 | rm -f conftest.$ac_objext | |
16845 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16846 | (eval $ac_compile) 2>conftest.er1 | |
16847 | ac_status=$? | |
16848 | grep -v '^ *+' conftest.er1 >conftest.err | |
16849 | rm -f conftest.er1 | |
16850 | cat conftest.err >&5 | |
16851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16852 | (exit $ac_status); } && | |
7357c5b6 AM |
16853 | { ac_try='test -z "$ac_c_werror_flag" |
16854 | || test ! -s conftest.err' | |
d5efd9fc AM |
16855 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16856 | (eval $ac_try) 2>&5 | |
16857 | ac_status=$? | |
16858 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16859 | (exit $ac_status); }; } && | |
16860 | { ac_try='test -s conftest.$ac_objext' | |
16861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16862 | (eval $ac_try) 2>&5 | |
16863 | ac_status=$? | |
16864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16865 | (exit $ac_status); }; }; then | |
16866 | ac_lo=$ac_mid; break | |
16867 | else | |
16868 | echo "$as_me: failed program was:" >&5 | |
16869 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16870 | ||
16871 | ac_hi=`expr '(' $ac_mid ')' - 1` | |
16872 | if test $ac_mid -le $ac_hi; then | |
16873 | ac_lo= ac_hi= | |
16874 | break | |
16875 | fi | |
16876 | ac_mid=`expr 2 '*' $ac_mid` | |
16877 | fi | |
16878 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16879 | done | |
16880 | else | |
16881 | echo "$as_me: failed program was:" >&5 | |
16882 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16883 | ||
16884 | ac_lo= ac_hi= | |
16885 | fi | |
16886 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16887 | fi | |
16888 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16889 | # Binary search between lo and hi bounds. | |
16890 | while test "x$ac_lo" != "x$ac_hi"; do | |
16891 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
16892 | cat >conftest.$ac_ext <<_ACEOF | |
16893 | /* confdefs.h. */ | |
16894 | _ACEOF | |
16895 | cat confdefs.h >>conftest.$ac_ext | |
16896 | cat >>conftest.$ac_ext <<_ACEOF | |
16897 | /* end confdefs.h. */ | |
16898 | $ac_includes_default | |
16899 | int | |
16900 | main () | |
16901 | { | |
16902 | static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; | |
16903 | test_array [0] = 0 | |
16904 | ||
16905 | ; | |
16906 | return 0; | |
16907 | } | |
16908 | _ACEOF | |
16909 | rm -f conftest.$ac_objext | |
16910 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
16911 | (eval $ac_compile) 2>conftest.er1 | |
16912 | ac_status=$? | |
16913 | grep -v '^ *+' conftest.er1 >conftest.err | |
16914 | rm -f conftest.er1 | |
16915 | cat conftest.err >&5 | |
16916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16917 | (exit $ac_status); } && | |
7357c5b6 AM |
16918 | { ac_try='test -z "$ac_c_werror_flag" |
16919 | || test ! -s conftest.err' | |
d5efd9fc AM |
16920 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
16921 | (eval $ac_try) 2>&5 | |
16922 | ac_status=$? | |
16923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16924 | (exit $ac_status); }; } && | |
16925 | { ac_try='test -s conftest.$ac_objext' | |
16926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
16927 | (eval $ac_try) 2>&5 | |
16928 | ac_status=$? | |
16929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16930 | (exit $ac_status); }; }; then | |
16931 | ac_hi=$ac_mid | |
16932 | else | |
16933 | echo "$as_me: failed program was:" >&5 | |
16934 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16935 | ||
16936 | ac_lo=`expr '(' $ac_mid ')' + 1` | |
16937 | fi | |
16938 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
16939 | done | |
16940 | case $ac_lo in | |
16941 | ?*) ac_cv_sizeof_char=$ac_lo;; | |
7357c5b6 AM |
16942 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
16943 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16944 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 | |
d5efd9fc AM |
16945 | See \`config.log' for more details." >&5 |
16946 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
16947 | See \`config.log' for more details." >&2;} | |
7357c5b6 | 16948 | { (exit 1); exit 1; }; }; } ;; |
d5efd9fc AM |
16949 | esac |
16950 | else | |
16951 | if test "$cross_compiling" = yes; then | |
7357c5b6 AM |
16952 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
16953 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
16954 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
16955 | See \`config.log' for more details." >&5 | |
16956 | echo "$as_me: error: cannot run test program while cross compiling | |
16957 | See \`config.log' for more details." >&2;} | |
16958 | { (exit 1); exit 1; }; }; } | |
d5efd9fc AM |
16959 | else |
16960 | cat >conftest.$ac_ext <<_ACEOF | |
16961 | /* confdefs.h. */ | |
16962 | _ACEOF | |
16963 | cat confdefs.h >>conftest.$ac_ext | |
16964 | cat >>conftest.$ac_ext <<_ACEOF | |
16965 | /* end confdefs.h. */ | |
16966 | $ac_includes_default | |
16967 | long longval () { return (long) (sizeof (char)); } | |
16968 | unsigned long ulongval () { return (long) (sizeof (char)); } | |
16969 | #include <stdio.h> | |
16970 | #include <stdlib.h> | |
16971 | int | |
16972 | main () | |
16973 | { | |
16974 | ||
16975 | FILE *f = fopen ("conftest.val", "w"); | |
16976 | if (! f) | |
16977 | exit (1); | |
16978 | if (((long) (sizeof (char))) < 0) | |
16979 | { | |
16980 | long i = longval (); | |
16981 | if (i != ((long) (sizeof (char)))) | |
16982 | exit (1); | |
16983 | fprintf (f, "%ld\n", i); | |
16984 | } | |
16985 | else | |
16986 | { | |
16987 | unsigned long i = ulongval (); | |
16988 | if (i != ((long) (sizeof (char)))) | |
16989 | exit (1); | |
16990 | fprintf (f, "%lu\n", i); | |
16991 | } | |
16992 | exit (ferror (f) || fclose (f) != 0); | |
16993 | ||
16994 | ; | |
16995 | return 0; | |
16996 | } | |
16997 | _ACEOF | |
16998 | rm -f conftest$ac_exeext | |
16999 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17000 | (eval $ac_link) 2>&5 | |
17001 | ac_status=$? | |
17002 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17003 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
17004 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17005 | (eval $ac_try) 2>&5 | |
17006 | ac_status=$? | |
17007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17008 | (exit $ac_status); }; }; then | |
17009 | ac_cv_sizeof_char=`cat conftest.val` | |
17010 | else | |
17011 | echo "$as_me: program exited with status $ac_status" >&5 | |
17012 | echo "$as_me: failed program was:" >&5 | |
17013 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17014 | ||
17015 | ( exit $ac_status ) | |
7357c5b6 AM |
17016 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
17017 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d5efd9fc AM |
17018 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 |
17019 | See \`config.log' for more details." >&5 | |
17020 | echo "$as_me: error: cannot compute sizeof (char), 77 | |
17021 | See \`config.log' for more details." >&2;} | |
7357c5b6 | 17022 | { (exit 1); exit 1; }; }; } |
d5efd9fc AM |
17023 | fi |
17024 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
17025 | fi | |
17026 | fi | |
17027 | rm -f conftest.val | |
17028 | else | |
17029 | ac_cv_sizeof_char=0 | |
17030 | fi | |
17031 | fi | |
17032 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 | |
17033 | echo "${ECHO_T}$ac_cv_sizeof_char" >&6 | |
17034 | cat >>confdefs.h <<_ACEOF | |
17035 | #define SIZEOF_CHAR $ac_cv_sizeof_char | |
17036 | _ACEOF | |
17037 | ||
17038 | ||
17039 | ||
17040 | echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5 | |
17041 | echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6 | |
17042 | case "$ac_cv_sizeof_char" in | |
17043 | 1) acx_cv_type_int8_t=char ;; | |
17044 | *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5 | |
17045 | echo "$as_me: error: no 8-bit type" >&2;} | |
17046 | { (exit please report a bug); exit please report a bug; }; } | |
17047 | esac | |
17048 | echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5 | |
17049 | echo "${ECHO_T}$acx_cv_type_int8_t" >&6 | |
17050 | ||
17051 | echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5 | |
17052 | echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6 | |
17053 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in | |
17054 | 2:*) acx_cv_type_int16_t=int ;; | |
17055 | *:2) acx_cv_type_int16_t=short ;; | |
17056 | *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5 | |
17057 | echo "$as_me: error: no 16-bit type" >&2;} | |
17058 | { (exit please report a bug); exit please report a bug; }; } | |
17059 | esac | |
17060 | echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5 | |
17061 | echo "${ECHO_T}$acx_cv_type_int16_t" >&6 | |
17062 | ||
17063 | echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5 | |
17064 | echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6 | |
17065 | case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in | |
17066 | 4:*) acx_cv_type_int32_t=int ;; | |
17067 | *:4) acx_cv_type_int32_t=long ;; | |
17068 | *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5 | |
17069 | echo "$as_me: error: no 32-bit type" >&2;} | |
17070 | { (exit please report a bug); exit please report a bug; }; } | |
17071 | esac | |
17072 | echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5 | |
17073 | echo "${ECHO_T}$acx_cv_type_int32_t" >&6 | |
17074 | fi | |
17075 | ||
17076 | # These tests are here to make the output prettier | |
17077 | ||
17078 | if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then | |
17079 | case "$ac_cv_sizeof_long" in | |
17080 | 8) acx_cv_type_int64_t=long ;; | |
17081 | esac | |
17082 | echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5 | |
17083 | echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6 | |
17084 | echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 | |
17085 | echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6 | |
17086 | fi | |
17087 | ||
17088 | # Now we can use the above types | |
17089 | ||
17090 | if test "$ac_cv_type_uintptr_t" != yes; then | |
17091 | echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5 | |
17092 | echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6 | |
17093 | case $ac_cv_sizeof_void_p in | |
17094 | 2) acx_cv_type_intptr_t=int16_t ;; | |
17095 | 4) acx_cv_type_intptr_t=int32_t ;; | |
17096 | 8) acx_cv_type_intptr_t=int64_t ;; | |
17097 | *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5 | |
17098 | echo "$as_me: error: no equivalent for intptr_t" >&2;} | |
17099 | { (exit please report a bug); exit please report a bug; }; } | |
17100 | esac | |
17101 | echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5 | |
17102 | echo "${ECHO_T}$acx_cv_type_intptr_t" >&6 | |
17103 | fi | |
17104 | ||
17105 | # ----------------- done all checks, emit header ------------- | |
17106 | ac_config_commands="$ac_config_commands bfd_stdint.h" | |
17107 | ||
17108 | ||
17109 | ||
2ba49b59 KC |
17110 | echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
17111 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 | |
17112 | if test "${ac_cv_header_time+set}" = set; then | |
17113 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17114 | else | |
17115 | cat >conftest.$ac_ext <<_ACEOF | |
17116 | /* confdefs.h. */ | |
17117 | _ACEOF | |
17118 | cat confdefs.h >>conftest.$ac_ext | |
17119 | cat >>conftest.$ac_ext <<_ACEOF | |
17120 | /* end confdefs.h. */ | |
17121 | #include <sys/types.h> | |
17122 | #include <sys/time.h> | |
17123 | #include <time.h> | |
17124 | ||
17125 | int | |
17126 | main () | |
17127 | { | |
17128 | if ((struct tm *) 0) | |
17129 | return 0; | |
17130 | ; | |
17131 | return 0; | |
17132 | } | |
17133 | _ACEOF | |
17134 | rm -f conftest.$ac_objext | |
17135 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17136 | (eval $ac_compile) 2>conftest.er1 | |
17137 | ac_status=$? | |
17138 | grep -v '^ *+' conftest.er1 >conftest.err | |
17139 | rm -f conftest.er1 | |
17140 | cat conftest.err >&5 | |
17141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17142 | (exit $ac_status); } && | |
7357c5b6 AM |
17143 | { ac_try='test -z "$ac_c_werror_flag" |
17144 | || test ! -s conftest.err' | |
2ba49b59 KC |
17145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17146 | (eval $ac_try) 2>&5 | |
17147 | ac_status=$? | |
17148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17149 | (exit $ac_status); }; } && | |
17150 | { ac_try='test -s conftest.$ac_objext' | |
17151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17152 | (eval $ac_try) 2>&5 | |
17153 | ac_status=$? | |
17154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17155 | (exit $ac_status); }; }; then | |
17156 | ac_cv_header_time=yes | |
17157 | else | |
17158 | echo "$as_me: failed program was:" >&5 | |
17159 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17160 | ||
17161 | ac_cv_header_time=no | |
17162 | fi | |
17163 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17164 | fi | |
17165 | echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 | |
17166 | echo "${ECHO_T}$ac_cv_header_time" >&6 | |
17167 | if test $ac_cv_header_time = yes; then | |
17168 | ||
17169 | cat >>confdefs.h <<\_ACEOF | |
17170 | #define TIME_WITH_SYS_TIME 1 | |
17171 | _ACEOF | |
17172 | ||
17173 | fi | |
17174 | ||
17175 | ||
17176 | ||
17177 | ||
17178 | ||
17179 | ||
17180 | ac_header_dirent=no | |
17181 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | |
17182 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
17183 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
17184 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
17185 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
17186 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17187 | else | |
17188 | cat >conftest.$ac_ext <<_ACEOF | |
17189 | /* confdefs.h. */ | |
17190 | _ACEOF | |
17191 | cat confdefs.h >>conftest.$ac_ext | |
17192 | cat >>conftest.$ac_ext <<_ACEOF | |
17193 | /* end confdefs.h. */ | |
17194 | #include <sys/types.h> | |
17195 | #include <$ac_hdr> | |
17196 | ||
17197 | int | |
17198 | main () | |
17199 | { | |
17200 | if ((DIR *) 0) | |
17201 | return 0; | |
17202 | ; | |
17203 | return 0; | |
17204 | } | |
17205 | _ACEOF | |
17206 | rm -f conftest.$ac_objext | |
17207 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17208 | (eval $ac_compile) 2>conftest.er1 | |
17209 | ac_status=$? | |
17210 | grep -v '^ *+' conftest.er1 >conftest.err | |
17211 | rm -f conftest.er1 | |
17212 | cat conftest.err >&5 | |
17213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17214 | (exit $ac_status); } && | |
7357c5b6 AM |
17215 | { ac_try='test -z "$ac_c_werror_flag" |
17216 | || test ! -s conftest.err' | |
2ba49b59 KC |
17217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17218 | (eval $ac_try) 2>&5 | |
17219 | ac_status=$? | |
17220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17221 | (exit $ac_status); }; } && | |
17222 | { ac_try='test -s conftest.$ac_objext' | |
17223 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17224 | (eval $ac_try) 2>&5 | |
17225 | ac_status=$? | |
17226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17227 | (exit $ac_status); }; }; then | |
17228 | eval "$as_ac_Header=yes" | |
17229 | else | |
17230 | echo "$as_me: failed program was:" >&5 | |
17231 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17232 | ||
17233 | eval "$as_ac_Header=no" | |
17234 | fi | |
17235 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17236 | fi | |
17237 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
17238 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
17239 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
17240 | cat >>confdefs.h <<_ACEOF | |
17241 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
17242 | _ACEOF | |
17243 | ||
17244 | ac_header_dirent=$ac_hdr; break | |
17245 | fi | |
17246 | ||
17247 | done | |
17248 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
17249 | if test $ac_header_dirent = dirent.h; then | |
17250 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 | |
17251 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
17252 | if test "${ac_cv_search_opendir+set}" = set; then | |
17253 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17254 | else | |
17255 | ac_func_search_save_LIBS=$LIBS | |
17256 | ac_cv_search_opendir=no | |
17257 | cat >conftest.$ac_ext <<_ACEOF | |
17258 | /* confdefs.h. */ | |
17259 | _ACEOF | |
17260 | cat confdefs.h >>conftest.$ac_ext | |
17261 | cat >>conftest.$ac_ext <<_ACEOF | |
17262 | /* end confdefs.h. */ | |
17263 | ||
17264 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17265 | #ifdef __cplusplus | |
17266 | extern "C" | |
17267 | #endif | |
17268 | /* We use char because int might match the return type of a gcc2 | |
17269 | builtin and then its argument prototype would still apply. */ | |
17270 | char opendir (); | |
17271 | int | |
17272 | main () | |
17273 | { | |
17274 | opendir (); | |
17275 | ; | |
17276 | return 0; | |
17277 | } | |
17278 | _ACEOF | |
17279 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17280 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17281 | (eval $ac_link) 2>conftest.er1 | |
17282 | ac_status=$? | |
17283 | grep -v '^ *+' conftest.er1 >conftest.err | |
17284 | rm -f conftest.er1 | |
17285 | cat conftest.err >&5 | |
17286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17287 | (exit $ac_status); } && | |
7357c5b6 AM |
17288 | { ac_try='test -z "$ac_c_werror_flag" |
17289 | || test ! -s conftest.err' | |
2ba49b59 KC |
17290 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17291 | (eval $ac_try) 2>&5 | |
17292 | ac_status=$? | |
17293 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17294 | (exit $ac_status); }; } && | |
17295 | { ac_try='test -s conftest$ac_exeext' | |
17296 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17297 | (eval $ac_try) 2>&5 | |
17298 | ac_status=$? | |
17299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17300 | (exit $ac_status); }; }; then | |
17301 | ac_cv_search_opendir="none required" | |
17302 | else | |
17303 | echo "$as_me: failed program was:" >&5 | |
17304 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17305 | ||
17306 | fi | |
17307 | rm -f conftest.err conftest.$ac_objext \ | |
17308 | conftest$ac_exeext conftest.$ac_ext | |
17309 | if test "$ac_cv_search_opendir" = no; then | |
17310 | for ac_lib in dir; do | |
17311 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
17312 | cat >conftest.$ac_ext <<_ACEOF | |
17313 | /* confdefs.h. */ | |
17314 | _ACEOF | |
17315 | cat confdefs.h >>conftest.$ac_ext | |
17316 | cat >>conftest.$ac_ext <<_ACEOF | |
17317 | /* end confdefs.h. */ | |
17318 | ||
17319 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17320 | #ifdef __cplusplus | |
17321 | extern "C" | |
17322 | #endif | |
17323 | /* We use char because int might match the return type of a gcc2 | |
17324 | builtin and then its argument prototype would still apply. */ | |
17325 | char opendir (); | |
17326 | int | |
17327 | main () | |
17328 | { | |
17329 | opendir (); | |
17330 | ; | |
17331 | return 0; | |
17332 | } | |
17333 | _ACEOF | |
17334 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17335 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17336 | (eval $ac_link) 2>conftest.er1 | |
17337 | ac_status=$? | |
17338 | grep -v '^ *+' conftest.er1 >conftest.err | |
17339 | rm -f conftest.er1 | |
17340 | cat conftest.err >&5 | |
17341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17342 | (exit $ac_status); } && | |
7357c5b6 AM |
17343 | { ac_try='test -z "$ac_c_werror_flag" |
17344 | || test ! -s conftest.err' | |
2ba49b59 KC |
17345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17346 | (eval $ac_try) 2>&5 | |
17347 | ac_status=$? | |
17348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17349 | (exit $ac_status); }; } && | |
17350 | { ac_try='test -s conftest$ac_exeext' | |
17351 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17352 | (eval $ac_try) 2>&5 | |
17353 | ac_status=$? | |
17354 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17355 | (exit $ac_status); }; }; then | |
17356 | ac_cv_search_opendir="-l$ac_lib" | |
17357 | break | |
17358 | else | |
17359 | echo "$as_me: failed program was:" >&5 | |
17360 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17361 | ||
17362 | fi | |
17363 | rm -f conftest.err conftest.$ac_objext \ | |
17364 | conftest$ac_exeext conftest.$ac_ext | |
17365 | done | |
17366 | fi | |
17367 | LIBS=$ac_func_search_save_LIBS | |
17368 | fi | |
17369 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
17370 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
17371 | if test "$ac_cv_search_opendir" != no; then | |
17372 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
17373 | ||
17374 | fi | |
17375 | ||
17376 | else | |
17377 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 | |
17378 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
17379 | if test "${ac_cv_search_opendir+set}" = set; then | |
17380 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17381 | else | |
17382 | ac_func_search_save_LIBS=$LIBS | |
17383 | ac_cv_search_opendir=no | |
17384 | cat >conftest.$ac_ext <<_ACEOF | |
17385 | /* confdefs.h. */ | |
17386 | _ACEOF | |
17387 | cat confdefs.h >>conftest.$ac_ext | |
17388 | cat >>conftest.$ac_ext <<_ACEOF | |
17389 | /* end confdefs.h. */ | |
17390 | ||
17391 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17392 | #ifdef __cplusplus | |
17393 | extern "C" | |
17394 | #endif | |
17395 | /* We use char because int might match the return type of a gcc2 | |
17396 | builtin and then its argument prototype would still apply. */ | |
17397 | char opendir (); | |
17398 | int | |
17399 | main () | |
17400 | { | |
17401 | opendir (); | |
17402 | ; | |
17403 | return 0; | |
17404 | } | |
17405 | _ACEOF | |
17406 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17407 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17408 | (eval $ac_link) 2>conftest.er1 | |
17409 | ac_status=$? | |
17410 | grep -v '^ *+' conftest.er1 >conftest.err | |
17411 | rm -f conftest.er1 | |
17412 | cat conftest.err >&5 | |
17413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17414 | (exit $ac_status); } && | |
7357c5b6 AM |
17415 | { ac_try='test -z "$ac_c_werror_flag" |
17416 | || test ! -s conftest.err' | |
2ba49b59 KC |
17417 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17418 | (eval $ac_try) 2>&5 | |
17419 | ac_status=$? | |
17420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17421 | (exit $ac_status); }; } && | |
17422 | { ac_try='test -s conftest$ac_exeext' | |
17423 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17424 | (eval $ac_try) 2>&5 | |
17425 | ac_status=$? | |
17426 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17427 | (exit $ac_status); }; }; then | |
17428 | ac_cv_search_opendir="none required" | |
17429 | else | |
17430 | echo "$as_me: failed program was:" >&5 | |
17431 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17432 | ||
17433 | fi | |
17434 | rm -f conftest.err conftest.$ac_objext \ | |
17435 | conftest$ac_exeext conftest.$ac_ext | |
17436 | if test "$ac_cv_search_opendir" = no; then | |
17437 | for ac_lib in x; do | |
17438 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
17439 | cat >conftest.$ac_ext <<_ACEOF | |
17440 | /* confdefs.h. */ | |
17441 | _ACEOF | |
17442 | cat confdefs.h >>conftest.$ac_ext | |
17443 | cat >>conftest.$ac_ext <<_ACEOF | |
17444 | /* end confdefs.h. */ | |
17445 | ||
17446 | /* Override any gcc2 internal prototype to avoid an error. */ | |
17447 | #ifdef __cplusplus | |
17448 | extern "C" | |
17449 | #endif | |
17450 | /* We use char because int might match the return type of a gcc2 | |
17451 | builtin and then its argument prototype would still apply. */ | |
17452 | char opendir (); | |
17453 | int | |
17454 | main () | |
17455 | { | |
17456 | opendir (); | |
17457 | ; | |
17458 | return 0; | |
17459 | } | |
17460 | _ACEOF | |
17461 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17462 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17463 | (eval $ac_link) 2>conftest.er1 | |
17464 | ac_status=$? | |
17465 | grep -v '^ *+' conftest.er1 >conftest.err | |
17466 | rm -f conftest.er1 | |
17467 | cat conftest.err >&5 | |
17468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17469 | (exit $ac_status); } && | |
7357c5b6 AM |
17470 | { ac_try='test -z "$ac_c_werror_flag" |
17471 | || test ! -s conftest.err' | |
2ba49b59 KC |
17472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17473 | (eval $ac_try) 2>&5 | |
17474 | ac_status=$? | |
17475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17476 | (exit $ac_status); }; } && | |
17477 | { ac_try='test -s conftest$ac_exeext' | |
17478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17479 | (eval $ac_try) 2>&5 | |
17480 | ac_status=$? | |
17481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17482 | (exit $ac_status); }; }; then | |
17483 | ac_cv_search_opendir="-l$ac_lib" | |
17484 | break | |
17485 | else | |
17486 | echo "$as_me: failed program was:" >&5 | |
17487 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17488 | ||
17489 | fi | |
17490 | rm -f conftest.err conftest.$ac_objext \ | |
17491 | conftest$ac_exeext conftest.$ac_ext | |
17492 | done | |
17493 | fi | |
17494 | LIBS=$ac_func_search_save_LIBS | |
17495 | fi | |
17496 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
17497 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
17498 | if test "$ac_cv_search_opendir" != no; then | |
17499 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
17500 | ||
17501 | fi | |
17502 | ||
17503 | fi | |
17504 | ||
17505 | echo "$as_me:$LINENO: checking whether string.h and strings.h may both be included" >&5 | |
17506 | echo $ECHO_N "checking whether string.h and strings.h may both be included... $ECHO_C" >&6 | |
17507 | if test "${gcc_cv_header_string+set}" = set; then | |
17508 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17509 | else | |
17510 | cat >conftest.$ac_ext <<_ACEOF | |
17511 | /* confdefs.h. */ | |
17512 | _ACEOF | |
17513 | cat confdefs.h >>conftest.$ac_ext | |
17514 | cat >>conftest.$ac_ext <<_ACEOF | |
17515 | /* end confdefs.h. */ | |
17516 | #include <string.h> | |
17517 | #include <strings.h> | |
17518 | int | |
17519 | main () | |
17520 | { | |
17521 | ||
17522 | ; | |
17523 | return 0; | |
17524 | } | |
17525 | _ACEOF | |
17526 | rm -f conftest.$ac_objext | |
17527 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17528 | (eval $ac_compile) 2>conftest.er1 | |
17529 | ac_status=$? | |
17530 | grep -v '^ *+' conftest.er1 >conftest.err | |
17531 | rm -f conftest.er1 | |
17532 | cat conftest.err >&5 | |
17533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17534 | (exit $ac_status); } && | |
7357c5b6 AM |
17535 | { ac_try='test -z "$ac_c_werror_flag" |
17536 | || test ! -s conftest.err' | |
2ba49b59 KC |
17537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17538 | (eval $ac_try) 2>&5 | |
17539 | ac_status=$? | |
17540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17541 | (exit $ac_status); }; } && | |
17542 | { ac_try='test -s conftest.$ac_objext' | |
17543 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17544 | (eval $ac_try) 2>&5 | |
17545 | ac_status=$? | |
17546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17547 | (exit $ac_status); }; }; then | |
17548 | gcc_cv_header_string=yes | |
17549 | else | |
17550 | echo "$as_me: failed program was:" >&5 | |
17551 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17552 | ||
17553 | gcc_cv_header_string=no | |
17554 | fi | |
17555 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17556 | fi | |
17557 | echo "$as_me:$LINENO: result: $gcc_cv_header_string" >&5 | |
17558 | echo "${ECHO_T}$gcc_cv_header_string" >&6 | |
17559 | if test $gcc_cv_header_string = yes; then | |
17560 | ||
17561 | cat >>confdefs.h <<\_ACEOF | |
17562 | #define STRING_WITH_STRINGS 1 | |
17563 | _ACEOF | |
17564 | ||
2e0fbf77 JW |
17565 | fi |
17566 | ||
5464f5a1 NN |
17567 | |
17568 | ||
17569 | ||
17570 | ||
17571 | ||
17572 | ||
17573 | ||
428b207a TT |
17574 | |
17575 | for ac_func in fcntl getpagesize setitimer sysconf fdopen getuid getgid fileno | |
252b5132 | 17576 | do |
5464f5a1 NN |
17577 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
17578 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
17579 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17580 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
17581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17582 | else | |
17583 | cat >conftest.$ac_ext <<_ACEOF | |
17584 | /* confdefs.h. */ | |
17585 | _ACEOF | |
17586 | cat confdefs.h >>conftest.$ac_ext | |
17587 | cat >>conftest.$ac_ext <<_ACEOF | |
17588 | /* end confdefs.h. */ | |
17589 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17590 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17591 | #define $ac_func innocuous_$ac_func | |
17592 | ||
252b5132 | 17593 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
17594 | which can conflict with char $ac_func (); below. |
17595 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17596 | <limits.h> exists even on freestanding compilers. */ | |
17597 | ||
17598 | #ifdef __STDC__ | |
17599 | # include <limits.h> | |
17600 | #else | |
17601 | # include <assert.h> | |
17602 | #endif | |
6be7c12c | 17603 | |
5464f5a1 | 17604 | #undef $ac_func |
252b5132 | 17605 | |
5464f5a1 NN |
17606 | /* Override any gcc2 internal prototype to avoid an error. */ |
17607 | #ifdef __cplusplus | |
17608 | extern "C" | |
17609 | { | |
17610 | #endif | |
17611 | /* We use char because int might match the return type of a gcc2 | |
17612 | builtin and then its argument prototype would still apply. */ | |
17613 | char $ac_func (); | |
252b5132 RH |
17614 | /* The GNU C library defines this for functions which it implements |
17615 | to always fail with ENOSYS. Some functions are actually named | |
17616 | something starting with __ and the normal name is an alias. */ | |
17617 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17618 | choke me | |
17619 | #else | |
5464f5a1 NN |
17620 | char (*f) () = $ac_func; |
17621 | #endif | |
17622 | #ifdef __cplusplus | |
17623 | } | |
252b5132 RH |
17624 | #endif |
17625 | ||
5464f5a1 NN |
17626 | int |
17627 | main () | |
17628 | { | |
17629 | return f != $ac_func; | |
17630 | ; | |
17631 | return 0; | |
17632 | } | |
17633 | _ACEOF | |
17634 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17635 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17636 | (eval $ac_link) 2>conftest.er1 | |
17637 | ac_status=$? | |
17638 | grep -v '^ *+' conftest.er1 >conftest.err | |
17639 | rm -f conftest.er1 | |
17640 | cat conftest.err >&5 | |
17641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17642 | (exit $ac_status); } && | |
7357c5b6 AM |
17643 | { ac_try='test -z "$ac_c_werror_flag" |
17644 | || test ! -s conftest.err' | |
5464f5a1 NN |
17645 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17646 | (eval $ac_try) 2>&5 | |
17647 | ac_status=$? | |
17648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17649 | (exit $ac_status); }; } && | |
17650 | { ac_try='test -s conftest$ac_exeext' | |
17651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17652 | (eval $ac_try) 2>&5 | |
17653 | ac_status=$? | |
17654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17655 | (exit $ac_status); }; }; then | |
17656 | eval "$as_ac_var=yes" | |
17657 | else | |
17658 | echo "$as_me: failed program was:" >&5 | |
17659 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17660 | ||
17661 | eval "$as_ac_var=no" | |
17662 | fi | |
17663 | rm -f conftest.err conftest.$ac_objext \ | |
17664 | conftest$ac_exeext conftest.$ac_ext | |
17665 | fi | |
17666 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
17667 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
17668 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
17669 | cat >>confdefs.h <<_ACEOF | |
17670 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17671 | _ACEOF | |
252b5132 | 17672 | |
252b5132 RH |
17673 | fi |
17674 | done | |
17675 | ||
5464f5a1 | 17676 | |
49c97a80 ILT |
17677 | for ac_func in strtoull |
17678 | do | |
5464f5a1 NN |
17679 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
17680 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
17681 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
17682 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
17683 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17684 | else | |
17685 | cat >conftest.$ac_ext <<_ACEOF | |
17686 | /* confdefs.h. */ | |
17687 | _ACEOF | |
17688 | cat confdefs.h >>conftest.$ac_ext | |
17689 | cat >>conftest.$ac_ext <<_ACEOF | |
17690 | /* end confdefs.h. */ | |
17691 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
17692 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
17693 | #define $ac_func innocuous_$ac_func | |
17694 | ||
49c97a80 | 17695 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
17696 | which can conflict with char $ac_func (); below. |
17697 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
17698 | <limits.h> exists even on freestanding compilers. */ | |
17699 | ||
17700 | #ifdef __STDC__ | |
17701 | # include <limits.h> | |
17702 | #else | |
17703 | # include <assert.h> | |
17704 | #endif | |
49c97a80 | 17705 | |
5464f5a1 | 17706 | #undef $ac_func |
49c97a80 | 17707 | |
5464f5a1 NN |
17708 | /* Override any gcc2 internal prototype to avoid an error. */ |
17709 | #ifdef __cplusplus | |
17710 | extern "C" | |
17711 | { | |
17712 | #endif | |
17713 | /* We use char because int might match the return type of a gcc2 | |
17714 | builtin and then its argument prototype would still apply. */ | |
17715 | char $ac_func (); | |
49c97a80 ILT |
17716 | /* The GNU C library defines this for functions which it implements |
17717 | to always fail with ENOSYS. Some functions are actually named | |
17718 | something starting with __ and the normal name is an alias. */ | |
17719 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
17720 | choke me | |
17721 | #else | |
5464f5a1 NN |
17722 | char (*f) () = $ac_func; |
17723 | #endif | |
17724 | #ifdef __cplusplus | |
17725 | } | |
49c97a80 ILT |
17726 | #endif |
17727 | ||
5464f5a1 NN |
17728 | int |
17729 | main () | |
17730 | { | |
17731 | return f != $ac_func; | |
17732 | ; | |
17733 | return 0; | |
17734 | } | |
17735 | _ACEOF | |
17736 | rm -f conftest.$ac_objext conftest$ac_exeext | |
17737 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
17738 | (eval $ac_link) 2>conftest.er1 | |
17739 | ac_status=$? | |
17740 | grep -v '^ *+' conftest.er1 >conftest.err | |
17741 | rm -f conftest.er1 | |
17742 | cat conftest.err >&5 | |
17743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17744 | (exit $ac_status); } && | |
7357c5b6 AM |
17745 | { ac_try='test -z "$ac_c_werror_flag" |
17746 | || test ! -s conftest.err' | |
5464f5a1 NN |
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); }; } && | |
17752 | { ac_try='test -s conftest$ac_exeext' | |
17753 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17754 | (eval $ac_try) 2>&5 | |
17755 | ac_status=$? | |
17756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17757 | (exit $ac_status); }; }; then | |
17758 | eval "$as_ac_var=yes" | |
17759 | else | |
17760 | echo "$as_me: failed program was:" >&5 | |
17761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17762 | ||
17763 | eval "$as_ac_var=no" | |
17764 | fi | |
17765 | rm -f conftest.err conftest.$ac_objext \ | |
17766 | conftest$ac_exeext conftest.$ac_ext | |
17767 | fi | |
17768 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
17769 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
17770 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
17771 | cat >>confdefs.h <<_ACEOF | |
17772 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
17773 | _ACEOF | |
49c97a80 | 17774 | |
49c97a80 ILT |
17775 | fi |
17776 | done | |
17777 | ||
6be7c12c | 17778 | |
2e9ebff5 JG |
17779 | echo "$as_me:$LINENO: checking whether basename is declared" >&5 |
17780 | echo $ECHO_N "checking whether basename is declared... $ECHO_C" >&6 | |
17781 | if test "${ac_cv_have_decl_basename+set}" = set; then | |
17782 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17783 | else | |
17784 | cat >conftest.$ac_ext <<_ACEOF | |
17785 | /* confdefs.h. */ | |
17786 | _ACEOF | |
17787 | cat confdefs.h >>conftest.$ac_ext | |
17788 | cat >>conftest.$ac_ext <<_ACEOF | |
17789 | /* end confdefs.h. */ | |
ec7b76fe | 17790 | $ac_includes_default |
2e9ebff5 JG |
17791 | int |
17792 | main () | |
17793 | { | |
17794 | #ifndef basename | |
17795 | char *p = (char *) basename; | |
17796 | #endif | |
17797 | ||
17798 | ; | |
17799 | return 0; | |
17800 | } | |
17801 | _ACEOF | |
17802 | rm -f conftest.$ac_objext | |
17803 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17804 | (eval $ac_compile) 2>conftest.er1 | |
17805 | ac_status=$? | |
17806 | grep -v '^ *+' conftest.er1 >conftest.err | |
17807 | rm -f conftest.er1 | |
17808 | cat conftest.err >&5 | |
17809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17810 | (exit $ac_status); } && | |
7357c5b6 AM |
17811 | { ac_try='test -z "$ac_c_werror_flag" |
17812 | || test ! -s conftest.err' | |
2e9ebff5 JG |
17813 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17814 | (eval $ac_try) 2>&5 | |
17815 | ac_status=$? | |
17816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17817 | (exit $ac_status); }; } && | |
17818 | { ac_try='test -s conftest.$ac_objext' | |
17819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17820 | (eval $ac_try) 2>&5 | |
17821 | ac_status=$? | |
17822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17823 | (exit $ac_status); }; }; then | |
17824 | ac_cv_have_decl_basename=yes | |
17825 | else | |
17826 | echo "$as_me: failed program was:" >&5 | |
17827 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17828 | ||
17829 | ac_cv_have_decl_basename=no | |
17830 | fi | |
17831 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17832 | fi | |
17833 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_basename" >&5 | |
17834 | echo "${ECHO_T}$ac_cv_have_decl_basename" >&6 | |
17835 | if test $ac_cv_have_decl_basename = yes; then | |
17836 | ||
17837 | cat >>confdefs.h <<_ACEOF | |
17838 | #define HAVE_DECL_BASENAME 1 | |
17839 | _ACEOF | |
17840 | ||
17841 | ||
17842 | else | |
17843 | cat >>confdefs.h <<_ACEOF | |
17844 | #define HAVE_DECL_BASENAME 0 | |
17845 | _ACEOF | |
17846 | ||
17847 | ||
17848 | fi | |
17849 | ||
17850 | ||
ec7b76fe JG |
17851 | echo "$as_me:$LINENO: checking whether ftello is declared" >&5 |
17852 | echo $ECHO_N "checking whether ftello is declared... $ECHO_C" >&6 | |
17853 | if test "${ac_cv_have_decl_ftello+set}" = set; then | |
17854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17855 | else | |
17856 | cat >conftest.$ac_ext <<_ACEOF | |
17857 | /* confdefs.h. */ | |
17858 | _ACEOF | |
17859 | cat confdefs.h >>conftest.$ac_ext | |
17860 | cat >>conftest.$ac_ext <<_ACEOF | |
17861 | /* end confdefs.h. */ | |
17862 | $ac_includes_default | |
17863 | int | |
17864 | main () | |
17865 | { | |
17866 | #ifndef ftello | |
17867 | char *p = (char *) ftello; | |
17868 | #endif | |
17869 | ||
17870 | ; | |
17871 | return 0; | |
17872 | } | |
17873 | _ACEOF | |
17874 | rm -f conftest.$ac_objext | |
17875 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17876 | (eval $ac_compile) 2>conftest.er1 | |
17877 | ac_status=$? | |
17878 | grep -v '^ *+' conftest.er1 >conftest.err | |
17879 | rm -f conftest.er1 | |
17880 | cat conftest.err >&5 | |
17881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17882 | (exit $ac_status); } && | |
7357c5b6 AM |
17883 | { ac_try='test -z "$ac_c_werror_flag" |
17884 | || test ! -s conftest.err' | |
ec7b76fe JG |
17885 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17886 | (eval $ac_try) 2>&5 | |
17887 | ac_status=$? | |
17888 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17889 | (exit $ac_status); }; } && | |
17890 | { ac_try='test -s conftest.$ac_objext' | |
17891 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17892 | (eval $ac_try) 2>&5 | |
17893 | ac_status=$? | |
17894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17895 | (exit $ac_status); }; }; then | |
17896 | ac_cv_have_decl_ftello=yes | |
17897 | else | |
17898 | echo "$as_me: failed program was:" >&5 | |
17899 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17900 | ||
17901 | ac_cv_have_decl_ftello=no | |
17902 | fi | |
17903 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17904 | fi | |
17905 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello" >&5 | |
17906 | echo "${ECHO_T}$ac_cv_have_decl_ftello" >&6 | |
17907 | if test $ac_cv_have_decl_ftello = yes; then | |
17908 | ||
17909 | cat >>confdefs.h <<_ACEOF | |
17910 | #define HAVE_DECL_FTELLO 1 | |
17911 | _ACEOF | |
17912 | ||
17913 | ||
17914 | else | |
17915 | cat >>confdefs.h <<_ACEOF | |
17916 | #define HAVE_DECL_FTELLO 0 | |
17917 | _ACEOF | |
17918 | ||
17919 | ||
17920 | fi | |
17921 | ||
17922 | ||
17923 | echo "$as_me:$LINENO: checking whether ftello64 is declared" >&5 | |
17924 | echo $ECHO_N "checking whether ftello64 is declared... $ECHO_C" >&6 | |
17925 | if test "${ac_cv_have_decl_ftello64+set}" = set; then | |
17926 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17927 | else | |
17928 | cat >conftest.$ac_ext <<_ACEOF | |
17929 | /* confdefs.h. */ | |
17930 | _ACEOF | |
17931 | cat confdefs.h >>conftest.$ac_ext | |
17932 | cat >>conftest.$ac_ext <<_ACEOF | |
17933 | /* end confdefs.h. */ | |
17934 | $ac_includes_default | |
17935 | int | |
17936 | main () | |
17937 | { | |
17938 | #ifndef ftello64 | |
17939 | char *p = (char *) ftello64; | |
17940 | #endif | |
17941 | ||
17942 | ; | |
17943 | return 0; | |
17944 | } | |
17945 | _ACEOF | |
17946 | rm -f conftest.$ac_objext | |
17947 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17948 | (eval $ac_compile) 2>conftest.er1 | |
17949 | ac_status=$? | |
17950 | grep -v '^ *+' conftest.er1 >conftest.err | |
17951 | rm -f conftest.er1 | |
17952 | cat conftest.err >&5 | |
17953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17954 | (exit $ac_status); } && | |
7357c5b6 AM |
17955 | { ac_try='test -z "$ac_c_werror_flag" |
17956 | || test ! -s conftest.err' | |
ec7b76fe JG |
17957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
17958 | (eval $ac_try) 2>&5 | |
17959 | ac_status=$? | |
17960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17961 | (exit $ac_status); }; } && | |
17962 | { ac_try='test -s conftest.$ac_objext' | |
17963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
17964 | (eval $ac_try) 2>&5 | |
17965 | ac_status=$? | |
17966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17967 | (exit $ac_status); }; }; then | |
17968 | ac_cv_have_decl_ftello64=yes | |
17969 | else | |
17970 | echo "$as_me: failed program was:" >&5 | |
17971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
17972 | ||
17973 | ac_cv_have_decl_ftello64=no | |
17974 | fi | |
17975 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
17976 | fi | |
17977 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ftello64" >&5 | |
17978 | echo "${ECHO_T}$ac_cv_have_decl_ftello64" >&6 | |
17979 | if test $ac_cv_have_decl_ftello64 = yes; then | |
17980 | ||
17981 | cat >>confdefs.h <<_ACEOF | |
17982 | #define HAVE_DECL_FTELLO64 1 | |
17983 | _ACEOF | |
17984 | ||
17985 | ||
17986 | else | |
17987 | cat >>confdefs.h <<_ACEOF | |
17988 | #define HAVE_DECL_FTELLO64 0 | |
17989 | _ACEOF | |
17990 | ||
17991 | ||
17992 | fi | |
17993 | ||
17994 | ||
17995 | echo "$as_me:$LINENO: checking whether fseeko is declared" >&5 | |
17996 | echo $ECHO_N "checking whether fseeko is declared... $ECHO_C" >&6 | |
17997 | if test "${ac_cv_have_decl_fseeko+set}" = set; then | |
17998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
17999 | else | |
18000 | cat >conftest.$ac_ext <<_ACEOF | |
18001 | /* confdefs.h. */ | |
18002 | _ACEOF | |
18003 | cat confdefs.h >>conftest.$ac_ext | |
18004 | cat >>conftest.$ac_ext <<_ACEOF | |
18005 | /* end confdefs.h. */ | |
18006 | $ac_includes_default | |
18007 | int | |
18008 | main () | |
18009 | { | |
18010 | #ifndef fseeko | |
18011 | char *p = (char *) fseeko; | |
18012 | #endif | |
18013 | ||
18014 | ; | |
18015 | return 0; | |
18016 | } | |
18017 | _ACEOF | |
18018 | rm -f conftest.$ac_objext | |
18019 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18020 | (eval $ac_compile) 2>conftest.er1 | |
18021 | ac_status=$? | |
18022 | grep -v '^ *+' conftest.er1 >conftest.err | |
18023 | rm -f conftest.er1 | |
18024 | cat conftest.err >&5 | |
18025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18026 | (exit $ac_status); } && | |
7357c5b6 AM |
18027 | { ac_try='test -z "$ac_c_werror_flag" |
18028 | || test ! -s conftest.err' | |
ec7b76fe JG |
18029 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18030 | (eval $ac_try) 2>&5 | |
18031 | ac_status=$? | |
18032 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18033 | (exit $ac_status); }; } && | |
18034 | { ac_try='test -s conftest.$ac_objext' | |
18035 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18036 | (eval $ac_try) 2>&5 | |
18037 | ac_status=$? | |
18038 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18039 | (exit $ac_status); }; }; then | |
18040 | ac_cv_have_decl_fseeko=yes | |
18041 | else | |
18042 | echo "$as_me: failed program was:" >&5 | |
18043 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18044 | ||
18045 | ac_cv_have_decl_fseeko=no | |
18046 | fi | |
18047 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
18048 | fi | |
18049 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5 | |
18050 | echo "${ECHO_T}$ac_cv_have_decl_fseeko" >&6 | |
18051 | if test $ac_cv_have_decl_fseeko = yes; then | |
18052 | ||
18053 | cat >>confdefs.h <<_ACEOF | |
18054 | #define HAVE_DECL_FSEEKO 1 | |
18055 | _ACEOF | |
18056 | ||
18057 | ||
18058 | else | |
18059 | cat >>confdefs.h <<_ACEOF | |
18060 | #define HAVE_DECL_FSEEKO 0 | |
18061 | _ACEOF | |
18062 | ||
18063 | ||
18064 | fi | |
18065 | ||
18066 | ||
18067 | echo "$as_me:$LINENO: checking whether fseeko64 is declared" >&5 | |
18068 | echo $ECHO_N "checking whether fseeko64 is declared... $ECHO_C" >&6 | |
18069 | if test "${ac_cv_have_decl_fseeko64+set}" = set; then | |
18070 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18071 | else | |
18072 | cat >conftest.$ac_ext <<_ACEOF | |
18073 | /* confdefs.h. */ | |
18074 | _ACEOF | |
18075 | cat confdefs.h >>conftest.$ac_ext | |
18076 | cat >>conftest.$ac_ext <<_ACEOF | |
18077 | /* end confdefs.h. */ | |
18078 | $ac_includes_default | |
18079 | int | |
18080 | main () | |
18081 | { | |
18082 | #ifndef fseeko64 | |
18083 | char *p = (char *) fseeko64; | |
18084 | #endif | |
18085 | ||
18086 | ; | |
18087 | return 0; | |
18088 | } | |
18089 | _ACEOF | |
18090 | rm -f conftest.$ac_objext | |
18091 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18092 | (eval $ac_compile) 2>conftest.er1 | |
18093 | ac_status=$? | |
18094 | grep -v '^ *+' conftest.er1 >conftest.err | |
18095 | rm -f conftest.er1 | |
18096 | cat conftest.err >&5 | |
18097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18098 | (exit $ac_status); } && | |
7357c5b6 AM |
18099 | { ac_try='test -z "$ac_c_werror_flag" |
18100 | || test ! -s conftest.err' | |
ec7b76fe JG |
18101 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18102 | (eval $ac_try) 2>&5 | |
18103 | ac_status=$? | |
18104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18105 | (exit $ac_status); }; } && | |
18106 | { ac_try='test -s conftest.$ac_objext' | |
18107 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18108 | (eval $ac_try) 2>&5 | |
18109 | ac_status=$? | |
18110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18111 | (exit $ac_status); }; }; then | |
18112 | ac_cv_have_decl_fseeko64=yes | |
18113 | else | |
18114 | echo "$as_me: failed program was:" >&5 | |
18115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18116 | ||
18117 | ac_cv_have_decl_fseeko64=no | |
18118 | fi | |
18119 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
18120 | fi | |
18121 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko64" >&5 | |
18122 | echo "${ECHO_T}$ac_cv_have_decl_fseeko64" >&6 | |
18123 | if test $ac_cv_have_decl_fseeko64 = yes; then | |
18124 | ||
18125 | cat >>confdefs.h <<_ACEOF | |
18126 | #define HAVE_DECL_FSEEKO64 1 | |
18127 | _ACEOF | |
18128 | ||
18129 | ||
18130 | else | |
18131 | cat >>confdefs.h <<_ACEOF | |
18132 | #define HAVE_DECL_FSEEKO64 0 | |
18133 | _ACEOF | |
18134 | ||
18135 | ||
18136 | fi | |
18137 | ||
18138 | ||
2e9ebff5 | 18139 | |
6be7c12c | 18140 | |
252b5132 | 18141 | case "${host}" in |
855b0be7 | 18142 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) |
5464f5a1 NN |
18143 | |
18144 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 18145 | #define USE_BINARY_FOPEN 1 |
5464f5a1 | 18146 | _ACEOF |
252b5132 RH |
18147 | ;; |
18148 | esac | |
18149 | ||
d34a2b1d JG |
18150 | echo "$as_me:$LINENO: checking whether ffs is declared" >&5 |
18151 | echo $ECHO_N "checking whether ffs is declared... $ECHO_C" >&6 | |
18152 | if test "${ac_cv_have_decl_ffs+set}" = set; then | |
5464f5a1 | 18153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 18154 | else |
5464f5a1 NN |
18155 | cat >conftest.$ac_ext <<_ACEOF |
18156 | /* confdefs.h. */ | |
18157 | _ACEOF | |
18158 | cat confdefs.h >>conftest.$ac_ext | |
18159 | cat >>conftest.$ac_ext <<_ACEOF | |
18160 | /* end confdefs.h. */ | |
d34a2b1d | 18161 | $ac_includes_default |
5464f5a1 NN |
18162 | int |
18163 | main () | |
18164 | { | |
d34a2b1d JG |
18165 | #ifndef ffs |
18166 | char *p = (char *) ffs; | |
18167 | #endif | |
18168 | ||
5464f5a1 NN |
18169 | ; |
18170 | return 0; | |
18171 | } | |
18172 | _ACEOF | |
18173 | rm -f conftest.$ac_objext | |
18174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18175 | (eval $ac_compile) 2>conftest.er1 | |
18176 | ac_status=$? | |
18177 | grep -v '^ *+' conftest.er1 >conftest.err | |
18178 | rm -f conftest.er1 | |
18179 | cat conftest.err >&5 | |
18180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18181 | (exit $ac_status); } && | |
7357c5b6 AM |
18182 | { ac_try='test -z "$ac_c_werror_flag" |
18183 | || test ! -s conftest.err' | |
5464f5a1 NN |
18184 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18185 | (eval $ac_try) 2>&5 | |
18186 | ac_status=$? | |
18187 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18188 | (exit $ac_status); }; } && | |
18189 | { ac_try='test -s conftest.$ac_objext' | |
18190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18191 | (eval $ac_try) 2>&5 | |
18192 | ac_status=$? | |
18193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18194 | (exit $ac_status); }; }; then | |
d34a2b1d | 18195 | ac_cv_have_decl_ffs=yes |
252b5132 | 18196 | else |
5464f5a1 NN |
18197 | echo "$as_me: failed program was:" >&5 |
18198 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18199 | ||
d34a2b1d | 18200 | ac_cv_have_decl_ffs=no |
252b5132 | 18201 | fi |
5464f5a1 | 18202 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 18203 | fi |
d34a2b1d JG |
18204 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_ffs" >&5 |
18205 | echo "${ECHO_T}$ac_cv_have_decl_ffs" >&6 | |
18206 | if test $ac_cv_have_decl_ffs = yes; then | |
252b5132 | 18207 | |
d34a2b1d JG |
18208 | cat >>confdefs.h <<_ACEOF |
18209 | #define HAVE_DECL_FFS 1 | |
18210 | _ACEOF | |
5464f5a1 | 18211 | |
d34a2b1d JG |
18212 | |
18213 | else | |
18214 | cat >>confdefs.h <<_ACEOF | |
18215 | #define HAVE_DECL_FFS 0 | |
5464f5a1 | 18216 | _ACEOF |
252b5132 | 18217 | |
d34a2b1d | 18218 | |
252b5132 RH |
18219 | fi |
18220 | ||
d34a2b1d JG |
18221 | |
18222 | echo "$as_me:$LINENO: checking whether free is declared" >&5 | |
18223 | echo $ECHO_N "checking whether free is declared... $ECHO_C" >&6 | |
18224 | if test "${ac_cv_have_decl_free+set}" = set; then | |
5464f5a1 | 18225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 18226 | else |
5464f5a1 NN |
18227 | cat >conftest.$ac_ext <<_ACEOF |
18228 | /* confdefs.h. */ | |
18229 | _ACEOF | |
18230 | cat confdefs.h >>conftest.$ac_ext | |
18231 | cat >>conftest.$ac_ext <<_ACEOF | |
18232 | /* end confdefs.h. */ | |
d34a2b1d | 18233 | $ac_includes_default |
5464f5a1 NN |
18234 | int |
18235 | main () | |
18236 | { | |
d34a2b1d JG |
18237 | #ifndef free |
18238 | char *p = (char *) free; | |
18239 | #endif | |
18240 | ||
5464f5a1 NN |
18241 | ; |
18242 | return 0; | |
18243 | } | |
18244 | _ACEOF | |
18245 | rm -f conftest.$ac_objext | |
18246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18247 | (eval $ac_compile) 2>conftest.er1 | |
18248 | ac_status=$? | |
18249 | grep -v '^ *+' conftest.er1 >conftest.err | |
18250 | rm -f conftest.er1 | |
18251 | cat conftest.err >&5 | |
18252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18253 | (exit $ac_status); } && | |
7357c5b6 AM |
18254 | { ac_try='test -z "$ac_c_werror_flag" |
18255 | || test ! -s conftest.err' | |
5464f5a1 NN |
18256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18257 | (eval $ac_try) 2>&5 | |
18258 | ac_status=$? | |
18259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18260 | (exit $ac_status); }; } && | |
18261 | { ac_try='test -s conftest.$ac_objext' | |
18262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18263 | (eval $ac_try) 2>&5 | |
18264 | ac_status=$? | |
18265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18266 | (exit $ac_status); }; }; then | |
d34a2b1d | 18267 | ac_cv_have_decl_free=yes |
252b5132 | 18268 | else |
5464f5a1 NN |
18269 | echo "$as_me: failed program was:" >&5 |
18270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18271 | ||
d34a2b1d | 18272 | ac_cv_have_decl_free=no |
252b5132 | 18273 | fi |
5464f5a1 | 18274 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 18275 | fi |
d34a2b1d JG |
18276 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_free" >&5 |
18277 | echo "${ECHO_T}$ac_cv_have_decl_free" >&6 | |
18278 | if test $ac_cv_have_decl_free = yes; then | |
18279 | ||
18280 | cat >>confdefs.h <<_ACEOF | |
18281 | #define HAVE_DECL_FREE 1 | |
18282 | _ACEOF | |
252b5132 | 18283 | |
5464f5a1 | 18284 | |
d34a2b1d JG |
18285 | else |
18286 | cat >>confdefs.h <<_ACEOF | |
18287 | #define HAVE_DECL_FREE 0 | |
5464f5a1 | 18288 | _ACEOF |
252b5132 | 18289 | |
d34a2b1d | 18290 | |
252b5132 RH |
18291 | fi |
18292 | ||
d34a2b1d JG |
18293 | |
18294 | echo "$as_me:$LINENO: checking whether getenv is declared" >&5 | |
18295 | echo $ECHO_N "checking whether getenv is declared... $ECHO_C" >&6 | |
18296 | if test "${ac_cv_have_decl_getenv+set}" = set; then | |
5464f5a1 | 18297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 18298 | else |
5464f5a1 NN |
18299 | cat >conftest.$ac_ext <<_ACEOF |
18300 | /* confdefs.h. */ | |
18301 | _ACEOF | |
18302 | cat confdefs.h >>conftest.$ac_ext | |
18303 | cat >>conftest.$ac_ext <<_ACEOF | |
18304 | /* end confdefs.h. */ | |
d34a2b1d | 18305 | $ac_includes_default |
5464f5a1 NN |
18306 | int |
18307 | main () | |
18308 | { | |
d34a2b1d JG |
18309 | #ifndef getenv |
18310 | char *p = (char *) getenv; | |
18311 | #endif | |
18312 | ||
5464f5a1 NN |
18313 | ; |
18314 | return 0; | |
18315 | } | |
18316 | _ACEOF | |
18317 | rm -f conftest.$ac_objext | |
18318 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18319 | (eval $ac_compile) 2>conftest.er1 | |
18320 | ac_status=$? | |
18321 | grep -v '^ *+' conftest.er1 >conftest.err | |
18322 | rm -f conftest.er1 | |
18323 | cat conftest.err >&5 | |
18324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18325 | (exit $ac_status); } && | |
7357c5b6 AM |
18326 | { ac_try='test -z "$ac_c_werror_flag" |
18327 | || test ! -s conftest.err' | |
5464f5a1 NN |
18328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18329 | (eval $ac_try) 2>&5 | |
18330 | ac_status=$? | |
18331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18332 | (exit $ac_status); }; } && | |
18333 | { ac_try='test -s conftest.$ac_objext' | |
18334 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18335 | (eval $ac_try) 2>&5 | |
18336 | ac_status=$? | |
18337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18338 | (exit $ac_status); }; }; then | |
d34a2b1d | 18339 | ac_cv_have_decl_getenv=yes |
252b5132 | 18340 | else |
5464f5a1 NN |
18341 | echo "$as_me: failed program was:" >&5 |
18342 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18343 | ||
d34a2b1d | 18344 | ac_cv_have_decl_getenv=no |
252b5132 | 18345 | fi |
5464f5a1 | 18346 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 18347 | fi |
d34a2b1d JG |
18348 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5 |
18349 | echo "${ECHO_T}$ac_cv_have_decl_getenv" >&6 | |
18350 | if test $ac_cv_have_decl_getenv = yes; then | |
252b5132 | 18351 | |
d34a2b1d JG |
18352 | cat >>confdefs.h <<_ACEOF |
18353 | #define HAVE_DECL_GETENV 1 | |
18354 | _ACEOF | |
5464f5a1 | 18355 | |
d34a2b1d JG |
18356 | |
18357 | else | |
18358 | cat >>confdefs.h <<_ACEOF | |
18359 | #define HAVE_DECL_GETENV 0 | |
5464f5a1 | 18360 | _ACEOF |
252b5132 | 18361 | |
d34a2b1d | 18362 | |
252b5132 RH |
18363 | fi |
18364 | ||
d34a2b1d JG |
18365 | |
18366 | echo "$as_me:$LINENO: checking whether malloc is declared" >&5 | |
18367 | echo $ECHO_N "checking whether malloc is declared... $ECHO_C" >&6 | |
18368 | if test "${ac_cv_have_decl_malloc+set}" = set; then | |
5464f5a1 | 18369 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 18370 | else |
5464f5a1 NN |
18371 | cat >conftest.$ac_ext <<_ACEOF |
18372 | /* confdefs.h. */ | |
18373 | _ACEOF | |
18374 | cat confdefs.h >>conftest.$ac_ext | |
18375 | cat >>conftest.$ac_ext <<_ACEOF | |
18376 | /* end confdefs.h. */ | |
d34a2b1d | 18377 | $ac_includes_default |
5464f5a1 NN |
18378 | int |
18379 | main () | |
18380 | { | |
d34a2b1d JG |
18381 | #ifndef malloc |
18382 | char *p = (char *) malloc; | |
18383 | #endif | |
18384 | ||
5464f5a1 NN |
18385 | ; |
18386 | return 0; | |
18387 | } | |
18388 | _ACEOF | |
18389 | rm -f conftest.$ac_objext | |
18390 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18391 | (eval $ac_compile) 2>conftest.er1 | |
18392 | ac_status=$? | |
18393 | grep -v '^ *+' conftest.er1 >conftest.err | |
18394 | rm -f conftest.er1 | |
18395 | cat conftest.err >&5 | |
18396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18397 | (exit $ac_status); } && | |
7357c5b6 AM |
18398 | { ac_try='test -z "$ac_c_werror_flag" |
18399 | || test ! -s conftest.err' | |
5464f5a1 NN |
18400 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18401 | (eval $ac_try) 2>&5 | |
18402 | ac_status=$? | |
18403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18404 | (exit $ac_status); }; } && | |
18405 | { ac_try='test -s conftest.$ac_objext' | |
18406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18407 | (eval $ac_try) 2>&5 | |
18408 | ac_status=$? | |
18409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18410 | (exit $ac_status); }; }; then | |
d34a2b1d | 18411 | ac_cv_have_decl_malloc=yes |
252b5132 | 18412 | else |
5464f5a1 NN |
18413 | echo "$as_me: failed program was:" >&5 |
18414 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18415 | ||
d34a2b1d | 18416 | ac_cv_have_decl_malloc=no |
252b5132 | 18417 | fi |
5464f5a1 | 18418 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 18419 | fi |
d34a2b1d JG |
18420 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_malloc" >&5 |
18421 | echo "${ECHO_T}$ac_cv_have_decl_malloc" >&6 | |
18422 | if test $ac_cv_have_decl_malloc = yes; then | |
252b5132 | 18423 | |
d34a2b1d JG |
18424 | cat >>confdefs.h <<_ACEOF |
18425 | #define HAVE_DECL_MALLOC 1 | |
18426 | _ACEOF | |
5464f5a1 | 18427 | |
d34a2b1d JG |
18428 | |
18429 | else | |
18430 | cat >>confdefs.h <<_ACEOF | |
18431 | #define HAVE_DECL_MALLOC 0 | |
5464f5a1 | 18432 | _ACEOF |
252b5132 | 18433 | |
d34a2b1d | 18434 | |
252b5132 RH |
18435 | fi |
18436 | ||
d34a2b1d JG |
18437 | |
18438 | echo "$as_me:$LINENO: checking whether realloc is declared" >&5 | |
18439 | echo $ECHO_N "checking whether realloc is declared... $ECHO_C" >&6 | |
18440 | if test "${ac_cv_have_decl_realloc+set}" = set; then | |
5464f5a1 | 18441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
252b5132 | 18442 | else |
5464f5a1 NN |
18443 | cat >conftest.$ac_ext <<_ACEOF |
18444 | /* confdefs.h. */ | |
18445 | _ACEOF | |
18446 | cat confdefs.h >>conftest.$ac_ext | |
18447 | cat >>conftest.$ac_ext <<_ACEOF | |
18448 | /* end confdefs.h. */ | |
d34a2b1d | 18449 | $ac_includes_default |
5464f5a1 NN |
18450 | int |
18451 | main () | |
18452 | { | |
d34a2b1d JG |
18453 | #ifndef realloc |
18454 | char *p = (char *) realloc; | |
18455 | #endif | |
18456 | ||
5464f5a1 NN |
18457 | ; |
18458 | return 0; | |
18459 | } | |
18460 | _ACEOF | |
18461 | rm -f conftest.$ac_objext | |
18462 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18463 | (eval $ac_compile) 2>conftest.er1 | |
18464 | ac_status=$? | |
18465 | grep -v '^ *+' conftest.er1 >conftest.err | |
18466 | rm -f conftest.er1 | |
18467 | cat conftest.err >&5 | |
18468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18469 | (exit $ac_status); } && | |
7357c5b6 AM |
18470 | { ac_try='test -z "$ac_c_werror_flag" |
18471 | || test ! -s conftest.err' | |
5464f5a1 NN |
18472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18473 | (eval $ac_try) 2>&5 | |
18474 | ac_status=$? | |
18475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18476 | (exit $ac_status); }; } && | |
18477 | { ac_try='test -s conftest.$ac_objext' | |
18478 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18479 | (eval $ac_try) 2>&5 | |
18480 | ac_status=$? | |
18481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18482 | (exit $ac_status); }; }; then | |
d34a2b1d | 18483 | ac_cv_have_decl_realloc=yes |
252b5132 | 18484 | else |
5464f5a1 NN |
18485 | echo "$as_me: failed program was:" >&5 |
18486 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18487 | ||
d34a2b1d | 18488 | ac_cv_have_decl_realloc=no |
252b5132 | 18489 | fi |
5464f5a1 | 18490 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 | 18491 | fi |
d34a2b1d JG |
18492 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_realloc" >&5 |
18493 | echo "${ECHO_T}$ac_cv_have_decl_realloc" >&6 | |
18494 | if test $ac_cv_have_decl_realloc = yes; then | |
18495 | ||
18496 | cat >>confdefs.h <<_ACEOF | |
18497 | #define HAVE_DECL_REALLOC 1 | |
18498 | _ACEOF | |
252b5132 | 18499 | |
5464f5a1 | 18500 | |
d34a2b1d JG |
18501 | else |
18502 | cat >>confdefs.h <<_ACEOF | |
18503 | #define HAVE_DECL_REALLOC 0 | |
efa9bda4 AL |
18504 | _ACEOF |
18505 | ||
d34a2b1d | 18506 | |
efa9bda4 AL |
18507 | fi |
18508 | ||
d34a2b1d | 18509 | |
be5cacdb L |
18510 | echo "$as_me:$LINENO: checking whether stpcpy is declared" >&5 |
18511 | echo $ECHO_N "checking whether stpcpy is declared... $ECHO_C" >&6 | |
18512 | if test "${ac_cv_have_decl_stpcpy+set}" = set; then | |
18513 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18514 | else | |
18515 | cat >conftest.$ac_ext <<_ACEOF | |
18516 | /* confdefs.h. */ | |
18517 | _ACEOF | |
18518 | cat confdefs.h >>conftest.$ac_ext | |
18519 | cat >>conftest.$ac_ext <<_ACEOF | |
18520 | /* end confdefs.h. */ | |
18521 | $ac_includes_default | |
18522 | int | |
18523 | main () | |
18524 | { | |
18525 | #ifndef stpcpy | |
18526 | char *p = (char *) stpcpy; | |
18527 | #endif | |
18528 | ||
18529 | ; | |
18530 | return 0; | |
18531 | } | |
18532 | _ACEOF | |
18533 | rm -f conftest.$ac_objext | |
18534 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18535 | (eval $ac_compile) 2>conftest.er1 | |
18536 | ac_status=$? | |
18537 | grep -v '^ *+' conftest.er1 >conftest.err | |
18538 | rm -f conftest.er1 | |
18539 | cat conftest.err >&5 | |
18540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18541 | (exit $ac_status); } && | |
7357c5b6 AM |
18542 | { ac_try='test -z "$ac_c_werror_flag" |
18543 | || test ! -s conftest.err' | |
be5cacdb L |
18544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18545 | (eval $ac_try) 2>&5 | |
18546 | ac_status=$? | |
18547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18548 | (exit $ac_status); }; } && | |
18549 | { ac_try='test -s conftest.$ac_objext' | |
18550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18551 | (eval $ac_try) 2>&5 | |
18552 | ac_status=$? | |
18553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18554 | (exit $ac_status); }; }; then | |
18555 | ac_cv_have_decl_stpcpy=yes | |
18556 | else | |
18557 | echo "$as_me: failed program was:" >&5 | |
18558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18559 | ||
18560 | ac_cv_have_decl_stpcpy=no | |
18561 | fi | |
18562 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
18563 | fi | |
18564 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_stpcpy" >&5 | |
18565 | echo "${ECHO_T}$ac_cv_have_decl_stpcpy" >&6 | |
18566 | if test $ac_cv_have_decl_stpcpy = yes; then | |
18567 | ||
18568 | cat >>confdefs.h <<_ACEOF | |
18569 | #define HAVE_DECL_STPCPY 1 | |
18570 | _ACEOF | |
18571 | ||
18572 | ||
18573 | else | |
18574 | cat >>confdefs.h <<_ACEOF | |
18575 | #define HAVE_DECL_STPCPY 0 | |
18576 | _ACEOF | |
18577 | ||
18578 | ||
18579 | fi | |
18580 | ||
18581 | ||
d34a2b1d JG |
18582 | echo "$as_me:$LINENO: checking whether strstr is declared" >&5 |
18583 | echo $ECHO_N "checking whether strstr is declared... $ECHO_C" >&6 | |
18584 | if test "${ac_cv_have_decl_strstr+set}" = set; then | |
efa9bda4 AL |
18585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18586 | else | |
18587 | cat >conftest.$ac_ext <<_ACEOF | |
18588 | /* confdefs.h. */ | |
18589 | _ACEOF | |
18590 | cat confdefs.h >>conftest.$ac_ext | |
18591 | cat >>conftest.$ac_ext <<_ACEOF | |
18592 | /* end confdefs.h. */ | |
d34a2b1d | 18593 | $ac_includes_default |
efa9bda4 AL |
18594 | int |
18595 | main () | |
18596 | { | |
d34a2b1d JG |
18597 | #ifndef strstr |
18598 | char *p = (char *) strstr; | |
18599 | #endif | |
18600 | ||
efa9bda4 AL |
18601 | ; |
18602 | return 0; | |
18603 | } | |
18604 | _ACEOF | |
18605 | rm -f conftest.$ac_objext | |
18606 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18607 | (eval $ac_compile) 2>conftest.er1 | |
18608 | ac_status=$? | |
18609 | grep -v '^ *+' conftest.er1 >conftest.err | |
18610 | rm -f conftest.er1 | |
18611 | cat conftest.err >&5 | |
18612 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18613 | (exit $ac_status); } && | |
7357c5b6 AM |
18614 | { ac_try='test -z "$ac_c_werror_flag" |
18615 | || test ! -s conftest.err' | |
efa9bda4 AL |
18616 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18617 | (eval $ac_try) 2>&5 | |
18618 | ac_status=$? | |
18619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18620 | (exit $ac_status); }; } && | |
18621 | { ac_try='test -s conftest.$ac_objext' | |
18622 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18623 | (eval $ac_try) 2>&5 | |
18624 | ac_status=$? | |
18625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18626 | (exit $ac_status); }; }; then | |
d34a2b1d | 18627 | ac_cv_have_decl_strstr=yes |
efa9bda4 AL |
18628 | else |
18629 | echo "$as_me: failed program was:" >&5 | |
18630 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18631 | ||
d34a2b1d | 18632 | ac_cv_have_decl_strstr=no |
efa9bda4 AL |
18633 | fi |
18634 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
18635 | fi | |
d34a2b1d JG |
18636 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_strstr" >&5 |
18637 | echo "${ECHO_T}$ac_cv_have_decl_strstr" >&6 | |
18638 | if test $ac_cv_have_decl_strstr = yes; then | |
efa9bda4 | 18639 | |
d34a2b1d JG |
18640 | cat >>confdefs.h <<_ACEOF |
18641 | #define HAVE_DECL_STRSTR 1 | |
18642 | _ACEOF | |
efa9bda4 | 18643 | |
d34a2b1d JG |
18644 | |
18645 | else | |
18646 | cat >>confdefs.h <<_ACEOF | |
18647 | #define HAVE_DECL_STRSTR 0 | |
5464f5a1 | 18648 | _ACEOF |
252b5132 | 18649 | |
d34a2b1d | 18650 | |
252b5132 RH |
18651 | fi |
18652 | ||
6be7c12c | 18653 | |
36527912 AJ |
18654 | echo "$as_me:$LINENO: checking whether snprintf is declared" >&5 |
18655 | echo $ECHO_N "checking whether snprintf is declared... $ECHO_C" >&6 | |
18656 | if test "${ac_cv_have_decl_snprintf+set}" = set; then | |
18657 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18658 | else | |
18659 | cat >conftest.$ac_ext <<_ACEOF | |
18660 | /* confdefs.h. */ | |
18661 | _ACEOF | |
18662 | cat confdefs.h >>conftest.$ac_ext | |
18663 | cat >>conftest.$ac_ext <<_ACEOF | |
18664 | /* end confdefs.h. */ | |
18665 | $ac_includes_default | |
18666 | int | |
18667 | main () | |
18668 | { | |
18669 | #ifndef snprintf | |
18670 | char *p = (char *) snprintf; | |
18671 | #endif | |
18672 | ||
18673 | ; | |
18674 | return 0; | |
18675 | } | |
18676 | _ACEOF | |
18677 | rm -f conftest.$ac_objext | |
18678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18679 | (eval $ac_compile) 2>conftest.er1 | |
18680 | ac_status=$? | |
18681 | grep -v '^ *+' conftest.er1 >conftest.err | |
18682 | rm -f conftest.er1 | |
18683 | cat conftest.err >&5 | |
18684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18685 | (exit $ac_status); } && | |
7357c5b6 AM |
18686 | { ac_try='test -z "$ac_c_werror_flag" |
18687 | || test ! -s conftest.err' | |
36527912 AJ |
18688 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18689 | (eval $ac_try) 2>&5 | |
18690 | ac_status=$? | |
18691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18692 | (exit $ac_status); }; } && | |
18693 | { ac_try='test -s conftest.$ac_objext' | |
18694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18695 | (eval $ac_try) 2>&5 | |
18696 | ac_status=$? | |
18697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18698 | (exit $ac_status); }; }; then | |
18699 | ac_cv_have_decl_snprintf=yes | |
18700 | else | |
18701 | echo "$as_me: failed program was:" >&5 | |
18702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18703 | ||
18704 | ac_cv_have_decl_snprintf=no | |
18705 | fi | |
18706 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
18707 | fi | |
18708 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5 | |
18709 | echo "${ECHO_T}$ac_cv_have_decl_snprintf" >&6 | |
18710 | if test $ac_cv_have_decl_snprintf = yes; then | |
18711 | ||
18712 | cat >>confdefs.h <<_ACEOF | |
18713 | #define HAVE_DECL_SNPRINTF 1 | |
18714 | _ACEOF | |
18715 | ||
18716 | ||
18717 | else | |
18718 | cat >>confdefs.h <<_ACEOF | |
18719 | #define HAVE_DECL_SNPRINTF 0 | |
18720 | _ACEOF | |
18721 | ||
18722 | ||
18723 | fi | |
18724 | ||
18725 | ||
18726 | echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5 | |
18727 | echo $ECHO_N "checking whether vsnprintf is declared... $ECHO_C" >&6 | |
18728 | if test "${ac_cv_have_decl_vsnprintf+set}" = set; then | |
18729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18730 | else | |
18731 | cat >conftest.$ac_ext <<_ACEOF | |
18732 | /* confdefs.h. */ | |
18733 | _ACEOF | |
18734 | cat confdefs.h >>conftest.$ac_ext | |
18735 | cat >>conftest.$ac_ext <<_ACEOF | |
18736 | /* end confdefs.h. */ | |
18737 | $ac_includes_default | |
18738 | int | |
18739 | main () | |
18740 | { | |
18741 | #ifndef vsnprintf | |
18742 | char *p = (char *) vsnprintf; | |
18743 | #endif | |
18744 | ||
18745 | ; | |
18746 | return 0; | |
18747 | } | |
18748 | _ACEOF | |
18749 | rm -f conftest.$ac_objext | |
18750 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18751 | (eval $ac_compile) 2>conftest.er1 | |
18752 | ac_status=$? | |
18753 | grep -v '^ *+' conftest.er1 >conftest.err | |
18754 | rm -f conftest.er1 | |
18755 | cat conftest.err >&5 | |
18756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18757 | (exit $ac_status); } && | |
7357c5b6 AM |
18758 | { ac_try='test -z "$ac_c_werror_flag" |
18759 | || test ! -s conftest.err' | |
36527912 AJ |
18760 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18761 | (eval $ac_try) 2>&5 | |
18762 | ac_status=$? | |
18763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18764 | (exit $ac_status); }; } && | |
18765 | { ac_try='test -s conftest.$ac_objext' | |
18766 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18767 | (eval $ac_try) 2>&5 | |
18768 | ac_status=$? | |
18769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18770 | (exit $ac_status); }; }; then | |
18771 | ac_cv_have_decl_vsnprintf=yes | |
18772 | else | |
18773 | echo "$as_me: failed program was:" >&5 | |
18774 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18775 | ||
18776 | ac_cv_have_decl_vsnprintf=no | |
18777 | fi | |
18778 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
18779 | fi | |
18780 | echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5 | |
18781 | echo "${ECHO_T}$ac_cv_have_decl_vsnprintf" >&6 | |
18782 | if test $ac_cv_have_decl_vsnprintf = yes; then | |
18783 | ||
18784 | cat >>confdefs.h <<_ACEOF | |
18785 | #define HAVE_DECL_VSNPRINTF 1 | |
18786 | _ACEOF | |
18787 | ||
18788 | ||
18789 | else | |
18790 | cat >>confdefs.h <<_ACEOF | |
18791 | #define HAVE_DECL_VSNPRINTF 0 | |
18792 | _ACEOF | |
18793 | ||
18794 | ||
18795 | fi | |
18796 | ||
18797 | ||
d34a2b1d | 18798 | |
1b315056 | 18799 | # Link in zlib if we can. This allows us to read compressed debug sections. |
7357c5b6 | 18800 | # This is used only by compress.c. |
1b315056 CS |
18801 | echo "$as_me:$LINENO: checking for library containing zlibVersion" >&5 |
18802 | echo $ECHO_N "checking for library containing zlibVersion... $ECHO_C" >&6 | |
18803 | if test "${ac_cv_search_zlibVersion+set}" = set; then | |
18804 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18805 | else | |
18806 | ac_func_search_save_LIBS=$LIBS | |
18807 | ac_cv_search_zlibVersion=no | |
18808 | cat >conftest.$ac_ext <<_ACEOF | |
18809 | /* confdefs.h. */ | |
18810 | _ACEOF | |
18811 | cat confdefs.h >>conftest.$ac_ext | |
18812 | cat >>conftest.$ac_ext <<_ACEOF | |
18813 | /* end confdefs.h. */ | |
18814 | ||
18815 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18816 | #ifdef __cplusplus | |
18817 | extern "C" | |
18818 | #endif | |
18819 | /* We use char because int might match the return type of a gcc2 | |
18820 | builtin and then its argument prototype would still apply. */ | |
18821 | char zlibVersion (); | |
18822 | int | |
18823 | main () | |
18824 | { | |
18825 | zlibVersion (); | |
18826 | ; | |
18827 | return 0; | |
18828 | } | |
18829 | _ACEOF | |
18830 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18831 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18832 | (eval $ac_link) 2>conftest.er1 | |
18833 | ac_status=$? | |
18834 | grep -v '^ *+' conftest.er1 >conftest.err | |
18835 | rm -f conftest.er1 | |
18836 | cat conftest.err >&5 | |
18837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18838 | (exit $ac_status); } && | |
7357c5b6 AM |
18839 | { ac_try='test -z "$ac_c_werror_flag" |
18840 | || test ! -s conftest.err' | |
1b315056 CS |
18841 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18842 | (eval $ac_try) 2>&5 | |
18843 | ac_status=$? | |
18844 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18845 | (exit $ac_status); }; } && | |
18846 | { ac_try='test -s conftest$ac_exeext' | |
18847 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18848 | (eval $ac_try) 2>&5 | |
18849 | ac_status=$? | |
18850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18851 | (exit $ac_status); }; }; then | |
18852 | ac_cv_search_zlibVersion="none required" | |
18853 | else | |
18854 | echo "$as_me: failed program was:" >&5 | |
18855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18856 | ||
18857 | fi | |
18858 | rm -f conftest.err conftest.$ac_objext \ | |
18859 | conftest$ac_exeext conftest.$ac_ext | |
18860 | if test "$ac_cv_search_zlibVersion" = no; then | |
18861 | for ac_lib in z; do | |
18862 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
18863 | cat >conftest.$ac_ext <<_ACEOF | |
18864 | /* confdefs.h. */ | |
18865 | _ACEOF | |
18866 | cat confdefs.h >>conftest.$ac_ext | |
18867 | cat >>conftest.$ac_ext <<_ACEOF | |
18868 | /* end confdefs.h. */ | |
18869 | ||
18870 | /* Override any gcc2 internal prototype to avoid an error. */ | |
18871 | #ifdef __cplusplus | |
18872 | extern "C" | |
18873 | #endif | |
18874 | /* We use char because int might match the return type of a gcc2 | |
18875 | builtin and then its argument prototype would still apply. */ | |
18876 | char zlibVersion (); | |
18877 | int | |
18878 | main () | |
18879 | { | |
18880 | zlibVersion (); | |
18881 | ; | |
18882 | return 0; | |
18883 | } | |
18884 | _ACEOF | |
18885 | rm -f conftest.$ac_objext conftest$ac_exeext | |
18886 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
18887 | (eval $ac_link) 2>conftest.er1 | |
18888 | ac_status=$? | |
18889 | grep -v '^ *+' conftest.er1 >conftest.err | |
18890 | rm -f conftest.er1 | |
18891 | cat conftest.err >&5 | |
18892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18893 | (exit $ac_status); } && | |
7357c5b6 AM |
18894 | { ac_try='test -z "$ac_c_werror_flag" |
18895 | || test ! -s conftest.err' | |
1b315056 CS |
18896 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18897 | (eval $ac_try) 2>&5 | |
18898 | ac_status=$? | |
18899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18900 | (exit $ac_status); }; } && | |
18901 | { ac_try='test -s conftest$ac_exeext' | |
18902 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18903 | (eval $ac_try) 2>&5 | |
18904 | ac_status=$? | |
18905 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18906 | (exit $ac_status); }; }; then | |
18907 | ac_cv_search_zlibVersion="-l$ac_lib" | |
18908 | break | |
18909 | else | |
18910 | echo "$as_me: failed program was:" >&5 | |
18911 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18912 | ||
18913 | fi | |
18914 | rm -f conftest.err conftest.$ac_objext \ | |
18915 | conftest$ac_exeext conftest.$ac_ext | |
18916 | done | |
18917 | fi | |
18918 | LIBS=$ac_func_search_save_LIBS | |
18919 | fi | |
18920 | echo "$as_me:$LINENO: result: $ac_cv_search_zlibVersion" >&5 | |
18921 | echo "${ECHO_T}$ac_cv_search_zlibVersion" >&6 | |
18922 | if test "$ac_cv_search_zlibVersion" != no; then | |
18923 | test "$ac_cv_search_zlibVersion" = "none required" || LIBS="$ac_cv_search_zlibVersion $LIBS" | |
18924 | ||
18925 | for ac_header in zlib.h | |
18926 | do | |
18927 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
18928 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18929 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
18930 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
18931 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
18932 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18933 | fi | |
18934 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
18935 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
18936 | else | |
18937 | # Is the header compilable? | |
18938 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
18939 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
18940 | cat >conftest.$ac_ext <<_ACEOF | |
18941 | /* confdefs.h. */ | |
18942 | _ACEOF | |
18943 | cat confdefs.h >>conftest.$ac_ext | |
18944 | cat >>conftest.$ac_ext <<_ACEOF | |
18945 | /* end confdefs.h. */ | |
18946 | $ac_includes_default | |
18947 | #include <$ac_header> | |
18948 | _ACEOF | |
18949 | rm -f conftest.$ac_objext | |
18950 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
18951 | (eval $ac_compile) 2>conftest.er1 | |
18952 | ac_status=$? | |
18953 | grep -v '^ *+' conftest.er1 >conftest.err | |
18954 | rm -f conftest.er1 | |
18955 | cat conftest.err >&5 | |
18956 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18957 | (exit $ac_status); } && | |
7357c5b6 AM |
18958 | { ac_try='test -z "$ac_c_werror_flag" |
18959 | || test ! -s conftest.err' | |
1b315056 CS |
18960 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
18961 | (eval $ac_try) 2>&5 | |
18962 | ac_status=$? | |
18963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18964 | (exit $ac_status); }; } && | |
18965 | { ac_try='test -s conftest.$ac_objext' | |
18966 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
18967 | (eval $ac_try) 2>&5 | |
18968 | ac_status=$? | |
18969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
18970 | (exit $ac_status); }; }; then | |
18971 | ac_header_compiler=yes | |
18972 | else | |
18973 | echo "$as_me: failed program was:" >&5 | |
18974 | sed 's/^/| /' conftest.$ac_ext >&5 | |
18975 | ||
18976 | ac_header_compiler=no | |
18977 | fi | |
18978 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
18979 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
18980 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
18981 | ||
18982 | # Is the header present? | |
18983 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
18984 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
18985 | cat >conftest.$ac_ext <<_ACEOF | |
18986 | /* confdefs.h. */ | |
18987 | _ACEOF | |
18988 | cat confdefs.h >>conftest.$ac_ext | |
18989 | cat >>conftest.$ac_ext <<_ACEOF | |
18990 | /* end confdefs.h. */ | |
18991 | #include <$ac_header> | |
18992 | _ACEOF | |
18993 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
18994 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
18995 | ac_status=$? | |
18996 | grep -v '^ *+' conftest.er1 >conftest.err | |
18997 | rm -f conftest.er1 | |
18998 | cat conftest.err >&5 | |
18999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19000 | (exit $ac_status); } >/dev/null; then | |
19001 | if test -s conftest.err; then | |
19002 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19003 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
19004 | else | |
19005 | ac_cpp_err= | |
19006 | fi | |
19007 | else | |
19008 | ac_cpp_err=yes | |
19009 | fi | |
19010 | if test -z "$ac_cpp_err"; then | |
19011 | ac_header_preproc=yes | |
19012 | else | |
19013 | echo "$as_me: failed program was:" >&5 | |
19014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19015 | ||
19016 | ac_header_preproc=no | |
19017 | fi | |
19018 | rm -f conftest.err conftest.$ac_ext | |
19019 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19020 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19021 | ||
19022 | # So? What about this header? | |
19023 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19024 | yes:no: ) | |
19025 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19026 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19027 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
19028 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
19029 | ac_header_preproc=yes | |
19030 | ;; | |
19031 | no:yes:* ) | |
19032 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
19033 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
19034 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
19035 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
19036 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
19037 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
19038 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
19039 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
19040 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
19041 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19042 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
19043 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19044 | ( | |
19045 | cat <<\_ASBOX | |
19046 | ## ------------------------------------------ ## | |
19047 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
19048 | ## ------------------------------------------ ## | |
19049 | _ASBOX | |
19050 | ) | | |
19051 | sed "s/^/$as_me: WARNING: /" >&2 | |
19052 | ;; | |
19053 | esac | |
19054 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19055 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19056 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19058 | else | |
19059 | eval "$as_ac_Header=\$ac_header_preproc" | |
19060 | fi | |
19061 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19062 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19063 | ||
19064 | fi | |
19065 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
19066 | cat >>confdefs.h <<_ACEOF | |
19067 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19068 | _ACEOF | |
19069 | ||
19070 | fi | |
19071 | ||
19072 | done | |
19073 | ||
19074 | fi | |
19075 | ||
19076 | ||
252b5132 RH |
19077 | # If we are configured native, pick a core file support file. |
19078 | COREFILE= | |
19079 | COREFLAG= | |
19080 | TRAD_HEADER= | |
19081 | if test "${target}" = "${host}"; then | |
19082 | case "${host}" in | |
13dfd2d0 | 19083 | alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu) |
46d59bfa DB |
19084 | COREFILE='' |
19085 | ;; | |
ed84e695 | 19086 | alpha*-*-linux-*) |
252b5132 RH |
19087 | COREFILE=trad-core.lo |
19088 | TRAD_HEADER='"hosts/alphalinux.h"' | |
19089 | ;; | |
690cc98b NC |
19090 | alpha*-*-netbsd* | alpha*-*-openbsd*) |
19091 | COREFILE=netbsd-core.lo | |
19092 | ;; | |
252b5132 | 19093 | alpha*-*-*) COREFILE=osf-core.lo ;; |
13dfd2d0 NC |
19094 | arm-*-freebsd* | arm-*-kfreebsd*-gnu) |
19095 | COREFILE='' ;; | |
e33533a4 MK |
19096 | arm-*-netbsd* | arm-*-openbsd*) |
19097 | COREFILE=netbsd-core.lo | |
19098 | ;; | |
252b5132 RH |
19099 | arm-*-riscix) COREFILE=trad-core.lo ;; |
19100 | hppa*-*-hpux*) COREFILE=hpux-core.lo ;; | |
19101 | hppa*-*-hiux*) COREFILE=hpux-core.lo ;; | |
19102 | hppa*-*-mpeix*) COREFILE=hpux-core.lo ;; | |
19103 | hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo" | |
19104 | COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; | |
eef0f186 MK |
19105 | hppa*-*-netbsd* | hppa*-*-openbsd*) |
19106 | COREFILE=netbsd-core.lo | |
19107 | ;; | |
19108 | ||
dc810e39 | 19109 | i370-*-*) |
5b93d8bb AM |
19110 | COREFILE=trad-core.lo |
19111 | TRAD_HEADER='"hosts/i370linux.h"' | |
19112 | ;; | |
19113 | ||
80c7c40a | 19114 | i[3-7]86-sequent-bsd*) |
5b93d8bb | 19115 | COREFILE=trad-core.lo |
252b5132 RH |
19116 | TRAD_HEADER='"hosts/symmetry.h"' |
19117 | ;; | |
80c7c40a NC |
19118 | i[3-7]86-sequent-sysv4*) ;; |
19119 | i[3-7]86-sequent-sysv*) | |
252b5132 RH |
19120 | COREFILE=trad-core.lo |
19121 | TRAD_HEADER='"hosts/symmetry.h"' | |
19122 | ;; | |
80c7c40a | 19123 | i[3-7]86-*-bsdi) |
7e3b3466 NC |
19124 | COREFILE= |
19125 | ;; | |
d2bef492 | 19126 | 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 |
19127 | COREFILE=trad-core.lo |
19128 | TRAD_HEADER='"hosts/i386bsd.h"' | |
19129 | ;; | |
0b3e17e9 | 19130 | i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*) |
d4af9775 DB |
19131 | COREFILE='' |
19132 | TRAD_HEADER='"hosts/i386bsd.h"' | |
19133 | ;; | |
4615568e | 19134 | i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*) |
252b5132 RH |
19135 | COREFILE=netbsd-core.lo |
19136 | ;; | |
80c7c40a | 19137 | i[3-7]86-esix-sysv3*) |
252b5132 RH |
19138 | COREFILE=trad-core.lo |
19139 | TRAD_HEADER='"hosts/esix.h"' | |
19140 | ;; | |
80c7c40a | 19141 | i[3-7]86-*-sco3.2v5*) |
252b5132 RH |
19142 | COREFILE=sco5-core.lo |
19143 | ;; | |
80c7c40a | 19144 | i[3-7]86-*-sco* | i[3-7]86-*-isc*) |
252b5132 RH |
19145 | COREFILE=trad-core.lo |
19146 | TRAD_HEADER='"hosts/i386sco.h"' | |
19147 | ;; | |
80c7c40a | 19148 | i[3-7]86-*-mach3*) |
252b5132 RH |
19149 | COREFILE=trad-core.lo |
19150 | TRAD_HEADER='"hosts/i386mach3.h"' | |
19151 | ;; | |
ed84e695 | 19152 | i[3-7]86-*-linux-*) |
252b5132 RH |
19153 | COREFILE=trad-core.lo |
19154 | TRAD_HEADER='"hosts/i386linux.h"' | |
19155 | ;; | |
80c7c40a NC |
19156 | i[3-7]86-*-isc*) COREFILE=trad-core.lo ;; |
19157 | i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;; | |
252b5132 RH |
19158 | i860-*-mach3* | i860-*-osf1*) |
19159 | COREFILE=trad-core.lo | |
19160 | TRAD_HEADER='"hosts/i860mach3.h"' | |
19161 | ;; | |
252b5132 RH |
19162 | mips-*-netbsd* | mips*-*-openbsd*) |
19163 | COREFILE=netbsd-core.lo | |
19164 | ;; | |
19165 | mips-dec-*) | |
19166 | COREFILE=trad-core.lo | |
19167 | TRAD_HEADER='"hosts/decstation.h"' | |
19168 | ;; | |
19169 | mips-sgi-irix4*) COREFILE=irix-core.lo ;; | |
19170 | mips-sgi-irix5*) COREFILE=irix-core.lo ;; | |
19171 | mips-sgi-irix6*) COREFILE=irix-core.lo ;; | |
252b5132 RH |
19172 | mips-*-sysv4*) ;; |
19173 | mips-*-sysv* | mips-*-riscos*) | |
19174 | COREFILE=trad-core.lo | |
19175 | TRAD_HEADER='"hosts/riscos.h"' | |
19176 | ;; | |
19177 | mips-sony-bsd*) | |
19178 | COREFILE=trad-core.lo | |
19179 | TRAD_HEADER='"hosts/news-mips.h"' | |
19180 | ;; | |
19181 | m68*-bull*-sysv*) | |
19182 | COREFILE=trad-core.lo | |
19183 | TRAD_HEADER='"hosts/dpx2.h"' | |
19184 | ;; | |
19185 | m68*-hp-hpux*) COREFILE=hpux-core.lo ;; | |
19186 | m68*-hp-bsd*) | |
19187 | COREFILE=trad-core.lo | |
19188 | TRAD_HEADER='"hosts/hp300bsd.h"' | |
19189 | ;; | |
ed84e695 | 19190 | m68*-*-linux-*) |
252b5132 RH |
19191 | COREFILE=trad-core.lo |
19192 | TRAD_HEADER='"hosts/m68klinux.h"' | |
19193 | ;; | |
19194 | m68*-motorola-sysv*) | |
19195 | COREFILE=trad-core.lo | |
19196 | TRAD_HEADER='"hosts/delta68.h"' | |
19197 | ;; | |
19198 | m68*-sony-*) | |
19199 | COREFILE=trad-core.lo | |
19200 | TRAD_HEADER='"hosts/news.h"' | |
19201 | ;; | |
19202 | m68*-*-netbsd* | m68*-*-openbsd*) | |
19203 | COREFILE=netbsd-core.lo | |
19204 | ;; | |
19205 | m68*-apple-aux*) | |
19206 | COREFILE=trad-core.lo | |
19207 | TRAD_HEADER='"hosts/m68kaux.h"' | |
19208 | ;; | |
eb1e0e80 NC |
19209 | m88*-*-sysv4*) |
19210 | ;; | |
19211 | m88*-motorola-sysv*) | |
19212 | COREFILE=ptrace-core.lo | |
19213 | ;; | |
252b5132 RH |
19214 | m88*-*-mach3*) |
19215 | COREFILE=trad-core.lo | |
19216 | TRAD_HEADER='"hosts/m88kmach3.h"' | |
19217 | ;; | |
c6f8758f NC |
19218 | m88*-*-openbsd*) |
19219 | COREFILE=netbsd-core.lo | |
19220 | ;; | |
252b5132 RH |
19221 | ns32k-pc532-mach) |
19222 | COREFILE=trad-core.lo | |
19223 | TRAD_HEADER='"hosts/pc532mach.h"' | |
19224 | ;; | |
19225 | ns32k-*-netbsd* | ns32k-*-openbsd*) | |
19226 | COREFILE=netbsd-core.lo | |
19227 | ;; | |
eb1e0e80 NC |
19228 | rs6000-*-lynx*) |
19229 | COREFILE=lynx-core.lo | |
19230 | ;; | |
e5231592 | 19231 | rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].*) |
eb1e0e80 NC |
19232 | COREFILE=rs6000-core.lo |
19233 | COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE" | |
19234 | ;; | |
83954261 | 19235 | rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*) |
653f71ca KB |
19236 | COREFILE=rs6000-core.lo |
19237 | COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE" | |
83954261 AM |
19238 | # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE |
19239 | # have c_impl as a member of struct core_dumpx | |
5464f5a1 NN |
19240 | echo "$as_me:$LINENO: checking for c_impl in struct core_dumpx" >&5 |
19241 | echo $ECHO_N "checking for c_impl in struct core_dumpx... $ECHO_C" >&6 | |
19242 | cat >conftest.$ac_ext <<_ACEOF | |
19243 | /* confdefs.h. */ | |
19244 | _ACEOF | |
19245 | cat confdefs.h >>conftest.$ac_ext | |
19246 | cat >>conftest.$ac_ext <<_ACEOF | |
19247 | /* end confdefs.h. */ | |
83954261 | 19248 | #include <core.h> |
5464f5a1 NN |
19249 | int |
19250 | main () | |
19251 | { | |
83954261 | 19252 | struct core_dumpx c; c.c_impl = 0; |
5464f5a1 NN |
19253 | ; |
19254 | return 0; | |
19255 | } | |
19256 | _ACEOF | |
19257 | rm -f conftest.$ac_objext | |
19258 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19259 | (eval $ac_compile) 2>conftest.er1 | |
19260 | ac_status=$? | |
19261 | grep -v '^ *+' conftest.er1 >conftest.err | |
19262 | rm -f conftest.er1 | |
19263 | cat conftest.err >&5 | |
19264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19265 | (exit $ac_status); } && | |
7357c5b6 AM |
19266 | { ac_try='test -z "$ac_c_werror_flag" |
19267 | || test ! -s conftest.err' | |
5464f5a1 NN |
19268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19269 | (eval $ac_try) 2>&5 | |
19270 | ac_status=$? | |
19271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19272 | (exit $ac_status); }; } && | |
19273 | { ac_try='test -s conftest.$ac_objext' | |
19274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19275 | (eval $ac_try) 2>&5 | |
19276 | ac_status=$? | |
19277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19278 | (exit $ac_status); }; }; then | |
19279 | ||
19280 | cat >>confdefs.h <<\_ACEOF | |
83954261 | 19281 | #define HAVE_ST_C_IMPL 1 |
5464f5a1 | 19282 | _ACEOF |
83954261 | 19283 | |
5464f5a1 NN |
19284 | echo "$as_me:$LINENO: result: yes" >&5 |
19285 | echo "${ECHO_T}yes" >&6 | |
83954261 | 19286 | else |
5464f5a1 NN |
19287 | echo "$as_me: failed program was:" >&5 |
19288 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19289 | ||
19290 | echo "$as_me:$LINENO: result: no" >&5 | |
19291 | echo "${ECHO_T}no" >&6 | |
83954261 | 19292 | fi |
5464f5a1 | 19293 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
653f71ca | 19294 | ;; |
252b5132 RH |
19295 | rs6000-*-aix4*) COREFILE=rs6000-core.lo ;; |
19296 | rs6000-*-*) COREFILE=rs6000-core.lo ;; | |
252b5132 RH |
19297 | powerpc-*-aix4*) COREFILE=rs6000-core.lo ;; |
19298 | powerpc-*-aix*) COREFILE=rs6000-core.lo ;; | |
19299 | powerpc-*-beos*) ;; | |
13dfd2d0 NC |
19300 | powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu) |
19301 | COREFILE='' ;; | |
252b5132 | 19302 | powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;; |
d4af9775 | 19303 | powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;; |
dc810e39 | 19304 | s390*-*-*) COREFILE=trad-core.lo ;; |
a38b2659 MK |
19305 | sh*-*-netbsd* | sh*-*-openbsd*) |
19306 | COREFILE=netbsd-core.lo | |
19307 | ;; | |
a9bf1154 | 19308 | sparc-*-netbsd* | sparc*-*-openbsd*) |
252b5132 RH |
19309 | COREFILE=netbsd-core.lo |
19310 | ;; | |
19311 | tahoe-*-*) | |
19312 | COREFILE=trad-core.lo | |
19313 | TRAD_HEADER='"hosts/tahoe.h"' | |
19314 | ;; | |
de6e5e1a NC |
19315 | vax-*-netbsd* | vax-*-openbsd*) |
19316 | COREFILE=netbsd-core.lo | |
19317 | ;; | |
252b5132 RH |
19318 | vax-*-ultrix2*) |
19319 | COREFILE=trad-core.lo | |
19320 | TRAD_HEADER='"hosts/vaxult2.h"' | |
19321 | ;; | |
19322 | vax-*-ultrix*) | |
19323 | COREFILE=trad-core.lo | |
19324 | TRAD_HEADER='"hosts/vaxult2.h"' | |
19325 | ;; | |
ed84e695 | 19326 | vax-*-linux-*) |
f8fc3443 NC |
19327 | COREFILE=trad-core.lo |
19328 | TRAD_HEADER='"hosts/vaxlinux.h"' | |
19329 | ;; | |
252b5132 RH |
19330 | vax-*-*) |
19331 | COREFILE=trad-core.lo | |
19332 | TRAD_HEADER='"hosts/vaxbsd.h"' | |
19333 | ;; | |
85cfd8d3 MK |
19334 | x86_64-*-netbsd* | x86_64-*-openbsd*) |
19335 | COREFILE=netbsd-core.lo | |
19336 | ;; | |
252b5132 RH |
19337 | esac |
19338 | ||
19339 | case "$COREFILE" in | |
19340 | aix386-core.lo) COREFLAG=-DAIX386_CORE ;; | |
19341 | hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;; | |
19342 | hpux-core.lo) COREFLAG=-DHPUX_CORE ;; | |
19343 | irix-core.lo) COREFLAG=-DIRIX_CORE ;; | |
19344 | lynx-core.lo) COREFLAG=-DLYNX_CORE ;; | |
19345 | netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;; | |
19346 | osf-core.lo) COREFLAG=-DOSF_CORE ;; | |
19347 | ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;; | |
19348 | rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;; | |
19349 | sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;; | |
19350 | trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;; | |
19351 | esac | |
19352 | ||
19353 | # ELF corefile support has several flavors, but all of | |
19354 | # them use something called <sys/procfs.h> | |
5464f5a1 NN |
19355 | |
19356 | for ac_header in sys/procfs.h | |
252b5132 | 19357 | do |
5464f5a1 NN |
19358 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
19359 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19360 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19361 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19362 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19363 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19364 | fi | |
19365 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19366 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19367 | else | |
19368 | # Is the header compilable? | |
19369 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
19370 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
19371 | cat >conftest.$ac_ext <<_ACEOF | |
19372 | /* confdefs.h. */ | |
19373 | _ACEOF | |
19374 | cat confdefs.h >>conftest.$ac_ext | |
19375 | cat >>conftest.$ac_ext <<_ACEOF | |
19376 | /* end confdefs.h. */ | |
19377 | $ac_includes_default | |
19378 | #include <$ac_header> | |
19379 | _ACEOF | |
19380 | rm -f conftest.$ac_objext | |
19381 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19382 | (eval $ac_compile) 2>conftest.er1 | |
19383 | ac_status=$? | |
19384 | grep -v '^ *+' conftest.er1 >conftest.err | |
19385 | rm -f conftest.er1 | |
19386 | cat conftest.err >&5 | |
19387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19388 | (exit $ac_status); } && | |
7357c5b6 AM |
19389 | { ac_try='test -z "$ac_c_werror_flag" |
19390 | || test ! -s conftest.err' | |
5464f5a1 NN |
19391 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19392 | (eval $ac_try) 2>&5 | |
19393 | ac_status=$? | |
19394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19395 | (exit $ac_status); }; } && | |
19396 | { ac_try='test -s conftest.$ac_objext' | |
19397 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19398 | (eval $ac_try) 2>&5 | |
19399 | ac_status=$? | |
19400 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19401 | (exit $ac_status); }; }; then | |
19402 | ac_header_compiler=yes | |
19403 | else | |
19404 | echo "$as_me: failed program was:" >&5 | |
19405 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19406 | ||
19407 | ac_header_compiler=no | |
19408 | fi | |
19409 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
19410 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
19411 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
19412 | ||
19413 | # Is the header present? | |
19414 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
19415 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
19416 | cat >conftest.$ac_ext <<_ACEOF | |
19417 | /* confdefs.h. */ | |
19418 | _ACEOF | |
19419 | cat confdefs.h >>conftest.$ac_ext | |
19420 | cat >>conftest.$ac_ext <<_ACEOF | |
19421 | /* end confdefs.h. */ | |
19422 | #include <$ac_header> | |
19423 | _ACEOF | |
19424 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
19425 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
19426 | ac_status=$? | |
19427 | grep -v '^ *+' conftest.er1 >conftest.err | |
19428 | rm -f conftest.er1 | |
19429 | cat conftest.err >&5 | |
19430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19431 | (exit $ac_status); } >/dev/null; then | |
19432 | if test -s conftest.err; then | |
19433 | ac_cpp_err=$ac_c_preproc_warn_flag | |
19434 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
19435 | else | |
19436 | ac_cpp_err= | |
19437 | fi | |
252b5132 | 19438 | else |
5464f5a1 | 19439 | ac_cpp_err=yes |
252b5132 | 19440 | fi |
5464f5a1 NN |
19441 | if test -z "$ac_cpp_err"; then |
19442 | ac_header_preproc=yes | |
19443 | else | |
19444 | echo "$as_me: failed program was:" >&5 | |
19445 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19446 | ||
19447 | ac_header_preproc=no | |
252b5132 | 19448 | fi |
5464f5a1 NN |
19449 | rm -f conftest.err conftest.$ac_ext |
19450 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
19451 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
19452 | ||
19453 | # So? What about this header? | |
19454 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
19455 | yes:no: ) | |
19456 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
19457 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
19458 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
19459 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
19460 | ac_header_preproc=yes | |
19461 | ;; | |
19462 | no:yes:* ) | |
19463 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
19464 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
19465 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
19466 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
19467 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
19468 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
19469 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
19470 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
19471 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
19472 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
19473 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
19474 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
19475 | ( | |
19476 | cat <<\_ASBOX | |
19477 | ## ------------------------------------------ ## | |
19478 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
19479 | ## ------------------------------------------ ## | |
19480 | _ASBOX | |
19481 | ) | | |
19482 | sed "s/^/$as_me: WARNING: /" >&2 | |
19483 | ;; | |
19484 | esac | |
19485 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
19486 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
19487 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
19488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 19489 | else |
5464f5a1 NN |
19490 | eval "$as_ac_Header=\$ac_header_preproc" |
19491 | fi | |
19492 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
19493 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
19494 | ||
252b5132 | 19495 | fi |
5464f5a1 NN |
19496 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
19497 | cat >>confdefs.h <<_ACEOF | |
19498 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
19499 | _ACEOF | |
19500 | ||
19501 | fi | |
19502 | ||
252b5132 RH |
19503 | done |
19504 | ||
19505 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
5464f5a1 NN |
19506 | echo "$as_me:$LINENO: checking for prstatus_t in sys/procfs.h" >&5 |
19507 | echo $ECHO_N "checking for prstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
19508 | if test "${bfd_cv_have_sys_procfs_type_prstatus_t+set}" = set; then | |
19509 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
19510 | else | |
19511 | cat >conftest.$ac_ext <<_ACEOF | |
19512 | /* confdefs.h. */ | |
19513 | _ACEOF | |
19514 | cat confdefs.h >>conftest.$ac_ext | |
19515 | cat >>conftest.$ac_ext <<_ACEOF | |
19516 | /* end confdefs.h. */ | |
7ee38065 MS |
19517 | |
19518 | #define _SYSCALL32 | |
252b5132 | 19519 | #include <sys/procfs.h> |
5464f5a1 NN |
19520 | int |
19521 | main () | |
19522 | { | |
252b5132 | 19523 | prstatus_t avar |
5464f5a1 NN |
19524 | ; |
19525 | return 0; | |
19526 | } | |
19527 | _ACEOF | |
19528 | rm -f conftest.$ac_objext | |
19529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19530 | (eval $ac_compile) 2>conftest.er1 | |
19531 | ac_status=$? | |
19532 | grep -v '^ *+' conftest.er1 >conftest.err | |
19533 | rm -f conftest.er1 | |
19534 | cat conftest.err >&5 | |
19535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19536 | (exit $ac_status); } && | |
7357c5b6 AM |
19537 | { ac_try='test -z "$ac_c_werror_flag" |
19538 | || test ! -s conftest.err' | |
5464f5a1 NN |
19539 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19540 | (eval $ac_try) 2>&5 | |
19541 | ac_status=$? | |
19542 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19543 | (exit $ac_status); }; } && | |
19544 | { ac_try='test -s conftest.$ac_objext' | |
19545 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19546 | (eval $ac_try) 2>&5 | |
19547 | ac_status=$? | |
19548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19549 | (exit $ac_status); }; }; then | |
252b5132 RH |
19550 | bfd_cv_have_sys_procfs_type_prstatus_t=yes |
19551 | else | |
5464f5a1 NN |
19552 | echo "$as_me: failed program was:" >&5 |
19553 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19554 | ||
19555 | bfd_cv_have_sys_procfs_type_prstatus_t=no | |
19556 | ||
252b5132 | 19557 | fi |
5464f5a1 | 19558 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
19559 | fi |
19560 | ||
19561 | if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then | |
5464f5a1 NN |
19562 | |
19563 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 19564 | #define HAVE_PRSTATUS_T 1 |
5464f5a1 | 19565 | _ACEOF |
252b5132 RH |
19566 | |
19567 | fi | |
5464f5a1 NN |
19568 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5 |
19569 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus_t" >&6 | |
252b5132 | 19570 | |
5464f5a1 NN |
19571 | echo "$as_me:$LINENO: checking for prstatus32_t in sys/procfs.h" >&5 |
19572 | echo $ECHO_N "checking for prstatus32_t in sys/procfs.h... $ECHO_C" >&6 | |
19573 | if test "${bfd_cv_have_sys_procfs_type_prstatus32_t+set}" = set; then | |
19574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 19575 | else |
5464f5a1 NN |
19576 | cat >conftest.$ac_ext <<_ACEOF |
19577 | /* confdefs.h. */ | |
19578 | _ACEOF | |
19579 | cat confdefs.h >>conftest.$ac_ext | |
19580 | cat >>conftest.$ac_ext <<_ACEOF | |
19581 | /* end confdefs.h. */ | |
7ee38065 MS |
19582 | |
19583 | #define _SYSCALL32 | |
19584 | #include <sys/procfs.h> | |
5464f5a1 NN |
19585 | int |
19586 | main () | |
19587 | { | |
7ee38065 | 19588 | prstatus32_t avar |
5464f5a1 NN |
19589 | ; |
19590 | return 0; | |
19591 | } | |
19592 | _ACEOF | |
19593 | rm -f conftest.$ac_objext | |
19594 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19595 | (eval $ac_compile) 2>conftest.er1 | |
19596 | ac_status=$? | |
19597 | grep -v '^ *+' conftest.er1 >conftest.err | |
19598 | rm -f conftest.er1 | |
19599 | cat conftest.err >&5 | |
19600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19601 | (exit $ac_status); } && | |
7357c5b6 AM |
19602 | { ac_try='test -z "$ac_c_werror_flag" |
19603 | || test ! -s conftest.err' | |
5464f5a1 NN |
19604 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19605 | (eval $ac_try) 2>&5 | |
19606 | ac_status=$? | |
19607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19608 | (exit $ac_status); }; } && | |
19609 | { ac_try='test -s conftest.$ac_objext' | |
19610 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19611 | (eval $ac_try) 2>&5 | |
19612 | ac_status=$? | |
19613 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19614 | (exit $ac_status); }; }; then | |
7ee38065 MS |
19615 | bfd_cv_have_sys_procfs_type_prstatus32_t=yes |
19616 | else | |
5464f5a1 NN |
19617 | echo "$as_me: failed program was:" >&5 |
19618 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19619 | ||
19620 | bfd_cv_have_sys_procfs_type_prstatus32_t=no | |
19621 | ||
7ee38065 | 19622 | fi |
5464f5a1 | 19623 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
19624 | fi |
19625 | ||
19626 | if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then | |
5464f5a1 NN |
19627 | |
19628 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 19629 | #define HAVE_PRSTATUS32_T 1 |
5464f5a1 | 19630 | _ACEOF |
7ee38065 MS |
19631 | |
19632 | fi | |
5464f5a1 NN |
19633 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5 |
19634 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6 | |
7ee38065 | 19635 | |
5464f5a1 NN |
19636 | echo "$as_me:$LINENO: checking for prstatus_t.pr_who in sys/procfs.h" >&5 |
19637 | echo $ECHO_N "checking for prstatus_t.pr_who in sys/procfs.h... $ECHO_C" >&6 | |
19638 | if test "${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+set}" = set; then | |
19639 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 19640 | else |
5464f5a1 NN |
19641 | cat >conftest.$ac_ext <<_ACEOF |
19642 | /* confdefs.h. */ | |
19643 | _ACEOF | |
19644 | cat confdefs.h >>conftest.$ac_ext | |
19645 | cat >>conftest.$ac_ext <<_ACEOF | |
19646 | /* end confdefs.h. */ | |
7ee38065 MS |
19647 | |
19648 | #define _SYSCALL32 | |
252b5132 | 19649 | #include <sys/procfs.h> |
5464f5a1 NN |
19650 | int |
19651 | main () | |
19652 | { | |
252b5132 | 19653 | prstatus_t avar; void* aref = (void*) &avar.pr_who |
5464f5a1 NN |
19654 | ; |
19655 | return 0; | |
19656 | } | |
19657 | _ACEOF | |
19658 | rm -f conftest.$ac_objext | |
19659 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19660 | (eval $ac_compile) 2>conftest.er1 | |
19661 | ac_status=$? | |
19662 | grep -v '^ *+' conftest.er1 >conftest.err | |
19663 | rm -f conftest.er1 | |
19664 | cat conftest.err >&5 | |
19665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19666 | (exit $ac_status); } && | |
7357c5b6 AM |
19667 | { ac_try='test -z "$ac_c_werror_flag" |
19668 | || test ! -s conftest.err' | |
5464f5a1 NN |
19669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19670 | (eval $ac_try) 2>&5 | |
19671 | ac_status=$? | |
19672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19673 | (exit $ac_status); }; } && | |
19674 | { ac_try='test -s conftest.$ac_objext' | |
19675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19676 | (eval $ac_try) 2>&5 | |
19677 | ac_status=$? | |
19678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19679 | (exit $ac_status); }; }; then | |
252b5132 RH |
19680 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes |
19681 | else | |
5464f5a1 NN |
19682 | echo "$as_me: failed program was:" >&5 |
19683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19684 | ||
19685 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no | |
19686 | ||
252b5132 | 19687 | fi |
5464f5a1 | 19688 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
19689 | fi |
19690 | ||
19691 | if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then | |
5464f5a1 NN |
19692 | |
19693 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 19694 | #define HAVE_PRSTATUS_T_PR_WHO 1 |
5464f5a1 | 19695 | _ACEOF |
252b5132 RH |
19696 | |
19697 | fi | |
5464f5a1 NN |
19698 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5 |
19699 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6 | |
252b5132 | 19700 | |
5464f5a1 NN |
19701 | echo "$as_me:$LINENO: checking for prstatus32_t.pr_who in sys/procfs.h" >&5 |
19702 | echo $ECHO_N "checking for prstatus32_t.pr_who in sys/procfs.h... $ECHO_C" >&6 | |
19703 | if test "${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+set}" = set; then | |
19704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 19705 | else |
5464f5a1 NN |
19706 | cat >conftest.$ac_ext <<_ACEOF |
19707 | /* confdefs.h. */ | |
19708 | _ACEOF | |
19709 | cat confdefs.h >>conftest.$ac_ext | |
19710 | cat >>conftest.$ac_ext <<_ACEOF | |
19711 | /* end confdefs.h. */ | |
7ee38065 MS |
19712 | |
19713 | #define _SYSCALL32 | |
19714 | #include <sys/procfs.h> | |
5464f5a1 NN |
19715 | int |
19716 | main () | |
19717 | { | |
7ee38065 | 19718 | prstatus32_t avar; void* aref = (void*) &avar.pr_who |
5464f5a1 NN |
19719 | ; |
19720 | return 0; | |
19721 | } | |
19722 | _ACEOF | |
19723 | rm -f conftest.$ac_objext | |
19724 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19725 | (eval $ac_compile) 2>conftest.er1 | |
19726 | ac_status=$? | |
19727 | grep -v '^ *+' conftest.er1 >conftest.err | |
19728 | rm -f conftest.er1 | |
19729 | cat conftest.err >&5 | |
19730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19731 | (exit $ac_status); } && | |
7357c5b6 AM |
19732 | { ac_try='test -z "$ac_c_werror_flag" |
19733 | || test ! -s conftest.err' | |
5464f5a1 NN |
19734 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19735 | (eval $ac_try) 2>&5 | |
19736 | ac_status=$? | |
19737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19738 | (exit $ac_status); }; } && | |
19739 | { ac_try='test -s conftest.$ac_objext' | |
19740 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19741 | (eval $ac_try) 2>&5 | |
19742 | ac_status=$? | |
19743 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19744 | (exit $ac_status); }; }; then | |
7ee38065 MS |
19745 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes |
19746 | else | |
5464f5a1 NN |
19747 | echo "$as_me: failed program was:" >&5 |
19748 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19749 | ||
19750 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no | |
19751 | ||
7ee38065 | 19752 | fi |
5464f5a1 | 19753 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
19754 | fi |
19755 | ||
19756 | if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then | |
5464f5a1 NN |
19757 | |
19758 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 19759 | #define HAVE_PRSTATUS32_T_PR_WHO 1 |
5464f5a1 | 19760 | _ACEOF |
7ee38065 MS |
19761 | |
19762 | fi | |
5464f5a1 NN |
19763 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5 |
19764 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6 | |
7ee38065 | 19765 | |
5464f5a1 NN |
19766 | echo "$as_me:$LINENO: checking for pstatus_t in sys/procfs.h" >&5 |
19767 | echo $ECHO_N "checking for pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
19768 | if test "${bfd_cv_have_sys_procfs_type_pstatus_t+set}" = set; then | |
19769 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 19770 | else |
5464f5a1 NN |
19771 | cat >conftest.$ac_ext <<_ACEOF |
19772 | /* confdefs.h. */ | |
19773 | _ACEOF | |
19774 | cat confdefs.h >>conftest.$ac_ext | |
19775 | cat >>conftest.$ac_ext <<_ACEOF | |
19776 | /* end confdefs.h. */ | |
7ee38065 MS |
19777 | |
19778 | #define _SYSCALL32 | |
252b5132 | 19779 | #include <sys/procfs.h> |
5464f5a1 NN |
19780 | int |
19781 | main () | |
19782 | { | |
252b5132 | 19783 | pstatus_t avar |
5464f5a1 NN |
19784 | ; |
19785 | return 0; | |
19786 | } | |
19787 | _ACEOF | |
19788 | rm -f conftest.$ac_objext | |
19789 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19790 | (eval $ac_compile) 2>conftest.er1 | |
19791 | ac_status=$? | |
19792 | grep -v '^ *+' conftest.er1 >conftest.err | |
19793 | rm -f conftest.er1 | |
19794 | cat conftest.err >&5 | |
19795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19796 | (exit $ac_status); } && | |
7357c5b6 AM |
19797 | { ac_try='test -z "$ac_c_werror_flag" |
19798 | || test ! -s conftest.err' | |
5464f5a1 NN |
19799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19800 | (eval $ac_try) 2>&5 | |
19801 | ac_status=$? | |
19802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19803 | (exit $ac_status); }; } && | |
19804 | { ac_try='test -s conftest.$ac_objext' | |
19805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19806 | (eval $ac_try) 2>&5 | |
19807 | ac_status=$? | |
19808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19809 | (exit $ac_status); }; }; then | |
252b5132 RH |
19810 | bfd_cv_have_sys_procfs_type_pstatus_t=yes |
19811 | else | |
5464f5a1 NN |
19812 | echo "$as_me: failed program was:" >&5 |
19813 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19814 | ||
19815 | bfd_cv_have_sys_procfs_type_pstatus_t=no | |
19816 | ||
252b5132 | 19817 | fi |
5464f5a1 | 19818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
19819 | fi |
19820 | ||
19821 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then | |
5464f5a1 NN |
19822 | |
19823 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 19824 | #define HAVE_PSTATUS_T 1 |
5464f5a1 | 19825 | _ACEOF |
252b5132 RH |
19826 | |
19827 | fi | |
5464f5a1 NN |
19828 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 |
19829 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus_t" >&6 | |
252b5132 | 19830 | |
5464f5a1 NN |
19831 | echo "$as_me:$LINENO: checking for pxstatus_t in sys/procfs.h" >&5 |
19832 | echo $ECHO_N "checking for pxstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
19833 | if test "${bfd_cv_have_sys_procfs_type_pxstatus_t+set}" = set; then | |
19834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f572a39d | 19835 | else |
5464f5a1 NN |
19836 | cat >conftest.$ac_ext <<_ACEOF |
19837 | /* confdefs.h. */ | |
19838 | _ACEOF | |
19839 | cat confdefs.h >>conftest.$ac_ext | |
19840 | cat >>conftest.$ac_ext <<_ACEOF | |
19841 | /* end confdefs.h. */ | |
f572a39d AM |
19842 | |
19843 | #define _SYSCALL32 | |
19844 | #include <sys/procfs.h> | |
5464f5a1 NN |
19845 | int |
19846 | main () | |
19847 | { | |
f572a39d | 19848 | pxstatus_t avar |
5464f5a1 NN |
19849 | ; |
19850 | return 0; | |
19851 | } | |
19852 | _ACEOF | |
19853 | rm -f conftest.$ac_objext | |
19854 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19855 | (eval $ac_compile) 2>conftest.er1 | |
19856 | ac_status=$? | |
19857 | grep -v '^ *+' conftest.er1 >conftest.err | |
19858 | rm -f conftest.er1 | |
19859 | cat conftest.err >&5 | |
19860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19861 | (exit $ac_status); } && | |
7357c5b6 AM |
19862 | { ac_try='test -z "$ac_c_werror_flag" |
19863 | || test ! -s conftest.err' | |
5464f5a1 NN |
19864 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19865 | (eval $ac_try) 2>&5 | |
19866 | ac_status=$? | |
19867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19868 | (exit $ac_status); }; } && | |
19869 | { ac_try='test -s conftest.$ac_objext' | |
19870 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19871 | (eval $ac_try) 2>&5 | |
19872 | ac_status=$? | |
19873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19874 | (exit $ac_status); }; }; then | |
f572a39d AM |
19875 | bfd_cv_have_sys_procfs_type_pxstatus_t=yes |
19876 | else | |
5464f5a1 NN |
19877 | echo "$as_me: failed program was:" >&5 |
19878 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19879 | ||
19880 | bfd_cv_have_sys_procfs_type_pxstatus_t=no | |
19881 | ||
f572a39d | 19882 | fi |
5464f5a1 | 19883 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f572a39d AM |
19884 | fi |
19885 | ||
19886 | if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then | |
5464f5a1 NN |
19887 | |
19888 | cat >>confdefs.h <<\_ACEOF | |
f572a39d | 19889 | #define HAVE_PXSTATUS_T 1 |
5464f5a1 | 19890 | _ACEOF |
f572a39d AM |
19891 | |
19892 | fi | |
5464f5a1 NN |
19893 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5 |
19894 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6 | |
f572a39d | 19895 | |
5464f5a1 NN |
19896 | echo "$as_me:$LINENO: checking for pstatus32_t in sys/procfs.h" >&5 |
19897 | echo $ECHO_N "checking for pstatus32_t in sys/procfs.h... $ECHO_C" >&6 | |
19898 | if test "${bfd_cv_have_sys_procfs_type_pstatus32_t+set}" = set; then | |
19899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 19900 | else |
5464f5a1 NN |
19901 | cat >conftest.$ac_ext <<_ACEOF |
19902 | /* confdefs.h. */ | |
19903 | _ACEOF | |
19904 | cat confdefs.h >>conftest.$ac_ext | |
19905 | cat >>conftest.$ac_ext <<_ACEOF | |
19906 | /* end confdefs.h. */ | |
7ee38065 MS |
19907 | |
19908 | #define _SYSCALL32 | |
19909 | #include <sys/procfs.h> | |
5464f5a1 NN |
19910 | int |
19911 | main () | |
19912 | { | |
7ee38065 | 19913 | pstatus32_t avar |
5464f5a1 NN |
19914 | ; |
19915 | return 0; | |
19916 | } | |
19917 | _ACEOF | |
19918 | rm -f conftest.$ac_objext | |
19919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19920 | (eval $ac_compile) 2>conftest.er1 | |
19921 | ac_status=$? | |
19922 | grep -v '^ *+' conftest.er1 >conftest.err | |
19923 | rm -f conftest.er1 | |
19924 | cat conftest.err >&5 | |
19925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19926 | (exit $ac_status); } && | |
7357c5b6 AM |
19927 | { ac_try='test -z "$ac_c_werror_flag" |
19928 | || test ! -s conftest.err' | |
5464f5a1 NN |
19929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19930 | (eval $ac_try) 2>&5 | |
19931 | ac_status=$? | |
19932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19933 | (exit $ac_status); }; } && | |
19934 | { ac_try='test -s conftest.$ac_objext' | |
19935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
19936 | (eval $ac_try) 2>&5 | |
19937 | ac_status=$? | |
19938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19939 | (exit $ac_status); }; }; then | |
7ee38065 MS |
19940 | bfd_cv_have_sys_procfs_type_pstatus32_t=yes |
19941 | else | |
5464f5a1 NN |
19942 | echo "$as_me: failed program was:" >&5 |
19943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19944 | ||
19945 | bfd_cv_have_sys_procfs_type_pstatus32_t=no | |
19946 | ||
7ee38065 | 19947 | fi |
5464f5a1 | 19948 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
19949 | fi |
19950 | ||
19951 | if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then | |
5464f5a1 NN |
19952 | |
19953 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 19954 | #define HAVE_PSTATUS32_T 1 |
5464f5a1 | 19955 | _ACEOF |
7ee38065 MS |
19956 | |
19957 | fi | |
5464f5a1 NN |
19958 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5 |
19959 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6 | |
7ee38065 | 19960 | |
5464f5a1 NN |
19961 | echo "$as_me:$LINENO: checking for prpsinfo_t in sys/procfs.h" >&5 |
19962 | echo $ECHO_N "checking for prpsinfo_t in sys/procfs.h... $ECHO_C" >&6 | |
19963 | if test "${bfd_cv_have_sys_procfs_type_prpsinfo_t+set}" = set; then | |
19964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 19965 | else |
5464f5a1 NN |
19966 | cat >conftest.$ac_ext <<_ACEOF |
19967 | /* confdefs.h. */ | |
19968 | _ACEOF | |
19969 | cat confdefs.h >>conftest.$ac_ext | |
19970 | cat >>conftest.$ac_ext <<_ACEOF | |
19971 | /* end confdefs.h. */ | |
7ee38065 MS |
19972 | |
19973 | #define _SYSCALL32 | |
252b5132 | 19974 | #include <sys/procfs.h> |
5464f5a1 NN |
19975 | int |
19976 | main () | |
19977 | { | |
252b5132 | 19978 | prpsinfo_t avar |
5464f5a1 NN |
19979 | ; |
19980 | return 0; | |
19981 | } | |
19982 | _ACEOF | |
19983 | rm -f conftest.$ac_objext | |
19984 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19985 | (eval $ac_compile) 2>conftest.er1 | |
19986 | ac_status=$? | |
19987 | grep -v '^ *+' conftest.er1 >conftest.err | |
19988 | rm -f conftest.er1 | |
19989 | cat conftest.err >&5 | |
19990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19991 | (exit $ac_status); } && | |
7357c5b6 AM |
19992 | { ac_try='test -z "$ac_c_werror_flag" |
19993 | || test ! -s conftest.err' | |
5464f5a1 NN |
19994 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
19995 | (eval $ac_try) 2>&5 | |
19996 | ac_status=$? | |
19997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19998 | (exit $ac_status); }; } && | |
19999 | { ac_try='test -s conftest.$ac_objext' | |
20000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20001 | (eval $ac_try) 2>&5 | |
20002 | ac_status=$? | |
20003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20004 | (exit $ac_status); }; }; then | |
252b5132 RH |
20005 | bfd_cv_have_sys_procfs_type_prpsinfo_t=yes |
20006 | else | |
5464f5a1 NN |
20007 | echo "$as_me: failed program was:" >&5 |
20008 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20009 | ||
20010 | bfd_cv_have_sys_procfs_type_prpsinfo_t=no | |
20011 | ||
252b5132 | 20012 | fi |
5464f5a1 | 20013 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
20014 | fi |
20015 | ||
20016 | if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then | |
5464f5a1 NN |
20017 | |
20018 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 20019 | #define HAVE_PRPSINFO_T 1 |
5464f5a1 | 20020 | _ACEOF |
252b5132 RH |
20021 | |
20022 | fi | |
5464f5a1 NN |
20023 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5 |
20024 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6 | |
252b5132 | 20025 | |
5464f5a1 NN |
20026 | echo "$as_me:$LINENO: checking for prpsinfo32_t in sys/procfs.h" >&5 |
20027 | echo $ECHO_N "checking for prpsinfo32_t in sys/procfs.h... $ECHO_C" >&6 | |
20028 | if test "${bfd_cv_have_sys_procfs_type_prpsinfo32_t+set}" = set; then | |
20029 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 20030 | else |
5464f5a1 NN |
20031 | cat >conftest.$ac_ext <<_ACEOF |
20032 | /* confdefs.h. */ | |
20033 | _ACEOF | |
20034 | cat confdefs.h >>conftest.$ac_ext | |
20035 | cat >>conftest.$ac_ext <<_ACEOF | |
20036 | /* end confdefs.h. */ | |
7ee38065 MS |
20037 | |
20038 | #define _SYSCALL32 | |
20039 | #include <sys/procfs.h> | |
5464f5a1 NN |
20040 | int |
20041 | main () | |
20042 | { | |
7ee38065 | 20043 | prpsinfo32_t avar |
5464f5a1 NN |
20044 | ; |
20045 | return 0; | |
20046 | } | |
20047 | _ACEOF | |
20048 | rm -f conftest.$ac_objext | |
20049 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20050 | (eval $ac_compile) 2>conftest.er1 | |
20051 | ac_status=$? | |
20052 | grep -v '^ *+' conftest.er1 >conftest.err | |
20053 | rm -f conftest.er1 | |
20054 | cat conftest.err >&5 | |
20055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20056 | (exit $ac_status); } && | |
7357c5b6 AM |
20057 | { ac_try='test -z "$ac_c_werror_flag" |
20058 | || test ! -s conftest.err' | |
5464f5a1 NN |
20059 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20060 | (eval $ac_try) 2>&5 | |
20061 | ac_status=$? | |
20062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20063 | (exit $ac_status); }; } && | |
20064 | { ac_try='test -s conftest.$ac_objext' | |
20065 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20066 | (eval $ac_try) 2>&5 | |
20067 | ac_status=$? | |
20068 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20069 | (exit $ac_status); }; }; then | |
7ee38065 MS |
20070 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes |
20071 | else | |
5464f5a1 NN |
20072 | echo "$as_me: failed program was:" >&5 |
20073 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20074 | ||
20075 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=no | |
20076 | ||
7ee38065 | 20077 | fi |
5464f5a1 | 20078 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
20079 | fi |
20080 | ||
20081 | if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then | |
5464f5a1 NN |
20082 | |
20083 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 20084 | #define HAVE_PRPSINFO32_T 1 |
5464f5a1 | 20085 | _ACEOF |
7ee38065 MS |
20086 | |
20087 | fi | |
5464f5a1 NN |
20088 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5 |
20089 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6 | |
7ee38065 | 20090 | |
5464f5a1 NN |
20091 | echo "$as_me:$LINENO: checking for psinfo_t in sys/procfs.h" >&5 |
20092 | echo $ECHO_N "checking for psinfo_t in sys/procfs.h... $ECHO_C" >&6 | |
20093 | if test "${bfd_cv_have_sys_procfs_type_psinfo_t+set}" = set; then | |
20094 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 20095 | else |
5464f5a1 NN |
20096 | cat >conftest.$ac_ext <<_ACEOF |
20097 | /* confdefs.h. */ | |
20098 | _ACEOF | |
20099 | cat confdefs.h >>conftest.$ac_ext | |
20100 | cat >>conftest.$ac_ext <<_ACEOF | |
20101 | /* end confdefs.h. */ | |
7ee38065 MS |
20102 | |
20103 | #define _SYSCALL32 | |
252b5132 | 20104 | #include <sys/procfs.h> |
5464f5a1 NN |
20105 | int |
20106 | main () | |
20107 | { | |
252b5132 | 20108 | psinfo_t avar |
5464f5a1 NN |
20109 | ; |
20110 | return 0; | |
20111 | } | |
20112 | _ACEOF | |
20113 | rm -f conftest.$ac_objext | |
20114 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20115 | (eval $ac_compile) 2>conftest.er1 | |
20116 | ac_status=$? | |
20117 | grep -v '^ *+' conftest.er1 >conftest.err | |
20118 | rm -f conftest.er1 | |
20119 | cat conftest.err >&5 | |
20120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20121 | (exit $ac_status); } && | |
7357c5b6 AM |
20122 | { ac_try='test -z "$ac_c_werror_flag" |
20123 | || test ! -s conftest.err' | |
5464f5a1 NN |
20124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20125 | (eval $ac_try) 2>&5 | |
20126 | ac_status=$? | |
20127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20128 | (exit $ac_status); }; } && | |
20129 | { ac_try='test -s conftest.$ac_objext' | |
20130 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20131 | (eval $ac_try) 2>&5 | |
20132 | ac_status=$? | |
20133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20134 | (exit $ac_status); }; }; then | |
252b5132 RH |
20135 | bfd_cv_have_sys_procfs_type_psinfo_t=yes |
20136 | else | |
5464f5a1 NN |
20137 | echo "$as_me: failed program was:" >&5 |
20138 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20139 | ||
20140 | bfd_cv_have_sys_procfs_type_psinfo_t=no | |
20141 | ||
252b5132 | 20142 | fi |
5464f5a1 | 20143 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
20144 | fi |
20145 | ||
20146 | if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then | |
5464f5a1 NN |
20147 | |
20148 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 20149 | #define HAVE_PSINFO_T 1 |
5464f5a1 | 20150 | _ACEOF |
252b5132 RH |
20151 | |
20152 | fi | |
5464f5a1 NN |
20153 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5 |
20154 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo_t" >&6 | |
252b5132 | 20155 | |
5464f5a1 NN |
20156 | echo "$as_me:$LINENO: checking for psinfo32_t in sys/procfs.h" >&5 |
20157 | echo $ECHO_N "checking for psinfo32_t in sys/procfs.h... $ECHO_C" >&6 | |
20158 | if test "${bfd_cv_have_sys_procfs_type_psinfo32_t+set}" = set; then | |
20159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7ee38065 | 20160 | else |
5464f5a1 NN |
20161 | cat >conftest.$ac_ext <<_ACEOF |
20162 | /* confdefs.h. */ | |
20163 | _ACEOF | |
20164 | cat confdefs.h >>conftest.$ac_ext | |
20165 | cat >>conftest.$ac_ext <<_ACEOF | |
20166 | /* end confdefs.h. */ | |
7ee38065 MS |
20167 | |
20168 | #define _SYSCALL32 | |
20169 | #include <sys/procfs.h> | |
5464f5a1 NN |
20170 | int |
20171 | main () | |
20172 | { | |
7ee38065 | 20173 | psinfo32_t avar |
5464f5a1 NN |
20174 | ; |
20175 | return 0; | |
20176 | } | |
20177 | _ACEOF | |
20178 | rm -f conftest.$ac_objext | |
20179 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20180 | (eval $ac_compile) 2>conftest.er1 | |
20181 | ac_status=$? | |
20182 | grep -v '^ *+' conftest.er1 >conftest.err | |
20183 | rm -f conftest.er1 | |
20184 | cat conftest.err >&5 | |
20185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20186 | (exit $ac_status); } && | |
7357c5b6 AM |
20187 | { ac_try='test -z "$ac_c_werror_flag" |
20188 | || test ! -s conftest.err' | |
5464f5a1 NN |
20189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20190 | (eval $ac_try) 2>&5 | |
20191 | ac_status=$? | |
20192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20193 | (exit $ac_status); }; } && | |
20194 | { ac_try='test -s conftest.$ac_objext' | |
20195 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20196 | (eval $ac_try) 2>&5 | |
20197 | ac_status=$? | |
20198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20199 | (exit $ac_status); }; }; then | |
7ee38065 MS |
20200 | bfd_cv_have_sys_procfs_type_psinfo32_t=yes |
20201 | else | |
5464f5a1 NN |
20202 | echo "$as_me: failed program was:" >&5 |
20203 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20204 | ||
20205 | bfd_cv_have_sys_procfs_type_psinfo32_t=no | |
20206 | ||
7ee38065 | 20207 | fi |
5464f5a1 | 20208 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7ee38065 MS |
20209 | fi |
20210 | ||
20211 | if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then | |
5464f5a1 NN |
20212 | |
20213 | cat >>confdefs.h <<\_ACEOF | |
7ee38065 | 20214 | #define HAVE_PSINFO32_T 1 |
5464f5a1 | 20215 | _ACEOF |
7ee38065 MS |
20216 | |
20217 | fi | |
5464f5a1 NN |
20218 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5 |
20219 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6 | |
7ee38065 | 20220 | |
5464f5a1 NN |
20221 | echo "$as_me:$LINENO: checking for lwpstatus_t in sys/procfs.h" >&5 |
20222 | echo $ECHO_N "checking for lwpstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
20223 | if test "${bfd_cv_have_sys_procfs_type_lwpstatus_t+set}" = set; then | |
20224 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 20225 | else |
5464f5a1 NN |
20226 | cat >conftest.$ac_ext <<_ACEOF |
20227 | /* confdefs.h. */ | |
20228 | _ACEOF | |
20229 | cat confdefs.h >>conftest.$ac_ext | |
20230 | cat >>conftest.$ac_ext <<_ACEOF | |
20231 | /* end confdefs.h. */ | |
7ee38065 MS |
20232 | |
20233 | #define _SYSCALL32 | |
252b5132 | 20234 | #include <sys/procfs.h> |
5464f5a1 NN |
20235 | int |
20236 | main () | |
20237 | { | |
252b5132 | 20238 | lwpstatus_t avar |
5464f5a1 NN |
20239 | ; |
20240 | return 0; | |
20241 | } | |
20242 | _ACEOF | |
20243 | rm -f conftest.$ac_objext | |
20244 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20245 | (eval $ac_compile) 2>conftest.er1 | |
20246 | ac_status=$? | |
20247 | grep -v '^ *+' conftest.er1 >conftest.err | |
20248 | rm -f conftest.er1 | |
20249 | cat conftest.err >&5 | |
20250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20251 | (exit $ac_status); } && | |
7357c5b6 AM |
20252 | { ac_try='test -z "$ac_c_werror_flag" |
20253 | || test ! -s conftest.err' | |
5464f5a1 NN |
20254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20255 | (eval $ac_try) 2>&5 | |
20256 | ac_status=$? | |
20257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20258 | (exit $ac_status); }; } && | |
20259 | { ac_try='test -s conftest.$ac_objext' | |
20260 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20261 | (eval $ac_try) 2>&5 | |
20262 | ac_status=$? | |
20263 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20264 | (exit $ac_status); }; }; then | |
252b5132 RH |
20265 | bfd_cv_have_sys_procfs_type_lwpstatus_t=yes |
20266 | else | |
5464f5a1 NN |
20267 | echo "$as_me: failed program was:" >&5 |
20268 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20269 | ||
20270 | bfd_cv_have_sys_procfs_type_lwpstatus_t=no | |
20271 | ||
252b5132 | 20272 | fi |
5464f5a1 | 20273 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
20274 | fi |
20275 | ||
20276 | if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then | |
5464f5a1 NN |
20277 | |
20278 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 20279 | #define HAVE_LWPSTATUS_T 1 |
5464f5a1 | 20280 | _ACEOF |
252b5132 RH |
20281 | |
20282 | fi | |
5464f5a1 NN |
20283 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5 |
20284 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6 | |
252b5132 | 20285 | |
5464f5a1 NN |
20286 | echo "$as_me:$LINENO: checking for lwpxstatus_t in sys/procfs.h" >&5 |
20287 | echo $ECHO_N "checking for lwpxstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
20288 | if test "${bfd_cv_have_sys_procfs_type_lwpxstatus_t+set}" = set; then | |
20289 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
f572a39d | 20290 | else |
5464f5a1 NN |
20291 | cat >conftest.$ac_ext <<_ACEOF |
20292 | /* confdefs.h. */ | |
20293 | _ACEOF | |
20294 | cat confdefs.h >>conftest.$ac_ext | |
20295 | cat >>conftest.$ac_ext <<_ACEOF | |
20296 | /* end confdefs.h. */ | |
f572a39d AM |
20297 | |
20298 | #define _SYSCALL32 | |
20299 | #include <sys/procfs.h> | |
5464f5a1 NN |
20300 | int |
20301 | main () | |
20302 | { | |
f572a39d | 20303 | lwpxstatus_t avar |
5464f5a1 NN |
20304 | ; |
20305 | return 0; | |
20306 | } | |
20307 | _ACEOF | |
20308 | rm -f conftest.$ac_objext | |
20309 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20310 | (eval $ac_compile) 2>conftest.er1 | |
20311 | ac_status=$? | |
20312 | grep -v '^ *+' conftest.er1 >conftest.err | |
20313 | rm -f conftest.er1 | |
20314 | cat conftest.err >&5 | |
20315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20316 | (exit $ac_status); } && | |
7357c5b6 AM |
20317 | { ac_try='test -z "$ac_c_werror_flag" |
20318 | || test ! -s conftest.err' | |
5464f5a1 NN |
20319 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20320 | (eval $ac_try) 2>&5 | |
20321 | ac_status=$? | |
20322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20323 | (exit $ac_status); }; } && | |
20324 | { ac_try='test -s conftest.$ac_objext' | |
20325 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20326 | (eval $ac_try) 2>&5 | |
20327 | ac_status=$? | |
20328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20329 | (exit $ac_status); }; }; then | |
f572a39d AM |
20330 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes |
20331 | else | |
5464f5a1 NN |
20332 | echo "$as_me: failed program was:" >&5 |
20333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20334 | ||
20335 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=no | |
20336 | ||
f572a39d | 20337 | fi |
5464f5a1 | 20338 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
f572a39d AM |
20339 | fi |
20340 | ||
20341 | if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then | |
5464f5a1 NN |
20342 | |
20343 | cat >>confdefs.h <<\_ACEOF | |
f572a39d | 20344 | #define HAVE_LWPXSTATUS_T 1 |
5464f5a1 | 20345 | _ACEOF |
f572a39d AM |
20346 | |
20347 | fi | |
5464f5a1 NN |
20348 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5 |
20349 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6 | |
f572a39d | 20350 | |
5464f5a1 NN |
20351 | echo "$as_me:$LINENO: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5 |
20352 | echo $ECHO_N "checking for lwpstatus_t.pr_context in sys/procfs.h... $ECHO_C" >&6 | |
20353 | if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+set}" = set; then | |
20354 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 20355 | else |
5464f5a1 NN |
20356 | cat >conftest.$ac_ext <<_ACEOF |
20357 | /* confdefs.h. */ | |
20358 | _ACEOF | |
20359 | cat confdefs.h >>conftest.$ac_ext | |
20360 | cat >>conftest.$ac_ext <<_ACEOF | |
20361 | /* end confdefs.h. */ | |
7ee38065 MS |
20362 | |
20363 | #define _SYSCALL32 | |
252b5132 | 20364 | #include <sys/procfs.h> |
5464f5a1 NN |
20365 | int |
20366 | main () | |
20367 | { | |
252b5132 | 20368 | lwpstatus_t avar; void* aref = (void*) &avar.pr_context |
5464f5a1 NN |
20369 | ; |
20370 | return 0; | |
20371 | } | |
20372 | _ACEOF | |
20373 | rm -f conftest.$ac_objext | |
20374 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20375 | (eval $ac_compile) 2>conftest.er1 | |
20376 | ac_status=$? | |
20377 | grep -v '^ *+' conftest.er1 >conftest.err | |
20378 | rm -f conftest.er1 | |
20379 | cat conftest.err >&5 | |
20380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20381 | (exit $ac_status); } && | |
7357c5b6 AM |
20382 | { ac_try='test -z "$ac_c_werror_flag" |
20383 | || test ! -s conftest.err' | |
5464f5a1 NN |
20384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20385 | (eval $ac_try) 2>&5 | |
20386 | ac_status=$? | |
20387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20388 | (exit $ac_status); }; } && | |
20389 | { ac_try='test -s conftest.$ac_objext' | |
20390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20391 | (eval $ac_try) 2>&5 | |
20392 | ac_status=$? | |
20393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20394 | (exit $ac_status); }; }; then | |
252b5132 RH |
20395 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes |
20396 | else | |
5464f5a1 NN |
20397 | echo "$as_me: failed program was:" >&5 |
20398 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20399 | ||
20400 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no | |
20401 | ||
252b5132 | 20402 | fi |
5464f5a1 | 20403 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
20404 | fi |
20405 | ||
20406 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then | |
5464f5a1 NN |
20407 | |
20408 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 20409 | #define HAVE_LWPSTATUS_T_PR_CONTEXT 1 |
5464f5a1 | 20410 | _ACEOF |
252b5132 RH |
20411 | |
20412 | fi | |
5464f5a1 NN |
20413 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5 |
20414 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6 | |
252b5132 | 20415 | |
5464f5a1 NN |
20416 | echo "$as_me:$LINENO: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5 |
20417 | echo $ECHO_N "checking for lwpstatus_t.pr_reg in sys/procfs.h... $ECHO_C" >&6 | |
20418 | if test "${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+set}" = set; then | |
20419 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 | 20420 | else |
5464f5a1 NN |
20421 | cat >conftest.$ac_ext <<_ACEOF |
20422 | /* confdefs.h. */ | |
20423 | _ACEOF | |
20424 | cat confdefs.h >>conftest.$ac_ext | |
20425 | cat >>conftest.$ac_ext <<_ACEOF | |
20426 | /* end confdefs.h. */ | |
7ee38065 MS |
20427 | |
20428 | #define _SYSCALL32 | |
252b5132 | 20429 | #include <sys/procfs.h> |
5464f5a1 NN |
20430 | int |
20431 | main () | |
20432 | { | |
252b5132 | 20433 | lwpstatus_t avar; void* aref = (void*) &avar.pr_reg |
5464f5a1 NN |
20434 | ; |
20435 | return 0; | |
20436 | } | |
20437 | _ACEOF | |
20438 | rm -f conftest.$ac_objext | |
20439 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20440 | (eval $ac_compile) 2>conftest.er1 | |
20441 | ac_status=$? | |
20442 | grep -v '^ *+' conftest.er1 >conftest.err | |
20443 | rm -f conftest.er1 | |
20444 | cat conftest.err >&5 | |
20445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20446 | (exit $ac_status); } && | |
7357c5b6 AM |
20447 | { ac_try='test -z "$ac_c_werror_flag" |
20448 | || test ! -s conftest.err' | |
5464f5a1 NN |
20449 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20450 | (eval $ac_try) 2>&5 | |
20451 | ac_status=$? | |
20452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20453 | (exit $ac_status); }; } && | |
20454 | { ac_try='test -s conftest.$ac_objext' | |
20455 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20456 | (eval $ac_try) 2>&5 | |
20457 | ac_status=$? | |
20458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20459 | (exit $ac_status); }; }; then | |
252b5132 RH |
20460 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes |
20461 | else | |
5464f5a1 NN |
20462 | echo "$as_me: failed program was:" >&5 |
20463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20464 | ||
20465 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no | |
20466 | ||
252b5132 | 20467 | fi |
5464f5a1 | 20468 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
20469 | fi |
20470 | ||
20471 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then | |
5464f5a1 NN |
20472 | |
20473 | cat >>confdefs.h <<\_ACEOF | |
252b5132 | 20474 | #define HAVE_LWPSTATUS_T_PR_REG 1 |
5464f5a1 | 20475 | _ACEOF |
252b5132 RH |
20476 | |
20477 | fi | |
5464f5a1 NN |
20478 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5 |
20479 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6 | |
252b5132 | 20480 | |
5464f5a1 NN |
20481 | echo "$as_me:$LINENO: checking for win32_pstatus_t in sys/procfs.h" >&5 |
20482 | echo $ECHO_N "checking for win32_pstatus_t in sys/procfs.h... $ECHO_C" >&6 | |
20483 | if test "${bfd_cv_have_sys_procfs_type_win32_pstatus_t+set}" = set; then | |
20484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
e3c976c4 | 20485 | else |
5464f5a1 NN |
20486 | cat >conftest.$ac_ext <<_ACEOF |
20487 | /* confdefs.h. */ | |
20488 | _ACEOF | |
20489 | cat confdefs.h >>conftest.$ac_ext | |
20490 | cat >>conftest.$ac_ext <<_ACEOF | |
20491 | /* end confdefs.h. */ | |
7ee38065 MS |
20492 | |
20493 | #define _SYSCALL32 | |
e3c976c4 | 20494 | #include <sys/procfs.h> |
5464f5a1 NN |
20495 | int |
20496 | main () | |
20497 | { | |
e3c976c4 | 20498 | win32_pstatus_t avar |
5464f5a1 NN |
20499 | ; |
20500 | return 0; | |
20501 | } | |
20502 | _ACEOF | |
20503 | rm -f conftest.$ac_objext | |
20504 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
20505 | (eval $ac_compile) 2>conftest.er1 | |
20506 | ac_status=$? | |
20507 | grep -v '^ *+' conftest.er1 >conftest.err | |
20508 | rm -f conftest.er1 | |
20509 | cat conftest.err >&5 | |
20510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20511 | (exit $ac_status); } && | |
7357c5b6 AM |
20512 | { ac_try='test -z "$ac_c_werror_flag" |
20513 | || test ! -s conftest.err' | |
5464f5a1 NN |
20514 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
20515 | (eval $ac_try) 2>&5 | |
20516 | ac_status=$? | |
20517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20518 | (exit $ac_status); }; } && | |
20519 | { ac_try='test -s conftest.$ac_objext' | |
20520 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20521 | (eval $ac_try) 2>&5 | |
20522 | ac_status=$? | |
20523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20524 | (exit $ac_status); }; }; then | |
e3c976c4 ILT |
20525 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes |
20526 | else | |
5464f5a1 NN |
20527 | echo "$as_me: failed program was:" >&5 |
20528 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20529 | ||
20530 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=no | |
20531 | ||
e3c976c4 | 20532 | fi |
5464f5a1 | 20533 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
252b5132 RH |
20534 | fi |
20535 | ||
e3c976c4 | 20536 | if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then |
5464f5a1 NN |
20537 | |
20538 | cat >>confdefs.h <<\_ACEOF | |
e3c976c4 | 20539 | #define HAVE_WIN32_PSTATUS_T 1 |
5464f5a1 | 20540 | _ACEOF |
16e9c715 NC |
20541 | |
20542 | fi | |
5464f5a1 NN |
20543 | echo "$as_me:$LINENO: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5 |
20544 | echo "${ECHO_T}$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6 | |
e3c976c4 ILT |
20545 | |
20546 | fi | |
20547 | fi | |
16e9c715 | 20548 | |
b3baf5d0 | 20549 | |
6be7c12c | 20550 | if test -n "$TRAD_HEADER"; then |
5464f5a1 NN |
20551 | |
20552 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 20553 | #define TRAD_HEADER $TRAD_HEADER |
5464f5a1 | 20554 | _ACEOF |
252b5132 | 20555 | |
3f9b03b5 | 20556 | fi |
252b5132 | 20557 | |
51dec227 AM |
20558 | # Check if linker supports --as-needed and --no-as-needed options |
20559 | echo "$as_me:$LINENO: checking linker --as-needed support" >&5 | |
20560 | echo $ECHO_N "checking linker --as-needed support... $ECHO_C" >&6 | |
20561 | if test "${bfd_cv_ld_as_needed+set}" = set; then | |
20562 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20563 | else | |
20564 | bfd_cv_ld_as_needed=no | |
20565 | if $LD --help 2>/dev/null | grep as-needed > /dev/null; then | |
20566 | bfd_cv_ld_as_needed=yes | |
20567 | fi | |
20568 | ||
20569 | fi | |
20570 | echo "$as_me:$LINENO: result: $bfd_cv_ld_as_needed" >&5 | |
20571 | echo "${ECHO_T}$bfd_cv_ld_as_needed" >&6 | |
20572 | ||
20573 | LIBM= | |
20574 | case $host in | |
20575 | *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) | |
20576 | # These system don't have libm, or don't need it | |
20577 | ;; | |
20578 | *-ncr-sysv4.3*) | |
20579 | echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5 | |
20580 | echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6 | |
20581 | if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then | |
20582 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20583 | else | |
20584 | ac_check_lib_save_LIBS=$LIBS | |
20585 | LIBS="-lmw $LIBS" | |
20586 | cat >conftest.$ac_ext <<_ACEOF | |
20587 | /* confdefs.h. */ | |
20588 | _ACEOF | |
20589 | cat confdefs.h >>conftest.$ac_ext | |
20590 | cat >>conftest.$ac_ext <<_ACEOF | |
20591 | /* end confdefs.h. */ | |
20592 | ||
20593 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20594 | #ifdef __cplusplus | |
20595 | extern "C" | |
20596 | #endif | |
20597 | /* We use char because int might match the return type of a gcc2 | |
20598 | builtin and then its argument prototype would still apply. */ | |
20599 | char _mwvalidcheckl (); | |
20600 | int | |
20601 | main () | |
20602 | { | |
20603 | _mwvalidcheckl (); | |
20604 | ; | |
20605 | return 0; | |
20606 | } | |
20607 | _ACEOF | |
20608 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20609 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20610 | (eval $ac_link) 2>conftest.er1 | |
20611 | ac_status=$? | |
20612 | grep -v '^ *+' conftest.er1 >conftest.err | |
20613 | rm -f conftest.er1 | |
20614 | cat conftest.err >&5 | |
20615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20616 | (exit $ac_status); } && | |
20617 | { ac_try='test -z "$ac_c_werror_flag" | |
20618 | || test ! -s conftest.err' | |
20619 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20620 | (eval $ac_try) 2>&5 | |
20621 | ac_status=$? | |
20622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20623 | (exit $ac_status); }; } && | |
20624 | { ac_try='test -s conftest$ac_exeext' | |
20625 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20626 | (eval $ac_try) 2>&5 | |
20627 | ac_status=$? | |
20628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20629 | (exit $ac_status); }; }; then | |
20630 | ac_cv_lib_mw__mwvalidcheckl=yes | |
20631 | else | |
20632 | echo "$as_me: failed program was:" >&5 | |
20633 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20634 | ||
20635 | ac_cv_lib_mw__mwvalidcheckl=no | |
20636 | fi | |
20637 | rm -f conftest.err conftest.$ac_objext \ | |
20638 | conftest$ac_exeext conftest.$ac_ext | |
20639 | LIBS=$ac_check_lib_save_LIBS | |
20640 | fi | |
20641 | echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 | |
20642 | echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6 | |
20643 | if test $ac_cv_lib_mw__mwvalidcheckl = yes; then | |
20644 | LIBM="-lmw" | |
20645 | fi | |
20646 | ||
20647 | echo "$as_me:$LINENO: checking for cos in -lm" >&5 | |
20648 | echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6 | |
20649 | if test "${ac_cv_lib_m_cos+set}" = set; then | |
20650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20651 | else | |
20652 | ac_check_lib_save_LIBS=$LIBS | |
20653 | LIBS="-lm $LIBS" | |
20654 | cat >conftest.$ac_ext <<_ACEOF | |
20655 | /* confdefs.h. */ | |
20656 | _ACEOF | |
20657 | cat confdefs.h >>conftest.$ac_ext | |
20658 | cat >>conftest.$ac_ext <<_ACEOF | |
20659 | /* end confdefs.h. */ | |
20660 | ||
20661 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20662 | #ifdef __cplusplus | |
20663 | extern "C" | |
20664 | #endif | |
20665 | /* We use char because int might match the return type of a gcc2 | |
20666 | builtin and then its argument prototype would still apply. */ | |
20667 | char cos (); | |
20668 | int | |
20669 | main () | |
20670 | { | |
20671 | cos (); | |
20672 | ; | |
20673 | return 0; | |
20674 | } | |
20675 | _ACEOF | |
20676 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20678 | (eval $ac_link) 2>conftest.er1 | |
20679 | ac_status=$? | |
20680 | grep -v '^ *+' conftest.er1 >conftest.err | |
20681 | rm -f conftest.er1 | |
20682 | cat conftest.err >&5 | |
20683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20684 | (exit $ac_status); } && | |
20685 | { ac_try='test -z "$ac_c_werror_flag" | |
20686 | || test ! -s conftest.err' | |
20687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20688 | (eval $ac_try) 2>&5 | |
20689 | ac_status=$? | |
20690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20691 | (exit $ac_status); }; } && | |
20692 | { ac_try='test -s conftest$ac_exeext' | |
20693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20694 | (eval $ac_try) 2>&5 | |
20695 | ac_status=$? | |
20696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20697 | (exit $ac_status); }; }; then | |
20698 | ac_cv_lib_m_cos=yes | |
20699 | else | |
20700 | echo "$as_me: failed program was:" >&5 | |
20701 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20702 | ||
20703 | ac_cv_lib_m_cos=no | |
20704 | fi | |
20705 | rm -f conftest.err conftest.$ac_objext \ | |
20706 | conftest$ac_exeext conftest.$ac_ext | |
20707 | LIBS=$ac_check_lib_save_LIBS | |
20708 | fi | |
20709 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5 | |
20710 | echo "${ECHO_T}$ac_cv_lib_m_cos" >&6 | |
20711 | if test $ac_cv_lib_m_cos = yes; then | |
20712 | LIBM="$LIBM -lm" | |
20713 | fi | |
20714 | ||
20715 | ;; | |
20716 | *) | |
20717 | echo "$as_me:$LINENO: checking for cos in -lm" >&5 | |
20718 | echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6 | |
20719 | if test "${ac_cv_lib_m_cos+set}" = set; then | |
20720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
20721 | else | |
20722 | ac_check_lib_save_LIBS=$LIBS | |
20723 | LIBS="-lm $LIBS" | |
20724 | cat >conftest.$ac_ext <<_ACEOF | |
20725 | /* confdefs.h. */ | |
20726 | _ACEOF | |
20727 | cat confdefs.h >>conftest.$ac_ext | |
20728 | cat >>conftest.$ac_ext <<_ACEOF | |
20729 | /* end confdefs.h. */ | |
20730 | ||
20731 | /* Override any gcc2 internal prototype to avoid an error. */ | |
20732 | #ifdef __cplusplus | |
20733 | extern "C" | |
20734 | #endif | |
20735 | /* We use char because int might match the return type of a gcc2 | |
20736 | builtin and then its argument prototype would still apply. */ | |
20737 | char cos (); | |
20738 | int | |
20739 | main () | |
20740 | { | |
20741 | cos (); | |
20742 | ; | |
20743 | return 0; | |
20744 | } | |
20745 | _ACEOF | |
20746 | rm -f conftest.$ac_objext conftest$ac_exeext | |
20747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
20748 | (eval $ac_link) 2>conftest.er1 | |
20749 | ac_status=$? | |
20750 | grep -v '^ *+' conftest.er1 >conftest.err | |
20751 | rm -f conftest.er1 | |
20752 | cat conftest.err >&5 | |
20753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20754 | (exit $ac_status); } && | |
20755 | { ac_try='test -z "$ac_c_werror_flag" | |
20756 | || test ! -s conftest.err' | |
20757 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20758 | (eval $ac_try) 2>&5 | |
20759 | ac_status=$? | |
20760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20761 | (exit $ac_status); }; } && | |
20762 | { ac_try='test -s conftest$ac_exeext' | |
20763 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
20764 | (eval $ac_try) 2>&5 | |
20765 | ac_status=$? | |
20766 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
20767 | (exit $ac_status); }; }; then | |
20768 | ac_cv_lib_m_cos=yes | |
20769 | else | |
20770 | echo "$as_me: failed program was:" >&5 | |
20771 | sed 's/^/| /' conftest.$ac_ext >&5 | |
20772 | ||
20773 | ac_cv_lib_m_cos=no | |
20774 | fi | |
20775 | rm -f conftest.err conftest.$ac_objext \ | |
20776 | conftest$ac_exeext conftest.$ac_ext | |
20777 | LIBS=$ac_check_lib_save_LIBS | |
20778 | fi | |
20779 | echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5 | |
20780 | echo "${ECHO_T}$ac_cv_lib_m_cos" >&6 | |
20781 | if test $ac_cv_lib_m_cos = yes; then | |
20782 | LIBM="-lm" | |
20783 | fi | |
20784 | ||
20785 | ;; | |
20786 | esac | |
20787 | ||
20788 | ||
20789 | ||
29670fb9 AM |
20790 | # When building a shared libbfd, link against the pic version of libiberty |
20791 | # so that apps that use libbfd won't need libiberty just to satisfy any | |
20792 | # libbfd references. | |
20793 | # We can't do that if a pic libiberty is unavailable since including non-pic | |
20794 | # code would insert text relocations into libbfd. | |
20795 | SHARED_LIBADD= | |
20796 | SHARED_LDFLAGS= | |
20797 | if test "$enable_shared" = "yes"; then | |
c5cb8442 TS |
20798 | x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` |
20799 | if test -n "$x"; then | |
29670fb9 | 20800 | SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty" |
c5cb8442 | 20801 | fi |
29670fb9 AM |
20802 | |
20803 | # More hacks to build DLLs on Windows. | |
20804 | case "${host}" in | |
20805 | *-*-cygwin*) | |
20806 | SHARED_LDFLAGS="-no-undefined" | |
20807 | SHARED_LIBADD="-L`pwd`/../libiberty -liberty -L`pwd`/../intl -lintl -lcygwin -lkernel32" | |
39691762 | 20808 | ;; |
29670fb9 | 20809 | esac |
51dec227 AM |
20810 | |
20811 | if test -n "$SHARED_LIBADD"; then | |
20812 | if test -n "$LIBM"; then | |
20813 | if test x"$bfd_cv_ld_as_needed" = xyes; then | |
20814 | # Link against libm only when needed. Put -lc, -lm inside -Wl | |
20815 | # to stop libtool reordering these options. | |
20816 | SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed" | |
20817 | else | |
20818 | SHARED_LIBADD="$SHARED_LIBADD $LIBM" | |
20819 | fi | |
20820 | fi | |
20821 | fi | |
29670fb9 | 20822 | fi |
252b5132 | 20823 | |
6be7c12c AO |
20824 | |
20825 | ||
252b5132 RH |
20826 | # target stuff: |
20827 | ||
20828 | # Canonicalize the secondary target names. | |
20829 | if test -n "$enable_targets" ; then | |
20830 | for targ in `echo $enable_targets | sed 's/,/ /g'` | |
20831 | do | |
6d83c84b | 20832 | result=`$ac_config_sub $targ 2>/dev/null` |
252b5132 RH |
20833 | if test -n "$result" ; then |
20834 | canon_targets="$canon_targets $result" | |
20835 | else | |
20836 | # Allow targets that config.sub doesn't recognize, like "all". | |
20837 | canon_targets="$canon_targets $targ" | |
20838 | fi | |
20839 | done | |
20840 | fi | |
20841 | ||
20842 | all_targets=false | |
20843 | defvec= | |
20844 | selvecs= | |
08f74004 | 20845 | assocvecs= |
252b5132 RH |
20846 | selarchs= |
20847 | TDEFINES= | |
20848 | for targ in $target $canon_targets | |
20849 | do | |
20850 | if test "x$targ" = "xall"; then | |
20851 | all_targets=true | |
08f74004 | 20852 | assocvecs="$assocvecs $targ_defvec $targ_selvecs" |
252b5132 RH |
20853 | else |
20854 | . $srcdir/config.bfd | |
20855 | if test "x$targ" = "x$target"; then | |
20856 | defvec=$targ_defvec | |
20857 | fi | |
20858 | selvecs="$selvecs $targ_defvec $targ_selvecs" | |
20859 | selarchs="$selarchs $targ_archs" | |
20860 | TDEFINES="$TDEFINES $targ_cflags" | |
20861 | fi | |
20862 | done | |
20863 | ||
6be7c12c | 20864 | |
252b5132 RH |
20865 | # This processing still needs to be done if we're to decide properly whether |
20866 | # 64-bit support needs to be compiled in. Currently, it will be included if | |
20867 | # the default or any other explicitly requested target requires it; it | |
20868 | # will not be included on a 32-bit host if no 64-bit target is requested, and | |
9eb7245e | 20869 | # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is |
252b5132 RH |
20870 | # used. |
20871 | ||
20872 | # uniq the default and selected vectors in all the configured targets. | |
20873 | f="" | |
20874 | for i in $selvecs ; do | |
20875 | case " $f " in | |
20876 | *" $i "*) ;; | |
20877 | *) f="$f $i" ;; | |
20878 | esac | |
20879 | done | |
20880 | selvecs="$f" | |
20881 | ||
6be7c12c | 20882 | |
08f74004 AM |
20883 | # uniq the associated vectors in all the configured targets. |
20884 | f="" | |
20885 | for i in $assocvecs ; do | |
20886 | case " $f " in | |
20887 | *" $i "*) ;; | |
20888 | *) f="$f $i" ;; | |
20889 | esac | |
20890 | done | |
20891 | assocvecs="$f" | |
20892 | ||
20893 | ||
252b5132 RH |
20894 | # uniq the architectures in all the configured targets. |
20895 | f="" | |
20896 | for i in $selarchs ; do | |
20897 | case " $f " in | |
20898 | *" $i "*) ;; | |
20899 | *) f="$f $i" ;; | |
20900 | esac | |
20901 | done | |
20902 | selarchs="$f" | |
20903 | ||
20904 | # Target backend .o files. | |
20905 | tb= | |
20906 | ||
104d59d1 | 20907 | elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo" |
252b5132 RH |
20908 | |
20909 | for vec in $selvecs | |
20910 | do | |
69263e90 | 20911 | target_size=32 |
252b5132 RH |
20912 | case "$vec" in |
20913 | # This list is alphabetized to make it easy to compare | |
dc810e39 AM |
20914 | # with the two vector lists in targets.c. For the same reason, |
20915 | # use one entry per line, even though this leads to long lines. | |
252b5132 | 20916 | a_out_adobe_vec) tb="$tb aout-adobe.lo aout32.lo" ;; |
341ca622 | 20917 | aix5coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;; |
252b5132 RH |
20918 | aout0_big_vec) tb="$tb aout0.lo aout32.lo" ;; |
20919 | aout_arm_big_vec) tb="$tb aout-arm.lo aout32.lo" ;; | |
20920 | aout_arm_little_vec) tb="$tb aout-arm.lo aout32.lo" ;; | |
252b5132 | 20921 | apollocoff_vec) tb="$tb coff-apollo.lo" ;; |
dc810e39 AM |
20922 | arm_epoc_pe_big_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; |
20923 | arm_epoc_pe_little_vec) tb="$tb epoc-pe-arm.lo peigen.lo cofflink.lo " ;; | |
20924 | arm_epoc_pei_big_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; | |
20925 | arm_epoc_pei_little_vec) tb="$tb epoc-pei-arm.lo peigen.lo cofflink.lo " ;; | |
7148cc28 NC |
20926 | arm_wince_pe_big_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;; |
20927 | arm_wince_pe_little_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo cofflink.lo " ;; | |
20928 | arm_wince_pei_big_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;; | |
20929 | arm_wince_pei_little_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo cofflink.lo " ;; | |
dc810e39 AM |
20930 | armcoff_big_vec) tb="$tb coff-arm.lo cofflink.lo " ;; |
20931 | armcoff_little_vec) tb="$tb coff-arm.lo cofflink.lo " ;; | |
20932 | armnetbsd_vec) tb="$tb armnetbsd.lo aout32.lo" ;; | |
20933 | armpe_big_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; | |
20934 | armpe_little_vec) tb="$tb pe-arm.lo peigen.lo cofflink.lo " ;; | |
20935 | armpei_big_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; | |
20936 | armpei_little_vec) tb="$tb pei-arm.lo peigen.lo cofflink.lo " ;; | |
252b5132 RH |
20937 | b_out_vec_big_host) tb="$tb bout.lo aout32.lo" ;; |
20938 | b_out_vec_little_host) tb="$tb bout.lo aout32.lo" ;; | |
92dd4511 | 20939 | bfd_pei_ia64_vec) tb="$tb pei-ia64.lo pepigen.lo cofflink.lo"; target_size=64 ;; |
73c3cd1c | 20940 | bfd_elf32_am33lin_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;; |
adde6300 | 20941 | bfd_elf32_avr_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;; |
0f64bb02 | 20942 | bfd_elf32_bfin_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;; |
48d502e1 | 20943 | bfd_elf32_bfinfdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;; |
dc810e39 | 20944 | bfd_elf32_big_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; |
252b5132 | 20945 | bfd_elf32_bigarc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; |
00a97672 | 20946 | bfd_elf32_bigarm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; |
e5a52504 | 20947 | bfd_elf32_bigarm_symbian_vec) |
00a97672 | 20948 | tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; |
4e7fd91e | 20949 | bfd_elf32_bigarm_vxworks_vec) |
00a97672 | 20950 | tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; |
0a44bf69 RS |
20951 | bfd_elf32_bigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; |
20952 | bfd_elf32_bigmips_vxworks_vec) | |
20953 | tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; | |
3d3d428f | 20954 | bfd_elf32_cr16_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;; |
0949843d | 20955 | bfd_elf32_cr16c_vec) tb="$tb elf32-cr16c.lo elf32.lo $elf" ;; |
06c15ad7 | 20956 | bfd_elf32_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
5464f5a1 | 20957 | bfd_elf32_crx_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;; |
252b5132 RH |
20958 | bfd_elf32_d10v_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; |
20959 | bfd_elf32_d30v_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;; | |
d172d4ba | 20960 | bfd_elf32_dlx_big_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;; |
252b5132 | 20961 | bfd_elf32_fr30_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;; |
4e5ba5b7 | 20962 | bfd_elf32_frv_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; |
43850d5b | 20963 | bfd_elf32_frvfdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; |
20135e4c | 20964 | bfd_elf32_moxie_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;; |
e01b0e69 | 20965 | bfd_elf32_h8300_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;; |
dc810e39 | 20966 | bfd_elf32_hppa_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
225247f0 | 20967 | bfd_elf32_hppa_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
dc810e39 | 20968 | bfd_elf32_hppa_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
5b93d8bb | 20969 | bfd_elf32_i370_vec) tb="$tb elf32-i370.lo elf32.lo $elf" ;; |
0b3e17e9 NC |
20970 | bfd_elf32_i386_dragonfly_vec) |
20971 | tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; | |
eac338cf PB |
20972 | bfd_elf32_i386_freebsd_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; |
20973 | bfd_elf32_i386_vxworks_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; | |
20974 | bfd_elf32_i386_vec) tb="$tb elf32-i386.lo elf-vxworks.lo elf32.lo $elf" ;; | |
9d751335 | 20975 | bfd_elf32_i860_little_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; |
dc810e39 | 20976 | bfd_elf32_i860_vec) tb="$tb elf32-i860.lo elf32.lo $elf" ;; |
b2ef150d | 20977 | bfd_elf32_i960_vec) tb="$tb elf32-i960.lo elf32.lo $elf" ;; |
dc810e39 | 20978 | bfd_elf32_ia64_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf" ;; |
fcf12726 | 20979 | bfd_elf32_ia64_hpux_big_vec) tb="$tb elf32-ia64.lo elf32.lo $elf";; |
cf88bb9f | 20980 | bfd_elf32_ip2k_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;; |
a75473eb | 20981 | bfd_elf32_iq2000_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;; |
84e94c90 NC |
20982 | bfd_elf32_lm32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;; |
20983 | bfd_elf32_lm32fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;; | |
252b5132 | 20984 | bfd_elf32_little_generic_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; |
dc810e39 | 20985 | bfd_elf32_littlearc_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; |
e5a52504 | 20986 | bfd_elf32_littlearm_symbian_vec) |
00a97672 | 20987 | tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; |
4e7fd91e | 20988 | bfd_elf32_littlearm_vxworks_vec) |
00a97672 RS |
20989 | tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; |
20990 | bfd_elf32_littlearm_vec) tb="$tb elf32-arm.lo elf32.lo elf-vxworks.lo $elf" ;; | |
0a44bf69 RS |
20991 | bfd_elf32_littlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; |
20992 | bfd_elf32_littlemips_vxworks_vec) | |
20993 | tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; | |
e729279b | 20994 | bfd_elf32_m32c_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;; |
252b5132 | 20995 | bfd_elf32_m32r_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; |
6edf0760 NC |
20996 | bfd_elf32_m32rle_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; |
20997 | bfd_elf32_m32rlin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; | |
20998 | bfd_elf32_m32rlelin_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; | |
f5a6f915 SC |
20999 | bfd_elf32_m68hc11_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;; |
21000 | bfd_elf32_m68hc12_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;; | |
252b5132 RH |
21001 | bfd_elf32_m68k_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;; |
21002 | bfd_elf32_m88k_vec) tb="$tb elf32-m88k.lo elf32.lo $elf" ;; | |
21003 | bfd_elf32_mcore_big_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; | |
21004 | bfd_elf32_mcore_little_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; | |
d9352518 DB |
21005 | bfd_elf32_mep_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;; |
21006 | bfd_elf32_mep_little_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;; | |
252b5132 RH |
21007 | bfd_elf32_mn10200_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;; |
21008 | bfd_elf32_mn10300_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;; | |
d031aafb | 21009 | bfd_elf32_mt_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;; |
2469cfa2 | 21010 | bfd_elf32_msp430_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;; |
0a44bf69 RS |
21011 | bfd_elf32_nbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; |
21012 | bfd_elf32_nlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
21013 | bfd_elf32_ntradbigmips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
21014 | bfd_elf32_ntradlittlemips_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo"; target_size=64 ;; | |
b3baf5d0 | 21015 | bfd_elf32_openrisc_vec) tb="$tb elf32-openrisc.lo elf32.lo $elf" ;; |
3b16e843 | 21016 | bfd_elf32_or32_big_vec) tb="$tb elf32-or32.lo elf32.lo $elf" ;; |
0bcb993b ILT |
21017 | bfd_elf32_pj_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; |
21018 | bfd_elf32_pjl_vec) tb="$tb elf32-pj.lo elf32.lo $elf";; | |
9d8504b1 PB |
21019 | bfd_elf32_powerpc_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; |
21020 | bfd_elf32_powerpcle_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; | |
21021 | bfd_elf32_powerpc_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; | |
a85d7ed0 | 21022 | bfd_elf32_s390_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;; |
02b1cb40 NC |
21023 | bfd_elf32_bigscore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;; |
21024 | bfd_elf32_littlescore_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo $elf"; want64=true; target_size=64;; | |
eb1e0e80 NC |
21025 | # FIXME: We include cofflink.lo not because it's needed for |
21026 | # bfd_elf32_sh64[l]_vec, but because we include bfd_elf32_sh[l]_vec | |
21027 | # which needs it but does not list it. Should be fixed in right place. | |
55e6e397 RS |
21028 | bfd_elf32_sh64_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;; |
21029 | bfd_elf32_sh64l_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;; | |
21030 | bfd_elf32_sh64lin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;; | |
21031 | bfd_elf32_sh64blin_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" target_size=64 ;; | |
21032 | bfd_elf32_sh64lnbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;; | |
21033 | bfd_elf32_sh64nbsd_vec) tb="$tb elf32-sh64.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf cofflink.lo" ;; | |
21034 | bfd_elf32_sh_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;; | |
21035 | bfd_elf32_shblin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
21036 | bfd_elf32_shl_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;; | |
21037 | bfd_elf32_shl_symbian_vec) tb="$tb elf32-sh-symbian.lo elf32-sh64-com.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;; | |
21038 | bfd_elf32_shlin_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
21039 | bfd_elf32_shlnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; | |
21040 | bfd_elf32_shlvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;; | |
7b12cedc | 21041 | bfd_elf32_shnbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo cofflink.lo" ;; |
55e6e397 | 21042 | bfd_elf32_shvxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo" ;; |
910600e9 RS |
21043 | bfd_elf32_sparc_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; |
21044 | bfd_elf32_sparc_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; | |
e9f53129 | 21045 | bfd_elf32_spu_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;; |
0a44bf69 RS |
21046 | bfd_elf32_tradbigmips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; |
21047 | bfd_elf32_tradlittlemips_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf ecofflink.lo" ;; | |
dc810e39 | 21048 | bfd_elf32_us_cris_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
252b5132 | 21049 | bfd_elf32_v850_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; |
90ace9e9 | 21050 | bfd_elf32_vax_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;; |
93fbbb04 | 21051 | bfd_elf32_xstormy16_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;; |
d70c5fc7 | 21052 | bfd_elf32_xc16x_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;; |
e0001a05 NC |
21053 | bfd_elf32_xtensa_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; |
21054 | bfd_elf32_xtensa_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; | |
2238051f | 21055 | bfd_elf64_alpha_freebsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; |
dc810e39 AM |
21056 | bfd_elf64_alpha_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; |
21057 | bfd_elf64_big_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; | |
0a44bf69 | 21058 | 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 |
21059 | bfd_elf64_hppa_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; |
21060 | bfd_elf64_hppa_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; | |
dc810e39 | 21061 | bfd_elf64_ia64_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; |
fcf12726 | 21062 | bfd_elf64_ia64_hpux_big_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; |
dc810e39 | 21063 | bfd_elf64_ia64_little_vec) tb="$tb elf64-ia64.lo elf64.lo $elf"; target_size=64 ;; |
cc2420d5 | 21064 | bfd_elf64_ia64_vms_vec) tb="$tb elf64-ia64.lo elf64.lo $elf vmsutil.lo"; target_size=64 ;; |
dc810e39 | 21065 | bfd_elf64_little_generic_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; |
0a44bf69 | 21066 | 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 | 21067 | bfd_elf64_mmix_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;; |
dc810e39 AM |
21068 | bfd_elf64_powerpc_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;; |
21069 | bfd_elf64_powerpcle_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; | |
21070 | bfd_elf64_s390_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;; | |
341ca622 AM |
21071 | bfd_elf64_sh64_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; |
21072 | bfd_elf64_sh64l_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
2bc3c89a AM |
21073 | bfd_elf64_sh64lin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; |
21074 | bfd_elf64_sh64blin_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
21075 | bfd_elf64_sh64lnbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
21076 | bfd_elf64_sh64nbsd_vec) tb="$tb elf64-sh64.lo elf64.lo $elf" target_size=64 ;; | |
910600e9 | 21077 | bfd_elf64_sparc_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; |
71a75f6f | 21078 | bfd_elf64_sparc_freebsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; |
0a44bf69 RS |
21079 | 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 ;; |
21080 | 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 | 21081 | bfd_elf64_x86_64_freebsd_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;; |
dc810e39 | 21082 | bfd_elf64_x86_64_vec) tb="$tb elf64-x86-64.lo elf64.lo $elf"; target_size=64 ;; |
3c3bdf30 | 21083 | bfd_mmo_vec) tb="$tb mmo.lo" target_size=64 ;; |
dc810e39 AM |
21084 | bfd_powerpc_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; |
21085 | bfd_powerpc_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; | |
21086 | bfd_powerpcle_pe_vec) tb="$tb pe-ppc.lo peigen.lo cofflink.lo" ;; | |
21087 | bfd_powerpcle_pei_vec) tb="$tb pei-ppc.lo peigen.lo cofflink.lo" ;; | |
06c15ad7 | 21088 | cris_aout_vec) tb="$tb aout-cris.lo" ;; |
dc810e39 | 21089 | demo_64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;; |
252b5132 | 21090 | ecoff_big_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
252b5132 | 21091 | ecoff_biglittle_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
dc810e39 AM |
21092 | ecoff_little_vec) tb="$tb coff-mips.lo ecoff.lo ecofflink.lo" ;; |
21093 | ecoffalpha_little_vec) tb="$tb coff-alpha.lo ecoff.lo ecofflink.lo"; target_size=64 ;; | |
252b5132 RH |
21094 | go32coff_vec) tb="$tb coff-go32.lo cofflink.lo" ;; |
21095 | go32stubbedcoff_vec) tb="$tb coff-stgo32.lo cofflink.lo" ;; | |
21096 | h8300coff_vec) tb="$tb coff-h8300.lo reloc16.lo" ;; | |
21097 | h8500coff_vec) tb="$tb coff-h8500.lo reloc16.lo" ;; | |
21098 | host_aout_vec) tb="$tb host-aout.lo aout32.lo" ;; | |
21099 | hp300bsd_vec) tb="$tb hp300bsd.lo aout32.lo" ;; | |
21100 | hp300hpux_vec) tb="$tb hp300hpux.lo aout32.lo" ;; | |
21101 | i386aout_vec) tb="$tb i386aout.lo aout32.lo" ;; | |
21102 | i386bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;; | |
21103 | i386coff_vec) tb="$tb coff-i386.lo cofflink.lo" ;; | |
99ad8390 | 21104 | x86_64coff_vec) tb="$tb coff-x86_64.lo cofflink.lo"; target_size=64 ;; |
252b5132 RH |
21105 | i386dynix_vec) tb="$tb i386dynix.lo aout32.lo" ;; |
21106 | i386freebsd_vec) tb="$tb i386freebsd.lo aout32.lo" ;; | |
252b5132 RH |
21107 | i386linux_vec) tb="$tb i386linux.lo aout32.lo" ;; |
21108 | i386lynx_aout_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;; | |
21109 | i386lynx_coff_vec) tb="$tb cf-i386lynx.lo cofflink.lo lynx-core.lo" ;; | |
21110 | i386mach3_vec) tb="$tb i386mach3.lo aout32.lo" ;; | |
dc810e39 | 21111 | i386msdos_vec) tb="$tb i386msdos.lo" ;; |
252b5132 RH |
21112 | i386netbsd_vec) tb="$tb i386netbsd.lo aout32.lo" ;; |
21113 | i386os9k_vec) tb="$tb i386os9k.lo aout32.lo" ;; | |
dc810e39 AM |
21114 | i386pe_vec) tb="$tb pe-i386.lo peigen.lo cofflink.lo" ;; |
21115 | i386pei_vec) tb="$tb pei-i386.lo peigen.lo cofflink.lo" ;; | |
99ad8390 NC |
21116 | x86_64pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;; |
21117 | x86_64pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo cofflink.lo"; target_size=64 ;; | |
252b5132 RH |
21118 | i860coff_vec) tb="$tb coff-i860.lo cofflink.lo" ;; |
21119 | icoff_big_vec) tb="$tb coff-i960.lo cofflink.lo" ;; | |
21120 | icoff_little_vec) tb="$tb coff-i960.lo cofflink.lo" ;; | |
21121 | ieee_vec) tb="$tb ieee.lo" ;; | |
dc810e39 AM |
21122 | m68k4knetbsd_vec) tb="$tb m68k4knetbsd.lo aout32.lo" ;; |
21123 | m68kaux_coff_vec) tb="$tb coff-aux.lo coff-m68k.lo cofflink.lo" ;; | |
252b5132 RH |
21124 | m68kcoff_vec) tb="$tb coff-m68k.lo cofflink.lo" ;; |
21125 | m68kcoffun_vec) tb="$tb coff-u68k.lo coff-m68k.lo cofflink.lo" ;; | |
21126 | m68klinux_vec) tb="$tb m68klinux.lo aout32.lo" ;; | |
252b5132 | 21127 | m68knetbsd_vec) tb="$tb m68knetbsd.lo aout32.lo" ;; |
252b5132 RH |
21128 | m68ksysvcoff_vec) tb="$tb coff-svm68k.lo cofflink.lo" ;; |
21129 | m88kbcs_vec) tb="$tb coff-m88k.lo" ;; | |
341ca622 | 21130 | m88kmach3_vec) tb="$tb m88kmach3.lo aout32.lo" ;; |
c6f8758f | 21131 | m88kopenbsd_vec) tb="$tb m88kopenbsd.lo aout32.lo" ;; |
7499d566 | 21132 | maxqcoff_vec) tb="$tb coff-maxq.lo" ;; |
93509525 KD |
21133 | mach_o_be_vec) tb="$tb mach-o.lo" ;; |
21134 | mach_o_le_vec) tb="$tb mach-o.lo" ;; | |
21135 | mach_o_fat_vec) tb="$tb mach-o.lo" ;; | |
277d1b5e ILT |
21136 | mcore_pe_big_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; |
21137 | mcore_pe_little_vec) tb="$tb pe-mcore.lo peigen.lo cofflink.lo" ;; | |
21138 | mcore_pei_big_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; | |
21139 | mcore_pei_little_vec) tb="$tb pei-mcore.lo peigen.lo cofflink.lo" ;; | |
dc810e39 AM |
21140 | mipslpe_vec) tb="$tb pe-mips.lo peigen.lo cofflink.lo" ;; |
21141 | mipslpei_vec) tb="$tb pei-mips.lo peigen.lo cofflink.lo" ;; | |
252b5132 | 21142 | newsos3_vec) tb="$tb newsos3.lo aout32.lo" ;; |
dc810e39 | 21143 | nlm32_alpha_vec) tb="$tb nlm32-alpha.lo nlm32.lo nlm.lo"; target_size=64 ;; |
252b5132 | 21144 | nlm32_i386_vec) tb="$tb nlm32-i386.lo nlm32.lo nlm.lo" ;; |
252b5132 | 21145 | nlm32_powerpc_vec) tb="$tb nlm32-ppc.lo nlm32.lo nlm.lo" ;; |
dc810e39 | 21146 | nlm32_sparc_vec) tb="$tb nlm32-sparc.lo nlm32.lo nlm.lo" ;; |
3b16e843 | 21147 | or32coff_big_vec) tb="$tb coff-or32.lo cofflink.lo" ;; |
252b5132 | 21148 | pc532machaout_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;; |
dc810e39 | 21149 | pc532netbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;; |
93509525 KD |
21150 | pef_vec) tb="$tb pef.lo" ;; |
21151 | pef_xlib_vec) tb="$tb pef.lo" ;; | |
e135f41b | 21152 | pdp11_aout_vec) tb="$tb pdp11.lo" ;; |
6768c14a | 21153 | pmac_xcoff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; |
252b5132 | 21154 | ppcboot_vec) tb="$tb ppcboot.lo" ;; |
dc810e39 | 21155 | riscix_vec) tb="$tb aout32.lo riscix.lo" ;; |
eb1e0e80 | 21156 | rs6000coff64_vec) tb="$tb coff64-rs6000.lo xcofflink.lo aix5ppc-core.lo"; target_size=64 ;; |
dc810e39 | 21157 | rs6000coff_vec) tb="$tb coff-rs6000.lo xcofflink.lo" ;; |
252b5132 | 21158 | shcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
dc810e39 | 21159 | shcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
252b5132 | 21160 | shlcoff_small_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
dc810e39 | 21161 | shlcoff_vec) tb="$tb coff-sh.lo cofflink.lo" ;; |
60bcf0fa NC |
21162 | shlpe_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; |
21163 | shlpei_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo cofflink.lo" ;; | |
252b5132 | 21164 | som_vec) tb="$tb som.lo" ;; |
dc810e39 | 21165 | sparccoff_vec) tb="$tb coff-sparc.lo" ;; |
252b5132 RH |
21166 | sparcle_aout_vec) tb="$tb aout-sparcle.lo aout32.lo" ;; |
21167 | sparclinux_vec) tb="$tb sparclinux.lo aout32.lo" ;; | |
21168 | sparclynx_aout_vec) tb="$tb sparclynx.lo lynx-core.lo aout32.lo" ;; | |
21169 | sparclynx_coff_vec) tb="$tb cf-sparclynx.lo lynx-core.lo" ;; | |
21170 | sparcnetbsd_vec) tb="$tb sparcnetbsd.lo aout32.lo" ;; | |
252b5132 | 21171 | sunos_big_vec) tb="$tb sunos.lo aout32.lo" ;; |
93509525 | 21172 | sym_vec) tb="$tb xsym.lo" ;; |
252b5132 RH |
21173 | tic30_aout_vec) tb="$tb aout-tic30.lo" ;; |
21174 | tic30_coff_vec) tb="$tb coff-tic30.lo" ;; | |
026df7c5 NC |
21175 | tic4x_coff0_vec) tb="$tb coff-tic4x.lo" ;; |
21176 | tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
21177 | tic4x_coff1_vec) tb="$tb coff-tic4x.lo" ;; | |
21178 | tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
21179 | tic4x_coff2_vec) tb="$tb coff-tic4x.lo" ;; | |
21180 | tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo" ;; | |
81635ce4 | 21181 | tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 21182 | tic54x_coff0_vec) tb="$tb coff-tic54x.lo" ;; |
81635ce4 | 21183 | tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 21184 | tic54x_coff1_vec) tb="$tb coff-tic54x.lo" ;; |
81635ce4 | 21185 | tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo" ;; |
dc810e39 | 21186 | tic54x_coff2_vec) tb="$tb coff-tic54x.lo" ;; |
252b5132 | 21187 | tic80coff_vec) tb="$tb coff-tic80.lo cofflink.lo" ;; |
90ace9e9 | 21188 | vaxnetbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;; |
3c2bfad6 | 21189 | vax1knetbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;; |
ba26fd96 | 21190 | vaxbsd_vec) tb="$tb vaxbsd.lo aout32.lo" ;; |
252b5132 | 21191 | versados_vec) tb="$tb versados.lo" ;; |
dc810e39 | 21192 | vms_alpha_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo"; target_size=64 ;; |
252b5132 RH |
21193 | vms_vax_vec) tb="$tb vms.lo vms-hdr.lo vms-gsd.lo vms-tir.lo vms-misc.lo" ;; |
21194 | w65_vec) tb="$tb coff-w65.lo reloc16.lo" ;; | |
21195 | we32kcoff_vec) tb="$tb coff-we32k.lo" ;; | |
3c9b82ba | 21196 | z80coff_vec) tb="$tb coff-z80.lo reloc16.lo" ;; |
c0524131 | 21197 | z8kcoff_vec) tb="$tb coff-z8k.lo reloc16.lo cofflink.lo" ;; |
252b5132 | 21198 | |
341ca622 AM |
21199 | # These appear out of order in targets.c |
21200 | srec_vec) tb="$tb srec.lo" ;; | |
21201 | symbolsrec_vec) tb="$tb srec.lo" ;; | |
21202 | tekhex_vec) tb="$tb tekhex.lo" ;; | |
21203 | cisco_core_big_vec) tb="$tb cisco-core.lo" ;; | |
21204 | cisco_core_little_vec) tb="$tb cisco-core.lo" ;; | |
21205 | ||
252b5132 | 21206 | "") ;; |
5464f5a1 NN |
21207 | *) { { echo "$as_me:$LINENO: error: *** unknown target vector $vec" >&5 |
21208 | echo "$as_me: error: *** unknown target vector $vec" >&2;} | |
21209 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 21210 | esac |
69263e90 AM |
21211 | |
21212 | if test ${target_size} = 64; then | |
21213 | target64=true | |
21214 | fi | |
21215 | if test x"${vec}" = x"${defvec}"; then | |
21216 | bfd_default_target_size=${target_size} | |
21217 | fi | |
252b5132 RH |
21218 | done |
21219 | ||
21220 | # Target architecture .o files. | |
21221 | # A couple of CPUs use shorter file names to avoid problems on DOS | |
21222 | # filesystems. | |
d031aafb | 21223 | ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` |
252b5132 RH |
21224 | |
21225 | # Weed out duplicate .o files. | |
21226 | f="" | |
21227 | for i in $tb ; do | |
21228 | case " $f " in | |
21229 | *" $i "*) ;; | |
21230 | *) f="$f $i" ;; | |
21231 | esac | |
21232 | done | |
21233 | tb="$f" | |
21234 | ||
21235 | f="" | |
21236 | for i in $ta ; do | |
21237 | case " $f " in | |
21238 | *" $i "*) ;; | |
21239 | *) f="$f $i" ;; | |
21240 | esac | |
21241 | done | |
21242 | ta="$f" | |
21243 | ||
21244 | bfd_backends="$tb" | |
21245 | bfd_machines="$ta" | |
21246 | ||
21247 | if test x${all_targets} = xtrue ; then | |
21248 | bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)' | |
21249 | bfd_machines="${bfd_machines}"' $(ALL_MACHINES)' | |
21250 | selvecs= | |
21251 | havevecs= | |
21252 | selarchs= | |
08f74004 AM |
21253 | test -n "$assocvecs" && |
21254 | assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
252b5132 RH |
21255 | else # all_targets is true |
21256 | # Only set these if they will be nonempty, for the clever echo. | |
21257 | havevecs= | |
08f74004 | 21258 | assocvecs= |
252b5132 RH |
21259 | test -n "$selvecs" && |
21260 | havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'` | |
21261 | test -n "$selvecs" && | |
21262 | selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
21263 | test -n "$selarchs" && | |
21264 | selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
21265 | fi # all_targets is true | |
21266 | ||
21267 | case ${host64}-${target64}-${want64} in | |
21268 | *true*) | |
21269 | wordsize=64 | |
21e40a48 | 21270 | bfd64_libs='$(BFD64_LIBS)' |
252b5132 | 21271 | all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)' |
ccba357f | 21272 | if test $BFD_HOST_64_BIT_DEFINED = 0; then |
5464f5a1 NN |
21273 | { echo "$as_me:$LINENO: WARNING: You have requested a 64 bit BFD configuration, but" >&5 |
21274 | echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;} | |
21275 | { echo "$as_me:$LINENO: WARNING: your compiler may not have a 64 bit integral type" >&5 | |
21276 | echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;} | |
252b5132 | 21277 | fi |
966abd70 HPN |
21278 | if test -n "$GCC" ; then |
21279 | bad_64bit_gcc=no; | |
5464f5a1 NN |
21280 | echo "$as_me:$LINENO: checking for gcc version with buggy 64-bit support" >&5 |
21281 | echo $ECHO_N "checking for gcc version with buggy 64-bit support... $ECHO_C" >&6 | |
966abd70 | 21282 | # Add more tests for gcc versions with non-working 64-bit support here. |
5464f5a1 NN |
21283 | cat >conftest.$ac_ext <<_ACEOF |
21284 | /* confdefs.h. */ | |
21285 | _ACEOF | |
21286 | cat confdefs.h >>conftest.$ac_ext | |
21287 | cat >>conftest.$ac_ext <<_ACEOF | |
21288 | /* end confdefs.h. */ | |
966abd70 | 21289 | :__GNUC__:__GNUC_MINOR__:__i386__: |
5464f5a1 | 21290 | _ACEOF |
966abd70 | 21291 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5464f5a1 | 21292 | $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then |
966abd70 | 21293 | bad_64bit_gcc=yes; |
5464f5a1 NN |
21294 | echo "$as_me:$LINENO: result: yes: egcs-1.1.2 on ix86 spotted" >&5 |
21295 | echo "${ECHO_T}yes: egcs-1.1.2 on ix86 spotted" >&6 | |
966abd70 | 21296 | else |
5464f5a1 NN |
21297 | echo "$as_me:$LINENO: result: no" >&5 |
21298 | echo "${ECHO_T}no" >&6 | |
966abd70 HPN |
21299 | fi |
21300 | rm -f conftest* | |
21301 | ||
21302 | if test $bad_64bit_gcc = yes ; then | |
5464f5a1 NN |
21303 | { { echo "$as_me:$LINENO: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&5 |
21304 | echo "$as_me: error: A newer version of gcc is needed for the requested 64-bit BFD configuration" >&2;} | |
21305 | { (exit 1); exit 1; }; } | |
966abd70 HPN |
21306 | fi |
21307 | fi | |
252b5132 RH |
21308 | ;; |
21309 | false-false-false) | |
21310 | wordsize=32 | |
21311 | all_backends='$(BFD32_BACKENDS)' | |
21312 | ;; | |
21313 | esac | |
21314 | ||
6be7c12c AO |
21315 | |
21316 | ||
21317 | ||
21318 | ||
21319 | ||
69263e90 | 21320 | |
2858ef35 | 21321 | |
1012372a AC |
21322 | # Determine the host dependant file_ptr a.k.a. off_t type. In order |
21323 | # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and | |
21324 | # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long. | |
21325 | # Hopefully a reasonable assumption since fseeko et.al. should be | |
21326 | # upward compatible. | |
5464f5a1 NN |
21327 | |
21328 | ||
21329 | ||
21330 | ||
2e6f4fae DJ |
21331 | |
21332 | for ac_func in ftello ftello64 fseeko fseeko64 fopen64 | |
1012372a | 21333 | do |
5464f5a1 NN |
21334 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
21335 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
21336 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
21337 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
21338 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21339 | else | |
2ba49b59 KC |
21340 | cat >conftest.$ac_ext <<_ACEOF |
21341 | /* confdefs.h. */ | |
21342 | _ACEOF | |
21343 | cat confdefs.h >>conftest.$ac_ext | |
21344 | cat >>conftest.$ac_ext <<_ACEOF | |
21345 | /* end confdefs.h. */ | |
21346 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
21347 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
21348 | #define $ac_func innocuous_$ac_func | |
21349 | ||
21350 | /* System header to define __stub macros and hopefully few prototypes, | |
21351 | which can conflict with char $ac_func (); below. | |
21352 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
21353 | <limits.h> exists even on freestanding compilers. */ | |
21354 | ||
21355 | #ifdef __STDC__ | |
21356 | # include <limits.h> | |
21357 | #else | |
21358 | # include <assert.h> | |
21359 | #endif | |
21360 | ||
21361 | #undef $ac_func | |
21362 | ||
21363 | /* Override any gcc2 internal prototype to avoid an error. */ | |
21364 | #ifdef __cplusplus | |
21365 | extern "C" | |
21366 | { | |
21367 | #endif | |
21368 | /* We use char because int might match the return type of a gcc2 | |
21369 | builtin and then its argument prototype would still apply. */ | |
21370 | char $ac_func (); | |
21371 | /* The GNU C library defines this for functions which it implements | |
21372 | to always fail with ENOSYS. Some functions are actually named | |
21373 | something starting with __ and the normal name is an alias. */ | |
21374 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
21375 | choke me | |
21376 | #else | |
21377 | char (*f) () = $ac_func; | |
21378 | #endif | |
21379 | #ifdef __cplusplus | |
21380 | } | |
21381 | #endif | |
21382 | ||
21383 | int | |
21384 | main () | |
21385 | { | |
21386 | return f != $ac_func; | |
21387 | ; | |
21388 | return 0; | |
21389 | } | |
21390 | _ACEOF | |
21391 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21392 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21393 | (eval $ac_link) 2>conftest.er1 | |
21394 | ac_status=$? | |
21395 | grep -v '^ *+' conftest.er1 >conftest.err | |
21396 | rm -f conftest.er1 | |
21397 | cat conftest.err >&5 | |
21398 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21399 | (exit $ac_status); } && | |
7357c5b6 AM |
21400 | { ac_try='test -z "$ac_c_werror_flag" |
21401 | || test ! -s conftest.err' | |
2ba49b59 KC |
21402 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21403 | (eval $ac_try) 2>&5 | |
21404 | ac_status=$? | |
21405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21406 | (exit $ac_status); }; } && | |
21407 | { ac_try='test -s conftest$ac_exeext' | |
21408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21409 | (eval $ac_try) 2>&5 | |
21410 | ac_status=$? | |
21411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21412 | (exit $ac_status); }; }; then | |
21413 | eval "$as_ac_var=yes" | |
21414 | else | |
21415 | echo "$as_me: failed program was:" >&5 | |
21416 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21417 | ||
21418 | eval "$as_ac_var=no" | |
21419 | fi | |
21420 | rm -f conftest.err conftest.$ac_objext \ | |
21421 | conftest$ac_exeext conftest.$ac_ext | |
21422 | fi | |
21423 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
21424 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
21425 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
21426 | cat >>confdefs.h <<_ACEOF | |
21427 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
21428 | _ACEOF | |
21429 | ||
21430 | fi | |
21431 | done | |
21432 | ||
21433 | if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then | |
21434 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
21435 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
21436 | if test "${ac_cv_type_off_t+set}" = set; then | |
21437 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21438 | else | |
21439 | cat >conftest.$ac_ext <<_ACEOF | |
21440 | /* confdefs.h. */ | |
21441 | _ACEOF | |
21442 | cat confdefs.h >>conftest.$ac_ext | |
21443 | cat >>conftest.$ac_ext <<_ACEOF | |
21444 | /* end confdefs.h. */ | |
21445 | $ac_includes_default | |
21446 | int | |
21447 | main () | |
21448 | { | |
21449 | if ((off_t *) 0) | |
21450 | return 0; | |
21451 | if (sizeof (off_t)) | |
21452 | return 0; | |
21453 | ; | |
21454 | return 0; | |
21455 | } | |
21456 | _ACEOF | |
21457 | rm -f conftest.$ac_objext | |
21458 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21459 | (eval $ac_compile) 2>conftest.er1 | |
21460 | ac_status=$? | |
21461 | grep -v '^ *+' conftest.er1 >conftest.err | |
21462 | rm -f conftest.er1 | |
21463 | cat conftest.err >&5 | |
21464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21465 | (exit $ac_status); } && | |
7357c5b6 AM |
21466 | { ac_try='test -z "$ac_c_werror_flag" |
21467 | || test ! -s conftest.err' | |
2ba49b59 KC |
21468 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21469 | (eval $ac_try) 2>&5 | |
21470 | ac_status=$? | |
21471 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21472 | (exit $ac_status); }; } && | |
21473 | { ac_try='test -s conftest.$ac_objext' | |
21474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21475 | (eval $ac_try) 2>&5 | |
21476 | ac_status=$? | |
21477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21478 | (exit $ac_status); }; }; then | |
21479 | ac_cv_type_off_t=yes | |
21480 | else | |
21481 | echo "$as_me: failed program was:" >&5 | |
21482 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21483 | ||
21484 | ac_cv_type_off_t=no | |
21485 | fi | |
21486 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21487 | fi | |
21488 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
21489 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
21490 | ||
21491 | echo "$as_me:$LINENO: checking size of off_t" >&5 | |
21492 | echo $ECHO_N "checking size of off_t... $ECHO_C" >&6 | |
21493 | if test "${ac_cv_sizeof_off_t+set}" = set; then | |
21494 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21495 | else | |
21496 | if test "$ac_cv_type_off_t" = yes; then | |
21497 | # The cast to unsigned long works around a bug in the HP C Compiler | |
21498 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
21499 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
21500 | # This bug is HP SR number 8606223364. | |
21501 | if test "$cross_compiling" = yes; then | |
21502 | # Depending upon the size, compute the lo and hi bounds. | |
21503 | cat >conftest.$ac_ext <<_ACEOF | |
5464f5a1 NN |
21504 | /* confdefs.h. */ |
21505 | _ACEOF | |
21506 | cat confdefs.h >>conftest.$ac_ext | |
21507 | cat >>conftest.$ac_ext <<_ACEOF | |
21508 | /* end confdefs.h. */ | |
2ba49b59 KC |
21509 | $ac_includes_default |
21510 | int | |
21511 | main () | |
21512 | { | |
21513 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= 0)]; | |
21514 | test_array [0] = 0 | |
5464f5a1 | 21515 | |
2ba49b59 KC |
21516 | ; |
21517 | return 0; | |
21518 | } | |
21519 | _ACEOF | |
21520 | rm -f conftest.$ac_objext | |
21521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21522 | (eval $ac_compile) 2>conftest.er1 | |
21523 | ac_status=$? | |
21524 | grep -v '^ *+' conftest.er1 >conftest.err | |
21525 | rm -f conftest.er1 | |
21526 | cat conftest.err >&5 | |
21527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21528 | (exit $ac_status); } && | |
7357c5b6 AM |
21529 | { ac_try='test -z "$ac_c_werror_flag" |
21530 | || test ! -s conftest.err' | |
2ba49b59 KC |
21531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21532 | (eval $ac_try) 2>&5 | |
21533 | ac_status=$? | |
21534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21535 | (exit $ac_status); }; } && | |
21536 | { ac_try='test -s conftest.$ac_objext' | |
21537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21538 | (eval $ac_try) 2>&5 | |
21539 | ac_status=$? | |
21540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21541 | (exit $ac_status); }; }; then | |
21542 | ac_lo=0 ac_mid=0 | |
21543 | while :; do | |
21544 | cat >conftest.$ac_ext <<_ACEOF | |
21545 | /* confdefs.h. */ | |
21546 | _ACEOF | |
21547 | cat confdefs.h >>conftest.$ac_ext | |
21548 | cat >>conftest.$ac_ext <<_ACEOF | |
21549 | /* end confdefs.h. */ | |
21550 | $ac_includes_default | |
21551 | int | |
21552 | main () | |
21553 | { | |
21554 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)]; | |
21555 | test_array [0] = 0 | |
5464f5a1 | 21556 | |
2ba49b59 KC |
21557 | ; |
21558 | return 0; | |
21559 | } | |
21560 | _ACEOF | |
21561 | rm -f conftest.$ac_objext | |
21562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21563 | (eval $ac_compile) 2>conftest.er1 | |
21564 | ac_status=$? | |
21565 | grep -v '^ *+' conftest.er1 >conftest.err | |
21566 | rm -f conftest.er1 | |
21567 | cat conftest.err >&5 | |
21568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21569 | (exit $ac_status); } && | |
7357c5b6 AM |
21570 | { ac_try='test -z "$ac_c_werror_flag" |
21571 | || test ! -s conftest.err' | |
2ba49b59 KC |
21572 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21573 | (eval $ac_try) 2>&5 | |
21574 | ac_status=$? | |
21575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21576 | (exit $ac_status); }; } && | |
21577 | { ac_try='test -s conftest.$ac_objext' | |
21578 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21579 | (eval $ac_try) 2>&5 | |
21580 | ac_status=$? | |
21581 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21582 | (exit $ac_status); }; }; then | |
21583 | ac_hi=$ac_mid; break | |
21584 | else | |
21585 | echo "$as_me: failed program was:" >&5 | |
21586 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1012372a | 21587 | |
2ba49b59 KC |
21588 | ac_lo=`expr $ac_mid + 1` |
21589 | if test $ac_lo -le $ac_mid; then | |
21590 | ac_lo= ac_hi= | |
21591 | break | |
21592 | fi | |
21593 | ac_mid=`expr 2 '*' $ac_mid + 1` | |
21594 | fi | |
21595 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21596 | done | |
21597 | else | |
21598 | echo "$as_me: failed program was:" >&5 | |
21599 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1012372a | 21600 | |
2ba49b59 KC |
21601 | cat >conftest.$ac_ext <<_ACEOF |
21602 | /* confdefs.h. */ | |
21603 | _ACEOF | |
21604 | cat confdefs.h >>conftest.$ac_ext | |
21605 | cat >>conftest.$ac_ext <<_ACEOF | |
21606 | /* end confdefs.h. */ | |
21607 | $ac_includes_default | |
21608 | int | |
21609 | main () | |
5464f5a1 | 21610 | { |
2ba49b59 KC |
21611 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) < 0)]; |
21612 | test_array [0] = 0 | |
1012372a | 21613 | |
2ba49b59 KC |
21614 | ; |
21615 | return 0; | |
21616 | } | |
21617 | _ACEOF | |
21618 | rm -f conftest.$ac_objext | |
21619 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21620 | (eval $ac_compile) 2>conftest.er1 | |
21621 | ac_status=$? | |
21622 | grep -v '^ *+' conftest.er1 >conftest.err | |
21623 | rm -f conftest.er1 | |
21624 | cat conftest.err >&5 | |
21625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21626 | (exit $ac_status); } && | |
7357c5b6 AM |
21627 | { ac_try='test -z "$ac_c_werror_flag" |
21628 | || test ! -s conftest.err' | |
2ba49b59 KC |
21629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21630 | (eval $ac_try) 2>&5 | |
21631 | ac_status=$? | |
21632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21633 | (exit $ac_status); }; } && | |
21634 | { ac_try='test -s conftest.$ac_objext' | |
21635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21636 | (eval $ac_try) 2>&5 | |
21637 | ac_status=$? | |
21638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21639 | (exit $ac_status); }; }; then | |
21640 | ac_hi=-1 ac_mid=-1 | |
21641 | while :; do | |
21642 | cat >conftest.$ac_ext <<_ACEOF | |
21643 | /* confdefs.h. */ | |
21644 | _ACEOF | |
21645 | cat confdefs.h >>conftest.$ac_ext | |
21646 | cat >>conftest.$ac_ext <<_ACEOF | |
21647 | /* end confdefs.h. */ | |
21648 | $ac_includes_default | |
5464f5a1 NN |
21649 | int |
21650 | main () | |
21651 | { | |
2ba49b59 KC |
21652 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) >= $ac_mid)]; |
21653 | test_array [0] = 0 | |
21654 | ||
5464f5a1 NN |
21655 | ; |
21656 | return 0; | |
21657 | } | |
21658 | _ACEOF | |
2ba49b59 KC |
21659 | rm -f conftest.$ac_objext |
21660 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21661 | (eval $ac_compile) 2>conftest.er1 | |
5464f5a1 NN |
21662 | ac_status=$? |
21663 | grep -v '^ *+' conftest.er1 >conftest.err | |
21664 | rm -f conftest.er1 | |
21665 | cat conftest.err >&5 | |
21666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21667 | (exit $ac_status); } && | |
7357c5b6 AM |
21668 | { ac_try='test -z "$ac_c_werror_flag" |
21669 | || test ! -s conftest.err' | |
5464f5a1 NN |
21670 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21671 | (eval $ac_try) 2>&5 | |
21672 | ac_status=$? | |
21673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21674 | (exit $ac_status); }; } && | |
2ba49b59 | 21675 | { ac_try='test -s conftest.$ac_objext' |
5464f5a1 NN |
21676 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21677 | (eval $ac_try) 2>&5 | |
21678 | ac_status=$? | |
21679 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21680 | (exit $ac_status); }; }; then | |
2ba49b59 | 21681 | ac_lo=$ac_mid; break |
5464f5a1 NN |
21682 | else |
21683 | echo "$as_me: failed program was:" >&5 | |
21684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21685 | ||
2ba49b59 KC |
21686 | ac_hi=`expr '(' $ac_mid ')' - 1` |
21687 | if test $ac_mid -le $ac_hi; then | |
21688 | ac_lo= ac_hi= | |
21689 | break | |
21690 | fi | |
21691 | ac_mid=`expr 2 '*' $ac_mid` | |
5464f5a1 | 21692 | fi |
2ba49b59 KC |
21693 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21694 | done | |
21695 | else | |
21696 | echo "$as_me: failed program was:" >&5 | |
21697 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1012372a | 21698 | |
2ba49b59 | 21699 | ac_lo= ac_hi= |
1012372a | 21700 | fi |
2ba49b59 KC |
21701 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
21702 | fi | |
21703 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21704 | # Binary search between lo and hi bounds. | |
21705 | while test "x$ac_lo" != "x$ac_hi"; do | |
21706 | ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` | |
5464f5a1 NN |
21707 | cat >conftest.$ac_ext <<_ACEOF |
21708 | /* confdefs.h. */ | |
21709 | _ACEOF | |
21710 | cat confdefs.h >>conftest.$ac_ext | |
21711 | cat >>conftest.$ac_ext <<_ACEOF | |
21712 | /* end confdefs.h. */ | |
2ba49b59 | 21713 | $ac_includes_default |
5464f5a1 NN |
21714 | int |
21715 | main () | |
21716 | { | |
2ba49b59 KC |
21717 | static int test_array [1 - 2 * !(((long) (sizeof (off_t))) <= $ac_mid)]; |
21718 | test_array [0] = 0 | |
21719 | ||
5464f5a1 NN |
21720 | ; |
21721 | return 0; | |
21722 | } | |
21723 | _ACEOF | |
21724 | rm -f conftest.$ac_objext | |
21725 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21726 | (eval $ac_compile) 2>conftest.er1 | |
21727 | ac_status=$? | |
21728 | grep -v '^ *+' conftest.er1 >conftest.err | |
21729 | rm -f conftest.er1 | |
21730 | cat conftest.err >&5 | |
21731 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21732 | (exit $ac_status); } && | |
7357c5b6 AM |
21733 | { ac_try='test -z "$ac_c_werror_flag" |
21734 | || test ! -s conftest.err' | |
5464f5a1 NN |
21735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21736 | (eval $ac_try) 2>&5 | |
21737 | ac_status=$? | |
21738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21739 | (exit $ac_status); }; } && | |
21740 | { ac_try='test -s conftest.$ac_objext' | |
21741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21742 | (eval $ac_try) 2>&5 | |
21743 | ac_status=$? | |
21744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21745 | (exit $ac_status); }; }; then | |
2ba49b59 | 21746 | ac_hi=$ac_mid |
1012372a | 21747 | else |
5464f5a1 NN |
21748 | echo "$as_me: failed program was:" >&5 |
21749 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21750 | ||
2ba49b59 | 21751 | ac_lo=`expr '(' $ac_mid ')' + 1` |
1012372a | 21752 | fi |
5464f5a1 | 21753 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
1012372a | 21754 | done |
2ba49b59 KC |
21755 | case $ac_lo in |
21756 | ?*) ac_cv_sizeof_off_t=$ac_lo;; | |
7357c5b6 AM |
21757 | '') { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
21758 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
21759 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77 | |
2ba49b59 KC |
21760 | See \`config.log' for more details." >&5 |
21761 | echo "$as_me: error: cannot compute sizeof (off_t), 77 | |
21762 | See \`config.log' for more details." >&2;} | |
7357c5b6 | 21763 | { (exit 1); exit 1; }; }; } ;; |
2ba49b59 KC |
21764 | esac |
21765 | else | |
21766 | if test "$cross_compiling" = yes; then | |
7357c5b6 AM |
21767 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
21768 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
21769 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
21770 | See \`config.log' for more details." >&5 | |
21771 | echo "$as_me: error: cannot run test program while cross compiling | |
21772 | See \`config.log' for more details." >&2;} | |
21773 | { (exit 1); exit 1; }; }; } | |
2ba49b59 KC |
21774 | else |
21775 | cat >conftest.$ac_ext <<_ACEOF | |
21776 | /* confdefs.h. */ | |
21777 | _ACEOF | |
21778 | cat confdefs.h >>conftest.$ac_ext | |
21779 | cat >>conftest.$ac_ext <<_ACEOF | |
21780 | /* end confdefs.h. */ | |
21781 | $ac_includes_default | |
21782 | long longval () { return (long) (sizeof (off_t)); } | |
21783 | unsigned long ulongval () { return (long) (sizeof (off_t)); } | |
21784 | #include <stdio.h> | |
21785 | #include <stdlib.h> | |
21786 | int | |
21787 | main () | |
21788 | { | |
1012372a | 21789 | |
2ba49b59 KC |
21790 | FILE *f = fopen ("conftest.val", "w"); |
21791 | if (! f) | |
21792 | exit (1); | |
21793 | if (((long) (sizeof (off_t))) < 0) | |
21794 | { | |
21795 | long i = longval (); | |
21796 | if (i != ((long) (sizeof (off_t)))) | |
21797 | exit (1); | |
21798 | fprintf (f, "%ld\n", i); | |
21799 | } | |
21800 | else | |
21801 | { | |
21802 | unsigned long i = ulongval (); | |
21803 | if (i != ((long) (sizeof (off_t)))) | |
21804 | exit (1); | |
21805 | fprintf (f, "%lu\n", i); | |
21806 | } | |
21807 | exit (ferror (f) || fclose (f) != 0); | |
21808 | ||
21809 | ; | |
21810 | return 0; | |
21811 | } | |
21812 | _ACEOF | |
21813 | rm -f conftest$ac_exeext | |
21814 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
21815 | (eval $ac_link) 2>&5 | |
21816 | ac_status=$? | |
21817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21818 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
21819 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21820 | (eval $ac_try) 2>&5 | |
21821 | ac_status=$? | |
21822 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21823 | (exit $ac_status); }; }; then | |
21824 | ac_cv_sizeof_off_t=`cat conftest.val` | |
21825 | else | |
21826 | echo "$as_me: program exited with status $ac_status" >&5 | |
21827 | echo "$as_me: failed program was:" >&5 | |
21828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1012372a | 21829 | |
2ba49b59 | 21830 | ( exit $ac_status ) |
7357c5b6 AM |
21831 | { { echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5 |
21832 | echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2ba49b59 KC |
21833 | { { echo "$as_me:$LINENO: error: cannot compute sizeof (off_t), 77 |
21834 | See \`config.log' for more details." >&5 | |
21835 | echo "$as_me: error: cannot compute sizeof (off_t), 77 | |
21836 | See \`config.log' for more details." >&2;} | |
7357c5b6 | 21837 | { (exit 1); exit 1; }; }; } |
1012372a | 21838 | fi |
2ba49b59 KC |
21839 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21840 | fi | |
21841 | fi | |
21842 | rm -f conftest.val | |
21843 | else | |
21844 | ac_cv_sizeof_off_t=0 | |
21845 | fi | |
21846 | fi | |
5464f5a1 NN |
21847 | echo "$as_me:$LINENO: result: $ac_cv_sizeof_off_t" >&5 |
21848 | echo "${ECHO_T}$ac_cv_sizeof_off_t" >&6 | |
5464f5a1 | 21849 | cat >>confdefs.h <<_ACEOF |
1012372a | 21850 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t |
5464f5a1 | 21851 | _ACEOF |
1012372a AC |
21852 | |
21853 | ||
1012372a | 21854 | fi |
5464f5a1 NN |
21855 | echo "$as_me:$LINENO: checking file_ptr type" >&5 |
21856 | echo $ECHO_N "checking file_ptr type... $ECHO_C" >&6 | |
ccba357f AM |
21857 | bfd_file_ptr="long" |
21858 | bfd_ufile_ptr="unsigned long" | |
21859 | if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \ | |
21860 | -o x"${ac_cv_sizeof_off_t}" = x8; then | |
1012372a AC |
21861 | bfd_file_ptr=BFD_HOST_64_BIT |
21862 | bfd_ufile_ptr=BFD_HOST_U_64_BIT | |
21863 | fi | |
5464f5a1 NN |
21864 | echo "$as_me:$LINENO: result: $bfd_file_ptr" >&5 |
21865 | echo "${ECHO_T}$bfd_file_ptr" >&6 | |
1012372a AC |
21866 | |
21867 | ||
21868 | ||
21869 | ||
252b5132 RH |
21870 | tdefaults="" |
21871 | test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" | |
21872 | test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" | |
08f74004 | 21873 | test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'" |
252b5132 RH |
21874 | test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'" |
21875 | test -n "${havevecs}" && tdefaults="${tdefaults} ${havevecs}" | |
21876 | ||
6be7c12c | 21877 | |
5464f5a1 NN |
21878 | |
21879 | ||
21880 | for ac_header in stdlib.h unistd.h | |
252b5132 | 21881 | do |
5464f5a1 NN |
21882 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
21883 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21884 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
21885 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
21886 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
21887 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21888 | fi | |
21889 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
21890 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
21891 | else | |
21892 | # Is the header compilable? | |
21893 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
21894 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
21895 | cat >conftest.$ac_ext <<_ACEOF | |
21896 | /* confdefs.h. */ | |
21897 | _ACEOF | |
21898 | cat confdefs.h >>conftest.$ac_ext | |
21899 | cat >>conftest.$ac_ext <<_ACEOF | |
21900 | /* end confdefs.h. */ | |
21901 | $ac_includes_default | |
21902 | #include <$ac_header> | |
21903 | _ACEOF | |
21904 | rm -f conftest.$ac_objext | |
21905 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
21906 | (eval $ac_compile) 2>conftest.er1 | |
21907 | ac_status=$? | |
21908 | grep -v '^ *+' conftest.er1 >conftest.err | |
21909 | rm -f conftest.er1 | |
21910 | cat conftest.err >&5 | |
21911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21912 | (exit $ac_status); } && | |
7357c5b6 AM |
21913 | { ac_try='test -z "$ac_c_werror_flag" |
21914 | || test ! -s conftest.err' | |
5464f5a1 NN |
21915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
21916 | (eval $ac_try) 2>&5 | |
21917 | ac_status=$? | |
21918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21919 | (exit $ac_status); }; } && | |
21920 | { ac_try='test -s conftest.$ac_objext' | |
21921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
21922 | (eval $ac_try) 2>&5 | |
21923 | ac_status=$? | |
21924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21925 | (exit $ac_status); }; }; then | |
21926 | ac_header_compiler=yes | |
21927 | else | |
21928 | echo "$as_me: failed program was:" >&5 | |
21929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21930 | ||
21931 | ac_header_compiler=no | |
21932 | fi | |
21933 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
21934 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21935 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
21936 | ||
21937 | # Is the header present? | |
21938 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
21939 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
21940 | cat >conftest.$ac_ext <<_ACEOF | |
21941 | /* confdefs.h. */ | |
21942 | _ACEOF | |
21943 | cat confdefs.h >>conftest.$ac_ext | |
21944 | cat >>conftest.$ac_ext <<_ACEOF | |
21945 | /* end confdefs.h. */ | |
21946 | #include <$ac_header> | |
21947 | _ACEOF | |
21948 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
21949 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
21950 | ac_status=$? | |
21951 | grep -v '^ *+' conftest.er1 >conftest.err | |
21952 | rm -f conftest.er1 | |
21953 | cat conftest.err >&5 | |
21954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21955 | (exit $ac_status); } >/dev/null; then | |
21956 | if test -s conftest.err; then | |
21957 | ac_cpp_err=$ac_c_preproc_warn_flag | |
21958 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
21959 | else | |
21960 | ac_cpp_err= | |
21961 | fi | |
252b5132 | 21962 | else |
5464f5a1 | 21963 | ac_cpp_err=yes |
252b5132 | 21964 | fi |
5464f5a1 NN |
21965 | if test -z "$ac_cpp_err"; then |
21966 | ac_header_preproc=yes | |
21967 | else | |
21968 | echo "$as_me: failed program was:" >&5 | |
21969 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21970 | ||
21971 | ac_header_preproc=no | |
252b5132 | 21972 | fi |
5464f5a1 NN |
21973 | rm -f conftest.err conftest.$ac_ext |
21974 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21975 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
21976 | ||
21977 | # So? What about this header? | |
21978 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
21979 | yes:no: ) | |
21980 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
21981 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
21982 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
21983 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
21984 | ac_header_preproc=yes | |
21985 | ;; | |
21986 | no:yes:* ) | |
21987 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
21988 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
21989 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
21990 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
21991 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
21992 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
21993 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
21994 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
21995 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
21996 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
21997 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
21998 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
21999 | ( | |
22000 | cat <<\_ASBOX | |
22001 | ## ------------------------------------------ ## | |
22002 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
22003 | ## ------------------------------------------ ## | |
22004 | _ASBOX | |
22005 | ) | | |
22006 | sed "s/^/$as_me: WARNING: /" >&2 | |
22007 | ;; | |
22008 | esac | |
22009 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
22010 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
22011 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
22012 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6be7c12c | 22013 | else |
5464f5a1 NN |
22014 | eval "$as_ac_Header=\$ac_header_preproc" |
22015 | fi | |
22016 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
22017 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
22018 | ||
22019 | fi | |
22020 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
22021 | cat >>confdefs.h <<_ACEOF | |
22022 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
22023 | _ACEOF | |
22024 | ||
252b5132 | 22025 | fi |
5464f5a1 | 22026 | |
252b5132 RH |
22027 | done |
22028 | ||
5464f5a1 | 22029 | |
252b5132 RH |
22030 | for ac_func in getpagesize |
22031 | do | |
5464f5a1 NN |
22032 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
22033 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
22034 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
22035 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
22036 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22037 | else | |
22038 | cat >conftest.$ac_ext <<_ACEOF | |
22039 | /* confdefs.h. */ | |
22040 | _ACEOF | |
22041 | cat confdefs.h >>conftest.$ac_ext | |
22042 | cat >>conftest.$ac_ext <<_ACEOF | |
22043 | /* end confdefs.h. */ | |
22044 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
22045 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22046 | #define $ac_func innocuous_$ac_func | |
22047 | ||
252b5132 | 22048 | /* System header to define __stub macros and hopefully few prototypes, |
5464f5a1 NN |
22049 | which can conflict with char $ac_func (); below. |
22050 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22051 | <limits.h> exists even on freestanding compilers. */ | |
22052 | ||
22053 | #ifdef __STDC__ | |
22054 | # include <limits.h> | |
22055 | #else | |
22056 | # include <assert.h> | |
22057 | #endif | |
6be7c12c | 22058 | |
5464f5a1 | 22059 | #undef $ac_func |
252b5132 | 22060 | |
5464f5a1 NN |
22061 | /* Override any gcc2 internal prototype to avoid an error. */ |
22062 | #ifdef __cplusplus | |
22063 | extern "C" | |
22064 | { | |
22065 | #endif | |
22066 | /* We use char because int might match the return type of a gcc2 | |
22067 | builtin and then its argument prototype would still apply. */ | |
22068 | char $ac_func (); | |
252b5132 RH |
22069 | /* The GNU C library defines this for functions which it implements |
22070 | to always fail with ENOSYS. Some functions are actually named | |
22071 | something starting with __ and the normal name is an alias. */ | |
22072 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22073 | choke me | |
22074 | #else | |
5464f5a1 NN |
22075 | char (*f) () = $ac_func; |
22076 | #endif | |
22077 | #ifdef __cplusplus | |
22078 | } | |
252b5132 RH |
22079 | #endif |
22080 | ||
5464f5a1 NN |
22081 | int |
22082 | main () | |
22083 | { | |
22084 | return f != $ac_func; | |
22085 | ; | |
22086 | return 0; | |
22087 | } | |
22088 | _ACEOF | |
22089 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22090 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22091 | (eval $ac_link) 2>conftest.er1 | |
22092 | ac_status=$? | |
22093 | grep -v '^ *+' conftest.er1 >conftest.err | |
22094 | rm -f conftest.er1 | |
22095 | cat conftest.err >&5 | |
22096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22097 | (exit $ac_status); } && | |
7357c5b6 AM |
22098 | { ac_try='test -z "$ac_c_werror_flag" |
22099 | || test ! -s conftest.err' | |
5464f5a1 NN |
22100 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22101 | (eval $ac_try) 2>&5 | |
22102 | ac_status=$? | |
22103 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22104 | (exit $ac_status); }; } && | |
22105 | { ac_try='test -s conftest$ac_exeext' | |
22106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22107 | (eval $ac_try) 2>&5 | |
22108 | ac_status=$? | |
22109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22110 | (exit $ac_status); }; }; then | |
22111 | eval "$as_ac_var=yes" | |
22112 | else | |
22113 | echo "$as_me: failed program was:" >&5 | |
22114 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22115 | ||
22116 | eval "$as_ac_var=no" | |
22117 | fi | |
22118 | rm -f conftest.err conftest.$ac_objext \ | |
22119 | conftest$ac_exeext conftest.$ac_ext | |
22120 | fi | |
22121 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
22122 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
22123 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
22124 | cat >>confdefs.h <<_ACEOF | |
22125 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
22126 | _ACEOF | |
252b5132 | 22127 | |
252b5132 RH |
22128 | fi |
22129 | done | |
22130 | ||
5464f5a1 NN |
22131 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
22132 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
22133 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
22134 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
252b5132 RH |
22135 | else |
22136 | if test "$cross_compiling" = yes; then | |
22137 | ac_cv_func_mmap_fixed_mapped=no | |
22138 | else | |
5464f5a1 NN |
22139 | cat >conftest.$ac_ext <<_ACEOF |
22140 | /* confdefs.h. */ | |
22141 | _ACEOF | |
22142 | cat confdefs.h >>conftest.$ac_ext | |
22143 | cat >>conftest.$ac_ext <<_ACEOF | |
22144 | /* end confdefs.h. */ | |
22145 | $ac_includes_default | |
22146 | /* malloc might have been renamed as rpl_malloc. */ | |
22147 | #undef malloc | |
6be7c12c | 22148 | |
252b5132 RH |
22149 | /* Thanks to Mike Haertel and Jim Avera for this test. |
22150 | Here is a matrix of mmap possibilities: | |
22151 | mmap private not fixed | |
22152 | mmap private fixed at somewhere currently unmapped | |
22153 | mmap private fixed at somewhere already mapped | |
22154 | mmap shared not fixed | |
22155 | mmap shared fixed at somewhere currently unmapped | |
22156 | mmap shared fixed at somewhere already mapped | |
22157 | For private mappings, we should verify that changes cannot be read() | |
22158 | back from the file, nor mmap's back from the file at a different | |
22159 | address. (There have been systems where private was not correctly | |
22160 | implemented like the infamous i386 svr4.0, and systems where the | |
5464f5a1 | 22161 | VM page cache was not coherent with the file system buffer cache |
252b5132 RH |
22162 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
22163 | For shared mappings, we should conversely verify that changes get | |
5464f5a1 | 22164 | propagated back to all the places they're supposed to be. |
252b5132 RH |
22165 | |
22166 | Grep wants private fixed already mapped. | |
22167 | The main things grep needs to know about mmap are: | |
22168 | * does it exist and is it safe to write into the mmap'd area | |
22169 | * how to use it (BSD variants) */ | |
5464f5a1 | 22170 | |
252b5132 RH |
22171 | #include <fcntl.h> |
22172 | #include <sys/mman.h> | |
22173 | ||
5464f5a1 NN |
22174 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
22175 | char *malloc (); | |
22176 | #endif | |
6be7c12c | 22177 | |
5464f5a1 NN |
22178 | /* This mess was copied from the GNU getpagesize.h. */ |
22179 | #if !HAVE_GETPAGESIZE | |
252b5132 | 22180 | /* Assume that all systems that can run configure have sys/param.h. */ |
5464f5a1 | 22181 | # if !HAVE_SYS_PARAM_H |
252b5132 RH |
22182 | # define HAVE_SYS_PARAM_H 1 |
22183 | # endif | |
22184 | ||
22185 | # ifdef _SC_PAGESIZE | |
22186 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
22187 | # else /* no _SC_PAGESIZE */ | |
5464f5a1 | 22188 | # if HAVE_SYS_PARAM_H |
252b5132 RH |
22189 | # include <sys/param.h> |
22190 | # ifdef EXEC_PAGESIZE | |
22191 | # define getpagesize() EXEC_PAGESIZE | |
22192 | # else /* no EXEC_PAGESIZE */ | |
22193 | # ifdef NBPG | |
22194 | # define getpagesize() NBPG * CLSIZE | |
22195 | # ifndef CLSIZE | |
22196 | # define CLSIZE 1 | |
22197 | # endif /* no CLSIZE */ | |
22198 | # else /* no NBPG */ | |
22199 | # ifdef NBPC | |
22200 | # define getpagesize() NBPC | |
22201 | # else /* no NBPC */ | |
22202 | # ifdef PAGESIZE | |
22203 | # define getpagesize() PAGESIZE | |
22204 | # endif /* PAGESIZE */ | |
22205 | # endif /* no NBPC */ | |
22206 | # endif /* no NBPG */ | |
22207 | # endif /* no EXEC_PAGESIZE */ | |
22208 | # else /* no HAVE_SYS_PARAM_H */ | |
22209 | # define getpagesize() 8192 /* punt totally */ | |
22210 | # endif /* no HAVE_SYS_PARAM_H */ | |
22211 | # endif /* no _SC_PAGESIZE */ | |
22212 | ||
5464f5a1 NN |
22213 | #endif /* no HAVE_GETPAGESIZE */ |
22214 | ||
22215 | int | |
22216 | main () | |
22217 | { | |
22218 | char *data, *data2, *data3; | |
22219 | int i, pagesize; | |
22220 | int fd; | |
22221 | ||
22222 | pagesize = getpagesize (); | |
22223 | ||
22224 | /* First, make a file with some known garbage in it. */ | |
22225 | data = (char *) malloc (pagesize); | |
22226 | if (!data) | |
22227 | exit (1); | |
22228 | for (i = 0; i < pagesize; ++i) | |
22229 | *(data + i) = rand (); | |
22230 | umask (0); | |
22231 | fd = creat ("conftest.mmap", 0600); | |
22232 | if (fd < 0) | |
22233 | exit (1); | |
22234 | if (write (fd, data, pagesize) != pagesize) | |
22235 | exit (1); | |
22236 | close (fd); | |
22237 | ||
22238 | /* Next, try to mmap the file at a fixed address which already has | |
22239 | something else allocated at it. If we can, also make sure that | |
22240 | we see the same garbage. */ | |
22241 | fd = open ("conftest.mmap", O_RDWR); | |
22242 | if (fd < 0) | |
22243 | exit (1); | |
22244 | data2 = (char *) malloc (2 * pagesize); | |
22245 | if (!data2) | |
22246 | exit (1); | |
22247 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
22248 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
22249 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
22250 | exit (1); | |
22251 | for (i = 0; i < pagesize; ++i) | |
22252 | if (*(data + i) != *(data2 + i)) | |
22253 | exit (1); | |
22254 | ||
22255 | /* Finally, make sure that changes to the mapped area do not | |
22256 | percolate back to the file as seen by read(). (This is a bug on | |
22257 | some variants of i386 svr4.0.) */ | |
22258 | for (i = 0; i < pagesize; ++i) | |
22259 | *(data2 + i) = *(data2 + i) + 1; | |
22260 | data3 = (char *) malloc (pagesize); | |
22261 | if (!data3) | |
22262 | exit (1); | |
22263 | if (read (fd, data3, pagesize) != pagesize) | |
22264 | exit (1); | |
22265 | for (i = 0; i < pagesize; ++i) | |
22266 | if (*(data + i) != *(data3 + i)) | |
22267 | exit (1); | |
22268 | close (fd); | |
22269 | exit (0); | |
22270 | } | |
22271 | _ACEOF | |
22272 | rm -f conftest$ac_exeext | |
22273 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22274 | (eval $ac_link) 2>&5 | |
22275 | ac_status=$? | |
22276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22277 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
22278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22279 | (eval $ac_try) 2>&5 | |
22280 | ac_status=$? | |
22281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22282 | (exit $ac_status); }; }; then | |
22283 | ac_cv_func_mmap_fixed_mapped=yes | |
22284 | else | |
22285 | echo "$as_me: program exited with status $ac_status" >&5 | |
22286 | echo "$as_me: failed program was:" >&5 | |
22287 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22288 | ||
22289 | ( exit $ac_status ) | |
22290 | ac_cv_func_mmap_fixed_mapped=no | |
22291 | fi | |
22292 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
22293 | fi | |
22294 | fi | |
22295 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 | |
22296 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
22297 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
22298 | ||
22299 | cat >>confdefs.h <<\_ACEOF | |
22300 | #define HAVE_MMAP 1 | |
22301 | _ACEOF | |
22302 | ||
22303 | fi | |
22304 | rm -f conftest.mmap | |
22305 | ||
22306 | ||
22307 | ||
22308 | for ac_func in madvise mprotect | |
22309 | do | |
22310 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
22311 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
22312 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
22313 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
22314 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
22315 | else | |
22316 | cat >conftest.$ac_ext <<_ACEOF | |
22317 | /* confdefs.h. */ | |
22318 | _ACEOF | |
22319 | cat confdefs.h >>conftest.$ac_ext | |
22320 | cat >>conftest.$ac_ext <<_ACEOF | |
22321 | /* end confdefs.h. */ | |
22322 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
22323 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
22324 | #define $ac_func innocuous_$ac_func | |
22325 | ||
22326 | /* System header to define __stub macros and hopefully few prototypes, | |
22327 | which can conflict with char $ac_func (); below. | |
22328 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
22329 | <limits.h> exists even on freestanding compilers. */ | |
22330 | ||
22331 | #ifdef __STDC__ | |
22332 | # include <limits.h> | |
22333 | #else | |
22334 | # include <assert.h> | |
22335 | #endif | |
22336 | ||
22337 | #undef $ac_func | |
22338 | ||
22339 | /* Override any gcc2 internal prototype to avoid an error. */ | |
22340 | #ifdef __cplusplus | |
22341 | extern "C" | |
22342 | { | |
22343 | #endif | |
22344 | /* We use char because int might match the return type of a gcc2 | |
22345 | builtin and then its argument prototype would still apply. */ | |
22346 | char $ac_func (); | |
22347 | /* The GNU C library defines this for functions which it implements | |
22348 | to always fail with ENOSYS. Some functions are actually named | |
22349 | something starting with __ and the normal name is an alias. */ | |
22350 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
22351 | choke me | |
22352 | #else | |
22353 | char (*f) () = $ac_func; | |
22354 | #endif | |
22355 | #ifdef __cplusplus | |
22356 | } | |
22357 | #endif | |
22358 | ||
22359 | int | |
22360 | main () | |
22361 | { | |
22362 | return f != $ac_func; | |
22363 | ; | |
22364 | return 0; | |
22365 | } | |
22366 | _ACEOF | |
22367 | rm -f conftest.$ac_objext conftest$ac_exeext | |
22368 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
22369 | (eval $ac_link) 2>conftest.er1 | |
22370 | ac_status=$? | |
22371 | grep -v '^ *+' conftest.er1 >conftest.err | |
22372 | rm -f conftest.er1 | |
22373 | cat conftest.err >&5 | |
22374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22375 | (exit $ac_status); } && | |
7357c5b6 AM |
22376 | { ac_try='test -z "$ac_c_werror_flag" |
22377 | || test ! -s conftest.err' | |
5464f5a1 NN |
22378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
22379 | (eval $ac_try) 2>&5 | |
22380 | ac_status=$? | |
22381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22382 | (exit $ac_status); }; } && | |
22383 | { ac_try='test -s conftest$ac_exeext' | |
22384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
22385 | (eval $ac_try) 2>&5 | |
22386 | ac_status=$? | |
22387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
22388 | (exit $ac_status); }; }; then | |
22389 | eval "$as_ac_var=yes" | |
22390 | else | |
22391 | echo "$as_me: failed program was:" >&5 | |
22392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
22393 | ||
22394 | eval "$as_ac_var=no" | |
22395 | fi | |
22396 | rm -f conftest.err conftest.$ac_objext \ | |
22397 | conftest$ac_exeext conftest.$ac_ext | |
22398 | fi | |
22399 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
22400 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
22401 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
22402 | cat >>confdefs.h <<_ACEOF | |
22403 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
22404 | _ACEOF | |
22405 | ||
22406 | fi | |
22407 | done | |
22408 | ||
22409 | case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in | |
22410 | true+yes ) | |
22411 | cat >>confdefs.h <<\_ACEOF | |
22412 | #define USE_MMAP 1 | |
22413 | _ACEOF | |
22414 | ;; | |
22415 | esac | |
22416 | ||
22417 | rm -f doc/config.status | |
22418 | ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in" | |
22419 | ||
20e95c23 | 22420 | |
5464f5a1 NN |
22421 | ac_config_commands="$ac_config_commands default" |
22422 | ||
108a6f8e CD |
22423 | |
22424 | ||
22425 | ||
22426 | ||
22427 | ||
31dd3154 | 22428 | |
5464f5a1 NN |
22429 | cat >confcache <<\_ACEOF |
22430 | # This file is a shell script that caches the results of configure | |
22431 | # tests run on this system so they can be shared between configure | |
22432 | # scripts and configure runs, see configure's option --config-cache. | |
22433 | # It is not useful on other systems. If it contains results you don't | |
22434 | # want to keep, you may remove or edit it. | |
22435 | # | |
22436 | # config.status only pays attention to the cache file if you give it | |
22437 | # the --recheck option to rerun configure. | |
22438 | # | |
22439 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
22440 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
22441 | # following values. | |
22442 | ||
22443 | _ACEOF | |
22444 | ||
22445 | # The following way of writing the cache mishandles newlines in values, | |
22446 | # but we know of no workaround that is simple, portable, and efficient. | |
22447 | # So, don't put newlines in cache variables' values. | |
22448 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
22449 | # and sets the high bit in the cache file unless we assign to the vars. | |
22450 | { | |
22451 | (set) 2>&1 | | |
22452 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
22453 | *ac_space=\ *) | |
22454 | # `set' does not quote correctly, so add quotes (double-quote | |
22455 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
22456 | sed -n \ | |
22457 | "s/'/'\\\\''/g; | |
22458 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
22459 | ;; | |
22460 | *) | |
22461 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
22462 | sed -n \ | |
22463 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
22464 | ;; | |
22465 | esac; | |
22466 | } | | |
22467 | sed ' | |
22468 | t clear | |
22469 | : clear | |
22470 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
22471 | t end | |
22472 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
22473 | : end' >>confcache | |
22474 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
22475 | if test -w $cache_file; then | |
22476 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
22477 | cat confcache >$cache_file | |
22478 | else | |
22479 | echo "not updating unwritable cache $cache_file" | |
22480 | fi | |
22481 | fi | |
22482 | rm -f confcache | |
22483 | ||
22484 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
22485 | # Let make expand exec_prefix. | |
22486 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
22487 | ||
22488 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
22489 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
22490 | # trailing colons and then remove the whole line if VPATH becomes empty | |
22491 | # (actually we leave an empty line to preserve line numbers). | |
22492 | if test "x$srcdir" = x.; then | |
22493 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
22494 | s/:*\$(srcdir):*/:/; | |
22495 | s/:*\${srcdir}:*/:/; | |
22496 | s/:*@srcdir@:*/:/; | |
22497 | s/^\([^=]*=[ ]*\):*/\1/; | |
22498 | s/:*$//; | |
22499 | s/^[^=]*=[ ]*$//; | |
22500 | }' | |
22501 | fi | |
22502 | ||
22503 | DEFS=-DHAVE_CONFIG_H | |
22504 | ||
22505 | ac_libobjs= | |
22506 | ac_ltlibobjs= | |
22507 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
22508 | # 1. Remove the extension, and $U if already installed. | |
22509 | ac_i=`echo "$ac_i" | | |
22510 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
22511 | # 2. Add them. | |
22512 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
22513 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
22514 | done | |
22515 | LIBOBJS=$ac_libobjs | |
22516 | ||
22517 | LTLIBOBJS=$ac_ltlibobjs | |
22518 | ||
22519 | ||
f5385ebf AM |
22520 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
22521 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
22522 | Usually this means the macro was only invoked conditionally." >&5 | |
22523 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
22524 | Usually this means the macro was only invoked conditionally." >&2;} | |
22525 | { (exit 1); exit 1; }; } | |
22526 | fi | |
22527 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
22528 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
22529 | Usually this means the macro was only invoked conditionally." >&5 | |
22530 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
22531 | Usually this means the macro was only invoked conditionally." >&2;} | |
22532 | { (exit 1); exit 1; }; } | |
22533 | fi | |
22534 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
22535 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
22536 | Usually this means the macro was only invoked conditionally." >&5 | |
22537 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
22538 | Usually this means the macro was only invoked conditionally." >&2;} | |
22539 | { (exit 1); exit 1; }; } | |
22540 | fi | |
d5fbea21 DJ |
22541 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
22542 | { { echo "$as_me:$LINENO: error: conditional \"GENINSRC_NEVER\" was never defined. | |
22543 | Usually this means the macro was only invoked conditionally." >&5 | |
22544 | echo "$as_me: error: conditional \"GENINSRC_NEVER\" was never defined. | |
22545 | Usually this means the macro was only invoked conditionally." >&2;} | |
22546 | { (exit 1); exit 1; }; } | |
22547 | fi | |
f5385ebf AM |
22548 | if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then |
22549 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBBFD\" was never defined. | |
22550 | Usually this means the macro was only invoked conditionally." >&5 | |
22551 | echo "$as_me: error: conditional \"INSTALL_LIBBFD\" was never defined. | |
22552 | Usually this means the macro was only invoked conditionally." >&2;} | |
22553 | { (exit 1); exit 1; }; } | |
22554 | fi | |
5464f5a1 NN |
22555 | |
22556 | : ${CONFIG_STATUS=./config.status} | |
22557 | ac_clean_files_save=$ac_clean_files | |
22558 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
22559 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
22560 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
22561 | cat >$CONFIG_STATUS <<_ACEOF | |
22562 | #! $SHELL | |
22563 | # Generated by $as_me. | |
22564 | # Run this file to recreate the current configuration. | |
22565 | # Compiler output produced by configure, useful for debugging | |
22566 | # configure, is in config.log if it exists. | |
22567 | ||
22568 | debug=false | |
22569 | ac_cs_recheck=false | |
22570 | ac_cs_silent=false | |
22571 | SHELL=\${CONFIG_SHELL-$SHELL} | |
22572 | _ACEOF | |
22573 | ||
22574 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22575 | ## --------------------- ## | |
22576 | ## M4sh Initialization. ## | |
22577 | ## --------------------- ## | |
22578 | ||
22579 | # Be Bourne compatible | |
22580 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
22581 | emulate sh | |
22582 | NULLCMD=: | |
22583 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
22584 | # is contrary to our usage. Disable this feature. | |
22585 | alias -g '${1+"$@"}'='"$@"' | |
22586 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
22587 | set -o posix | |
22588 | fi | |
22589 | DUALCASE=1; export DUALCASE # for MKS sh | |
22590 | ||
22591 | # Support unset when possible. | |
22592 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
22593 | as_unset=unset | |
22594 | else | |
22595 | as_unset=false | |
22596 | fi | |
22597 | ||
22598 | ||
22599 | # Work around bugs in pre-3.0 UWIN ksh. | |
22600 | $as_unset ENV MAIL MAILPATH | |
22601 | PS1='$ ' | |
22602 | PS2='> ' | |
22603 | PS4='+ ' | |
22604 | ||
22605 | # NLS nuisances. | |
22606 | for as_var in \ | |
22607 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
22608 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
22609 | LC_TELEPHONE LC_TIME | |
22610 | do | |
22611 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
22612 | eval $as_var=C; export $as_var | |
22613 | else | |
22614 | $as_unset $as_var | |
22615 | fi | |
22616 | done | |
22617 | ||
22618 | # Required to use basename. | |
22619 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
22620 | as_expr=expr | |
22621 | else | |
22622 | as_expr=false | |
22623 | fi | |
22624 | ||
22625 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
22626 | as_basename=basename | |
22627 | else | |
22628 | as_basename=false | |
22629 | fi | |
252b5132 | 22630 | |
6be7c12c | 22631 | |
5464f5a1 NN |
22632 | # Name of the executable. |
22633 | as_me=`$as_basename "$0" || | |
22634 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
22635 | X"$0" : 'X\(//\)$' \| \ | |
22636 | X"$0" : 'X\(/\)$' \| \ | |
22637 | . : '\(.\)' 2>/dev/null || | |
22638 | echo X/"$0" | | |
22639 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
22640 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
22641 | /^X\/\(\/\).*/{ s//\1/; q; } | |
22642 | s/.*/./; q'` | |
22643 | ||
22644 | ||
22645 | # PATH needs CR, and LINENO needs CR and PATH. | |
22646 | # Avoid depending upon Character Ranges. | |
22647 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
22648 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
22649 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
22650 | as_cr_digits='0123456789' | |
22651 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
22652 | ||
22653 | # The user is always right. | |
22654 | if test "${PATH_SEPARATOR+set}" != set; then | |
22655 | echo "#! /bin/sh" >conf$$.sh | |
22656 | echo "exit 0" >>conf$$.sh | |
22657 | chmod +x conf$$.sh | |
22658 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
22659 | PATH_SEPARATOR=';' | |
22660 | else | |
22661 | PATH_SEPARATOR=: | |
22662 | fi | |
22663 | rm -f conf$$.sh | |
22664 | fi | |
22665 | ||
22666 | ||
22667 | as_lineno_1=$LINENO | |
22668 | as_lineno_2=$LINENO | |
22669 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
22670 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
22671 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
22672 | # Find who we are. Look in the path if we contain no path at all | |
22673 | # relative or not. | |
22674 | case $0 in | |
22675 | *[\\/]* ) as_myself=$0 ;; | |
22676 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22677 | for as_dir in $PATH | |
22678 | do | |
22679 | IFS=$as_save_IFS | |
22680 | test -z "$as_dir" && as_dir=. | |
22681 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
22682 | done | |
22683 | ||
22684 | ;; | |
22685 | esac | |
22686 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
22687 | # in which case we are not to be found in the path. | |
22688 | if test "x$as_myself" = x; then | |
22689 | as_myself=$0 | |
22690 | fi | |
22691 | if test ! -f "$as_myself"; then | |
22692 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
22693 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
22694 | { (exit 1); exit 1; }; } | |
22695 | fi | |
22696 | case $CONFIG_SHELL in | |
22697 | '') | |
22698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22699 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
22700 | do | |
22701 | IFS=$as_save_IFS | |
22702 | test -z "$as_dir" && as_dir=. | |
22703 | for as_base in sh bash ksh sh5; do | |
22704 | case $as_dir in | |
22705 | /*) | |
22706 | if ("$as_dir/$as_base" -c ' | |
22707 | as_lineno_1=$LINENO | |
22708 | as_lineno_2=$LINENO | |
22709 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
22710 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
22711 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
22712 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
22713 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
22714 | CONFIG_SHELL=$as_dir/$as_base | |
22715 | export CONFIG_SHELL | |
22716 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
22717 | fi;; | |
22718 | esac | |
22719 | done | |
22720 | done | |
22721 | ;; | |
22722 | esac | |
22723 | ||
22724 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
22725 | # uniformly replaced by the line number. The first 'sed' inserts a | |
22726 | # line-number line before each line; the second 'sed' does the real | |
22727 | # work. The second script uses 'N' to pair each line-number line | |
22728 | # with the numbered line, and appends trailing '-' during | |
22729 | # substitution so that $LINENO is not a special case at line end. | |
22730 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
22731 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
22732 | sed '=' <$as_myself | | |
22733 | sed ' | |
22734 | N | |
22735 | s,$,-, | |
22736 | : loop | |
22737 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
22738 | t loop | |
22739 | s,-$,, | |
22740 | s,^['$as_cr_digits']*\n,, | |
22741 | ' >$as_me.lineno && | |
22742 | chmod +x $as_me.lineno || | |
22743 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
22744 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
22745 | { (exit 1); exit 1; }; } | |
22746 | ||
22747 | # Don't try to exec as it changes $[0], causing all sort of problems | |
22748 | # (the dirname of $[0] is not the place where we might find the | |
22749 | # original and so on. Autoconf is especially sensible to this). | |
22750 | . ./$as_me.lineno | |
22751 | # Exit status is that of the last command. | |
22752 | exit | |
252b5132 | 22753 | } |
6be7c12c | 22754 | |
5464f5a1 NN |
22755 | |
22756 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
22757 | *c*,-n*) ECHO_N= ECHO_C=' | |
22758 | ' ECHO_T=' ' ;; | |
22759 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
22760 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
22761 | esac | |
22762 | ||
22763 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
22764 | as_expr=expr | |
252b5132 | 22765 | else |
5464f5a1 | 22766 | as_expr=false |
252b5132 | 22767 | fi |
5464f5a1 NN |
22768 | |
22769 | rm -f conf$$ conf$$.exe conf$$.file | |
22770 | echo >conf$$.file | |
22771 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
22772 | # We could just check for DJGPP; but this test a) works b) is more generic | |
22773 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
22774 | if test -f conf$$.exe; then | |
22775 | # Don't use ln at all; we don't have any links | |
22776 | as_ln_s='cp -p' | |
22777 | else | |
22778 | as_ln_s='ln -s' | |
22779 | fi | |
22780 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
22781 | as_ln_s=ln | |
22782 | else | |
22783 | as_ln_s='cp -p' | |
252b5132 | 22784 | fi |
5464f5a1 | 22785 | rm -f conf$$ conf$$.exe conf$$.file |
6be7c12c | 22786 | |
5464f5a1 NN |
22787 | if mkdir -p . 2>/dev/null; then |
22788 | as_mkdir_p=: | |
22789 | else | |
22790 | test -d ./-p && rmdir ./-p | |
22791 | as_mkdir_p=false | |
252b5132 | 22792 | fi |
b3baf5d0 | 22793 | |
5464f5a1 | 22794 | as_executable_p="test -f" |
252b5132 | 22795 | |
5464f5a1 NN |
22796 | # Sed expression to map a string onto a valid CPP name. |
22797 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
252b5132 | 22798 | |
5464f5a1 NN |
22799 | # Sed expression to map a string onto a valid variable name. |
22800 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
6be7c12c | 22801 | |
252b5132 | 22802 | |
5464f5a1 NN |
22803 | # IFS |
22804 | # We need space, tab and new line, in precisely that order. | |
22805 | as_nl=' | |
22806 | ' | |
22807 | IFS=" $as_nl" | |
252b5132 | 22808 | |
5464f5a1 NN |
22809 | # CDPATH. |
22810 | $as_unset CDPATH | |
22811 | ||
22812 | exec 6>&1 | |
22813 | ||
22814 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
22815 | # report actual input values of CONFIG_FILES etc. instead of their | |
22816 | # values after options handling. Logging --version etc. is OK. | |
22817 | exec 5>>config.log | |
22818 | { | |
22819 | echo | |
22820 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
22821 | ## Running $as_me. ## | |
22822 | _ASBOX | |
22823 | } >&5 | |
22824 | cat >&5 <<_CSEOF | |
22825 | ||
22826 | This file was extended by $as_me, which was | |
22827 | generated by GNU Autoconf 2.59. Invocation command line was | |
22828 | ||
22829 | CONFIG_FILES = $CONFIG_FILES | |
22830 | CONFIG_HEADERS = $CONFIG_HEADERS | |
22831 | CONFIG_LINKS = $CONFIG_LINKS | |
22832 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
22833 | $ $0 $@ | |
22834 | ||
22835 | _CSEOF | |
22836 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
22837 | echo >&5 | |
22838 | _ACEOF | |
22839 | ||
22840 | # Files that config.status was made for. | |
22841 | if test -n "$ac_config_files"; then | |
22842 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
6be7c12c | 22843 | fi |
5464f5a1 NN |
22844 | |
22845 | if test -n "$ac_config_headers"; then | |
22846 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
6be7c12c | 22847 | fi |
252b5132 | 22848 | |
5464f5a1 NN |
22849 | if test -n "$ac_config_links"; then |
22850 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
252b5132 | 22851 | fi |
252b5132 | 22852 | |
5464f5a1 NN |
22853 | if test -n "$ac_config_commands"; then |
22854 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
22855 | fi | |
252b5132 | 22856 | |
5464f5a1 NN |
22857 | cat >>$CONFIG_STATUS <<\_ACEOF |
22858 | ||
22859 | ac_cs_usage="\ | |
22860 | \`$as_me' instantiates files from templates according to the | |
22861 | current configuration. | |
22862 | ||
22863 | Usage: $0 [OPTIONS] [FILE]... | |
22864 | ||
22865 | -h, --help print this help, then exit | |
22866 | -V, --version print version number, then exit | |
22867 | -q, --quiet do not print progress messages | |
22868 | -d, --debug don't remove temporary files | |
22869 | --recheck update $as_me by reconfiguring in the same conditions | |
22870 | --file=FILE[:TEMPLATE] | |
22871 | instantiate the configuration file FILE | |
22872 | --header=FILE[:TEMPLATE] | |
22873 | instantiate the configuration header FILE | |
22874 | ||
22875 | Configuration files: | |
22876 | $config_files | |
22877 | ||
22878 | Configuration headers: | |
22879 | $config_headers | |
22880 | ||
22881 | Configuration commands: | |
22882 | $config_commands | |
22883 | ||
22884 | Report bugs to <bug-autoconf@gnu.org>." | |
22885 | _ACEOF | |
22886 | ||
22887 | cat >>$CONFIG_STATUS <<_ACEOF | |
22888 | ac_cs_version="\\ | |
22889 | config.status | |
22890 | configured by $0, generated by GNU Autoconf 2.59, | |
22891 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
22892 | ||
22893 | Copyright (C) 2003 Free Software Foundation, Inc. | |
22894 | This config.status script is free software; the Free Software Foundation | |
22895 | gives unlimited permission to copy, distribute and modify it." | |
22896 | srcdir=$srcdir | |
22897 | INSTALL="$INSTALL" | |
22898 | _ACEOF | |
22899 | ||
22900 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22901 | # If no file are specified by the user, then we need to provide default | |
22902 | # value. By we need to know if files were specified by the user. | |
22903 | ac_need_defaults=: | |
22904 | while test $# != 0 | |
22905 | do | |
22906 | case $1 in | |
22907 | --*=*) | |
22908 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
22909 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
22910 | ac_shift=: | |
6be7c12c | 22911 | ;; |
5464f5a1 NN |
22912 | -*) |
22913 | ac_option=$1 | |
22914 | ac_optarg=$2 | |
22915 | ac_shift=shift | |
6be7c12c | 22916 | ;; |
5464f5a1 NN |
22917 | *) # This is not an option, so the user has probably given explicit |
22918 | # arguments. | |
22919 | ac_option=$1 | |
22920 | ac_need_defaults=false;; | |
22921 | esac | |
252b5132 | 22922 | |
5464f5a1 NN |
22923 | case $ac_option in |
22924 | # Handling of the options. | |
22925 | _ACEOF | |
22926 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22927 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
22928 | ac_cs_recheck=: ;; | |
22929 | --version | --vers* | -V ) | |
22930 | echo "$ac_cs_version"; exit 0 ;; | |
22931 | --he | --h) | |
22932 | # Conflict between --help and --header | |
22933 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
22934 | Try \`$0 --help' for more information." >&5 | |
22935 | echo "$as_me: error: ambiguous option: $1 | |
22936 | Try \`$0 --help' for more information." >&2;} | |
22937 | { (exit 1); exit 1; }; };; | |
22938 | --help | --hel | -h ) | |
22939 | echo "$ac_cs_usage"; exit 0 ;; | |
22940 | --debug | --d* | -d ) | |
22941 | debug=: ;; | |
22942 | --file | --fil | --fi | --f ) | |
22943 | $ac_shift | |
22944 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
22945 | ac_need_defaults=false;; | |
22946 | --header | --heade | --head | --hea ) | |
22947 | $ac_shift | |
22948 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
22949 | ac_need_defaults=false;; | |
22950 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
22951 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
22952 | ac_cs_silent=: ;; | |
6be7c12c | 22953 | |
5464f5a1 NN |
22954 | # This is an error. |
22955 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
22956 | Try \`$0 --help' for more information." >&5 | |
22957 | echo "$as_me: error: unrecognized option: $1 | |
22958 | Try \`$0 --help' for more information." >&2;} | |
22959 | { (exit 1); exit 1; }; } ;; | |
252b5132 | 22960 | |
5464f5a1 | 22961 | *) ac_config_targets="$ac_config_targets $1" ;; |
252b5132 | 22962 | |
5464f5a1 NN |
22963 | esac |
22964 | shift | |
22965 | done | |
6be7c12c | 22966 | |
5464f5a1 | 22967 | ac_configure_extra_args= |
252b5132 | 22968 | |
5464f5a1 NN |
22969 | if $ac_cs_silent; then |
22970 | exec 6>/dev/null | |
22971 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
22972 | fi | |
6be7c12c | 22973 | |
5464f5a1 NN |
22974 | _ACEOF |
22975 | cat >>$CONFIG_STATUS <<_ACEOF | |
22976 | if \$ac_cs_recheck; then | |
22977 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
22978 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
22979 | fi | |
22980 | ||
22981 | _ACEOF | |
22982 | ||
22983 | cat >>$CONFIG_STATUS <<_ACEOF | |
6be7c12c | 22984 | # |
5464f5a1 | 22985 | # INIT-COMMANDS section. |
6be7c12c | 22986 | # |
b3baf5d0 | 22987 | |
f5385ebf | 22988 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
22989 | |
22990 | ||
22991 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
22992 | # if CDPATH is set. | |
22993 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
22994 | ||
22995 | sed_quote_subst='$sed_quote_subst' | |
22996 | double_quote_subst='$double_quote_subst' | |
22997 | delay_variable_subst='$delay_variable_subst' | |
22998 | enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' | |
22999 | macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' | |
23000 | macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' | |
23001 | enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' | |
23002 | pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' | |
23003 | enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' | |
23004 | host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
23005 | host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' | |
23006 | host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' | |
23007 | build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' | |
23008 | build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' | |
23009 | build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' | |
23010 | SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' | |
23011 | Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' | |
23012 | GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' | |
23013 | EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
23014 | FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' | |
23015 | LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' | |
23016 | NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' | |
23017 | LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' | |
23018 | max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' | |
23019 | ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' | |
23020 | exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' | |
23021 | lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' | |
23022 | lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' | |
23023 | lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' | |
23024 | reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
23025 | reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
718a6fd8 | 23026 | OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`' |
d7040cdb SE |
23027 | deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' |
23028 | file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' | |
23029 | AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' | |
23030 | AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
23031 | STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' | |
23032 | RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' | |
23033 | old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
23034 | old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
23035 | old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
23036 | CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' | |
23037 | CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' | |
23038 | compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' | |
23039 | GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' | |
23040 | lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' | |
23041 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' | |
23042 | 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"`' | |
718a6fd8 | 23043 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' |
d7040cdb SE |
23044 | objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' |
23045 | SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' | |
23046 | ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' | |
23047 | MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' | |
23048 | lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
23049 | lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' | |
23050 | lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' | |
23051 | lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' | |
23052 | lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' | |
23053 | need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' | |
718a6fd8 SE |
23054 | DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`' |
23055 | NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`' | |
23056 | LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`' | |
23057 | OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`' | |
23058 | OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`' | |
d7040cdb SE |
23059 | libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' |
23060 | shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
23061 | extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
23062 | archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' | |
23063 | enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' | |
23064 | export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
23065 | whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
23066 | compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' | |
23067 | old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
23068 | old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
23069 | archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
23070 | archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
23071 | module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
23072 | module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
23073 | with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
23074 | allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
23075 | no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' | |
23076 | hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
23077 | hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' | |
23078 | hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' | |
23079 | hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' | |
23080 | hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' | |
23081 | hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' | |
23082 | hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
23083 | hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' | |
23084 | inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' | |
23085 | link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' | |
23086 | fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' | |
23087 | always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' | |
23088 | export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
23089 | exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
23090 | include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' | |
23091 | prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
23092 | file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
23093 | variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' | |
23094 | need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' | |
23095 | need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' | |
23096 | version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' | |
23097 | runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
23098 | shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' | |
23099 | shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' | |
23100 | libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
23101 | library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
23102 | soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
23103 | postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
23104 | postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
23105 | finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' | |
23106 | finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' | |
23107 | hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' | |
23108 | sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
23109 | sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' | |
23110 | hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' | |
23111 | enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' | |
23112 | enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' | |
23113 | enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' | |
23114 | old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
23115 | striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' | |
23116 | ||
23117 | LTCC='$LTCC' | |
23118 | LTCFLAGS='$LTCFLAGS' | |
23119 | compiler='$compiler_DEFAULT' | |
23120 | ||
23121 | # Quote evaled strings. | |
23122 | for var in SED \ | |
23123 | GREP \ | |
23124 | EGREP \ | |
23125 | FGREP \ | |
23126 | LD \ | |
23127 | NM \ | |
23128 | LN_S \ | |
23129 | lt_SP2NL \ | |
23130 | lt_NL2SP \ | |
23131 | reload_flag \ | |
718a6fd8 | 23132 | OBJDUMP \ |
d7040cdb SE |
23133 | deplibs_check_method \ |
23134 | file_magic_cmd \ | |
23135 | AR \ | |
23136 | AR_FLAGS \ | |
23137 | STRIP \ | |
23138 | RANLIB \ | |
23139 | CC \ | |
23140 | CFLAGS \ | |
23141 | compiler \ | |
23142 | lt_cv_sys_global_symbol_pipe \ | |
23143 | lt_cv_sys_global_symbol_to_cdecl \ | |
23144 | lt_cv_sys_global_symbol_to_c_name_address \ | |
718a6fd8 | 23145 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
d7040cdb SE |
23146 | SHELL \ |
23147 | ECHO \ | |
23148 | lt_prog_compiler_no_builtin_flag \ | |
23149 | lt_prog_compiler_wl \ | |
23150 | lt_prog_compiler_pic \ | |
23151 | lt_prog_compiler_static \ | |
23152 | lt_cv_prog_compiler_c_o \ | |
23153 | need_locks \ | |
718a6fd8 SE |
23154 | DSYMUTIL \ |
23155 | NMEDIT \ | |
23156 | LIPO \ | |
23157 | OTOOL \ | |
23158 | OTOOL64 \ | |
d7040cdb SE |
23159 | shrext_cmds \ |
23160 | export_dynamic_flag_spec \ | |
23161 | whole_archive_flag_spec \ | |
23162 | compiler_needs_object \ | |
23163 | with_gnu_ld \ | |
23164 | allow_undefined_flag \ | |
23165 | no_undefined_flag \ | |
23166 | hardcode_libdir_flag_spec \ | |
23167 | hardcode_libdir_flag_spec_ld \ | |
23168 | hardcode_libdir_separator \ | |
23169 | fix_srcfile_path \ | |
23170 | exclude_expsyms \ | |
23171 | include_expsyms \ | |
23172 | file_list_spec \ | |
23173 | variables_saved_for_relink \ | |
23174 | libname_spec \ | |
23175 | library_names_spec \ | |
23176 | soname_spec \ | |
23177 | finish_eval \ | |
23178 | old_striplib \ | |
23179 | striplib; do | |
23180 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
23181 | *[\\\\\\\`\\"\\\$]*) | |
23182 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
23183 | ;; | |
23184 | *) | |
23185 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
23186 | ;; | |
23187 | esac | |
23188 | done | |
23189 | ||
23190 | # Double-quote double-evaled strings. | |
23191 | for var in reload_cmds \ | |
23192 | old_postinstall_cmds \ | |
23193 | old_postuninstall_cmds \ | |
23194 | old_archive_cmds \ | |
23195 | extract_expsyms_cmds \ | |
23196 | old_archive_from_new_cmds \ | |
23197 | old_archive_from_expsyms_cmds \ | |
23198 | archive_cmds \ | |
23199 | archive_expsym_cmds \ | |
23200 | module_cmds \ | |
23201 | module_expsym_cmds \ | |
23202 | export_symbols_cmds \ | |
23203 | prelink_cmds \ | |
23204 | postinstall_cmds \ | |
23205 | postuninstall_cmds \ | |
23206 | finish_cmds \ | |
23207 | sys_lib_search_path_spec \ | |
23208 | sys_lib_dlsearch_path_spec; do | |
23209 | case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in | |
23210 | *[\\\\\\\`\\"\\\$]*) | |
23211 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
23212 | ;; | |
23213 | *) | |
23214 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
23215 | ;; | |
23216 | esac | |
23217 | done | |
23218 | ||
23219 | # Fix-up fallback echo if it was mangled by the above quoting rules. | |
23220 | case \$lt_ECHO in | |
23221 | *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` | |
23222 | ;; | |
23223 | esac | |
23224 | ||
23225 | ac_aux_dir='$ac_aux_dir' | |
23226 | xsi_shell='$xsi_shell' | |
23227 | lt_shell_append='$lt_shell_append' | |
23228 | ||
23229 | # See if we are running on zsh, and set the options which allow our | |
23230 | # commands through without removal of \ escapes INIT. | |
23231 | if test -n "\${ZSH_VERSION+set}" ; then | |
23232 | setopt NO_GLOB_SUBST | |
23233 | fi | |
23234 | ||
23235 | ||
23236 | PACKAGE='$PACKAGE' | |
23237 | VERSION='$VERSION' | |
23238 | TIMESTAMP='$TIMESTAMP' | |
23239 | RM='$RM' | |
23240 | ofile='$ofile' | |
23241 | ||
23242 | ||
23243 | ||
20e95c23 DJ |
23244 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
23245 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
23246 | # from automake. | |
23247 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
23248 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
23249 | LINGUAS="${LINGUAS-%UNSET%}" | |
23250 | ||
5464f5a1 | 23251 | |
d5efd9fc AM |
23252 | GCC="$GCC" |
23253 | CC="$CC" | |
23254 | acx_cv_header_stdint="$acx_cv_header_stdint" | |
23255 | acx_cv_type_int8_t="$acx_cv_type_int8_t" | |
23256 | acx_cv_type_int16_t="$acx_cv_type_int16_t" | |
23257 | acx_cv_type_int32_t="$acx_cv_type_int32_t" | |
23258 | acx_cv_type_int64_t="$acx_cv_type_int64_t" | |
23259 | acx_cv_type_intptr_t="$acx_cv_type_intptr_t" | |
23260 | ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" | |
23261 | ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" | |
23262 | ac_cv_type_uint64_t="$ac_cv_type_uint64_t" | |
23263 | ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" | |
23264 | ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" | |
23265 | ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" | |
23266 | ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" | |
23267 | ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" | |
23268 | ||
23269 | ||
5464f5a1 NN |
23270 | |
23271 | _ACEOF | |
23272 | ||
23273 | ||
23274 | ||
23275 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23276 | for ac_config_target in $ac_config_targets | |
252b5132 | 23277 | do |
5464f5a1 NN |
23278 | case "$ac_config_target" in |
23279 | # Handling of arguments. | |
23280 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
23281 | "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
23282 | "bfd-in3.h" ) CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;; | |
23283 | "po/Makefile.in" ) CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
f5385ebf | 23284 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
d7040cdb | 23285 | "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; |
20e95c23 | 23286 | "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
d5efd9fc | 23287 | "bfd_stdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS bfd_stdint.h" ;; |
5464f5a1 NN |
23288 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; |
23289 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
23290 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
23291 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
23292 | { (exit 1); exit 1; }; };; | |
252b5132 RH |
23293 | esac |
23294 | done | |
23295 | ||
5464f5a1 NN |
23296 | # If the user did not use the arguments to specify the items to instantiate, |
23297 | # then the envvar interface is used. Set only those that are not. | |
23298 | # We use the long form for the default assignment because of an extremely | |
23299 | # bizarre bug on SunOS 4.1.3. | |
23300 | if $ac_need_defaults; then | |
23301 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
23302 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
23303 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
23304 | fi | |
23305 | ||
23306 | # Have a temporary directory for convenience. Make it in the build tree | |
23307 | # simply because there is no reason to put it here, and in addition, | |
23308 | # creating and moving files from /tmp can sometimes cause problems. | |
23309 | # Create a temporary directory, and hook for its removal unless debugging. | |
23310 | $debug || | |
23311 | { | |
23312 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
23313 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
23314 | } | |
b3baf5d0 | 23315 | |
5464f5a1 | 23316 | # Create a (secure) tmp directory for tmp files. |
b3baf5d0 | 23317 | |
5464f5a1 NN |
23318 | { |
23319 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
23320 | test -n "$tmp" && test -d "$tmp" | |
23321 | } || | |
23322 | { | |
23323 | tmp=./confstat$$-$RANDOM | |
23324 | (umask 077 && mkdir $tmp) | |
23325 | } || | |
23326 | { | |
23327 | echo "$me: cannot create a temporary directory in ." >&2 | |
23328 | { (exit 1); exit 1; } | |
23329 | } | |
23330 | ||
23331 | _ACEOF | |
23332 | ||
23333 | cat >>$CONFIG_STATUS <<_ACEOF | |
23334 | ||
23335 | # | |
23336 | # CONFIG_FILES section. | |
23337 | # | |
b3baf5d0 | 23338 | |
5464f5a1 NN |
23339 | # No need to generate the scripts if there are no CONFIG_FILES. |
23340 | # This happens for instance when ./config.status config.h | |
23341 | if test -n "\$CONFIG_FILES"; then | |
23342 | # Protect against being on the right side of a sed subst in config.status. | |
23343 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
23344 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
23345 | s,@SHELL@,$SHELL,;t t | |
23346 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
23347 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
23348 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
23349 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
23350 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
23351 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
23352 | s,@exec_prefix@,$exec_prefix,;t t | |
23353 | s,@prefix@,$prefix,;t t | |
23354 | s,@program_transform_name@,$program_transform_name,;t t | |
23355 | s,@bindir@,$bindir,;t t | |
23356 | s,@sbindir@,$sbindir,;t t | |
23357 | s,@libexecdir@,$libexecdir,;t t | |
23358 | s,@datadir@,$datadir,;t t | |
23359 | s,@sysconfdir@,$sysconfdir,;t t | |
23360 | s,@sharedstatedir@,$sharedstatedir,;t t | |
23361 | s,@localstatedir@,$localstatedir,;t t | |
23362 | s,@libdir@,$libdir,;t t | |
23363 | s,@includedir@,$includedir,;t t | |
23364 | s,@oldincludedir@,$oldincludedir,;t t | |
23365 | s,@infodir@,$infodir,;t t | |
23366 | s,@mandir@,$mandir,;t t | |
23367 | s,@build_alias@,$build_alias,;t t | |
23368 | s,@host_alias@,$host_alias,;t t | |
23369 | s,@target_alias@,$target_alias,;t t | |
23370 | s,@DEFS@,$DEFS,;t t | |
23371 | s,@ECHO_C@,$ECHO_C,;t t | |
23372 | s,@ECHO_N@,$ECHO_N,;t t | |
23373 | s,@ECHO_T@,$ECHO_T,;t t | |
23374 | s,@LIBS@,$LIBS,;t t | |
23375 | s,@build@,$build,;t t | |
23376 | s,@build_cpu@,$build_cpu,;t t | |
23377 | s,@build_vendor@,$build_vendor,;t t | |
23378 | s,@build_os@,$build_os,;t t | |
23379 | s,@host@,$host,;t t | |
23380 | s,@host_cpu@,$host_cpu,;t t | |
23381 | s,@host_vendor@,$host_vendor,;t t | |
23382 | s,@host_os@,$host_os,;t t | |
23383 | s,@target@,$target,;t t | |
23384 | s,@target_cpu@,$target_cpu,;t t | |
23385 | s,@target_vendor@,$target_vendor,;t t | |
23386 | s,@target_os@,$target_os,;t t | |
23387 | s,@CC@,$CC,;t t | |
23388 | s,@CFLAGS@,$CFLAGS,;t t | |
23389 | s,@LDFLAGS@,$LDFLAGS,;t t | |
23390 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
23391 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
23392 | s,@EXEEXT@,$EXEEXT,;t t | |
23393 | s,@OBJEXT@,$OBJEXT,;t t | |
23394 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
23395 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
23396 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
f5385ebf | 23397 | s,@CYGPATH_W@,$CYGPATH_W,;t t |
5464f5a1 NN |
23398 | s,@PACKAGE@,$PACKAGE,;t t |
23399 | s,@VERSION@,$VERSION,;t t | |
23400 | s,@ACLOCAL@,$ACLOCAL,;t t | |
23401 | s,@AUTOCONF@,$AUTOCONF,;t t | |
23402 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
23403 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
23404 | s,@MAKEINFO@,$MAKEINFO,;t t | |
f5385ebf AM |
23405 | s,@install_sh@,$install_sh,;t t |
23406 | s,@STRIP@,$STRIP,;t t | |
23407 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
23408 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
23409 | s,@mkdir_p@,$mkdir_p,;t t | |
23410 | s,@AWK@,$AWK,;t t | |
5464f5a1 | 23411 | s,@SET_MAKE@,$SET_MAKE,;t t |
f5385ebf AM |
23412 | s,@am__leading_dot@,$am__leading_dot,;t t |
23413 | s,@AMTAR@,$AMTAR,;t t | |
23414 | s,@am__tar@,$am__tar,;t t | |
23415 | s,@am__untar@,$am__untar,;t t | |
23416 | s,@DEPDIR@,$DEPDIR,;t t | |
23417 | s,@am__include@,$am__include,;t t | |
23418 | s,@am__quote@,$am__quote,;t t | |
23419 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
23420 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
23421 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
23422 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
23423 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
23424 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
5464f5a1 NN |
23425 | s,@AR@,$AR,;t t |
23426 | s,@ac_ct_AR@,$ac_ct_AR,;t t | |
23427 | s,@RANLIB@,$RANLIB,;t t | |
23428 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
7357c5b6 AM |
23429 | s,@CPP@,$CPP,;t t |
23430 | s,@EGREP@,$EGREP,;t t | |
5464f5a1 | 23431 | s,@LIBTOOL@,$LIBTOOL,;t t |
d7040cdb | 23432 | s,@SED@,$SED,;t t |
d7040cdb SE |
23433 | s,@FGREP@,$FGREP,;t t |
23434 | s,@GREP@,$GREP,;t t | |
23435 | s,@LD@,$LD,;t t | |
23436 | s,@DUMPBIN@,$DUMPBIN,;t t | |
23437 | s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t | |
23438 | s,@NM@,$NM,;t t | |
23439 | s,@LN_S@,$LN_S,;t t | |
718a6fd8 SE |
23440 | s,@OBJDUMP@,$OBJDUMP,;t t |
23441 | s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t | |
d7040cdb | 23442 | s,@lt_ECHO@,$lt_ECHO,;t t |
718a6fd8 SE |
23443 | s,@DSYMUTIL@,$DSYMUTIL,;t t |
23444 | s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t | |
23445 | s,@NMEDIT@,$NMEDIT,;t t | |
23446 | s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t | |
23447 | s,@LIPO@,$LIPO,;t t | |
23448 | s,@ac_ct_LIPO@,$ac_ct_LIPO,;t t | |
23449 | s,@OTOOL@,$OTOOL,;t t | |
23450 | s,@ac_ct_OTOOL@,$ac_ct_OTOOL,;t t | |
23451 | s,@OTOOL64@,$OTOOL64,;t t | |
23452 | s,@ac_ct_OTOOL64@,$ac_ct_OTOOL64,;t t | |
0d4a1476 | 23453 | s,@DEBUGDIR@,$DEBUGDIR,;t t |
92f01d61 | 23454 | s,@PKGVERSION@,$PKGVERSION,;t t |
c428fa83 L |
23455 | s,@REPORT_BUGS_TO@,$REPORT_BUGS_TO,;t t |
23456 | s,@REPORT_BUGS_TEXI@,$REPORT_BUGS_TEXI,;t t | |
5464f5a1 | 23457 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t |
9e9b66a9 | 23458 | s,@NO_WERROR@,$NO_WERROR,;t t |
5464f5a1 NN |
23459 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t |
23460 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
23461 | s,@MAINT@,$MAINT,;t t | |
d5fbea21 DJ |
23462 | s,@GENINSRC_NEVER_TRUE@,$GENINSRC_NEVER_TRUE,;t t |
23463 | s,@GENINSRC_NEVER_FALSE@,$GENINSRC_NEVER_FALSE,;t t | |
5464f5a1 NN |
23464 | s,@INSTALL_LIBBFD_TRUE@,$INSTALL_LIBBFD_TRUE,;t t |
23465 | s,@INSTALL_LIBBFD_FALSE@,$INSTALL_LIBBFD_FALSE,;t t | |
24443139 AS |
23466 | s,@host_noncanonical@,$host_noncanonical,;t t |
23467 | s,@target_noncanonical@,$target_noncanonical,;t t | |
5464f5a1 NN |
23468 | s,@bfdlibdir@,$bfdlibdir,;t t |
23469 | s,@bfdincludedir@,$bfdincludedir,;t t | |
5464f5a1 | 23470 | s,@USE_NLS@,$USE_NLS,;t t |
20e95c23 DJ |
23471 | s,@LIBINTL@,$LIBINTL,;t t |
23472 | s,@LIBINTL_DEP@,$LIBINTL_DEP,;t t | |
23473 | s,@INCINTL@,$INCINTL,;t t | |
5464f5a1 | 23474 | s,@XGETTEXT@,$XGETTEXT,;t t |
20e95c23 DJ |
23475 | s,@GMSGFMT@,$GMSGFMT,;t t |
23476 | s,@POSUB@,$POSUB,;t t | |
5464f5a1 | 23477 | s,@CATALOGS@,$CATALOGS,;t t |
5464f5a1 | 23478 | s,@DATADIRNAME@,$DATADIRNAME,;t t |
5464f5a1 | 23479 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t |
20e95c23 DJ |
23480 | s,@GENCAT@,$GENCAT,;t t |
23481 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
5464f5a1 | 23482 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t |
20e95c23 DJ |
23483 | s,@MSGFMT@,$MSGFMT,;t t |
23484 | s,@MSGMERGE@,$MSGMERGE,;t t | |
5464f5a1 NN |
23485 | s,@HDEFINES@,$HDEFINES,;t t |
23486 | s,@BFD_HOST_64BIT_LONG@,$BFD_HOST_64BIT_LONG,;t t | |
d2df793a | 23487 | s,@BFD_HOST_64BIT_LONG_LONG@,$BFD_HOST_64BIT_LONG_LONG,;t t |
5464f5a1 NN |
23488 | s,@BFD_HOST_64_BIT_DEFINED@,$BFD_HOST_64_BIT_DEFINED,;t t |
23489 | s,@BFD_HOST_64_BIT@,$BFD_HOST_64_BIT,;t t | |
23490 | s,@BFD_HOST_U_64_BIT@,$BFD_HOST_U_64_BIT,;t t | |
d2df793a | 23491 | s,@BFD_HOSTPTR_T@,$BFD_HOSTPTR_T,;t t |
5464f5a1 NN |
23492 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t |
23493 | s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t | |
23494 | s,@COREFILE@,$COREFILE,;t t | |
23495 | s,@COREFLAG@,$COREFLAG,;t t | |
51dec227 | 23496 | s,@LIBM@,$LIBM,;t t |
29670fb9 AM |
23497 | s,@SHARED_LDFLAGS@,$SHARED_LDFLAGS,;t t |
23498 | s,@SHARED_LIBADD@,$SHARED_LIBADD,;t t | |
5464f5a1 NN |
23499 | s,@TDEFINES@,$TDEFINES,;t t |
23500 | s,@wordsize@,$wordsize,;t t | |
21e40a48 | 23501 | s,@bfd64_libs@,$bfd64_libs,;t t |
5464f5a1 NN |
23502 | s,@all_backends@,$all_backends,;t t |
23503 | s,@bfd_backends@,$bfd_backends,;t t | |
23504 | s,@bfd_machines@,$bfd_machines,;t t | |
23505 | s,@bfd_default_target_size@,$bfd_default_target_size,;t t | |
23506 | s,@bfd_file_ptr@,$bfd_file_ptr,;t t | |
23507 | s,@bfd_ufile_ptr@,$bfd_ufile_ptr,;t t | |
23508 | s,@tdefaults@,$tdefaults,;t t | |
108a6f8e CD |
23509 | s,@datarootdir@,$datarootdir,;t t |
23510 | s,@docdir@,$docdir,;t t | |
23511 | s,@htmldir@,$htmldir,;t t | |
31dd3154 | 23512 | s,@pdfdir@,$pdfdir,;t t |
5464f5a1 NN |
23513 | s,@LIBOBJS@,$LIBOBJS,;t t |
23514 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
252b5132 | 23515 | CEOF |
252b5132 | 23516 | |
5464f5a1 NN |
23517 | _ACEOF |
23518 | ||
23519 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23520 | # Split the substitutions into bite-sized pieces for seds with | |
23521 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
23522 | ac_max_sed_lines=48 | |
23523 | ac_sed_frag=1 # Number of current file. | |
23524 | ac_beg=1 # First line for current file. | |
23525 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
23526 | ac_more_lines=: | |
23527 | ac_sed_cmds= | |
23528 | while $ac_more_lines; do | |
23529 | if test $ac_beg -gt 1; then | |
23530 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
252b5132 | 23531 | else |
5464f5a1 NN |
23532 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag |
23533 | fi | |
23534 | if test ! -s $tmp/subs.frag; then | |
23535 | ac_more_lines=false | |
23536 | else | |
23537 | # The purpose of the label and of the branching condition is to | |
23538 | # speed up the sed processing (if there are no `@' at all, there | |
23539 | # is no need to browse any of the substitutions). | |
23540 | # These are the two extra sed commands mentioned above. | |
23541 | (echo ':t | |
23542 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
23543 | if test -z "$ac_sed_cmds"; then | |
23544 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
23545 | else | |
23546 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
23547 | fi | |
23548 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
23549 | ac_beg=$ac_end | |
23550 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
252b5132 | 23551 | fi |
5464f5a1 NN |
23552 | done |
23553 | if test -z "$ac_sed_cmds"; then | |
23554 | ac_sed_cmds=cat | |
252b5132 | 23555 | fi |
5464f5a1 | 23556 | fi # test -n "$CONFIG_FILES" |
6be7c12c | 23557 | |
5464f5a1 NN |
23558 | _ACEOF |
23559 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23560 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
252b5132 | 23561 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
5464f5a1 NN |
23562 | case $ac_file in |
23563 | - | *:- | *:-:* ) # input from stdin | |
23564 | cat >$tmp/stdin | |
23565 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
23566 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
23567 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
23568 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
23569 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
23570 | esac |
23571 | ||
5464f5a1 NN |
23572 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
23573 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
23574 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23575 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
23576 | X"$ac_file" : 'X\(//\)$' \| \ | |
23577 | X"$ac_file" : 'X\(/\)' \| \ | |
23578 | . : '\(.\)' 2>/dev/null || | |
23579 | echo X"$ac_file" | | |
23580 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23581 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23582 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23583 | /^X\(\/\).*/{ s//\1/; q; } | |
23584 | s/.*/./; q'` | |
23585 | { if $as_mkdir_p; then | |
23586 | mkdir -p "$ac_dir" | |
252b5132 | 23587 | else |
5464f5a1 NN |
23588 | as_dir="$ac_dir" |
23589 | as_dirs= | |
23590 | while test ! -d "$as_dir"; do | |
23591 | as_dirs="$as_dir $as_dirs" | |
23592 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
23593 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23594 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
23595 | X"$as_dir" : 'X\(//\)$' \| \ | |
23596 | X"$as_dir" : 'X\(/\)' \| \ | |
23597 | . : '\(.\)' 2>/dev/null || | |
23598 | echo X"$as_dir" | | |
23599 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23600 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23601 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23602 | /^X\(\/\).*/{ s//\1/; q; } | |
23603 | s/.*/./; q'` | |
23604 | done | |
23605 | test ! -n "$as_dirs" || mkdir $as_dirs | |
23606 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
23607 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
23608 | { (exit 1); exit 1; }; }; } | |
23609 | ||
23610 | ac_builddir=. | |
23611 | ||
23612 | if test "$ac_dir" != .; then | |
23613 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
23614 | # A "../" for each directory in $ac_dir_suffix. | |
23615 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
23616 | else | |
23617 | ac_dir_suffix= ac_top_builddir= | |
23618 | fi | |
252b5132 | 23619 | |
5464f5a1 NN |
23620 | case $srcdir in |
23621 | .) # No --srcdir option. We are building in place. | |
23622 | ac_srcdir=. | |
23623 | if test -z "$ac_top_builddir"; then | |
23624 | ac_top_srcdir=. | |
23625 | else | |
23626 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
23627 | fi ;; | |
23628 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
23629 | ac_srcdir=$srcdir$ac_dir_suffix; | |
23630 | ac_top_srcdir=$srcdir ;; | |
252b5132 | 23631 | *) # Relative path. |
5464f5a1 NN |
23632 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
23633 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
23634 | esac | |
252b5132 | 23635 | |
5464f5a1 NN |
23636 | # Do not use `cd foo && pwd` to compute absolute paths, because |
23637 | # the directories may not exist. | |
23638 | case `pwd` in | |
23639 | .) ac_abs_builddir="$ac_dir";; | |
23640 | *) | |
23641 | case "$ac_dir" in | |
23642 | .) ac_abs_builddir=`pwd`;; | |
23643 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
23644 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
23645 | esac;; | |
23646 | esac | |
23647 | case $ac_abs_builddir in | |
23648 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23649 | *) | |
23650 | case ${ac_top_builddir}. in | |
23651 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
23652 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
23653 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
23654 | esac;; | |
23655 | esac | |
23656 | case $ac_abs_builddir in | |
23657 | .) ac_abs_srcdir=$ac_srcdir;; | |
23658 | *) | |
23659 | case $ac_srcdir in | |
23660 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
23661 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
23662 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
23663 | esac;; | |
23664 | esac | |
23665 | case $ac_abs_builddir in | |
23666 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23667 | *) | |
23668 | case $ac_top_srcdir in | |
23669 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
23670 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
23671 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
23672 | esac;; | |
23673 | esac | |
252b5132 | 23674 | |
5464f5a1 NN |
23675 | |
23676 | case $INSTALL in | |
23677 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
23678 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
6be7c12c | 23679 | esac |
252b5132 | 23680 | |
7357c5b6 AM |
23681 | if test x"$ac_file" != x-; then |
23682 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
23683 | echo "$as_me: creating $ac_file" >&6;} | |
23684 | rm -f "$ac_file" | |
23685 | fi | |
5464f5a1 NN |
23686 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
23687 | # use $as_me), people would be surprised to read: | |
23688 | # /* config.h. Generated by config.status. */ | |
23689 | if test x"$ac_file" = x-; then | |
23690 | configure_input= | |
23691 | else | |
23692 | configure_input="$ac_file. " | |
23693 | fi | |
23694 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
23695 | sed 's,.*/,,'` by configure." | |
23696 | ||
23697 | # First look for the input files in the build tree, otherwise in the | |
23698 | # src tree. | |
23699 | ac_file_inputs=`IFS=: | |
23700 | for f in $ac_file_in; do | |
23701 | case $f in | |
23702 | -) echo $tmp/stdin ;; | |
23703 | [\\/$]*) | |
23704 | # Absolute (can't be DOS-style, as IFS=:) | |
23705 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
23706 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
23707 | { (exit 1); exit 1; }; } | |
23708 | echo "$f";; | |
23709 | *) # Relative | |
23710 | if test -f "$f"; then | |
23711 | # Build tree | |
23712 | echo "$f" | |
23713 | elif test -f "$srcdir/$f"; then | |
23714 | # Source tree | |
23715 | echo "$srcdir/$f" | |
23716 | else | |
23717 | # /dev/null tree | |
23718 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
23719 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
23720 | { (exit 1); exit 1; }; } | |
23721 | fi;; | |
23722 | esac | |
23723 | done` || { (exit 1); exit 1; } | |
5464f5a1 NN |
23724 | _ACEOF |
23725 | cat >>$CONFIG_STATUS <<_ACEOF | |
23726 | sed "$ac_vpsub | |
23727 | $extrasub | |
23728 | _ACEOF | |
23729 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23730 | :t | |
23731 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
23732 | s,@configure_input@,$configure_input,;t t | |
23733 | s,@srcdir@,$ac_srcdir,;t t | |
23734 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
23735 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
23736 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
23737 | s,@builddir@,$ac_builddir,;t t | |
23738 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
23739 | s,@top_builddir@,$ac_top_builddir,;t t | |
23740 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
23741 | s,@INSTALL@,$ac_INSTALL,;t t | |
23742 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
23743 | rm -f $tmp/stdin | |
23744 | if test x"$ac_file" != x-; then | |
23745 | mv $tmp/out $ac_file | |
23746 | else | |
23747 | cat $tmp/out | |
23748 | rm -f $tmp/out | |
23749 | fi | |
23750 | ||
23751 | done | |
23752 | _ACEOF | |
23753 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23754 | ||
23755 | # | |
23756 | # CONFIG_HEADER section. | |
23757 | # | |
252b5132 RH |
23758 | |
23759 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
23760 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
23761 | # | |
23762 | # ac_d sets the value in "#define NAME VALUE" lines. | |
5464f5a1 NN |
23763 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
23764 | ac_dB='[ ].*$,\1#\2' | |
23765 | ac_dC=' ' | |
23766 | ac_dD=',;t' | |
23767 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
23768 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
23769 | ac_uB='$,\1#\2define\3' | |
252b5132 | 23770 | ac_uC=' ' |
5464f5a1 NN |
23771 | ac_uD=',;t' |
23772 | ||
23773 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
252b5132 | 23774 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
5464f5a1 NN |
23775 | case $ac_file in |
23776 | - | *:- | *:-:* ) # input from stdin | |
23777 | cat >$tmp/stdin | |
23778 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
23779 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
23780 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
23781 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
23782 | * ) ac_file_in=$ac_file.in ;; | |
252b5132 RH |
23783 | esac |
23784 | ||
5464f5a1 NN |
23785 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
23786 | echo "$as_me: creating $ac_file" >&6;} | |
23787 | ||
23788 | # First look for the input files in the build tree, otherwise in the | |
23789 | # src tree. | |
23790 | ac_file_inputs=`IFS=: | |
23791 | for f in $ac_file_in; do | |
23792 | case $f in | |
23793 | -) echo $tmp/stdin ;; | |
23794 | [\\/$]*) | |
23795 | # Absolute (can't be DOS-style, as IFS=:) | |
23796 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
23797 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
23798 | { (exit 1); exit 1; }; } | |
23799 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
23800 | echo "$f";; | |
23801 | *) # Relative | |
23802 | if test -f "$f"; then | |
23803 | # Build tree | |
23804 | echo "$f" | |
23805 | elif test -f "$srcdir/$f"; then | |
23806 | # Source tree | |
23807 | echo "$srcdir/$f" | |
23808 | else | |
23809 | # /dev/null tree | |
23810 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
23811 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
23812 | { (exit 1); exit 1; }; } | |
23813 | fi;; | |
23814 | esac | |
23815 | done` || { (exit 1); exit 1; } | |
23816 | # Remove the trailing spaces. | |
23817 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
23818 | ||
23819 | _ACEOF | |
23820 | ||
23821 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
23822 | # `conftest.undefs', that substitutes the proper values into | |
23823 | # config.h.in to produce config.h. The first handles `#define' | |
23824 | # templates, and the second `#undef' templates. | |
23825 | # And first: Protect against being on the right side of a sed subst in | |
23826 | # config.status. Protect against being in an unquoted here document | |
23827 | # in config.status. | |
23828 | rm -f conftest.defines conftest.undefs | |
23829 | # Using a here document instead of a string reduces the quoting nightmare. | |
23830 | # Putting comments in sed scripts is not portable. | |
23831 | # | |
23832 | # `end' is used to avoid that the second main sed command (meant for | |
23833 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
23834 | # See the Autoconf documentation for `clear'. | |
23835 | cat >confdef2sed.sed <<\_ACEOF | |
23836 | s/[\\&,]/\\&/g | |
23837 | s,[\\$`],\\&,g | |
23838 | t clear | |
23839 | : clear | |
23840 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
23841 | t end | |
23842 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
23843 | : end | |
23844 | _ACEOF | |
23845 | # If some macros were called several times there might be several times | |
23846 | # the same #defines, which is useless. Nevertheless, we may not want to | |
23847 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
23848 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
23849 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
23850 | rm -f confdef2sed.sed | |
252b5132 RH |
23851 | |
23852 | # This sed command replaces #undef with comments. This is necessary, for | |
23853 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
23854 | # on some systems where configure will not decide to define it. | |
5464f5a1 NN |
23855 | cat >>conftest.undefs <<\_ACEOF |
23856 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
23857 | _ACEOF | |
23858 | ||
23859 | # Break up conftest.defines because some shells have a limit on the size | |
23860 | # of here documents, and old seds have small limits too (100 cmds). | |
23861 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
23862 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
23863 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
23864 | echo ' :' >>$CONFIG_STATUS | |
23865 | rm -f conftest.tail | |
23866 | while grep . conftest.defines >/dev/null | |
23867 | do | |
23868 | # Write a limited-size here document to $tmp/defines.sed. | |
23869 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
23870 | # Speed up: don't consider the non `#define' lines. | |
23871 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
23872 | # Work around the forget-to-reset-the-flag bug. | |
23873 | echo 't clr' >>$CONFIG_STATUS | |
23874 | echo ': clr' >>$CONFIG_STATUS | |
23875 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
23876 | echo 'CEOF | |
23877 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
23878 | rm -f $tmp/in | |
23879 | mv $tmp/out $tmp/in | |
23880 | ' >>$CONFIG_STATUS | |
23881 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
23882 | rm -f conftest.defines | |
23883 | mv conftest.tail conftest.defines | |
23884 | done | |
23885 | rm -f conftest.defines | |
23886 | echo ' fi # grep' >>$CONFIG_STATUS | |
23887 | echo >>$CONFIG_STATUS | |
252b5132 | 23888 | |
5464f5a1 NN |
23889 | # Break up conftest.undefs because some shells have a limit on the size |
23890 | # of here documents, and old seds have small limits too (100 cmds). | |
23891 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
252b5132 | 23892 | rm -f conftest.tail |
5464f5a1 | 23893 | while grep . conftest.undefs >/dev/null |
252b5132 | 23894 | do |
5464f5a1 NN |
23895 | # Write a limited-size here document to $tmp/undefs.sed. |
23896 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
23897 | # Speed up: don't consider the non `#undef' | |
23898 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
23899 | # Work around the forget-to-reset-the-flag bug. | |
23900 | echo 't clr' >>$CONFIG_STATUS | |
23901 | echo ': clr' >>$CONFIG_STATUS | |
23902 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
252b5132 | 23903 | echo 'CEOF |
5464f5a1 NN |
23904 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
23905 | rm -f $tmp/in | |
23906 | mv $tmp/out $tmp/in | |
23907 | ' >>$CONFIG_STATUS | |
23908 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
23909 | rm -f conftest.undefs | |
23910 | mv conftest.tail conftest.undefs | |
252b5132 | 23911 | done |
5464f5a1 NN |
23912 | rm -f conftest.undefs |
23913 | ||
23914 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23915 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
23916 | # use $as_me), people would be surprised to read: | |
23917 | # /* config.h. Generated by config.status. */ | |
23918 | if test x"$ac_file" = x-; then | |
23919 | echo "/* Generated by configure. */" >$tmp/config.h | |
23920 | else | |
23921 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
23922 | fi | |
23923 | cat $tmp/in >>$tmp/config.h | |
23924 | rm -f $tmp/in | |
23925 | if test x"$ac_file" != x-; then | |
23926 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
23927 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
23928 | echo "$as_me: $ac_file is unchanged" >&6;} | |
23929 | else | |
23930 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
23931 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23932 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
23933 | X"$ac_file" : 'X\(//\)$' \| \ | |
23934 | X"$ac_file" : 'X\(/\)' \| \ | |
23935 | . : '\(.\)' 2>/dev/null || | |
23936 | echo X"$ac_file" | | |
23937 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23938 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23939 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23940 | /^X\(\/\).*/{ s//\1/; q; } | |
23941 | s/.*/./; q'` | |
23942 | { if $as_mkdir_p; then | |
23943 | mkdir -p "$ac_dir" | |
252b5132 | 23944 | else |
5464f5a1 NN |
23945 | as_dir="$ac_dir" |
23946 | as_dirs= | |
23947 | while test ! -d "$as_dir"; do | |
23948 | as_dirs="$as_dir $as_dirs" | |
23949 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
23950 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23951 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
23952 | X"$as_dir" : 'X\(//\)$' \| \ | |
23953 | X"$as_dir" : 'X\(/\)' \| \ | |
23954 | . : '\(.\)' 2>/dev/null || | |
23955 | echo X"$as_dir" | | |
23956 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23957 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23958 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23959 | /^X\(\/\).*/{ s//\1/; q; } | |
23960 | s/.*/./; q'` | |
23961 | done | |
23962 | test ! -n "$as_dirs" || mkdir $as_dirs | |
23963 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
23964 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
23965 | { (exit 1); exit 1; }; }; } | |
23966 | ||
23967 | rm -f $ac_file | |
23968 | mv $tmp/config.h $ac_file | |
252b5132 | 23969 | fi |
5464f5a1 NN |
23970 | else |
23971 | cat $tmp/config.h | |
23972 | rm -f $tmp/config.h | |
252b5132 | 23973 | fi |
f5385ebf AM |
23974 | # Compute $ac_file's index in $config_headers. |
23975 | _am_stamp_count=1 | |
23976 | for _am_header in $config_headers :; do | |
23977 | case $_am_header in | |
23978 | $ac_file | $ac_file:* ) | |
23979 | break ;; | |
23980 | * ) | |
23981 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
23982 | esac | |
23983 | done | |
23984 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
23985 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23986 | X$ac_file : 'X\(//\)[^/]' \| \ | |
23987 | X$ac_file : 'X\(//\)$' \| \ | |
23988 | X$ac_file : 'X\(/\)' \| \ | |
23989 | . : '\(.\)' 2>/dev/null || | |
23990 | echo X$ac_file | | |
23991 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
23992 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
23993 | /^X\(\/\/\)$/{ s//\1/; q; } | |
23994 | /^X\(\/\).*/{ s//\1/; q; } | |
23995 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
5464f5a1 NN |
23996 | done |
23997 | _ACEOF | |
23998 | cat >>$CONFIG_STATUS <<\_ACEOF | |
252b5132 | 23999 | |
5464f5a1 NN |
24000 | # |
24001 | # CONFIG_COMMANDS section. | |
24002 | # | |
24003 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
24004 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
24005 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
24006 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
24007 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24008 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
24009 | X"$ac_dest" : 'X\(//\)$' \| \ | |
24010 | X"$ac_dest" : 'X\(/\)' \| \ | |
24011 | . : '\(.\)' 2>/dev/null || | |
24012 | echo X"$ac_dest" | | |
24013 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24014 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24015 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24016 | /^X\(\/\).*/{ s//\1/; q; } | |
24017 | s/.*/./; q'` | |
24018 | { if $as_mkdir_p; then | |
24019 | mkdir -p "$ac_dir" | |
24020 | else | |
24021 | as_dir="$ac_dir" | |
24022 | as_dirs= | |
24023 | while test ! -d "$as_dir"; do | |
24024 | as_dirs="$as_dir $as_dirs" | |
24025 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
24026 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24027 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
24028 | X"$as_dir" : 'X\(//\)$' \| \ | |
24029 | X"$as_dir" : 'X\(/\)' \| \ | |
24030 | . : '\(.\)' 2>/dev/null || | |
24031 | echo X"$as_dir" | | |
24032 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24033 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24034 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24035 | /^X\(\/\).*/{ s//\1/; q; } | |
24036 | s/.*/./; q'` | |
24037 | done | |
24038 | test ! -n "$as_dirs" || mkdir $as_dirs | |
24039 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
24040 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
24041 | { (exit 1); exit 1; }; }; } | |
b3baf5d0 | 24042 | |
5464f5a1 | 24043 | ac_builddir=. |
b3baf5d0 | 24044 | |
5464f5a1 NN |
24045 | if test "$ac_dir" != .; then |
24046 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
24047 | # A "../" for each directory in $ac_dir_suffix. | |
24048 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
24049 | else | |
24050 | ac_dir_suffix= ac_top_builddir= | |
24051 | fi | |
24052 | ||
24053 | case $srcdir in | |
24054 | .) # No --srcdir option. We are building in place. | |
24055 | ac_srcdir=. | |
24056 | if test -z "$ac_top_builddir"; then | |
24057 | ac_top_srcdir=. | |
24058 | else | |
24059 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
24060 | fi ;; | |
24061 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
24062 | ac_srcdir=$srcdir$ac_dir_suffix; | |
24063 | ac_top_srcdir=$srcdir ;; | |
24064 | *) # Relative path. | |
24065 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
24066 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
24067 | esac | |
24068 | ||
24069 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
24070 | # the directories may not exist. | |
24071 | case `pwd` in | |
24072 | .) ac_abs_builddir="$ac_dir";; | |
24073 | *) | |
24074 | case "$ac_dir" in | |
24075 | .) ac_abs_builddir=`pwd`;; | |
24076 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
24077 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
24078 | esac;; | |
24079 | esac | |
24080 | case $ac_abs_builddir in | |
24081 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
24082 | *) | |
24083 | case ${ac_top_builddir}. in | |
24084 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
24085 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
24086 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
24087 | esac;; | |
24088 | esac | |
24089 | case $ac_abs_builddir in | |
24090 | .) ac_abs_srcdir=$ac_srcdir;; | |
24091 | *) | |
24092 | case $ac_srcdir in | |
24093 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
24094 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
24095 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
24096 | esac;; | |
24097 | esac | |
24098 | case $ac_abs_builddir in | |
24099 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
24100 | *) | |
24101 | case $ac_top_srcdir in | |
24102 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
24103 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
24104 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
24105 | esac;; | |
24106 | esac | |
24107 | ||
24108 | ||
24109 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
24110 | echo "$as_me: executing $ac_dest commands" >&6;} | |
24111 | case $ac_dest in | |
f5385ebf AM |
24112 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
24113 | # Strip MF so we end up with the name of the file. | |
24114 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
24115 | # Check whether this is an Automake generated Makefile or not. | |
24116 | # We used to match only the files named `Makefile.in', but | |
24117 | # some people rename them; so instead we look at the file content. | |
24118 | # Grep'ing the first line is not enough: some people post-process | |
24119 | # each Makefile.in and add a new line on top of each file to say so. | |
24120 | # So let's grep whole file. | |
24121 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
24122 | dirpart=`(dirname "$mf") 2>/dev/null || | |
24123 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24124 | X"$mf" : 'X\(//\)[^/]' \| \ | |
24125 | X"$mf" : 'X\(//\)$' \| \ | |
24126 | X"$mf" : 'X\(/\)' \| \ | |
24127 | . : '\(.\)' 2>/dev/null || | |
24128 | echo X"$mf" | | |
24129 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24130 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24131 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24132 | /^X\(\/\).*/{ s//\1/; q; } | |
24133 | s/.*/./; q'` | |
24134 | else | |
24135 | continue | |
24136 | fi | |
24137 | # Extract the definition of DEPDIR, am__include, and am__quote | |
24138 | # from the Makefile without running `make'. | |
24139 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
24140 | test -z "$DEPDIR" && continue | |
24141 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
24142 | test -z "am__include" && continue | |
24143 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
24144 | # When using ansi2knr, U may be empty or an underscore; expand it | |
24145 | U=`sed -n 's/^U = //p' < "$mf"` | |
24146 | # Find all dependency output files, they are included files with | |
24147 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
24148 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
24149 | # expansion. | |
24150 | for file in `sed -n " | |
24151 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
24152 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
24153 | # Make sure the directory exists. | |
24154 | test -f "$dirpart/$file" && continue | |
24155 | fdir=`(dirname "$file") 2>/dev/null || | |
24156 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24157 | X"$file" : 'X\(//\)[^/]' \| \ | |
24158 | X"$file" : 'X\(//\)$' \| \ | |
24159 | X"$file" : 'X\(/\)' \| \ | |
24160 | . : '\(.\)' 2>/dev/null || | |
24161 | echo X"$file" | | |
24162 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24163 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24164 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24165 | /^X\(\/\).*/{ s//\1/; q; } | |
24166 | s/.*/./; q'` | |
24167 | { if $as_mkdir_p; then | |
24168 | mkdir -p $dirpart/$fdir | |
24169 | else | |
24170 | as_dir=$dirpart/$fdir | |
24171 | as_dirs= | |
24172 | while test ! -d "$as_dir"; do | |
24173 | as_dirs="$as_dir $as_dirs" | |
24174 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
24175 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
24176 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
24177 | X"$as_dir" : 'X\(//\)$' \| \ | |
24178 | X"$as_dir" : 'X\(/\)' \| \ | |
24179 | . : '\(.\)' 2>/dev/null || | |
24180 | echo X"$as_dir" | | |
24181 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
24182 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
24183 | /^X\(\/\/\)$/{ s//\1/; q; } | |
24184 | /^X\(\/\).*/{ s//\1/; q; } | |
24185 | s/.*/./; q'` | |
24186 | done | |
24187 | test ! -n "$as_dirs" || mkdir $as_dirs | |
24188 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
24189 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
24190 | { (exit 1); exit 1; }; }; } | |
24191 | ||
24192 | # echo "creating $dirpart/$file" | |
24193 | echo '# dummy' > "$dirpart/$file" | |
24194 | done | |
24195 | done | |
d7040cdb SE |
24196 | ;; |
24197 | libtool ) | |
24198 | ||
24199 | # See if we are running on zsh, and set the options which allow our | |
24200 | # commands through without removal of \ escapes. | |
24201 | if test -n "${ZSH_VERSION+set}" ; then | |
24202 | setopt NO_GLOB_SUBST | |
24203 | fi | |
24204 | ||
24205 | cfgfile="${ofile}T" | |
24206 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
24207 | $RM "$cfgfile" | |
24208 | ||
24209 | cat <<_LT_EOF >> "$cfgfile" | |
24210 | #! $SHELL | |
24211 | ||
24212 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
718a6fd8 | 24213 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
d7040cdb SE |
24214 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
24215 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
24216 | # | |
718a6fd8 SE |
24217 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
24218 | # 2006, 2007, 2008 Free Software Foundation, Inc. | |
24219 | # Written by Gordon Matzigkeit, 1996 | |
d7040cdb | 24220 | # |
718a6fd8 | 24221 | # This file is part of GNU Libtool. |
d7040cdb | 24222 | # |
718a6fd8 SE |
24223 | # GNU Libtool is free software; you can redistribute it and/or |
24224 | # modify it under the terms of the GNU General Public License as | |
24225 | # published by the Free Software Foundation; either version 2 of | |
24226 | # the License, or (at your option) any later version. | |
d7040cdb | 24227 | # |
718a6fd8 SE |
24228 | # As a special exception to the GNU General Public License, |
24229 | # if you distribute this file as part of a program or library that | |
24230 | # is built using GNU Libtool, you may include this file under the | |
24231 | # same distribution terms that you use for the rest of that program. | |
d7040cdb | 24232 | # |
718a6fd8 SE |
24233 | # GNU Libtool is distributed in the hope that it will be useful, |
24234 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
24235 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
24236 | # GNU General Public License for more details. | |
d7040cdb | 24237 | # |
718a6fd8 SE |
24238 | # You should have received a copy of the GNU General Public License |
24239 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
24240 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
24241 | # obtained by writing to the Free Software Foundation, Inc., | |
24242 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d7040cdb SE |
24243 | |
24244 | ||
24245 | # The names of the tagged configurations supported by this script. | |
24246 | available_tags="" | |
24247 | ||
24248 | # ### BEGIN LIBTOOL CONFIG | |
24249 | ||
24250 | # Whether or not to build shared libraries. | |
24251 | build_libtool_libs=$enable_shared | |
24252 | ||
24253 | # Which release of libtool.m4 was used? | |
24254 | macro_version=$macro_version | |
24255 | macro_revision=$macro_revision | |
24256 | ||
24257 | # Whether or not to build static libraries. | |
24258 | build_old_libs=$enable_static | |
24259 | ||
24260 | # What type of objects to build. | |
24261 | pic_mode=$pic_mode | |
24262 | ||
24263 | # Whether or not to optimize for fast installation. | |
24264 | fast_install=$enable_fast_install | |
24265 | ||
24266 | # The host system. | |
24267 | host_alias=$host_alias | |
24268 | host=$host | |
24269 | host_os=$host_os | |
24270 | ||
24271 | # The build system. | |
24272 | build_alias=$build_alias | |
24273 | build=$build | |
24274 | build_os=$build_os | |
24275 | ||
24276 | # A sed program that does not truncate output. | |
24277 | SED=$lt_SED | |
24278 | ||
24279 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
24280 | Xsed="\$SED -e 1s/^X//" | |
24281 | ||
24282 | # A grep program that handles long lines. | |
24283 | GREP=$lt_GREP | |
24284 | ||
24285 | # An ERE matcher. | |
24286 | EGREP=$lt_EGREP | |
24287 | ||
24288 | # A literal string matcher. | |
24289 | FGREP=$lt_FGREP | |
24290 | ||
24291 | # A BSD- or MS-compatible name lister. | |
24292 | NM=$lt_NM | |
24293 | ||
24294 | # Whether we need soft or hard links. | |
24295 | LN_S=$lt_LN_S | |
24296 | ||
24297 | # What is the maximum length of a command? | |
24298 | max_cmd_len=$max_cmd_len | |
24299 | ||
24300 | # Object file suffix (normally "o"). | |
24301 | objext=$ac_objext | |
24302 | ||
24303 | # Executable file suffix (normally ""). | |
24304 | exeext=$exeext | |
24305 | ||
24306 | # whether the shell understands "unset". | |
24307 | lt_unset=$lt_unset | |
24308 | ||
24309 | # turn spaces into newlines. | |
24310 | SP2NL=$lt_lt_SP2NL | |
24311 | ||
24312 | # turn newlines into spaces. | |
24313 | NL2SP=$lt_lt_NL2SP | |
24314 | ||
24315 | # How to create reloadable object files. | |
24316 | reload_flag=$lt_reload_flag | |
24317 | reload_cmds=$lt_reload_cmds | |
24318 | ||
718a6fd8 SE |
24319 | # An object symbol dumper. |
24320 | OBJDUMP=$lt_OBJDUMP | |
24321 | ||
d7040cdb SE |
24322 | # Method to check whether dependent libraries are shared objects. |
24323 | deplibs_check_method=$lt_deplibs_check_method | |
24324 | ||
24325 | # Command to use when deplibs_check_method == "file_magic". | |
24326 | file_magic_cmd=$lt_file_magic_cmd | |
24327 | ||
24328 | # The archiver. | |
24329 | AR=$lt_AR | |
24330 | AR_FLAGS=$lt_AR_FLAGS | |
24331 | ||
24332 | # A symbol stripping program. | |
24333 | STRIP=$lt_STRIP | |
24334 | ||
24335 | # Commands used to install an old-style archive. | |
24336 | RANLIB=$lt_RANLIB | |
24337 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
24338 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
24339 | ||
24340 | # A C compiler. | |
24341 | LTCC=$lt_CC | |
24342 | ||
24343 | # LTCC compiler flags. | |
24344 | LTCFLAGS=$lt_CFLAGS | |
24345 | ||
24346 | # Take the output of nm and produce a listing of raw symbols and C names. | |
24347 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
24348 | ||
24349 | # Transform the output of nm in a proper C declaration. | |
24350 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
24351 | ||
24352 | # Transform the output of nm in a C name address pair. | |
24353 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
24354 | ||
718a6fd8 SE |
24355 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
24356 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
24357 | ||
d7040cdb SE |
24358 | # The name of the directory that contains temporary libtool files. |
24359 | objdir=$objdir | |
24360 | ||
24361 | # Shell to use when invoking shell scripts. | |
24362 | SHELL=$lt_SHELL | |
24363 | ||
24364 | # An echo program that does not interpret backslashes. | |
24365 | ECHO=$lt_ECHO | |
24366 | ||
24367 | # Used to examine libraries when file_magic_cmd begins with "file". | |
24368 | MAGIC_CMD=$MAGIC_CMD | |
24369 | ||
24370 | # Must we lock files when doing compilation? | |
24371 | need_locks=$lt_need_locks | |
24372 | ||
718a6fd8 SE |
24373 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
24374 | DSYMUTIL=$lt_DSYMUTIL | |
24375 | ||
24376 | # Tool to change global to local symbols on Mac OS X. | |
24377 | NMEDIT=$lt_NMEDIT | |
24378 | ||
24379 | # Tool to manipulate fat objects and archives on Mac OS X. | |
24380 | LIPO=$lt_LIPO | |
24381 | ||
24382 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
24383 | OTOOL=$lt_OTOOL | |
24384 | ||
24385 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
24386 | OTOOL64=$lt_OTOOL64 | |
24387 | ||
d7040cdb SE |
24388 | # Old archive suffix (normally "a"). |
24389 | libext=$libext | |
24390 | ||
24391 | # Shared library suffix (normally ".so"). | |
24392 | shrext_cmds=$lt_shrext_cmds | |
24393 | ||
24394 | # The commands to extract the exported symbol list from a shared archive. | |
24395 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
24396 | ||
24397 | # Variables whose values should be saved in libtool wrapper scripts and | |
24398 | # restored at link time. | |
24399 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
24400 | ||
24401 | # Do we need the "lib" prefix for modules? | |
24402 | need_lib_prefix=$need_lib_prefix | |
24403 | ||
24404 | # Do we need a version for libraries? | |
24405 | need_version=$need_version | |
24406 | ||
24407 | # Library versioning type. | |
24408 | version_type=$version_type | |
24409 | ||
24410 | # Shared library runtime path variable. | |
24411 | runpath_var=$runpath_var | |
24412 | ||
24413 | # Shared library path variable. | |
24414 | shlibpath_var=$shlibpath_var | |
24415 | ||
24416 | # Is shlibpath searched before the hard-coded library search path? | |
24417 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
24418 | ||
24419 | # Format of library name prefix. | |
24420 | libname_spec=$lt_libname_spec | |
24421 | ||
24422 | # List of archive names. First name is the real one, the rest are links. | |
24423 | # The last name is the one that the linker finds with -lNAME | |
24424 | library_names_spec=$lt_library_names_spec | |
24425 | ||
24426 | # The coded name of the library, if different from the real name. | |
24427 | soname_spec=$lt_soname_spec | |
24428 | ||
24429 | # Command to use after installation of a shared archive. | |
24430 | postinstall_cmds=$lt_postinstall_cmds | |
24431 | ||
24432 | # Command to use after uninstallation of a shared archive. | |
24433 | postuninstall_cmds=$lt_postuninstall_cmds | |
24434 | ||
24435 | # Commands used to finish a libtool library installation in a directory. | |
24436 | finish_cmds=$lt_finish_cmds | |
24437 | ||
24438 | # As "finish_cmds", except a single script fragment to be evaled but | |
24439 | # not shown. | |
24440 | finish_eval=$lt_finish_eval | |
24441 | ||
24442 | # Whether we should hardcode library paths into libraries. | |
24443 | hardcode_into_libs=$hardcode_into_libs | |
24444 | ||
24445 | # Compile-time system search path for libraries. | |
24446 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
24447 | ||
24448 | # Run-time system search path for libraries. | |
24449 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
24450 | ||
24451 | # Whether dlopen is supported. | |
24452 | dlopen_support=$enable_dlopen | |
24453 | ||
24454 | # Whether dlopen of programs is supported. | |
24455 | dlopen_self=$enable_dlopen_self | |
24456 | ||
24457 | # Whether dlopen of statically linked programs is supported. | |
24458 | dlopen_self_static=$enable_dlopen_self_static | |
24459 | ||
24460 | # Commands to strip libraries. | |
24461 | old_striplib=$lt_old_striplib | |
24462 | striplib=$lt_striplib | |
24463 | ||
24464 | ||
24465 | # The linker used to build libraries. | |
24466 | LD=$lt_LD | |
24467 | ||
24468 | # Commands used to build an old-style archive. | |
24469 | old_archive_cmds=$lt_old_archive_cmds | |
24470 | ||
24471 | # A language specific compiler. | |
24472 | CC=$lt_compiler | |
24473 | ||
24474 | # Is the compiler the GNU compiler? | |
24475 | with_gcc=$GCC | |
24476 | ||
24477 | # Compiler flag to turn off builtin functions. | |
24478 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
24479 | ||
24480 | # How to pass a linker flag through the compiler. | |
24481 | wl=$lt_lt_prog_compiler_wl | |
24482 | ||
24483 | # Additional compiler flags for building library objects. | |
24484 | pic_flag=$lt_lt_prog_compiler_pic | |
24485 | ||
24486 | # Compiler flag to prevent dynamic linking. | |
24487 | link_static_flag=$lt_lt_prog_compiler_static | |
24488 | ||
24489 | # Does compiler simultaneously support -c and -o options? | |
24490 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
24491 | ||
24492 | # Whether or not to add -lc for building shared libraries. | |
24493 | build_libtool_need_lc=$archive_cmds_need_lc | |
24494 | ||
24495 | # Whether or not to disallow shared libs when runtime libs are static. | |
24496 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
24497 | ||
24498 | # Compiler flag to allow reflexive dlopens. | |
24499 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
24500 | ||
24501 | # Compiler flag to generate shared objects directly from archives. | |
24502 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
24503 | ||
24504 | # Whether the compiler copes with passing no objects directly. | |
24505 | compiler_needs_object=$lt_compiler_needs_object | |
24506 | ||
24507 | # Create an old-style archive from a shared archive. | |
24508 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
24509 | ||
24510 | # Create a temporary old-style archive to link instead of a shared archive. | |
24511 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
24512 | ||
24513 | # Commands used to build a shared archive. | |
24514 | archive_cmds=$lt_archive_cmds | |
24515 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
24516 | ||
24517 | # Commands used to build a loadable module if different from building | |
24518 | # a shared archive. | |
24519 | module_cmds=$lt_module_cmds | |
24520 | module_expsym_cmds=$lt_module_expsym_cmds | |
24521 | ||
24522 | # Whether we are building with GNU ld or not. | |
24523 | with_gnu_ld=$lt_with_gnu_ld | |
24524 | ||
24525 | # Flag that allows shared libraries with undefined symbols to be built. | |
24526 | allow_undefined_flag=$lt_allow_undefined_flag | |
24527 | ||
24528 | # Flag that enforces no undefined symbols. | |
24529 | no_undefined_flag=$lt_no_undefined_flag | |
24530 | ||
24531 | # Flag to hardcode \$libdir into a binary during linking. | |
24532 | # This must work even if \$libdir does not exist | |
24533 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
24534 | ||
24535 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
24536 | # during linking. This must work even if \$libdir does not exist. | |
24537 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
24538 | ||
24539 | # Whether we need a single "-rpath" flag with a separated argument. | |
24540 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
24541 | ||
24542 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
24543 | # DIR into the resulting binary. | |
24544 | hardcode_direct=$hardcode_direct | |
24545 | ||
24546 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
24547 | # DIR into the resulting binary and the resulting library dependency is | |
24548 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
24549 | # library is relocated. | |
24550 | hardcode_direct_absolute=$hardcode_direct_absolute | |
24551 | ||
24552 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
24553 | # into the resulting binary. | |
24554 | hardcode_minus_L=$hardcode_minus_L | |
24555 | ||
24556 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
24557 | # into the resulting binary. | |
24558 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
24559 | ||
24560 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
24561 | # into the library and all subsequent libraries and executables linked | |
24562 | # against it. | |
24563 | hardcode_automatic=$hardcode_automatic | |
24564 | ||
24565 | # Set to yes if linker adds runtime paths of dependent libraries | |
24566 | # to runtime path list. | |
24567 | inherit_rpath=$inherit_rpath | |
24568 | ||
24569 | # Whether libtool must link a program against all its dependency libraries. | |
24570 | link_all_deplibs=$link_all_deplibs | |
24571 | ||
24572 | # Fix the shell variable \$srcfile for the compiler. | |
24573 | fix_srcfile_path=$lt_fix_srcfile_path | |
24574 | ||
24575 | # Set to "yes" if exported symbols are required. | |
24576 | always_export_symbols=$always_export_symbols | |
24577 | ||
24578 | # The commands to list exported symbols. | |
24579 | export_symbols_cmds=$lt_export_symbols_cmds | |
24580 | ||
24581 | # Symbols that should not be listed in the preloaded symbols. | |
24582 | exclude_expsyms=$lt_exclude_expsyms | |
24583 | ||
24584 | # Symbols that must always be exported. | |
24585 | include_expsyms=$lt_include_expsyms | |
24586 | ||
24587 | # Commands necessary for linking programs (against libraries) with templates. | |
24588 | prelink_cmds=$lt_prelink_cmds | |
24589 | ||
24590 | # Specify filename containing input files. | |
24591 | file_list_spec=$lt_file_list_spec | |
24592 | ||
24593 | # How to hardcode a shared library path into an executable. | |
24594 | hardcode_action=$hardcode_action | |
24595 | ||
24596 | # ### END LIBTOOL CONFIG | |
24597 | ||
24598 | _LT_EOF | |
24599 | ||
24600 | case $host_os in | |
24601 | aix3*) | |
24602 | cat <<\_LT_EOF >> "$cfgfile" | |
24603 | # AIX sometimes has problems with the GCC collect2 program. For some | |
24604 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
24605 | # vanish in a puff of smoke. | |
24606 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
24607 | COLLECT_NAMES= | |
24608 | export COLLECT_NAMES | |
24609 | fi | |
24610 | _LT_EOF | |
24611 | ;; | |
24612 | esac | |
24613 | ||
24614 | ||
24615 | ltmain="$ac_aux_dir/ltmain.sh" | |
24616 | ||
24617 | ||
24618 | # We use sed instead of cat because bash on DJGPP gets confused if | |
24619 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
24620 | # text mode, it properly converts lines to CR/LF. This bash problem | |
24621 | # is reportedly fixed, but why not run on old versions too? | |
24622 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
24623 | || (rm -f "$cfgfile"; exit 1) | |
24624 | ||
24625 | case $xsi_shell in | |
24626 | yes) | |
24627 | cat << \_LT_EOF >> "$cfgfile" | |
718a6fd8 | 24628 | |
d7040cdb SE |
24629 | # func_dirname file append nondir_replacement |
24630 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
24631 | # otherwise set result to NONDIR_REPLACEMENT. | |
24632 | func_dirname () | |
24633 | { | |
24634 | case ${1} in | |
24635 | */*) func_dirname_result="${1%/*}${2}" ;; | |
24636 | * ) func_dirname_result="${3}" ;; | |
24637 | esac | |
24638 | } | |
24639 | ||
24640 | # func_basename file | |
24641 | func_basename () | |
24642 | { | |
24643 | func_basename_result="${1##*/}" | |
24644 | } | |
24645 | ||
718a6fd8 SE |
24646 | # func_dirname_and_basename file append nondir_replacement |
24647 | # perform func_basename and func_dirname in a single function | |
24648 | # call: | |
24649 | # dirname: Compute the dirname of FILE. If nonempty, | |
24650 | # add APPEND to the result, otherwise set result | |
24651 | # to NONDIR_REPLACEMENT. | |
24652 | # value returned in "$func_dirname_result" | |
24653 | # basename: Compute filename of FILE. | |
24654 | # value retuned in "$func_basename_result" | |
24655 | # Implementation must be kept synchronized with func_dirname | |
24656 | # and func_basename. For efficiency, we do not delegate to | |
24657 | # those functions but instead duplicate the functionality here. | |
24658 | func_dirname_and_basename () | |
24659 | { | |
24660 | case ${1} in | |
24661 | */*) func_dirname_result="${1%/*}${2}" ;; | |
24662 | * ) func_dirname_result="${3}" ;; | |
24663 | esac | |
24664 | func_basename_result="${1##*/}" | |
24665 | } | |
24666 | ||
d7040cdb SE |
24667 | # func_stripname prefix suffix name |
24668 | # strip PREFIX and SUFFIX off of NAME. | |
24669 | # PREFIX and SUFFIX must not contain globbing or regex special | |
24670 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
24671 | # dot (in which case that matches only a dot). | |
24672 | func_stripname () | |
24673 | { | |
24674 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
24675 | # positional parameters, so assign one to ordinary parameter first. | |
24676 | func_stripname_result=${3} | |
24677 | func_stripname_result=${func_stripname_result#"${1}"} | |
24678 | func_stripname_result=${func_stripname_result%"${2}"} | |
24679 | } | |
24680 | ||
24681 | # func_opt_split | |
24682 | func_opt_split () | |
24683 | { | |
24684 | func_opt_split_opt=${1%%=*} | |
24685 | func_opt_split_arg=${1#*=} | |
24686 | } | |
24687 | ||
24688 | # func_lo2o object | |
24689 | func_lo2o () | |
24690 | { | |
24691 | case ${1} in | |
24692 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
24693 | *) func_lo2o_result=${1} ;; | |
24694 | esac | |
24695 | } | |
718a6fd8 SE |
24696 | |
24697 | # func_xform libobj-or-source | |
24698 | func_xform () | |
24699 | { | |
24700 | func_xform_result=${1%.*}.lo | |
24701 | } | |
24702 | ||
24703 | # func_arith arithmetic-term... | |
24704 | func_arith () | |
24705 | { | |
24706 | func_arith_result=$(( $* )) | |
24707 | } | |
24708 | ||
24709 | # func_len string | |
24710 | # STRING may not start with a hyphen. | |
24711 | func_len () | |
24712 | { | |
24713 | func_len_result=${#1} | |
24714 | } | |
24715 | ||
d7040cdb SE |
24716 | _LT_EOF |
24717 | ;; | |
24718 | *) # Bourne compatible functions. | |
24719 | cat << \_LT_EOF >> "$cfgfile" | |
718a6fd8 | 24720 | |
d7040cdb SE |
24721 | # func_dirname file append nondir_replacement |
24722 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
24723 | # otherwise set result to NONDIR_REPLACEMENT. | |
24724 | func_dirname () | |
24725 | { | |
24726 | # Extract subdirectory from the argument. | |
24727 | func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` | |
24728 | if test "X$func_dirname_result" = "X${1}"; then | |
24729 | func_dirname_result="${3}" | |
24730 | else | |
24731 | func_dirname_result="$func_dirname_result${2}" | |
24732 | fi | |
24733 | } | |
24734 | ||
24735 | # func_basename file | |
24736 | func_basename () | |
24737 | { | |
24738 | func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` | |
24739 | } | |
24740 | ||
718a6fd8 | 24741 | |
d7040cdb SE |
24742 | # func_stripname prefix suffix name |
24743 | # strip PREFIX and SUFFIX off of NAME. | |
24744 | # PREFIX and SUFFIX must not contain globbing or regex special | |
24745 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
24746 | # dot (in which case that matches only a dot). | |
24747 | # func_strip_suffix prefix name | |
24748 | func_stripname () | |
24749 | { | |
24750 | case ${2} in | |
24751 | .*) func_stripname_result=`$ECHO "X${3}" \ | |
24752 | | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; | |
24753 | *) func_stripname_result=`$ECHO "X${3}" \ | |
24754 | | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; | |
24755 | esac | |
24756 | } | |
24757 | ||
24758 | # sed scripts: | |
24759 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
24760 | my_sed_long_arg='1s/^-[^=]*=//' | |
24761 | ||
24762 | # func_opt_split | |
24763 | func_opt_split () | |
24764 | { | |
24765 | func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` | |
24766 | func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` | |
24767 | } | |
24768 | ||
24769 | # func_lo2o object | |
24770 | func_lo2o () | |
24771 | { | |
24772 | func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` | |
24773 | } | |
718a6fd8 SE |
24774 | |
24775 | # func_xform libobj-or-source | |
24776 | func_xform () | |
24777 | { | |
24778 | func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'` | |
24779 | } | |
24780 | ||
24781 | # func_arith arithmetic-term... | |
24782 | func_arith () | |
24783 | { | |
24784 | func_arith_result=`expr "$@"` | |
24785 | } | |
24786 | ||
24787 | # func_len string | |
24788 | # STRING may not start with a hyphen. | |
24789 | func_len () | |
24790 | { | |
24791 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
24792 | } | |
24793 | ||
d7040cdb SE |
24794 | _LT_EOF |
24795 | esac | |
24796 | ||
24797 | case $lt_shell_append in | |
24798 | yes) | |
24799 | cat << \_LT_EOF >> "$cfgfile" | |
24800 | ||
24801 | # func_append var value | |
24802 | # Append VALUE to the end of shell variable VAR. | |
24803 | func_append () | |
24804 | { | |
24805 | eval "$1+=\$2" | |
24806 | } | |
24807 | _LT_EOF | |
24808 | ;; | |
24809 | *) | |
24810 | cat << \_LT_EOF >> "$cfgfile" | |
24811 | ||
24812 | # func_append var value | |
24813 | # Append VALUE to the end of shell variable VAR. | |
24814 | func_append () | |
24815 | { | |
24816 | eval "$1=\$$1\$2" | |
24817 | } | |
718a6fd8 | 24818 | |
d7040cdb SE |
24819 | _LT_EOF |
24820 | ;; | |
24821 | esac | |
24822 | ||
24823 | ||
24824 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
24825 | || (rm -f "$cfgfile"; exit 1) | |
24826 | ||
24827 | mv -f "$cfgfile" "$ofile" || | |
24828 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
24829 | chmod +x "$ofile" | |
24830 | ||
f5385ebf | 24831 | ;; |
20e95c23 DJ |
24832 | default-1 ) |
24833 | for ac_file in $CONFIG_FILES; do | |
24834 | # Support "outfile[:infile[:infile...]]" | |
24835 | case "$ac_file" in | |
24836 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
24837 | esac | |
24838 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
24839 | case "$ac_file" in */Makefile.in) | |
24840 | # Adjust a relative srcdir. | |
24841 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
24842 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" | |
24843 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` | |
24844 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
24845 | # In autoconf-2.50 it is called $srcdir. | |
24846 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
24847 | case "$ac_given_srcdir" in | |
24848 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
24849 | /*) top_srcdir="$ac_given_srcdir" ;; | |
24850 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
24851 | esac | |
24852 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
24853 | rm -f "$ac_dir/POTFILES" | |
24854 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
24855 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
24856 | POMAKEFILEDEPS="POTFILES.in" | |
24857 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
24858 | # on $ac_dir but don't depend on user-specified configuration | |
24859 | # parameters. | |
24860 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
24861 | # The LINGUAS file contains the set of available languages. | |
24862 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
24863 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" | |
24864 | fi | |
24865 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
24866 | # Hide the ALL_LINGUAS assigment from automake. | |
24867 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
24868 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
24869 | else | |
24870 | # The set of available languages was given in configure.in. | |
24871 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' | |
24872 | fi | |
24873 | case "$ac_given_srcdir" in | |
24874 | .) srcdirpre= ;; | |
24875 | *) srcdirpre='$(srcdir)/' ;; | |
24876 | esac | |
24877 | POFILES= | |
24878 | GMOFILES= | |
24879 | UPDATEPOFILES= | |
24880 | DUMMYPOFILES= | |
24881 | for lang in $ALL_LINGUAS; do | |
24882 | POFILES="$POFILES $srcdirpre$lang.po" | |
24883 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
24884 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
24885 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
24886 | done | |
24887 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
24888 | # environment variable. | |
24889 | INST_LINGUAS= | |
24890 | if test -n "$ALL_LINGUAS"; then | |
24891 | for presentlang in $ALL_LINGUAS; do | |
24892 | useit=no | |
24893 | if test "%UNSET%" != "$LINGUAS"; then | |
24894 | desiredlanguages="$LINGUAS" | |
24895 | else | |
24896 | desiredlanguages="$ALL_LINGUAS" | |
24897 | fi | |
24898 | for desiredlang in $desiredlanguages; do | |
24899 | # Use the presentlang catalog if desiredlang is | |
24900 | # a. equal to presentlang, or | |
24901 | # b. a variant of presentlang (because in this case, | |
24902 | # presentlang can be used as a fallback for messages | |
24903 | # which are not translated in the desiredlang catalog). | |
24904 | case "$desiredlang" in | |
24905 | "$presentlang"*) useit=yes;; | |
24906 | esac | |
24907 | done | |
24908 | if test $useit = yes; then | |
24909 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
24910 | fi | |
24911 | done | |
24912 | fi | |
24913 | CATALOGS= | |
24914 | if test -n "$INST_LINGUAS"; then | |
24915 | for lang in $INST_LINGUAS; do | |
24916 | CATALOGS="$CATALOGS $lang.gmo" | |
24917 | done | |
24918 | fi | |
24919 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
24920 | 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" | |
24921 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
24922 | if test -f "$f"; then | |
24923 | case "$f" in | |
24924 | *.orig | *.bak | *~) ;; | |
24925 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
24926 | esac | |
24927 | fi | |
24928 | done | |
24929 | fi | |
24930 | ;; | |
24931 | esac | |
24932 | done ;; | |
d5efd9fc AM |
24933 | bfd_stdint.h ) |
24934 | if test "$GCC" = yes; then | |
24935 | echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h | |
24936 | else | |
24937 | echo "/* generated for $CC */" > tmp-stdint.h | |
24938 | fi | |
24939 | ||
24940 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24941 | ||
24942 | #ifndef GCC_GENERATED_STDINT_H | |
24943 | #define GCC_GENERATED_STDINT_H 1 | |
24944 | ||
24945 | #include <sys/types.h> | |
24946 | EOF | |
24947 | ||
24948 | if test "$acx_cv_header_stdint" != stdint.h; then | |
24949 | echo "#include <stddef.h>" >> tmp-stdint.h | |
24950 | fi | |
24951 | if test "$acx_cv_header_stdint" != stddef.h; then | |
24952 | echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h | |
24953 | fi | |
24954 | ||
24955 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24956 | /* glibc uses these symbols as guards to prevent redefinitions. */ | |
24957 | #ifdef __int8_t_defined | |
24958 | #define _INT8_T | |
24959 | #define _INT16_T | |
24960 | #define _INT32_T | |
24961 | #endif | |
24962 | #ifdef __uint32_t_defined | |
24963 | #define _UINT32_T | |
24964 | #endif | |
24965 | ||
24966 | EOF | |
24967 | ||
24968 | # ----------------- done header, emit basic int types ------------- | |
24969 | if test "$acx_cv_header_stdint" = stddef.h; then | |
24970 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
24971 | ||
24972 | #ifndef _UINT8_T | |
24973 | #define _UINT8_T | |
24974 | #ifndef __uint8_t_defined | |
24975 | #define __uint8_t_defined | |
24976 | typedef unsigned $acx_cv_type_int8_t uint8_t; | |
24977 | #endif | |
24978 | #endif | |
24979 | ||
24980 | #ifndef _UINT16_T | |
24981 | #define _UINT16_T | |
24982 | #ifndef __uint16_t_defined | |
24983 | #define __uint16_t_defined | |
24984 | typedef unsigned $acx_cv_type_int16_t uint16_t; | |
24985 | #endif | |
24986 | #endif | |
24987 | ||
24988 | #ifndef _UINT32_T | |
24989 | #define _UINT32_T | |
24990 | #ifndef __uint32_t_defined | |
24991 | #define __uint32_t_defined | |
24992 | typedef unsigned $acx_cv_type_int32_t uint32_t; | |
24993 | #endif | |
24994 | #endif | |
24995 | ||
24996 | #ifndef _INT8_T | |
24997 | #define _INT8_T | |
24998 | #ifndef __int8_t_defined | |
24999 | #define __int8_t_defined | |
25000 | typedef $acx_cv_type_int8_t int8_t; | |
25001 | #endif | |
25002 | #endif | |
25003 | ||
25004 | #ifndef _INT16_T | |
25005 | #define _INT16_T | |
25006 | #ifndef __int16_t_defined | |
25007 | #define __int16_t_defined | |
25008 | typedef $acx_cv_type_int16_t int16_t; | |
25009 | #endif | |
25010 | #endif | |
25011 | ||
25012 | #ifndef _INT32_T | |
25013 | #define _INT32_T | |
25014 | #ifndef __int32_t_defined | |
25015 | #define __int32_t_defined | |
25016 | typedef $acx_cv_type_int32_t int32_t; | |
25017 | #endif | |
25018 | #endif | |
25019 | EOF | |
25020 | elif test "$ac_cv_type_u_int32_t" = yes; then | |
25021 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25022 | ||
25023 | /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ | |
25024 | #ifndef _INT8_T | |
25025 | #define _INT8_T | |
25026 | #endif | |
25027 | #ifndef _INT16_T | |
25028 | #define _INT16_T | |
25029 | #endif | |
25030 | #ifndef _INT32_T | |
25031 | #define _INT32_T | |
25032 | #endif | |
25033 | ||
25034 | #ifndef _UINT8_T | |
25035 | #define _UINT8_T | |
25036 | #ifndef __uint8_t_defined | |
25037 | #define __uint8_t_defined | |
25038 | typedef u_int8_t uint8_t; | |
25039 | #endif | |
25040 | #endif | |
25041 | ||
25042 | #ifndef _UINT16_T | |
25043 | #define _UINT16_T | |
25044 | #ifndef __uint16_t_defined | |
25045 | #define __uint16_t_defined | |
25046 | typedef u_int16_t uint16_t; | |
25047 | #endif | |
25048 | #endif | |
25049 | ||
25050 | #ifndef _UINT32_T | |
25051 | #define _UINT32_T | |
25052 | #ifndef __uint32_t_defined | |
25053 | #define __uint32_t_defined | |
25054 | typedef u_int32_t uint32_t; | |
25055 | #endif | |
25056 | #endif | |
25057 | EOF | |
25058 | else | |
25059 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25060 | ||
25061 | /* Some systems have guard macros to prevent redefinitions, define them. */ | |
25062 | #ifndef _INT8_T | |
25063 | #define _INT8_T | |
25064 | #endif | |
25065 | #ifndef _INT16_T | |
25066 | #define _INT16_T | |
25067 | #endif | |
25068 | #ifndef _INT32_T | |
25069 | #define _INT32_T | |
25070 | #endif | |
25071 | #ifndef _UINT8_T | |
25072 | #define _UINT8_T | |
25073 | #endif | |
25074 | #ifndef _UINT16_T | |
25075 | #define _UINT16_T | |
25076 | #endif | |
25077 | #ifndef _UINT32_T | |
25078 | #define _UINT32_T | |
25079 | #endif | |
25080 | EOF | |
25081 | fi | |
25082 | ||
25083 | # ------------- done basic int types, emit int64_t types ------------ | |
25084 | if test "$ac_cv_type_uint64_t" = yes; then | |
25085 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25086 | ||
25087 | /* system headers have good uint64_t and int64_t */ | |
25088 | #ifndef _INT64_T | |
25089 | #define _INT64_T | |
25090 | #endif | |
25091 | #ifndef _UINT64_T | |
25092 | #define _UINT64_T | |
25093 | #endif | |
25094 | EOF | |
25095 | elif test "$ac_cv_type_u_int64_t" = yes; then | |
25096 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25097 | ||
25098 | /* system headers have an u_int64_t (and int64_t) */ | |
25099 | #ifndef _INT64_T | |
25100 | #define _INT64_T | |
25101 | #endif | |
25102 | #ifndef _UINT64_T | |
25103 | #define _UINT64_T | |
25104 | #ifndef __uint64_t_defined | |
25105 | #define __uint64_t_defined | |
25106 | typedef u_int64_t uint64_t; | |
25107 | #endif | |
25108 | #endif | |
25109 | EOF | |
25110 | elif test -n "$acx_cv_type_int64_t"; then | |
25111 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25112 | ||
25113 | /* architecture has a 64-bit type, $acx_cv_type_int64_t */ | |
25114 | #ifndef _INT64_T | |
25115 | #define _INT64_T | |
25116 | typedef $acx_cv_type_int64_t int64_t; | |
25117 | #endif | |
25118 | #ifndef _UINT64_T | |
25119 | #define _UINT64_T | |
25120 | #ifndef __uint64_t_defined | |
25121 | #define __uint64_t_defined | |
25122 | typedef unsigned $acx_cv_type_int64_t uint64_t; | |
25123 | #endif | |
25124 | #endif | |
25125 | EOF | |
25126 | else | |
25127 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25128 | ||
25129 | /* some common heuristics for int64_t, using compiler-specific tests */ | |
25130 | #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L | |
25131 | #ifndef _INT64_T | |
25132 | #define _INT64_T | |
25133 | #ifndef __int64_t_defined | |
25134 | typedef long long int64_t; | |
25135 | #endif | |
25136 | #endif | |
25137 | #ifndef _UINT64_T | |
25138 | #define _UINT64_T | |
25139 | typedef unsigned long long uint64_t; | |
25140 | #endif | |
25141 | ||
25142 | #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 | |
25143 | /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and | |
25144 | does not implement __extension__. But that compiler doesn't define | |
25145 | __GNUC_MINOR__. */ | |
25146 | # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) | |
25147 | # define __extension__ | |
25148 | # endif | |
25149 | ||
25150 | # ifndef _INT64_T | |
25151 | # define _INT64_T | |
25152 | __extension__ typedef long long int64_t; | |
25153 | # endif | |
25154 | # ifndef _UINT64_T | |
25155 | # define _UINT64_T | |
25156 | __extension__ typedef unsigned long long uint64_t; | |
25157 | # endif | |
25158 | ||
25159 | #elif !defined __STRICT_ANSI__ | |
25160 | # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ | |
25161 | ||
25162 | # ifndef _INT64_T | |
25163 | # define _INT64_T | |
25164 | typedef __int64 int64_t; | |
25165 | # endif | |
25166 | # ifndef _UINT64_T | |
25167 | # define _UINT64_T | |
25168 | typedef unsigned __int64 uint64_t; | |
25169 | # endif | |
25170 | # endif /* compiler */ | |
25171 | ||
25172 | #endif /* ANSI version */ | |
25173 | EOF | |
25174 | fi | |
25175 | ||
25176 | # ------------- done int64_t types, emit intptr types ------------ | |
25177 | if test "$ac_cv_type_uintptr_t" != yes; then | |
25178 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25179 | ||
25180 | /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ | |
25181 | #ifndef __uintptr_t_defined | |
25182 | typedef u$acx_cv_type_intptr_t uintptr_t; | |
25183 | #endif | |
25184 | #ifndef __intptr_t_defined | |
25185 | typedef $acx_cv_type_intptr_t intptr_t; | |
25186 | #endif | |
25187 | EOF | |
25188 | fi | |
25189 | ||
25190 | # ------------- done intptr types, emit int_least types ------------ | |
25191 | if test "$ac_cv_type_int_least32_t" != yes; then | |
25192 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25193 | ||
25194 | /* Define int_least types */ | |
25195 | typedef int8_t int_least8_t; | |
25196 | typedef int16_t int_least16_t; | |
25197 | typedef int32_t int_least32_t; | |
25198 | #ifdef _INT64_T | |
25199 | typedef int64_t int_least64_t; | |
25200 | #endif | |
25201 | ||
25202 | typedef uint8_t uint_least8_t; | |
25203 | typedef uint16_t uint_least16_t; | |
25204 | typedef uint32_t uint_least32_t; | |
25205 | #ifdef _UINT64_T | |
25206 | typedef uint64_t uint_least64_t; | |
25207 | #endif | |
25208 | EOF | |
25209 | fi | |
25210 | ||
25211 | # ------------- done intptr types, emit int_fast types ------------ | |
25212 | if test "$ac_cv_type_int_fast32_t" != yes; then | |
25213 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25214 | ||
25215 | /* Define int_fast types. short is often slow */ | |
25216 | typedef int8_t int_fast8_t; | |
25217 | typedef int int_fast16_t; | |
25218 | typedef int32_t int_fast32_t; | |
25219 | #ifdef _INT64_T | |
25220 | typedef int64_t int_fast64_t; | |
25221 | #endif | |
25222 | ||
25223 | typedef uint8_t uint_fast8_t; | |
25224 | typedef unsigned int uint_fast16_t; | |
25225 | typedef uint32_t uint_fast32_t; | |
25226 | #ifdef _UINT64_T | |
25227 | typedef uint64_t uint_fast64_t; | |
25228 | #endif | |
25229 | EOF | |
25230 | fi | |
25231 | ||
25232 | if test "$ac_cv_type_uintmax_t" != yes; then | |
25233 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25234 | ||
25235 | /* Define intmax based on what we found */ | |
25236 | #ifdef _INT64_T | |
25237 | typedef int64_t intmax_t; | |
25238 | #else | |
25239 | typedef long intmax_t; | |
25240 | #endif | |
25241 | #ifdef _UINT64_T | |
25242 | typedef uint64_t uintmax_t; | |
25243 | #else | |
25244 | typedef unsigned long uintmax_t; | |
25245 | #endif | |
25246 | EOF | |
25247 | fi | |
25248 | ||
25249 | sed 's/^ *//' >> tmp-stdint.h <<EOF | |
25250 | ||
25251 | #endif /* GCC_GENERATED_STDINT_H */ | |
25252 | EOF | |
25253 | ||
25254 | if test -r bfd_stdint.h && cmp -s tmp-stdint.h bfd_stdint.h; then | |
25255 | rm -f tmp-stdint.h | |
25256 | else | |
25257 | mv -f tmp-stdint.h bfd_stdint.h | |
25258 | fi | |
25259 | ||
25260 | ;; | |
20e95c23 DJ |
25261 | default ) |
25262 | case "$srcdir" in | |
25263 | .) srcdirpre= ;; | |
25264 | *) srcdirpre='$(srcdir)/' ;; | |
25265 | esac | |
25266 | POFILES= | |
25267 | GMOFILES= | |
25268 | for lang in dummy $OBSOLETE_ALL_LINGUAS; do | |
25269 | if test $lang != dummy; then | |
25270 | POFILES="$POFILES $srcdirpre$lang.po" | |
25271 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
25272 | fi | |
25273 | done | |
25274 | sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \ | |
25275 | -e '/BLD-POTFILES =/r po/BLD-POTFILES' \ | |
25276 | -e "s,@POFILES@,$POFILES," \ | |
25277 | -e "s,@GMOFILES@,$GMOFILES," \ | |
25278 | po/Makefile.in > po/Makefile ;; | |
5464f5a1 NN |
25279 | esac |
25280 | done | |
25281 | _ACEOF | |
25282 | ||
25283 | cat >>$CONFIG_STATUS <<\_ACEOF | |
25284 | ||
25285 | { (exit 0); exit 0; } | |
25286 | _ACEOF | |
252b5132 | 25287 | chmod +x $CONFIG_STATUS |
5464f5a1 NN |
25288 | ac_clean_files=$ac_clean_files_save |
25289 | ||
25290 | ||
25291 | # configure is writing to config.log, and then calls config.status. | |
25292 | # config.status does its own redirection, appending to config.log. | |
25293 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
25294 | # by configure, so config.status won't be able to write to it; its | |
25295 | # output is simply discarded. So we exec the FD to /dev/null, | |
25296 | # effectively closing config.log, so it can be properly (re)opened and | |
25297 | # appended to by config.status. When coming back to configure, we | |
25298 | # need to make the FD available again. | |
25299 | if test "$no_create" != yes; then | |
25300 | ac_cs_success=: | |
25301 | ac_config_status_args= | |
25302 | test "$silent" = yes && | |
25303 | ac_config_status_args="$ac_config_status_args --quiet" | |
25304 | exec 5>/dev/null | |
25305 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
25306 | exec 5>>config.log | |
25307 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
25308 | # would make configure fail if this is the last instruction. | |
25309 | $ac_cs_success || { (exit 1); exit 1; } | |
25310 | fi | |
252b5132 | 25311 | |
55c80943 | 25312 |