Commit | Line | Data |
---|---|---|
252b5132 | 1 | #! /bin/sh |
252b5132 | 2 | # Guess values for system-dependent variables and create Makefiles. |
573fe3fb | 3 | # Generated by GNU Autoconf 2.69 for bfd 2.36.50. |
d0ac1c44 SM |
4 | # |
5 | # | |
6 | # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
81ecdfbb | 7 | # |
252b5132 RH |
8 | # |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
81ecdfbb RW |
11 | ## -------------------- ## |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
5464f5a1 | 14 | |
81ecdfbb RW |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh | |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
5464f5a1 NN |
18 | emulate sh |
19 | NULLCMD=: | |
81ecdfbb | 20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
5464f5a1 NN |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
23 | setopt NO_GLOB_SUBST |
24 | else | |
25 | case `(set -o) 2>/dev/null` in #( | |
26 | *posix*) : | |
27 | set -o posix ;; #( | |
28 | *) : | |
29 | ;; | |
30 | esac | |
5464f5a1 | 31 | fi |
5464f5a1 | 32 | |
81ecdfbb RW |
33 | |
34 | as_nl=' | |
35 | ' | |
36 | export as_nl | |
37 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
38 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
39 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
40 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
41 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
42 | # but without wasting forks for bash or zsh. | |
43 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
44 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
45 | as_echo='print -r --' | |
46 | as_echo_n='print -rn --' | |
47 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
48 | as_echo='printf %s\n' | |
49 | as_echo_n='printf %s' | |
50 | else | |
51 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
52 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
53 | as_echo_n='/usr/ucb/echo -n' | |
54 | else | |
55 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
56 | as_echo_n_body='eval | |
57 | arg=$1; | |
58 | case $arg in #( | |
59 | *"$as_nl"*) | |
60 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
61 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
62 | esac; | |
63 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
64 | ' | |
65 | export as_echo_n_body | |
66 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
67 | fi | |
68 | export as_echo_body | |
69 | as_echo='sh -c $as_echo_body as_echo' | |
70 | fi | |
71 | ||
72 | # The user is always right. | |
73 | if test "${PATH_SEPARATOR+set}" != set; then | |
74 | PATH_SEPARATOR=: | |
75 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
76 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
77 | PATH_SEPARATOR=';' | |
78 | } | |
5464f5a1 NN |
79 | fi |
80 | ||
81 | ||
81ecdfbb RW |
82 | # IFS |
83 | # We need space, tab and new line, in precisely that order. Quoting is | |
84 | # there to prevent editors from complaining about space-tab. | |
85 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
86 | # splitting by setting IFS to empty value.) | |
87 | IFS=" "" $as_nl" | |
88 | ||
89 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 90 | as_myself= |
81ecdfbb RW |
91 | case $0 in #(( |
92 | *[\\/]* ) as_myself=$0 ;; | |
93 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 | for as_dir in $PATH | |
95 | do | |
96 | IFS=$as_save_IFS | |
97 | test -z "$as_dir" && as_dir=. | |
98 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 | done | |
100 | IFS=$as_save_IFS | |
101 | ||
102 | ;; | |
103 | esac | |
104 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 | # in which case we are not to be found in the path. | |
106 | if test "x$as_myself" = x; then | |
107 | as_myself=$0 | |
108 | fi | |
109 | if test ! -f "$as_myself"; then | |
110 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 | exit 1 | |
112 | fi | |
113 | ||
114 | # Unset variables that we do not need and which cause bugs (e.g. in | |
115 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 | # suppresses any "Segmentation fault" message there. '((' could | |
117 | # trigger a bug in pdksh 5.2.14. | |
118 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 | do eval test x\${$as_var+set} = xset \ | |
120 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 | done | |
5464f5a1 NN |
122 | PS1='$ ' |
123 | PS2='> ' | |
124 | PS4='+ ' | |
125 | ||
126 | # NLS nuisances. | |
81ecdfbb RW |
127 | LC_ALL=C |
128 | export LC_ALL | |
129 | LANGUAGE=C | |
130 | export LANGUAGE | |
131 | ||
132 | # CDPATH. | |
133 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | ||
d0ac1c44 SM |
135 | # Use a proper internal environment variable to ensure we don't fall |
136 | # into an infinite loop, continuously re-executing ourselves. | |
137 | if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 | _as_can_reexec=no; export _as_can_reexec; | |
139 | # We cannot yet assume a decent shell, so we have to provide a | |
140 | # neutralization value for shells without unset; and this also | |
141 | # works around shells that cannot unset nonexistent variables. | |
142 | # Preserve -v and -x to the replacement shell. | |
143 | BASH_ENV=/dev/null | |
144 | ENV=/dev/null | |
145 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 | case $- in # (((( | |
147 | *v*x* | *x*v* ) as_opts=-vx ;; | |
148 | *v* ) as_opts=-v ;; | |
149 | *x* ) as_opts=-x ;; | |
150 | * ) as_opts= ;; | |
151 | esac | |
152 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 | # Admittedly, this is quite paranoid, since all the known shells bail | |
154 | # out after a failed `exec'. | |
155 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 | as_fn_exit 255 | |
157 | fi | |
158 | # We don't want this to propagate to other subprocesses. | |
159 | { _as_can_reexec=; unset _as_can_reexec;} | |
81ecdfbb RW |
160 | if test "x$CONFIG_SHELL" = x; then |
161 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 | emulate sh | |
163 | NULLCMD=: | |
164 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 | # is contrary to our usage. Disable this feature. | |
166 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 | setopt NO_GLOB_SUBST | |
168 | else | |
169 | case \`(set -o) 2>/dev/null\` in #( | |
170 | *posix*) : | |
171 | set -o posix ;; #( | |
172 | *) : | |
173 | ;; | |
174 | esac | |
175 | fi | |
176 | " | |
177 | as_required="as_fn_return () { (exit \$1); } | |
178 | as_fn_success () { as_fn_return 0; } | |
179 | as_fn_failure () { as_fn_return 1; } | |
180 | as_fn_ret_success () { return 0; } | |
181 | as_fn_ret_failure () { return 1; } | |
182 | ||
183 | exitcode=0 | |
184 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | ||
190 | else | |
191 | exitcode=1; echo positional parameters were not saved. | |
192 | fi | |
d0ac1c44 SM |
193 | test x\$exitcode = x0 || exit 1 |
194 | test -x / || exit 1" | |
81ecdfbb RW |
195 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
196 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
198 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
3725885a RW |
199 | test \$(( 1 + 1 )) = 2 || exit 1 |
200 | ||
201 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
202 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
203 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
204 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
205 | PATH=/empty FPATH=/empty; export PATH FPATH | |
206 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
207 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" | |
81ecdfbb RW |
208 | if (eval "$as_required") 2>/dev/null; then : |
209 | as_have_required=yes | |
210 | else | |
211 | as_have_required=no | |
212 | fi | |
213 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
214 | ||
215 | else | |
216 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
217 | as_found=false | |
218 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
5464f5a1 | 219 | do |
81ecdfbb RW |
220 | IFS=$as_save_IFS |
221 | test -z "$as_dir" && as_dir=. | |
222 | as_found=: | |
223 | case $as_dir in #( | |
224 | /*) | |
225 | for as_base in sh bash ksh sh5; do | |
226 | # Try only shells that exist, to save several forks. | |
227 | as_shell=$as_dir/$as_base | |
228 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
229 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
230 | CONFIG_SHELL=$as_shell as_have_required=yes | |
231 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 | break 2 | |
233 | fi | |
234 | fi | |
235 | done;; | |
236 | esac | |
237 | as_found=false | |
238 | done | |
239 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
240 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
241 | CONFIG_SHELL=$SHELL as_have_required=yes | |
242 | fi; } | |
243 | IFS=$as_save_IFS | |
244 | ||
245 | ||
246 | if test "x$CONFIG_SHELL" != x; then : | |
d0ac1c44 SM |
247 | export CONFIG_SHELL |
248 | # We cannot yet assume a decent shell, so we have to provide a | |
249 | # neutralization value for shells without unset; and this also | |
250 | # works around shells that cannot unset nonexistent variables. | |
251 | # Preserve -v and -x to the replacement shell. | |
252 | BASH_ENV=/dev/null | |
253 | ENV=/dev/null | |
254 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
255 | case $- in # (((( | |
256 | *v*x* | *x*v* ) as_opts=-vx ;; | |
257 | *v* ) as_opts=-v ;; | |
258 | *x* ) as_opts=-x ;; | |
259 | * ) as_opts= ;; | |
260 | esac | |
261 | exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
262 | # Admittedly, this is quite paranoid, since all the known shells bail | |
263 | # out after a failed `exec'. | |
264 | $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
265 | exit 255 | |
81ecdfbb RW |
266 | fi |
267 | ||
268 | if test x$as_have_required = xno; then : | |
269 | $as_echo "$0: This script requires a shell more modern than all" | |
270 | $as_echo "$0: the shells that I found on your system." | |
271 | if test x${ZSH_VERSION+set} = xset ; then | |
272 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
273 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
5464f5a1 | 274 | else |
81ecdfbb RW |
275 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
276 | $0: including any error possibly output before this | |
277 | $0: message. Then install a modern shell, or manually run | |
278 | $0: the script under such a shell if you do have one." | |
5464f5a1 | 279 | fi |
81ecdfbb RW |
280 | exit 1 |
281 | fi | |
282 | fi | |
283 | fi | |
284 | SHELL=${CONFIG_SHELL-/bin/sh} | |
285 | export SHELL | |
286 | # Unset more variables known to interfere with behavior of common tools. | |
287 | CLICOLOR_FORCE= GREP_OPTIONS= | |
288 | unset CLICOLOR_FORCE GREP_OPTIONS | |
289 | ||
290 | ## --------------------- ## | |
291 | ## M4sh Shell Functions. ## | |
292 | ## --------------------- ## | |
293 | # as_fn_unset VAR | |
294 | # --------------- | |
295 | # Portably unset VAR. | |
296 | as_fn_unset () | |
297 | { | |
298 | { eval $1=; unset $1;} | |
299 | } | |
300 | as_unset=as_fn_unset | |
301 | ||
302 | # as_fn_set_status STATUS | |
303 | # ----------------------- | |
304 | # Set $? to STATUS, without forking. | |
305 | as_fn_set_status () | |
306 | { | |
307 | return $1 | |
308 | } # as_fn_set_status | |
309 | ||
310 | # as_fn_exit STATUS | |
311 | # ----------------- | |
312 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
313 | as_fn_exit () | |
314 | { | |
315 | set +e | |
316 | as_fn_set_status $1 | |
317 | exit $1 | |
318 | } # as_fn_exit | |
319 | ||
320 | # as_fn_mkdir_p | |
321 | # ------------- | |
322 | # Create "$as_dir" as a directory, including parents if necessary. | |
323 | as_fn_mkdir_p () | |
324 | { | |
325 | ||
326 | case $as_dir in #( | |
327 | -*) as_dir=./$as_dir;; | |
328 | esac | |
329 | test -d "$as_dir" || eval $as_mkdir_p || { | |
330 | as_dirs= | |
331 | while :; do | |
332 | case $as_dir in #( | |
333 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
334 | *) as_qdir=$as_dir;; | |
335 | esac | |
336 | as_dirs="'$as_qdir' $as_dirs" | |
337 | as_dir=`$as_dirname -- "$as_dir" || | |
338 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
339 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
340 | X"$as_dir" : 'X\(//\)$' \| \ | |
341 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
342 | $as_echo X"$as_dir" | | |
343 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
344 | s//\1/ | |
345 | q | |
346 | } | |
347 | /^X\(\/\/\)[^/].*/{ | |
348 | s//\1/ | |
349 | q | |
350 | } | |
351 | /^X\(\/\/\)$/{ | |
352 | s//\1/ | |
353 | q | |
354 | } | |
355 | /^X\(\/\).*/{ | |
356 | s//\1/ | |
357 | q | |
358 | } | |
359 | s/.*/./; q'` | |
360 | test -d "$as_dir" && break | |
361 | done | |
362 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 363 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb RW |
364 | |
365 | ||
366 | } # as_fn_mkdir_p | |
d0ac1c44 SM |
367 | |
368 | # as_fn_executable_p FILE | |
369 | # ----------------------- | |
370 | # Test if FILE is an executable regular file. | |
371 | as_fn_executable_p () | |
372 | { | |
373 | test -f "$1" && test -x "$1" | |
374 | } # as_fn_executable_p | |
81ecdfbb RW |
375 | # as_fn_append VAR VALUE |
376 | # ---------------------- | |
377 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
378 | # advantage of any shell optimizations that allow amortized linear growth over | |
379 | # repeated appends, instead of the typical quadratic growth present in naive | |
380 | # implementations. | |
381 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
382 | eval 'as_fn_append () | |
383 | { | |
384 | eval $1+=\$2 | |
385 | }' | |
386 | else | |
387 | as_fn_append () | |
388 | { | |
389 | eval $1=\$$1\$2 | |
390 | } | |
391 | fi # as_fn_append | |
392 | ||
393 | # as_fn_arith ARG... | |
394 | # ------------------ | |
395 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
396 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
397 | # must be portable across $(()) and expr. | |
398 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
399 | eval 'as_fn_arith () | |
400 | { | |
401 | as_val=$(( $* )) | |
402 | }' | |
403 | else | |
404 | as_fn_arith () | |
405 | { | |
406 | as_val=`expr "$@" || test $? -eq 1` | |
407 | } | |
408 | fi # as_fn_arith | |
409 | ||
5464f5a1 | 410 | |
d0ac1c44 SM |
411 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
412 | # ---------------------------------------- | |
81ecdfbb RW |
413 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
414 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 415 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
416 | as_fn_error () |
417 | { | |
d0ac1c44 SM |
418 | as_status=$1; test $as_status -eq 0 && as_status=1 |
419 | if test "$4"; then | |
420 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
421 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
81ecdfbb | 422 | fi |
d0ac1c44 | 423 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
424 | as_fn_exit $as_status |
425 | } # as_fn_error | |
426 | ||
427 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
428 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
5464f5a1 NN |
429 | as_expr=expr |
430 | else | |
431 | as_expr=false | |
432 | fi | |
433 | ||
81ecdfbb | 434 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
5464f5a1 NN |
435 | as_basename=basename |
436 | else | |
437 | as_basename=false | |
438 | fi | |
439 | ||
81ecdfbb RW |
440 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
441 | as_dirname=dirname | |
442 | else | |
443 | as_dirname=false | |
444 | fi | |
5464f5a1 | 445 | |
81ecdfbb | 446 | as_me=`$as_basename -- "$0" || |
5464f5a1 NN |
447 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
448 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
449 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
450 | $as_echo X/"$0" | | |
451 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
452 | s//\1/ | |
453 | q | |
454 | } | |
455 | /^X\/\(\/\/\)$/{ | |
456 | s//\1/ | |
457 | q | |
458 | } | |
459 | /^X\/\(\/\).*/{ | |
460 | s//\1/ | |
461 | q | |
462 | } | |
463 | s/.*/./; q'` | |
5464f5a1 | 464 | |
5464f5a1 NN |
465 | # Avoid depending upon Character Ranges. |
466 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
467 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
468 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
469 | as_cr_digits='0123456789' | |
470 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
471 | ||
5464f5a1 | 472 | |
81ecdfbb RW |
473 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
474 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
475 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
476 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
477 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
478 | sed -n ' | |
479 | p | |
480 | /[$]LINENO/= | |
481 | ' <$as_myself | | |
5464f5a1 | 482 | sed ' |
81ecdfbb RW |
483 | s/[$]LINENO.*/&-/ |
484 | t lineno | |
485 | b | |
486 | :lineno | |
5464f5a1 | 487 | N |
81ecdfbb RW |
488 | :loop |
489 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
5464f5a1 | 490 | t loop |
81ecdfbb | 491 | s/-\n.*// |
5464f5a1 | 492 | ' >$as_me.lineno && |
81ecdfbb RW |
493 | chmod +x "$as_me.lineno" || |
494 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
5464f5a1 | 495 | |
d0ac1c44 SM |
496 | # If we had to re-execute with $CONFIG_SHELL, we're ensured to have |
497 | # already done that, so ensure we don't try to do so again and fall | |
498 | # in an infinite loop. This has already happened in practice. | |
499 | _as_can_reexec=no; export _as_can_reexec | |
5464f5a1 NN |
500 | # Don't try to exec as it changes $[0], causing all sort of problems |
501 | # (the dirname of $[0] is not the place where we might find the | |
81ecdfbb RW |
502 | # original and so on. Autoconf is especially sensitive to this). |
503 | . "./$as_me.lineno" | |
5464f5a1 NN |
504 | # Exit status is that of the last command. |
505 | exit | |
506 | } | |
507 | ||
81ecdfbb RW |
508 | ECHO_C= ECHO_N= ECHO_T= |
509 | case `echo -n x` in #((((( | |
510 | -n*) | |
511 | case `echo 'xy\c'` in | |
512 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
513 | xy) ECHO_C='\c';; | |
514 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
515 | ECHO_T=' ';; | |
516 | esac;; | |
517 | *) | |
518 | ECHO_N='-n';; | |
5464f5a1 NN |
519 | esac |
520 | ||
81ecdfbb RW |
521 | rm -f conf$$ conf$$.exe conf$$.file |
522 | if test -d conf$$.dir; then | |
523 | rm -f conf$$.dir/conf$$.file | |
5464f5a1 | 524 | else |
81ecdfbb RW |
525 | rm -f conf$$.dir |
526 | mkdir conf$$.dir 2>/dev/null | |
5464f5a1 | 527 | fi |
81ecdfbb RW |
528 | if (echo >conf$$.file) 2>/dev/null; then |
529 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
5464f5a1 | 530 | as_ln_s='ln -s' |
81ecdfbb RW |
531 | # ... but there are two gotchas: |
532 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
533 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 534 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 535 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 536 | as_ln_s='cp -pR' |
81ecdfbb RW |
537 | elif ln conf$$.file conf$$ 2>/dev/null; then |
538 | as_ln_s=ln | |
539 | else | |
d0ac1c44 | 540 | as_ln_s='cp -pR' |
5464f5a1 | 541 | fi |
5464f5a1 | 542 | else |
d0ac1c44 | 543 | as_ln_s='cp -pR' |
5464f5a1 | 544 | fi |
81ecdfbb RW |
545 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
546 | rmdir conf$$.dir 2>/dev/null | |
5464f5a1 NN |
547 | |
548 | if mkdir -p . 2>/dev/null; then | |
81ecdfbb | 549 | as_mkdir_p='mkdir -p "$as_dir"' |
5464f5a1 NN |
550 | else |
551 | test -d ./-p && rmdir ./-p | |
552 | as_mkdir_p=false | |
553 | fi | |
554 | ||
d0ac1c44 SM |
555 | as_test_x='test -x' |
556 | as_executable_p=as_fn_executable_p | |
5464f5a1 NN |
557 | |
558 | # Sed expression to map a string onto a valid CPP name. | |
559 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
560 | ||
561 | # Sed expression to map a string onto a valid variable name. | |
562 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
563 | ||
d7040cdb SE |
564 | SHELL=${CONFIG_SHELL-/bin/sh} |
565 | ||
d7040cdb | 566 | |
d0ac1c44 SM |
567 | test -n "$DJDIR" || exec 7<&0 </dev/null |
568 | exec 6>&1 | |
81ecdfbb | 569 | |
5464f5a1 | 570 | # Name of the host. |
d0ac1c44 | 571 | # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, |
5464f5a1 NN |
572 | # so uname gets run too. |
573 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
252b5132 | 574 | |
5464f5a1 NN |
575 | # |
576 | # Initializations. | |
577 | # | |
252b5132 | 578 | ac_default_prefix=/usr/local |
81ecdfbb | 579 | ac_clean_files= |
5464f5a1 | 580 | ac_config_libobj_dir=. |
81ecdfbb | 581 | LIBOBJS= |
5464f5a1 NN |
582 | cross_compiling=no |
583 | subdirs= | |
584 | MFLAGS= | |
585 | MAKEFLAGS= | |
5464f5a1 NN |
586 | |
587 | # Identity of this package. | |
c4dd807e MF |
588 | PACKAGE_NAME='bfd' |
589 | PACKAGE_TARNAME='bfd' | |
573fe3fb NC |
590 | PACKAGE_VERSION='2.36.50' |
591 | PACKAGE_STRING='bfd 2.36.50' | |
c4dd807e MF |
592 | PACKAGE_BUGREPORT='' |
593 | PACKAGE_URL='' | |
5464f5a1 NN |
594 | |
595 | ac_unique_file="libbfd.c" | |
596 | # Factoring default headers for most tests. | |
597 | ac_includes_default="\ | |
598 | #include <stdio.h> | |
81ecdfbb | 599 | #ifdef HAVE_SYS_TYPES_H |
5464f5a1 NN |
600 | # include <sys/types.h> |
601 | #endif | |
81ecdfbb | 602 | #ifdef HAVE_SYS_STAT_H |
5464f5a1 NN |
603 | # include <sys/stat.h> |
604 | #endif | |
81ecdfbb | 605 | #ifdef STDC_HEADERS |
5464f5a1 NN |
606 | # include <stdlib.h> |
607 | # include <stddef.h> | |
608 | #else | |
81ecdfbb | 609 | # ifdef HAVE_STDLIB_H |
5464f5a1 NN |
610 | # include <stdlib.h> |
611 | # endif | |
612 | #endif | |
81ecdfbb RW |
613 | #ifdef HAVE_STRING_H |
614 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
5464f5a1 NN |
615 | # include <memory.h> |
616 | # endif | |
617 | # include <string.h> | |
618 | #endif | |
81ecdfbb | 619 | #ifdef HAVE_STRINGS_H |
5464f5a1 NN |
620 | # include <strings.h> |
621 | #endif | |
81ecdfbb | 622 | #ifdef HAVE_INTTYPES_H |
5464f5a1 | 623 | # include <inttypes.h> |
5464f5a1 | 624 | #endif |
81ecdfbb RW |
625 | #ifdef HAVE_STDINT_H |
626 | # include <stdint.h> | |
627 | #endif | |
628 | #ifdef HAVE_UNISTD_H | |
5464f5a1 NN |
629 | # include <unistd.h> |
630 | #endif" | |
631 | ||
d0ac1c44 | 632 | ac_header_list= |
81ecdfbb RW |
633 | ac_subst_vars='am__EXEEXT_FALSE |
634 | am__EXEEXT_TRUE | |
635 | LTLIBOBJS | |
636 | LIBOBJS | |
81ecdfbb RW |
637 | bfd_ufile_ptr |
638 | bfd_file_ptr | |
3cf9e6c4 | 639 | lt_cv_dlopen_libs |
81ecdfbb | 640 | supports_plugins |
c603b11b AM |
641 | COREFLAG |
642 | COREFILE | |
643 | havevecs | |
644 | tdefaults | |
81ecdfbb RW |
645 | bfd_default_target_size |
646 | bfd_machines | |
647 | bfd_backends | |
648 | all_backends | |
649 | bfd64_libs | |
650 | wordsize | |
651 | TDEFINES | |
652 | SHARED_LIBADD | |
653 | SHARED_LDFLAGS | |
654 | LIBM | |
243340ad L |
655 | zlibinc |
656 | zlibdir | |
81ecdfbb RW |
657 | EXEEXT_FOR_BUILD |
658 | CC_FOR_BUILD | |
659 | BFD_HOSTPTR_T | |
660 | BFD_HOST_U_64_BIT | |
661 | BFD_HOST_64_BIT | |
662 | BFD_HOST_64_BIT_DEFINED | |
663 | BFD_HOST_64BIT_LONG_LONG | |
664 | BFD_HOST_64BIT_LONG | |
665 | HDEFINES | |
666 | MSGMERGE | |
667 | MSGFMT | |
668 | MKINSTALLDIRS | |
669 | CATOBJEXT | |
670 | GENCAT | |
671 | INSTOBJEXT | |
672 | DATADIRNAME | |
673 | CATALOGS | |
674 | POSUB | |
675 | GMSGFMT | |
676 | XGETTEXT | |
677 | INCINTL | |
678 | LIBINTL_DEP | |
679 | LIBINTL | |
680 | USE_NLS | |
681 | bfdincludedir | |
682 | bfdlibdir | |
683 | target_noncanonical | |
684 | host_noncanonical | |
685 | INSTALL_LIBBFD_FALSE | |
686 | INSTALL_LIBBFD_TRUE | |
687 | GENINSRC_NEVER_FALSE | |
688 | GENINSRC_NEVER_TRUE | |
689 | MAINT | |
690 | MAINTAINER_MODE_FALSE | |
691 | MAINTAINER_MODE_TRUE | |
6757cf57 | 692 | WARN_WRITE_STRINGS |
81ecdfbb | 693 | NO_WERROR |
c5da1932 | 694 | WARN_CFLAGS_FOR_BUILD |
81ecdfbb RW |
695 | WARN_CFLAGS |
696 | REPORT_BUGS_TEXI | |
697 | REPORT_BUGS_TO | |
698 | PKGVERSION | |
699 | DEBUGDIR | |
700 | PLUGINS_FALSE | |
701 | PLUGINS_TRUE | |
c8693053 | 702 | LARGEFILE_CPPFLAGS |
81ecdfbb RW |
703 | OTOOL64 |
704 | OTOOL | |
705 | LIPO | |
706 | NMEDIT | |
707 | DSYMUTIL | |
81ecdfbb RW |
708 | OBJDUMP |
709 | LN_S | |
710 | NM | |
711 | ac_ct_DUMPBIN | |
712 | DUMPBIN | |
713 | LD | |
714 | FGREP | |
715 | SED | |
716 | LIBTOOL | |
717 | EGREP | |
718 | GREP | |
719 | CPP | |
81ecdfbb RW |
720 | am__fastdepCC_FALSE |
721 | am__fastdepCC_TRUE | |
722 | CCDEPMODE | |
6eb7d830 | 723 | am__nodep |
81ecdfbb RW |
724 | AMDEPBACKSLASH |
725 | AMDEP_FALSE | |
726 | AMDEP_TRUE | |
727 | am__quote | |
728 | am__include | |
729 | DEPDIR | |
83c79df8 AM |
730 | OBJEXT |
731 | EXEEXT | |
732 | ac_ct_CC | |
733 | CPPFLAGS | |
734 | LDFLAGS | |
735 | CFLAGS | |
736 | CC | |
737 | RANLIB | |
738 | AR | |
739 | AM_BACKSLASH | |
740 | AM_DEFAULT_VERBOSITY | |
741 | AM_DEFAULT_V | |
742 | AM_V | |
81ecdfbb RW |
743 | am__untar |
744 | am__tar | |
745 | AMTAR | |
746 | am__leading_dot | |
747 | SET_MAKE | |
748 | AWK | |
749 | mkdir_p | |
750 | MKDIR_P | |
751 | INSTALL_STRIP_PROGRAM | |
752 | STRIP | |
753 | install_sh | |
754 | MAKEINFO | |
755 | AUTOHEADER | |
756 | AUTOMAKE | |
757 | AUTOCONF | |
758 | ACLOCAL | |
759 | VERSION | |
760 | PACKAGE | |
761 | CYGPATH_W | |
762 | am__isrc | |
763 | INSTALL_DATA | |
764 | INSTALL_SCRIPT | |
765 | INSTALL_PROGRAM | |
81ecdfbb RW |
766 | target_os |
767 | target_vendor | |
768 | target_cpu | |
769 | target | |
770 | host_os | |
771 | host_vendor | |
772 | host_cpu | |
773 | host | |
774 | build_os | |
775 | build_vendor | |
776 | build_cpu | |
777 | build | |
778 | target_alias | |
779 | host_alias | |
780 | build_alias | |
781 | LIBS | |
782 | ECHO_T | |
783 | ECHO_N | |
784 | ECHO_C | |
785 | DEFS | |
786 | mandir | |
787 | localedir | |
788 | libdir | |
789 | psdir | |
790 | pdfdir | |
791 | dvidir | |
792 | htmldir | |
793 | infodir | |
794 | docdir | |
795 | oldincludedir | |
796 | includedir | |
797 | localstatedir | |
798 | sharedstatedir | |
799 | sysconfdir | |
800 | datadir | |
801 | datarootdir | |
802 | libexecdir | |
803 | sbindir | |
804 | bindir | |
805 | program_transform_name | |
806 | prefix | |
807 | exec_prefix | |
808 | PACKAGE_URL | |
809 | PACKAGE_BUGREPORT | |
810 | PACKAGE_STRING | |
811 | PACKAGE_VERSION | |
812 | PACKAGE_TARNAME | |
813 | PACKAGE_NAME | |
814 | PATH_SEPARATOR | |
815 | SHELL' | |
5464f5a1 | 816 | ac_subst_files='' |
81ecdfbb RW |
817 | ac_user_opts=' |
818 | enable_option_checking | |
d0ac1c44 | 819 | enable_silent_rules |
81ecdfbb | 820 | enable_shared |
83c79df8 | 821 | enable_dependency_tracking |
81ecdfbb RW |
822 | enable_static |
823 | with_pic | |
824 | enable_fast_install | |
825 | with_gnu_ld | |
826 | enable_libtool_lock | |
827 | enable_plugins | |
828 | enable_largefile | |
829 | enable_64_bit_bfd | |
830 | enable_targets | |
e6cc316a | 831 | enable_64_bit_archive |
81ecdfbb RW |
832 | with_mmap |
833 | enable_secureplt | |
f6aec96d | 834 | enable_separate_code |
ef72a554 | 835 | enable_leading_mingw64_underscores |
81ecdfbb | 836 | with_separate_debug_dir |
81ecdfbb RW |
837 | with_pkgversion |
838 | with_bugurl | |
839 | enable_werror | |
840 | enable_build_warnings | |
841 | enable_maintainer_mode | |
842 | enable_install_libbfd | |
843 | enable_nls | |
243340ad | 844 | with_system_zlib |
81ecdfbb RW |
845 | ' |
846 | ac_precious_vars='build_alias | |
847 | host_alias | |
848 | target_alias | |
849 | CC | |
850 | CFLAGS | |
851 | LDFLAGS | |
852 | LIBS | |
853 | CPPFLAGS | |
854 | CPP' | |
855 | ||
252b5132 RH |
856 | |
857 | # Initialize some variables set by options. | |
5464f5a1 NN |
858 | ac_init_help= |
859 | ac_init_version=false | |
81ecdfbb RW |
860 | ac_unrecognized_opts= |
861 | ac_unrecognized_sep= | |
252b5132 RH |
862 | # The variables have the same names as the options, with |
863 | # dashes changed to underlines. | |
5464f5a1 | 864 | cache_file=/dev/null |
252b5132 | 865 | exec_prefix=NONE |
252b5132 | 866 | no_create= |
252b5132 RH |
867 | no_recursion= |
868 | prefix=NONE | |
869 | program_prefix=NONE | |
870 | program_suffix=NONE | |
871 | program_transform_name=s,x,x, | |
872 | silent= | |
873 | site= | |
874 | srcdir= | |
252b5132 RH |
875 | verbose= |
876 | x_includes=NONE | |
877 | x_libraries=NONE | |
5464f5a1 NN |
878 | |
879 | # Installation directory options. | |
880 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
881 | # and all the variables that are supposed to be based on exec_prefix | |
882 | # by default will actually change. | |
883 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
81ecdfbb | 884 | # (The list follows the same order as the GNU Coding Standards.) |
252b5132 RH |
885 | bindir='${exec_prefix}/bin' |
886 | sbindir='${exec_prefix}/sbin' | |
887 | libexecdir='${exec_prefix}/libexec' | |
81ecdfbb RW |
888 | datarootdir='${prefix}/share' |
889 | datadir='${datarootdir}' | |
252b5132 RH |
890 | sysconfdir='${prefix}/etc' |
891 | sharedstatedir='${prefix}/com' | |
892 | localstatedir='${prefix}/var' | |
252b5132 RH |
893 | includedir='${prefix}/include' |
894 | oldincludedir='/usr/include' | |
c4dd807e | 895 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
81ecdfbb RW |
896 | infodir='${datarootdir}/info' |
897 | htmldir='${docdir}' | |
898 | dvidir='${docdir}' | |
899 | pdfdir='${docdir}' | |
900 | psdir='${docdir}' | |
901 | libdir='${exec_prefix}/lib' | |
902 | localedir='${datarootdir}/locale' | |
903 | mandir='${datarootdir}/man' | |
252b5132 | 904 | |
252b5132 | 905 | ac_prev= |
81ecdfbb | 906 | ac_dashdash= |
252b5132 RH |
907 | for ac_option |
908 | do | |
252b5132 RH |
909 | # If the previous option needs an argument, assign it. |
910 | if test -n "$ac_prev"; then | |
81ecdfbb | 911 | eval $ac_prev=\$ac_option |
252b5132 RH |
912 | ac_prev= |
913 | continue | |
914 | fi | |
915 | ||
81ecdfbb | 916 | case $ac_option in |
d0ac1c44 SM |
917 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
918 | *=) ac_optarg= ;; | |
919 | *) ac_optarg=yes ;; | |
81ecdfbb | 920 | esac |
252b5132 RH |
921 | |
922 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
923 | ||
81ecdfbb RW |
924 | case $ac_dashdash$ac_option in |
925 | --) | |
926 | ac_dashdash=yes ;; | |
252b5132 RH |
927 | |
928 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
929 | ac_prev=bindir ;; | |
930 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
5464f5a1 | 931 | bindir=$ac_optarg ;; |
252b5132 RH |
932 | |
933 | -build | --build | --buil | --bui | --bu) | |
5464f5a1 | 934 | ac_prev=build_alias ;; |
252b5132 | 935 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
5464f5a1 | 936 | build_alias=$ac_optarg ;; |
252b5132 RH |
937 | |
938 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
939 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
940 | ac_prev=cache_file ;; | |
941 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
942 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
5464f5a1 NN |
943 | cache_file=$ac_optarg ;; |
944 | ||
945 | --config-cache | -C) | |
946 | cache_file=config.cache ;; | |
252b5132 | 947 | |
81ecdfbb | 948 | -datadir | --datadir | --datadi | --datad) |
252b5132 | 949 | ac_prev=datadir ;; |
81ecdfbb | 950 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
5464f5a1 | 951 | datadir=$ac_optarg ;; |
252b5132 | 952 | |
81ecdfbb RW |
953 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
954 | | --dataroo | --dataro | --datar) | |
955 | ac_prev=datarootdir ;; | |
956 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
957 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
958 | datarootdir=$ac_optarg ;; | |
959 | ||
252b5132 | 960 | -disable-* | --disable-*) |
81ecdfbb | 961 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
252b5132 | 962 | # Reject names that are not valid shell variable names. |
81ecdfbb | 963 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 964 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
965 | ac_useropt_orig=$ac_useropt |
966 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
967 | case $ac_user_opts in | |
968 | *" | |
969 | "enable_$ac_useropt" | |
970 | "*) ;; | |
971 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
972 | ac_unrecognized_sep=', ';; | |
973 | esac | |
974 | eval enable_$ac_useropt=no ;; | |
975 | ||
976 | -docdir | --docdir | --docdi | --doc | --do) | |
977 | ac_prev=docdir ;; | |
978 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
979 | docdir=$ac_optarg ;; | |
980 | ||
981 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
982 | ac_prev=dvidir ;; | |
983 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
984 | dvidir=$ac_optarg ;; | |
252b5132 RH |
985 | |
986 | -enable-* | --enable-*) | |
81ecdfbb | 987 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
252b5132 | 988 | # Reject names that are not valid shell variable names. |
81ecdfbb | 989 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 990 | as_fn_error $? "invalid feature name: $ac_useropt" |
81ecdfbb RW |
991 | ac_useropt_orig=$ac_useropt |
992 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
993 | case $ac_user_opts in | |
994 | *" | |
995 | "enable_$ac_useropt" | |
996 | "*) ;; | |
997 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
998 | ac_unrecognized_sep=', ';; | |
252b5132 | 999 | esac |
81ecdfbb | 1000 | eval enable_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1001 | |
1002 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1003 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1004 | | --exec | --exe | --ex) | |
1005 | ac_prev=exec_prefix ;; | |
1006 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1007 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1008 | | --exec=* | --exe=* | --ex=*) | |
5464f5a1 | 1009 | exec_prefix=$ac_optarg ;; |
252b5132 RH |
1010 | |
1011 | -gas | --gas | --ga | --g) | |
1012 | # Obsolete; use --with-gas. | |
1013 | with_gas=yes ;; | |
1014 | ||
5464f5a1 NN |
1015 | -help | --help | --hel | --he | -h) |
1016 | ac_init_help=long ;; | |
1017 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1018 | ac_init_help=recursive ;; | |
1019 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1020 | ac_init_help=short ;; | |
252b5132 RH |
1021 | |
1022 | -host | --host | --hos | --ho) | |
5464f5a1 | 1023 | ac_prev=host_alias ;; |
252b5132 | 1024 | -host=* | --host=* | --hos=* | --ho=*) |
5464f5a1 | 1025 | host_alias=$ac_optarg ;; |
252b5132 | 1026 | |
81ecdfbb RW |
1027 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1028 | ac_prev=htmldir ;; | |
1029 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1030 | | --ht=*) | |
1031 | htmldir=$ac_optarg ;; | |
1032 | ||
252b5132 RH |
1033 | -includedir | --includedir | --includedi | --included | --include \ |
1034 | | --includ | --inclu | --incl | --inc) | |
1035 | ac_prev=includedir ;; | |
1036 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1037 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
5464f5a1 | 1038 | includedir=$ac_optarg ;; |
252b5132 RH |
1039 | |
1040 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1041 | ac_prev=infodir ;; | |
1042 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
5464f5a1 | 1043 | infodir=$ac_optarg ;; |
252b5132 RH |
1044 | |
1045 | -libdir | --libdir | --libdi | --libd) | |
1046 | ac_prev=libdir ;; | |
1047 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
5464f5a1 | 1048 | libdir=$ac_optarg ;; |
252b5132 RH |
1049 | |
1050 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1051 | | --libexe | --libex | --libe) | |
1052 | ac_prev=libexecdir ;; | |
1053 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1054 | | --libexe=* | --libex=* | --libe=*) | |
5464f5a1 | 1055 | libexecdir=$ac_optarg ;; |
252b5132 | 1056 | |
81ecdfbb RW |
1057 | -localedir | --localedir | --localedi | --localed | --locale) |
1058 | ac_prev=localedir ;; | |
1059 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1060 | localedir=$ac_optarg ;; | |
1061 | ||
252b5132 | 1062 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
81ecdfbb | 1063 | | --localstate | --localstat | --localsta | --localst | --locals) |
252b5132 RH |
1064 | ac_prev=localstatedir ;; |
1065 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
81ecdfbb | 1066 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
5464f5a1 | 1067 | localstatedir=$ac_optarg ;; |
252b5132 RH |
1068 | |
1069 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1070 | ac_prev=mandir ;; | |
1071 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
5464f5a1 | 1072 | mandir=$ac_optarg ;; |
252b5132 RH |
1073 | |
1074 | -nfp | --nfp | --nf) | |
1075 | # Obsolete; use --without-fp. | |
1076 | with_fp=no ;; | |
1077 | ||
1078 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
5464f5a1 | 1079 | | --no-cr | --no-c | -n) |
252b5132 RH |
1080 | no_create=yes ;; |
1081 | ||
1082 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1083 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1084 | no_recursion=yes ;; | |
1085 | ||
1086 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1087 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1088 | | --oldin | --oldi | --old | --ol | --o) | |
1089 | ac_prev=oldincludedir ;; | |
1090 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1091 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1092 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
5464f5a1 | 1093 | oldincludedir=$ac_optarg ;; |
252b5132 RH |
1094 | |
1095 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1096 | ac_prev=prefix ;; | |
1097 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
5464f5a1 | 1098 | prefix=$ac_optarg ;; |
252b5132 RH |
1099 | |
1100 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1101 | | --program-pre | --program-pr | --program-p) | |
1102 | ac_prev=program_prefix ;; | |
1103 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1104 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
5464f5a1 | 1105 | program_prefix=$ac_optarg ;; |
252b5132 RH |
1106 | |
1107 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1108 | | --program-suf | --program-su | --program-s) | |
1109 | ac_prev=program_suffix ;; | |
1110 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1111 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
5464f5a1 | 1112 | program_suffix=$ac_optarg ;; |
252b5132 RH |
1113 | |
1114 | -program-transform-name | --program-transform-name \ | |
1115 | | --program-transform-nam | --program-transform-na \ | |
1116 | | --program-transform-n | --program-transform- \ | |
1117 | | --program-transform | --program-transfor \ | |
1118 | | --program-transfo | --program-transf \ | |
1119 | | --program-trans | --program-tran \ | |
1120 | | --progr-tra | --program-tr | --program-t) | |
1121 | ac_prev=program_transform_name ;; | |
1122 | -program-transform-name=* | --program-transform-name=* \ | |
1123 | | --program-transform-nam=* | --program-transform-na=* \ | |
1124 | | --program-transform-n=* | --program-transform-=* \ | |
1125 | | --program-transform=* | --program-transfor=* \ | |
1126 | | --program-transfo=* | --program-transf=* \ | |
1127 | | --program-trans=* | --program-tran=* \ | |
1128 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
5464f5a1 | 1129 | program_transform_name=$ac_optarg ;; |
252b5132 | 1130 | |
81ecdfbb RW |
1131 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1132 | ac_prev=pdfdir ;; | |
1133 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1134 | pdfdir=$ac_optarg ;; | |
1135 | ||
1136 | -psdir | --psdir | --psdi | --psd | --ps) | |
1137 | ac_prev=psdir ;; | |
1138 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1139 | psdir=$ac_optarg ;; | |
1140 | ||
252b5132 RH |
1141 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1142 | | -silent | --silent | --silen | --sile | --sil) | |
1143 | silent=yes ;; | |
1144 | ||
1145 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1146 | ac_prev=sbindir ;; | |
1147 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1148 | | --sbi=* | --sb=*) | |
5464f5a1 | 1149 | sbindir=$ac_optarg ;; |
252b5132 RH |
1150 | |
1151 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1152 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1153 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1154 | | --sha | --sh) | |
1155 | ac_prev=sharedstatedir ;; | |
1156 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1157 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1158 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1159 | | --sha=* | --sh=*) | |
5464f5a1 | 1160 | sharedstatedir=$ac_optarg ;; |
252b5132 RH |
1161 | |
1162 | -site | --site | --sit) | |
1163 | ac_prev=site ;; | |
1164 | -site=* | --site=* | --sit=*) | |
5464f5a1 | 1165 | site=$ac_optarg ;; |
6be7c12c | 1166 | |
252b5132 RH |
1167 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1168 | ac_prev=srcdir ;; | |
1169 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
5464f5a1 | 1170 | srcdir=$ac_optarg ;; |
252b5132 RH |
1171 | |
1172 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1173 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1174 | ac_prev=sysconfdir ;; | |
1175 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1176 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
5464f5a1 | 1177 | sysconfdir=$ac_optarg ;; |
252b5132 RH |
1178 | |
1179 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
5464f5a1 | 1180 | ac_prev=target_alias ;; |
252b5132 | 1181 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
5464f5a1 | 1182 | target_alias=$ac_optarg ;; |
252b5132 RH |
1183 | |
1184 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1185 | verbose=yes ;; | |
1186 | ||
5464f5a1 NN |
1187 | -version | --version | --versio | --versi | --vers | -V) |
1188 | ac_init_version=: ;; | |
252b5132 RH |
1189 | |
1190 | -with-* | --with-*) | |
81ecdfbb | 1191 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
252b5132 | 1192 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1193 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1194 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1195 | ac_useropt_orig=$ac_useropt |
1196 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1197 | case $ac_user_opts in | |
1198 | *" | |
1199 | "with_$ac_useropt" | |
1200 | "*) ;; | |
1201 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1202 | ac_unrecognized_sep=', ';; | |
252b5132 | 1203 | esac |
81ecdfbb | 1204 | eval with_$ac_useropt=\$ac_optarg ;; |
252b5132 RH |
1205 | |
1206 | -without-* | --without-*) | |
81ecdfbb | 1207 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
252b5132 | 1208 | # Reject names that are not valid shell variable names. |
81ecdfbb | 1209 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
d0ac1c44 | 1210 | as_fn_error $? "invalid package name: $ac_useropt" |
81ecdfbb RW |
1211 | ac_useropt_orig=$ac_useropt |
1212 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1213 | case $ac_user_opts in | |
1214 | *" | |
1215 | "with_$ac_useropt" | |
1216 | "*) ;; | |
1217 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1218 | ac_unrecognized_sep=', ';; | |
1219 | esac | |
1220 | eval with_$ac_useropt=no ;; | |
252b5132 RH |
1221 | |
1222 | --x) | |
1223 | # Obsolete; use --with-x. | |
1224 | with_x=yes ;; | |
1225 | ||
1226 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1227 | | --x-incl | --x-inc | --x-in | --x-i) | |
1228 | ac_prev=x_includes ;; | |
1229 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1230 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
5464f5a1 | 1231 | x_includes=$ac_optarg ;; |
252b5132 RH |
1232 | |
1233 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1234 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1235 | ac_prev=x_libraries ;; | |
1236 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1237 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
5464f5a1 | 1238 | x_libraries=$ac_optarg ;; |
252b5132 | 1239 | |
d0ac1c44 SM |
1240 | -*) as_fn_error $? "unrecognized option: \`$ac_option' |
1241 | Try \`$0 --help' for more information" | |
252b5132 RH |
1242 | ;; |
1243 | ||
5464f5a1 NN |
1244 | *=*) |
1245 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1246 | # Reject names that are not valid shell variable names. | |
81ecdfbb RW |
1247 | case $ac_envvar in #( |
1248 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
d0ac1c44 | 1249 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; |
81ecdfbb RW |
1250 | esac |
1251 | eval $ac_envvar=\$ac_optarg | |
5464f5a1 NN |
1252 | export $ac_envvar ;; |
1253 | ||
252b5132 | 1254 | *) |
5464f5a1 | 1255 | # FIXME: should be removed in autoconf 3.0. |
81ecdfbb | 1256 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
5464f5a1 | 1257 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
81ecdfbb | 1258 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
d0ac1c44 | 1259 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" |
252b5132 RH |
1260 | ;; |
1261 | ||
1262 | esac | |
1263 | done | |
1264 | ||
1265 | if test -n "$ac_prev"; then | |
5464f5a1 | 1266 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
d0ac1c44 | 1267 | as_fn_error $? "missing argument to $ac_option" |
252b5132 | 1268 | fi |
252b5132 | 1269 | |
81ecdfbb RW |
1270 | if test -n "$ac_unrecognized_opts"; then |
1271 | case $enable_option_checking in | |
1272 | no) ;; | |
d0ac1c44 | 1273 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; |
81ecdfbb | 1274 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
5464f5a1 | 1275 | esac |
81ecdfbb | 1276 | fi |
6be7c12c | 1277 | |
81ecdfbb RW |
1278 | # Check all directory arguments for consistency. |
1279 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1280 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1281 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
e0b2a78c | 1282 | libdir localedir mandir |
252b5132 | 1283 | do |
81ecdfbb RW |
1284 | eval ac_val=\$$ac_var |
1285 | # Remove trailing slashes. | |
5464f5a1 | 1286 | case $ac_val in |
81ecdfbb RW |
1287 | */ ) |
1288 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1289 | eval $ac_var=\$ac_val;; | |
252b5132 | 1290 | esac |
81ecdfbb RW |
1291 | # Be sure to have absolute directory names. |
1292 | case $ac_val in | |
1293 | [\\/$]* | ?:[\\/]* ) continue;; | |
1294 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1295 | esac | |
d0ac1c44 | 1296 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" |
252b5132 RH |
1297 | done |
1298 | ||
5464f5a1 NN |
1299 | # There might be people who depend on the old broken behavior: `$host' |
1300 | # used to hold the argument of --host etc. | |
1301 | # FIXME: To remove some day. | |
1302 | build=$build_alias | |
1303 | host=$host_alias | |
1304 | target=$target_alias | |
1305 | ||
1306 | # FIXME: To remove some day. | |
1307 | if test "x$host_alias" != x; then | |
1308 | if test "x$build_alias" = x; then | |
1309 | cross_compiling=maybe | |
5464f5a1 NN |
1310 | elif test "x$build_alias" != "x$host_alias"; then |
1311 | cross_compiling=yes | |
1312 | fi | |
1313 | fi | |
252b5132 | 1314 | |
5464f5a1 NN |
1315 | ac_tool_prefix= |
1316 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1317 | ||
1318 | test "$silent" = yes && exec 6>/dev/null | |
252b5132 | 1319 | |
252b5132 | 1320 | |
81ecdfbb RW |
1321 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1322 | ac_ls_di=`ls -di .` && | |
1323 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
d0ac1c44 | 1324 | as_fn_error $? "working directory cannot be determined" |
81ecdfbb | 1325 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
d0ac1c44 | 1326 | as_fn_error $? "pwd does not report name of working directory" |
81ecdfbb RW |
1327 | |
1328 | ||
252b5132 RH |
1329 | # Find the source files, if location was not specified. |
1330 | if test -z "$srcdir"; then | |
1331 | ac_srcdir_defaulted=yes | |
81ecdfbb RW |
1332 | # Try the directory containing this script, then the parent directory. |
1333 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1334 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1335 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1336 | X"$as_myself" : 'X\(//\)$' \| \ | |
1337 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1338 | $as_echo X"$as_myself" | | |
1339 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1340 | s//\1/ | |
1341 | q | |
1342 | } | |
1343 | /^X\(\/\/\)[^/].*/{ | |
1344 | s//\1/ | |
1345 | q | |
1346 | } | |
1347 | /^X\(\/\/\)$/{ | |
1348 | s//\1/ | |
1349 | q | |
1350 | } | |
1351 | /^X\(\/\).*/{ | |
1352 | s//\1/ | |
1353 | q | |
1354 | } | |
1355 | s/.*/./; q'` | |
252b5132 | 1356 | srcdir=$ac_confdir |
81ecdfbb | 1357 | if test ! -r "$srcdir/$ac_unique_file"; then |
252b5132 RH |
1358 | srcdir=.. |
1359 | fi | |
1360 | else | |
1361 | ac_srcdir_defaulted=no | |
1362 | fi | |
81ecdfbb RW |
1363 | if test ! -r "$srcdir/$ac_unique_file"; then |
1364 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
d0ac1c44 | 1365 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" |
81ecdfbb RW |
1366 | fi |
1367 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1368 | ac_abs_confdir=`( | |
d0ac1c44 | 1369 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" |
81ecdfbb RW |
1370 | pwd)` |
1371 | # When building in place, set srcdir=. | |
1372 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1373 | srcdir=. | |
1374 | fi | |
1375 | # Remove unnecessary trailing slashes from srcdir. | |
1376 | # Double slashes in file names in object file debugging info | |
1377 | # mess up M-x gdb in Emacs. | |
1378 | case $srcdir in | |
1379 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1380 | esac | |
1381 | for ac_var in $ac_precious_vars; do | |
1382 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1383 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1384 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1385 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1386 | done | |
b3baf5d0 | 1387 | |
5464f5a1 NN |
1388 | # |
1389 | # Report the --help message. | |
1390 | # | |
1391 | if test "$ac_init_help" = "long"; then | |
1392 | # Omit some internal or obsolete options to make the list less imposing. | |
1393 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1394 | cat <<_ACEOF | |
573fe3fb | 1395 | \`configure' configures bfd 2.36.50 to adapt to many kinds of systems. |
252b5132 | 1396 | |
5464f5a1 | 1397 | Usage: $0 [OPTION]... [VAR=VALUE]... |
252b5132 | 1398 | |
5464f5a1 NN |
1399 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1400 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
6be7c12c | 1401 | |
5464f5a1 | 1402 | Defaults for the options are specified in brackets. |
6be7c12c | 1403 | |
5464f5a1 NN |
1404 | Configuration: |
1405 | -h, --help display this help and exit | |
1406 | --help=short display options specific to this package | |
1407 | --help=recursive display the short help of all the included packages | |
1408 | -V, --version display version information and exit | |
d0ac1c44 | 1409 | -q, --quiet, --silent do not print \`checking ...' messages |
5464f5a1 NN |
1410 | --cache-file=FILE cache test results in FILE [disabled] |
1411 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1412 | -n, --no-create do not create output files | |
1413 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1414 | ||
5464f5a1 NN |
1415 | Installation directories: |
1416 | --prefix=PREFIX install architecture-independent files in PREFIX | |
81ecdfbb | 1417 | [$ac_default_prefix] |
5464f5a1 | 1418 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
81ecdfbb | 1419 | [PREFIX] |
6be7c12c | 1420 | |
5464f5a1 NN |
1421 | By default, \`make install' will install all the files in |
1422 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1423 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1424 | for instance \`--prefix=\$HOME'. | |
6be7c12c | 1425 | |
5464f5a1 | 1426 | For better control, use the options below. |
6be7c12c | 1427 | |
5464f5a1 | 1428 | Fine tuning of the installation directories: |
81ecdfbb RW |
1429 | --bindir=DIR user executables [EPREFIX/bin] |
1430 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1431 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1432 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1433 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1434 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1435 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1436 | --includedir=DIR C header files [PREFIX/include] | |
1437 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1438 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1439 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1440 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1441 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1442 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
c4dd807e | 1443 | --docdir=DIR documentation root [DATAROOTDIR/doc/bfd] |
81ecdfbb RW |
1444 | --htmldir=DIR html documentation [DOCDIR] |
1445 | --dvidir=DIR dvi documentation [DOCDIR] | |
1446 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1447 | --psdir=DIR ps documentation [DOCDIR] | |
5464f5a1 | 1448 | _ACEOF |
6be7c12c | 1449 | |
5464f5a1 | 1450 | cat <<\_ACEOF |
6be7c12c | 1451 | |
5464f5a1 NN |
1452 | Program names: |
1453 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1454 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1455 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
252b5132 | 1456 | |
5464f5a1 NN |
1457 | System types: |
1458 | --build=BUILD configure for building on BUILD [guessed] | |
1459 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1460 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1461 | _ACEOF | |
252b5132 | 1462 | fi |
252b5132 | 1463 | |
5464f5a1 | 1464 | if test -n "$ac_init_help"; then |
c4dd807e | 1465 | case $ac_init_help in |
573fe3fb | 1466 | short | recursive ) echo "Configuration of bfd 2.36.50:";; |
c4dd807e | 1467 | esac |
5464f5a1 | 1468 | cat <<\_ACEOF |
252b5132 | 1469 | |
5464f5a1 | 1470 | Optional Features: |
81ecdfbb | 1471 | --disable-option-checking ignore unrecognized --enable/--with options |
5464f5a1 NN |
1472 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1473 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
83c79df8 AM |
1474 | --enable-silent-rules less verbose build output (undo: "make V=1") |
1475 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1476 | --enable-shared[=PKGS] build shared libraries [default=no] | |
d0ac1c44 SM |
1477 | --enable-dependency-tracking |
1478 | do not reject slow dependency extractors | |
1479 | --disable-dependency-tracking | |
1480 | speeds up one-time build | |
81ecdfbb | 1481 | --enable-static[=PKGS] build static libraries [default=yes] |
d7040cdb SE |
1482 | --enable-fast-install[=PKGS] |
1483 | optimize for fast installation [default=yes] | |
5464f5a1 | 1484 | --disable-libtool-lock avoid locking (might break parallel builds) |
b879806f | 1485 | --enable-plugins Enable support for plugins |
ce3c775b | 1486 | --disable-largefile omit support for large files |
5464f5a1 NN |
1487 | --enable-64-bit-bfd 64-bit support (on hosts with narrower word sizes) |
1488 | --enable-targets alternative target configurations | |
e6cc316a | 1489 | --enable-64-bit-archive force 64-bit archives |
6ec7057a | 1490 | --enable-secureplt Default to creating read-only plt entries |
f6aec96d | 1491 | --enable-separate-code enable -z separate-code in ELF linker by default |
ef72a554 KT |
1492 | --enable-leading-mingw64-underscores |
1493 | Enable leading underscores on 64 bit mingw targets | |
241a6c40 AM |
1494 | --enable-werror treat compile warnings as errors |
1495 | --enable-build-warnings enable build-time compiler warnings | |
d0ac1c44 SM |
1496 | --enable-maintainer-mode |
1497 | enable make rules and dependencies not useful (and | |
1498 | sometimes confusing) to the casual installer | |
5464f5a1 NN |
1499 | --enable-install-libbfd controls installation of libbfd and related headers |
1500 | --disable-nls do not use Native Language Support | |
1501 | ||
1502 | Optional Packages: | |
1503 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1504 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
d7040cdb SE |
1505 | --with-pic try to use only PIC/non-PIC objects [default=use |
1506 | both] | |
1507 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
5464f5a1 | 1508 | --with-mmap try using mmap for BFD input files if available |
0d4a1476 AS |
1509 | --with-separate-debug-dir=DIR |
1510 | Look for global separate debug info in DIR | |
d0ac1c44 | 1511 | [[default=LIBDIR/debug]] |
a1ac8190 JM |
1512 | --with-pkgversion=PKG Use PKG in the version string in place of "GNU |
1513 | Binutils" | |
c428fa83 | 1514 | --with-bugurl=URL Direct users to URL to report a bug |
243340ad | 1515 | --with-system-zlib use installed libz |
5464f5a1 NN |
1516 | |
1517 | Some influential environment variables: | |
1518 | CC C compiler command | |
1519 | CFLAGS C compiler flags | |
1520 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1521 | nonstandard directory <lib dir> | |
81ecdfbb | 1522 | LIBS libraries to pass to the linker, e.g. -l<library> |
d0ac1c44 | 1523 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
81ecdfbb | 1524 | you have headers in a nonstandard directory <include dir> |
5464f5a1 NN |
1525 | CPP C preprocessor |
1526 | ||
1527 | Use these variables to override the choices made by `configure' or to help | |
1528 | it to find libraries and programs with nonstandard names/locations. | |
1529 | ||
81ecdfbb | 1530 | Report bugs to the package provider. |
5464f5a1 | 1531 | _ACEOF |
81ecdfbb | 1532 | ac_status=$? |
5464f5a1 NN |
1533 | fi |
1534 | ||
1535 | if test "$ac_init_help" = "recursive"; then | |
1536 | # If there are subdirs, report their specific --help. | |
5464f5a1 | 1537 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
81ecdfbb RW |
1538 | test -d "$ac_dir" || |
1539 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1540 | continue | |
5464f5a1 NN |
1541 | ac_builddir=. |
1542 | ||
81ecdfbb RW |
1543 | case "$ac_dir" in |
1544 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1545 | *) | |
1546 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1547 | # A ".." for each directory in $ac_dir_suffix. | |
1548 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1549 | case $ac_top_builddir_sub in | |
1550 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1551 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1552 | esac ;; | |
1553 | esac | |
1554 | ac_abs_top_builddir=$ac_pwd | |
1555 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1556 | # for backward compatibility: | |
1557 | ac_top_builddir=$ac_top_build_prefix | |
5464f5a1 NN |
1558 | |
1559 | case $srcdir in | |
81ecdfbb | 1560 | .) # We are building in place. |
5464f5a1 | 1561 | ac_srcdir=. |
81ecdfbb RW |
1562 | ac_top_srcdir=$ac_top_builddir_sub |
1563 | ac_abs_top_srcdir=$ac_pwd ;; | |
1564 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
5464f5a1 | 1565 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
1566 | ac_top_srcdir=$srcdir |
1567 | ac_abs_top_srcdir=$srcdir ;; | |
1568 | *) # Relative name. | |
1569 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1570 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1571 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
5464f5a1 | 1572 | esac |
81ecdfbb RW |
1573 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1574 | ||
1575 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1576 | # Check for guested configure. | |
1577 | if test -f "$ac_srcdir/configure.gnu"; then | |
1578 | echo && | |
1579 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1580 | elif test -f "$ac_srcdir/configure"; then | |
1581 | echo && | |
1582 | $SHELL "$ac_srcdir/configure" --help=recursive | |
5464f5a1 | 1583 | else |
81ecdfbb RW |
1584 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1585 | fi || ac_status=$? | |
1586 | cd "$ac_pwd" || { ac_status=$?; break; } | |
5464f5a1 | 1587 | done |
6be7c12c AO |
1588 | fi |
1589 | ||
81ecdfbb | 1590 | test -n "$ac_init_help" && exit $ac_status |
5464f5a1 NN |
1591 | if $ac_init_version; then |
1592 | cat <<\_ACEOF | |
573fe3fb | 1593 | bfd configure 2.36.50 |
d0ac1c44 | 1594 | generated by GNU Autoconf 2.69 |
6be7c12c | 1595 | |
d0ac1c44 | 1596 | Copyright (C) 2012 Free Software Foundation, Inc. |
5464f5a1 NN |
1597 | This configure script is free software; the Free Software Foundation |
1598 | gives unlimited permission to copy, distribute and modify it. | |
1599 | _ACEOF | |
81ecdfbb | 1600 | exit |
5464f5a1 | 1601 | fi |
6be7c12c | 1602 | |
81ecdfbb RW |
1603 | ## ------------------------ ## |
1604 | ## Autoconf initialization. ## | |
1605 | ## ------------------------ ## | |
6be7c12c | 1606 | |
81ecdfbb RW |
1607 | # ac_fn_c_try_compile LINENO |
1608 | # -------------------------- | |
1609 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1610 | ac_fn_c_try_compile () | |
5464f5a1 | 1611 | { |
81ecdfbb RW |
1612 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1613 | rm -f conftest.$ac_objext | |
1614 | if { { ac_try="$ac_compile" | |
1615 | case "(($ac_try" in | |
1616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1617 | *) ac_try_echo=$ac_try;; | |
1618 | esac | |
1619 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1620 | $as_echo "$ac_try_echo"; } >&5 | |
1621 | (eval "$ac_compile") 2>conftest.err | |
1622 | ac_status=$? | |
1623 | if test -s conftest.err; then | |
1624 | grep -v '^ *+' conftest.err >conftest.er1 | |
1625 | cat conftest.er1 >&5 | |
1626 | mv -f conftest.er1 conftest.err | |
1627 | fi | |
1628 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1629 | test $ac_status = 0; } && { | |
1630 | test -z "$ac_c_werror_flag" || | |
1631 | test ! -s conftest.err | |
1632 | } && test -s conftest.$ac_objext; then : | |
1633 | ac_retval=0 | |
1634 | else | |
1635 | $as_echo "$as_me: failed program was:" >&5 | |
1636 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5464f5a1 | 1637 | |
81ecdfbb RW |
1638 | ac_retval=1 |
1639 | fi | |
d0ac1c44 SM |
1640 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1641 | as_fn_set_status $ac_retval | |
5464f5a1 | 1642 | |
81ecdfbb | 1643 | } # ac_fn_c_try_compile |
5464f5a1 | 1644 | |
81ecdfbb RW |
1645 | # ac_fn_c_try_cpp LINENO |
1646 | # ---------------------- | |
1647 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1648 | ac_fn_c_try_cpp () | |
1649 | { | |
1650 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1651 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1652 | case "(($ac_try" in | |
1653 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1654 | *) ac_try_echo=$ac_try;; | |
1655 | esac | |
1656 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1657 | $as_echo "$ac_try_echo"; } >&5 | |
1658 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1659 | ac_status=$? | |
1660 | if test -s conftest.err; then | |
1661 | grep -v '^ *+' conftest.err >conftest.er1 | |
1662 | cat conftest.er1 >&5 | |
1663 | mv -f conftest.er1 conftest.err | |
1664 | fi | |
1665 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
d0ac1c44 | 1666 | test $ac_status = 0; } > conftest.i && { |
81ecdfbb RW |
1667 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
1668 | test ! -s conftest.err | |
1669 | }; then : | |
1670 | ac_retval=0 | |
1671 | else | |
1672 | $as_echo "$as_me: failed program was:" >&5 | |
1673 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b3baf5d0 | 1674 | |
81ecdfbb RW |
1675 | ac_retval=1 |
1676 | fi | |
d0ac1c44 SM |
1677 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1678 | as_fn_set_status $ac_retval | |
6be7c12c | 1679 | |
81ecdfbb | 1680 | } # ac_fn_c_try_cpp |
252b5132 | 1681 | |
81ecdfbb RW |
1682 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
1683 | # ------------------------------------------------------- | |
1684 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1685 | # the include files in INCLUDES and setting the cache variable VAR | |
1686 | # accordingly. | |
1687 | ac_fn_c_check_header_mongrel () | |
1688 | { | |
1689 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
d0ac1c44 | 1690 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1691 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1692 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1693 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1694 | $as_echo_n "(cached) " >&6 |
1695 | fi | |
1696 | eval ac_res=\$$3 | |
1697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1698 | $as_echo "$ac_res" >&6; } | |
1699 | else | |
1700 | # Is the header compilable? | |
1701 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1702 | $as_echo_n "checking $2 usability... " >&6; } | |
1703 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1704 | /* end confdefs.h. */ | |
1705 | $4 | |
1706 | #include <$2> | |
5464f5a1 | 1707 | _ACEOF |
81ecdfbb RW |
1708 | if ac_fn_c_try_compile "$LINENO"; then : |
1709 | ac_header_compiler=yes | |
1710 | else | |
1711 | ac_header_compiler=no | |
1712 | fi | |
1713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1714 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1715 | $as_echo "$ac_header_compiler" >&6; } | |
c5d1701e | 1716 | |
81ecdfbb RW |
1717 | # Is the header present? |
1718 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1719 | $as_echo_n "checking $2 presence... " >&6; } | |
1720 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1721 | /* end confdefs.h. */ | |
1722 | #include <$2> | |
1723 | _ACEOF | |
1724 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1725 | ac_header_preproc=yes | |
1726 | else | |
1727 | ac_header_preproc=no | |
1728 | fi | |
d0ac1c44 | 1729 | rm -f conftest.err conftest.i conftest.$ac_ext |
81ecdfbb RW |
1730 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
1731 | $as_echo "$ac_header_preproc" >&6; } | |
6be7c12c | 1732 | |
81ecdfbb RW |
1733 | # So? What about this header? |
1734 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1735 | yes:no: ) | |
1736 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1737 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1738 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1739 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1740 | ;; | |
1741 | no:yes:* ) | |
1742 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1743 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1744 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1745 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1746 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1747 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1748 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1749 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1750 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1751 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1752 | ;; | |
1753 | esac | |
1754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1755 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1756 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1757 | $as_echo_n "(cached) " >&6 |
1758 | else | |
1759 | eval "$3=\$ac_header_compiler" | |
1760 | fi | |
1761 | eval ac_res=\$$3 | |
1762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1763 | $as_echo "$ac_res" >&6; } | |
1764 | fi | |
d0ac1c44 | 1765 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
5464f5a1 | 1766 | |
81ecdfbb | 1767 | } # ac_fn_c_check_header_mongrel |
5464f5a1 | 1768 | |
81ecdfbb RW |
1769 | # ac_fn_c_try_run LINENO |
1770 | # ---------------------- | |
1771 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1772 | # that executables *can* be run. | |
1773 | ac_fn_c_try_run () | |
5464f5a1 | 1774 | { |
81ecdfbb RW |
1775 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
1776 | if { { ac_try="$ac_link" | |
1777 | case "(($ac_try" in | |
1778 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1779 | *) ac_try_echo=$ac_try;; | |
1780 | esac | |
1781 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1782 | $as_echo "$ac_try_echo"; } >&5 | |
1783 | (eval "$ac_link") 2>&5 | |
1784 | ac_status=$? | |
1785 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1786 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1787 | { { case "(($ac_try" in | |
1788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1789 | *) ac_try_echo=$ac_try;; | |
1790 | esac | |
1791 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1792 | $as_echo "$ac_try_echo"; } >&5 | |
1793 | (eval "$ac_try") 2>&5 | |
1794 | ac_status=$? | |
1795 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1796 | test $ac_status = 0; }; }; then : | |
1797 | ac_retval=0 | |
1798 | else | |
1799 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1800 | $as_echo "$as_me: failed program was:" >&5 | |
1801 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5464f5a1 | 1802 | |
81ecdfbb RW |
1803 | ac_retval=$ac_status |
1804 | fi | |
1805 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
d0ac1c44 SM |
1806 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
1807 | as_fn_set_status $ac_retval | |
5464f5a1 | 1808 | |
81ecdfbb | 1809 | } # ac_fn_c_try_run |
5464f5a1 | 1810 | |
81ecdfbb RW |
1811 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1812 | # ------------------------------------------------------- | |
1813 | # Tests whether HEADER exists and can be compiled using the include files in | |
1814 | # INCLUDES, setting the cache variable VAR accordingly. | |
1815 | ac_fn_c_check_header_compile () | |
1816 | { | |
1817 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1818 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1819 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1820 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1821 | $as_echo_n "(cached) " >&6 |
1822 | else | |
1823 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1824 | /* end confdefs.h. */ | |
1825 | $4 | |
1826 | #include <$2> | |
1827 | _ACEOF | |
1828 | if ac_fn_c_try_compile "$LINENO"; then : | |
1829 | eval "$3=yes" | |
1830 | else | |
1831 | eval "$3=no" | |
1832 | fi | |
1833 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1834 | fi | |
1835 | eval ac_res=\$$3 | |
1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1837 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1838 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
5464f5a1 | 1839 | |
81ecdfbb | 1840 | } # ac_fn_c_check_header_compile |
5464f5a1 | 1841 | |
83c79df8 AM |
1842 | # ac_fn_c_try_link LINENO |
1843 | # ----------------------- | |
1844 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1845 | ac_fn_c_try_link () | |
1846 | { | |
1847 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1848 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1849 | if { { ac_try="$ac_link" | |
1850 | case "(($ac_try" in | |
1851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1852 | *) ac_try_echo=$ac_try;; | |
1853 | esac | |
1854 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1855 | $as_echo "$ac_try_echo"; } >&5 | |
1856 | (eval "$ac_link") 2>conftest.err | |
1857 | ac_status=$? | |
1858 | if test -s conftest.err; then | |
1859 | grep -v '^ *+' conftest.err >conftest.er1 | |
1860 | cat conftest.er1 >&5 | |
1861 | mv -f conftest.er1 conftest.err | |
1862 | fi | |
1863 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1864 | test $ac_status = 0; } && { | |
1865 | test -z "$ac_c_werror_flag" || | |
1866 | test ! -s conftest.err | |
1867 | } && test -s conftest$ac_exeext && { | |
1868 | test "$cross_compiling" = yes || | |
1869 | test -x conftest$ac_exeext | |
1870 | }; then : | |
1871 | ac_retval=0 | |
1872 | else | |
1873 | $as_echo "$as_me: failed program was:" >&5 | |
1874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1875 | ||
1876 | ac_retval=1 | |
1877 | fi | |
1878 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1879 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1880 | # interfere with the next link command; also delete a directory that is | |
1881 | # left behind by Apple's compiler. We do this before executing the actions. | |
1882 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1883 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1884 | as_fn_set_status $ac_retval | |
1885 | ||
1886 | } # ac_fn_c_try_link | |
1887 | ||
81ecdfbb RW |
1888 | # ac_fn_c_check_func LINENO FUNC VAR |
1889 | # ---------------------------------- | |
1890 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1891 | ac_fn_c_check_func () | |
1892 | { | |
1893 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1894 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1895 | $as_echo_n "checking for $2... " >&6; } | |
d0ac1c44 | 1896 | if eval \${$3+:} false; then : |
81ecdfbb RW |
1897 | $as_echo_n "(cached) " >&6 |
1898 | else | |
1899 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1900 | /* end confdefs.h. */ | |
1901 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1902 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1903 | #define $2 innocuous_$2 | |
5464f5a1 | 1904 | |
81ecdfbb RW |
1905 | /* System header to define __stub macros and hopefully few prototypes, |
1906 | which can conflict with char $2 (); below. | |
1907 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1908 | <limits.h> exists even on freestanding compilers. */ | |
5464f5a1 | 1909 | |
81ecdfbb RW |
1910 | #ifdef __STDC__ |
1911 | # include <limits.h> | |
1912 | #else | |
1913 | # include <assert.h> | |
1914 | #endif | |
5464f5a1 | 1915 | |
81ecdfbb | 1916 | #undef $2 |
5464f5a1 | 1917 | |
81ecdfbb RW |
1918 | /* Override any GCC internal prototype to avoid an error. |
1919 | Use char because int might match the return type of a GCC | |
1920 | builtin and then its argument prototype would still apply. */ | |
1921 | #ifdef __cplusplus | |
1922 | extern "C" | |
1923 | #endif | |
1924 | char $2 (); | |
1925 | /* The GNU C library defines this for functions which it implements | |
1926 | to always fail with ENOSYS. Some functions are actually named | |
1927 | something starting with __ and the normal name is an alias. */ | |
1928 | #if defined __stub_$2 || defined __stub___$2 | |
1929 | choke me | |
1930 | #endif | |
5464f5a1 | 1931 | |
81ecdfbb RW |
1932 | int |
1933 | main () | |
1934 | { | |
1935 | return $2 (); | |
1936 | ; | |
1937 | return 0; | |
1938 | } | |
5464f5a1 | 1939 | _ACEOF |
81ecdfbb RW |
1940 | if ac_fn_c_try_link "$LINENO"; then : |
1941 | eval "$3=yes" | |
1942 | else | |
1943 | eval "$3=no" | |
1944 | fi | |
1945 | rm -f core conftest.err conftest.$ac_objext \ | |
1946 | conftest$ac_exeext conftest.$ac_ext | |
1947 | fi | |
1948 | eval ac_res=\$$3 | |
1949 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1950 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 1951 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
5464f5a1 | 1952 | |
81ecdfbb | 1953 | } # ac_fn_c_check_func |
5464f5a1 | 1954 | |
81ecdfbb RW |
1955 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
1956 | # -------------------------------------------- | |
1957 | # Tries to find the compile-time value of EXPR in a program that includes | |
1958 | # INCLUDES, setting VAR accordingly. Returns whether the value could be | |
1959 | # computed | |
1960 | ac_fn_c_compute_int () | |
1961 | { | |
1962 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1963 | if test "$cross_compiling" = yes; then | |
1964 | # Depending upon the size, compute the lo and hi bounds. | |
1965 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1966 | /* end confdefs.h. */ | |
1967 | $4 | |
1968 | int | |
1969 | main () | |
1970 | { | |
1971 | static int test_array [1 - 2 * !(($2) >= 0)]; | |
d0ac1c44 SM |
1972 | test_array [0] = 0; |
1973 | return test_array [0]; | |
5464f5a1 | 1974 | |
81ecdfbb RW |
1975 | ; |
1976 | return 0; | |
1977 | } | |
5464f5a1 | 1978 | _ACEOF |
81ecdfbb RW |
1979 | if ac_fn_c_try_compile "$LINENO"; then : |
1980 | ac_lo=0 ac_mid=0 | |
1981 | while :; do | |
1982 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1983 | /* end confdefs.h. */ | |
1984 | $4 | |
1985 | int | |
1986 | main () | |
1987 | { | |
1988 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
d0ac1c44 SM |
1989 | test_array [0] = 0; |
1990 | return test_array [0]; | |
5464f5a1 | 1991 | |
81ecdfbb RW |
1992 | ; |
1993 | return 0; | |
1994 | } | |
1995 | _ACEOF | |
1996 | if ac_fn_c_try_compile "$LINENO"; then : | |
1997 | ac_hi=$ac_mid; break | |
5464f5a1 | 1998 | else |
81ecdfbb RW |
1999 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
2000 | if test $ac_lo -le $ac_mid; then | |
2001 | ac_lo= ac_hi= | |
2002 | break | |
2003 | fi | |
2004 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val | |
5464f5a1 | 2005 | fi |
81ecdfbb RW |
2006 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2007 | done | |
2008 | else | |
2009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2010 | /* end confdefs.h. */ | |
2011 | $4 | |
2012 | int | |
2013 | main () | |
2014 | { | |
2015 | static int test_array [1 - 2 * !(($2) < 0)]; | |
d0ac1c44 SM |
2016 | test_array [0] = 0; |
2017 | return test_array [0]; | |
5464f5a1 | 2018 | |
81ecdfbb RW |
2019 | ; |
2020 | return 0; | |
2021 | } | |
2022 | _ACEOF | |
2023 | if ac_fn_c_try_compile "$LINENO"; then : | |
2024 | ac_hi=-1 ac_mid=-1 | |
2025 | while :; do | |
2026 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2027 | /* end confdefs.h. */ | |
2028 | $4 | |
2029 | int | |
2030 | main () | |
2031 | { | |
2032 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; | |
d0ac1c44 SM |
2033 | test_array [0] = 0; |
2034 | return test_array [0]; | |
5464f5a1 | 2035 | |
81ecdfbb RW |
2036 | ; |
2037 | return 0; | |
2038 | } | |
2039 | _ACEOF | |
2040 | if ac_fn_c_try_compile "$LINENO"; then : | |
2041 | ac_lo=$ac_mid; break | |
2042 | else | |
2043 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val | |
2044 | if test $ac_mid -le $ac_hi; then | |
2045 | ac_lo= ac_hi= | |
2046 | break | |
2047 | fi | |
2048 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val | |
2049 | fi | |
2050 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2051 | done | |
2052 | else | |
2053 | ac_lo= ac_hi= | |
2054 | fi | |
2055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2056 | fi | |
2057 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2058 | # Binary search between lo and hi bounds. | |
2059 | while test "x$ac_lo" != "x$ac_hi"; do | |
2060 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val | |
2061 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2062 | /* end confdefs.h. */ | |
2063 | $4 | |
2064 | int | |
2065 | main () | |
2066 | { | |
2067 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; | |
d0ac1c44 SM |
2068 | test_array [0] = 0; |
2069 | return test_array [0]; | |
5464f5a1 | 2070 | |
81ecdfbb RW |
2071 | ; |
2072 | return 0; | |
2073 | } | |
2074 | _ACEOF | |
2075 | if ac_fn_c_try_compile "$LINENO"; then : | |
2076 | ac_hi=$ac_mid | |
2077 | else | |
2078 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val | |
2079 | fi | |
2080 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2081 | done | |
2082 | case $ac_lo in #(( | |
2083 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; | |
2084 | '') ac_retval=1 ;; | |
2085 | esac | |
2086 | else | |
2087 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2088 | /* end confdefs.h. */ | |
2089 | $4 | |
2090 | static long int longval () { return $2; } | |
2091 | static unsigned long int ulongval () { return $2; } | |
2092 | #include <stdio.h> | |
2093 | #include <stdlib.h> | |
2094 | int | |
2095 | main () | |
2096 | { | |
5464f5a1 | 2097 | |
81ecdfbb RW |
2098 | FILE *f = fopen ("conftest.val", "w"); |
2099 | if (! f) | |
2100 | return 1; | |
2101 | if (($2) < 0) | |
2102 | { | |
2103 | long int i = longval (); | |
2104 | if (i != ($2)) | |
2105 | return 1; | |
2106 | fprintf (f, "%ld", i); | |
2107 | } | |
2108 | else | |
2109 | { | |
2110 | unsigned long int i = ulongval (); | |
2111 | if (i != ($2)) | |
2112 | return 1; | |
2113 | fprintf (f, "%lu", i); | |
2114 | } | |
2115 | /* Do not output a trailing newline, as this causes \r\n confusion | |
2116 | on some platforms. */ | |
2117 | return ferror (f) || fclose (f) != 0; | |
5464f5a1 | 2118 | |
81ecdfbb RW |
2119 | ; |
2120 | return 0; | |
2121 | } | |
2122 | _ACEOF | |
2123 | if ac_fn_c_try_run "$LINENO"; then : | |
2124 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 | |
2125 | else | |
2126 | ac_retval=1 | |
2127 | fi | |
2128 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
2129 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
2130 | rm -f conftest.val | |
7357c5b6 | 2131 | |
81ecdfbb | 2132 | fi |
d0ac1c44 SM |
2133 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
2134 | as_fn_set_status $ac_retval | |
7357c5b6 | 2135 | |
81ecdfbb | 2136 | } # ac_fn_c_compute_int |
7357c5b6 | 2137 | |
d0ac1c44 SM |
2138 | # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES |
2139 | # --------------------------------------------- | |
2140 | # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR | |
2141 | # accordingly. | |
81ecdfbb RW |
2142 | ac_fn_c_check_decl () |
2143 | { | |
2144 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
360cfc9c AM |
2145 | as_decl_name=`echo $2|sed 's/ *(.*//'` |
2146 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
2147 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
2148 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
d0ac1c44 | 2149 | if eval \${$3+:} false; then : |
81ecdfbb RW |
2150 | $as_echo_n "(cached) " >&6 |
2151 | else | |
2152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2153 | /* end confdefs.h. */ | |
2154 | $4 | |
2155 | int | |
2156 | main () | |
2157 | { | |
360cfc9c AM |
2158 | #ifndef $as_decl_name |
2159 | #ifdef __cplusplus | |
2160 | (void) $as_decl_use; | |
2161 | #else | |
2162 | (void) $as_decl_name; | |
2163 | #endif | |
81ecdfbb | 2164 | #endif |
5464f5a1 | 2165 | |
81ecdfbb RW |
2166 | ; |
2167 | return 0; | |
2168 | } | |
2169 | _ACEOF | |
2170 | if ac_fn_c_try_compile "$LINENO"; then : | |
2171 | eval "$3=yes" | |
2172 | else | |
2173 | eval "$3=no" | |
5464f5a1 | 2174 | fi |
81ecdfbb RW |
2175 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2176 | fi | |
2177 | eval ac_res=\$$3 | |
2178 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2179 | $as_echo "$ac_res" >&6; } | |
d0ac1c44 | 2180 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno |
5464f5a1 | 2181 | |
81ecdfbb RW |
2182 | } # ac_fn_c_check_decl |
2183 | cat >config.log <<_ACEOF | |
2184 | This file contains any messages produced by compilers while | |
2185 | running configure, to aid debugging if configure makes a mistake. | |
5464f5a1 | 2186 | |
573fe3fb | 2187 | It was created by bfd $as_me 2.36.50, which was |
d0ac1c44 | 2188 | generated by GNU Autoconf 2.69. Invocation command line was |
5464f5a1 | 2189 | |
81ecdfbb | 2190 | $ $0 $@ |
5464f5a1 | 2191 | |
81ecdfbb RW |
2192 | _ACEOF |
2193 | exec 5>>config.log | |
2194 | { | |
2195 | cat <<_ASUNAME | |
2196 | ## --------- ## | |
2197 | ## Platform. ## | |
2198 | ## --------- ## | |
5464f5a1 | 2199 | |
81ecdfbb RW |
2200 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
2201 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2202 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2203 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2204 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
5464f5a1 | 2205 | |
81ecdfbb RW |
2206 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
2207 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
5464f5a1 | 2208 | |
81ecdfbb RW |
2209 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
2210 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2211 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2212 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2213 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2214 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2215 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
5464f5a1 | 2216 | |
81ecdfbb | 2217 | _ASUNAME |
5464f5a1 | 2218 | |
5464f5a1 NN |
2219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2220 | for as_dir in $PATH | |
2221 | do | |
2222 | IFS=$as_save_IFS | |
2223 | test -z "$as_dir" && as_dir=. | |
81ecdfbb RW |
2224 | $as_echo "PATH: $as_dir" |
2225 | done | |
2226 | IFS=$as_save_IFS | |
5464f5a1 | 2227 | |
81ecdfbb | 2228 | } >&5 |
5464f5a1 | 2229 | |
81ecdfbb | 2230 | cat >&5 <<_ACEOF |
5464f5a1 | 2231 | |
5464f5a1 | 2232 | |
81ecdfbb RW |
2233 | ## ----------- ## |
2234 | ## Core tests. ## | |
2235 | ## ----------- ## | |
5464f5a1 | 2236 | |
81ecdfbb RW |
2237 | _ACEOF |
2238 | ||
2239 | ||
2240 | # Keep a trace of the command line. | |
2241 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2242 | # Strip out --silent because we don't want to record it for future runs. | |
2243 | # Also quote any args containing shell meta-characters. | |
2244 | # Make two passes to allow for proper duplicate-argument suppression. | |
2245 | ac_configure_args= | |
2246 | ac_configure_args0= | |
2247 | ac_configure_args1= | |
2248 | ac_must_keep_next=false | |
2249 | for ac_pass in 1 2 | |
2250 | do | |
2251 | for ac_arg | |
2252 | do | |
2253 | case $ac_arg in | |
2254 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2255 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2256 | | -silent | --silent | --silen | --sile | --sil) | |
2257 | continue ;; | |
2258 | *\'*) | |
2259 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2260 | esac | |
2261 | case $ac_pass in | |
2262 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2263 | 2) | |
2264 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2265 | if test $ac_must_keep_next = true; then | |
2266 | ac_must_keep_next=false # Got value, back to normal. | |
2267 | else | |
2268 | case $ac_arg in | |
2269 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2270 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2271 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2272 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2273 | case "$ac_configure_args0 " in | |
2274 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2275 | esac | |
2276 | ;; | |
2277 | -* ) ac_must_keep_next=true ;; | |
2278 | esac | |
2279 | fi | |
2280 | as_fn_append ac_configure_args " '$ac_arg'" | |
2281 | ;; | |
2282 | esac | |
2283 | done | |
2284 | done | |
2285 | { ac_configure_args0=; unset ac_configure_args0;} | |
2286 | { ac_configure_args1=; unset ac_configure_args1;} | |
2287 | ||
2288 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2289 | # config.log. We remove comments because anyway the quotes in there | |
2290 | # would cause problems or look ugly. | |
2291 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2292 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2293 | trap 'exit_status=$? | |
2294 | # Save into config.log some information that might help in debugging. | |
2295 | { | |
2296 | echo | |
2297 | ||
d0ac1c44 | 2298 | $as_echo "## ---------------- ## |
81ecdfbb | 2299 | ## Cache variables. ## |
d0ac1c44 | 2300 | ## ---------------- ##" |
81ecdfbb RW |
2301 | echo |
2302 | # The following way of writing the cache mishandles newlines in values, | |
2303 | ( | |
2304 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2305 | eval ac_val=\$$ac_var | |
2306 | case $ac_val in #( | |
2307 | *${as_nl}*) | |
2308 | case $ac_var in #( | |
2309 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2310 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2311 | esac | |
2312 | case $ac_var in #( | |
2313 | _ | IFS | as_nl) ;; #( | |
2314 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2315 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2316 | esac ;; | |
2317 | esac | |
2318 | done | |
2319 | (set) 2>&1 | | |
2320 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2321 | *${as_nl}ac_space=\ *) | |
2322 | sed -n \ | |
2323 | "s/'\''/'\''\\\\'\'''\''/g; | |
2324 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2325 | ;; #( | |
2326 | *) | |
2327 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2328 | ;; | |
2329 | esac | | |
2330 | sort | |
2331 | ) | |
2332 | echo | |
2333 | ||
d0ac1c44 | 2334 | $as_echo "## ----------------- ## |
81ecdfbb | 2335 | ## Output variables. ## |
d0ac1c44 | 2336 | ## ----------------- ##" |
81ecdfbb RW |
2337 | echo |
2338 | for ac_var in $ac_subst_vars | |
2339 | do | |
2340 | eval ac_val=\$$ac_var | |
2341 | case $ac_val in | |
2342 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2343 | esac | |
2344 | $as_echo "$ac_var='\''$ac_val'\''" | |
2345 | done | sort | |
2346 | echo | |
2347 | ||
2348 | if test -n "$ac_subst_files"; then | |
d0ac1c44 | 2349 | $as_echo "## ------------------- ## |
81ecdfbb | 2350 | ## File substitutions. ## |
d0ac1c44 | 2351 | ## ------------------- ##" |
81ecdfbb RW |
2352 | echo |
2353 | for ac_var in $ac_subst_files | |
2354 | do | |
2355 | eval ac_val=\$$ac_var | |
2356 | case $ac_val in | |
2357 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2358 | esac | |
2359 | $as_echo "$ac_var='\''$ac_val'\''" | |
2360 | done | sort | |
2361 | echo | |
2362 | fi | |
2363 | ||
2364 | if test -s confdefs.h; then | |
d0ac1c44 | 2365 | $as_echo "## ----------- ## |
81ecdfbb | 2366 | ## confdefs.h. ## |
d0ac1c44 | 2367 | ## ----------- ##" |
81ecdfbb RW |
2368 | echo |
2369 | cat confdefs.h | |
2370 | echo | |
2371 | fi | |
2372 | test "$ac_signal" != 0 && | |
2373 | $as_echo "$as_me: caught signal $ac_signal" | |
2374 | $as_echo "$as_me: exit $exit_status" | |
2375 | } >&5 | |
2376 | rm -f core *.core core.conftest.* && | |
2377 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2378 | exit $exit_status | |
2379 | ' 0 | |
2380 | for ac_signal in 1 2 13 15; do | |
2381 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2382 | done | |
2383 | ac_signal=0 | |
2384 | ||
2385 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2386 | rm -f -r conftest* confdefs.h | |
2387 | ||
2388 | $as_echo "/* confdefs.h */" > confdefs.h | |
2389 | ||
2390 | # Predefined preprocessor variables. | |
2391 | ||
2392 | cat >>confdefs.h <<_ACEOF | |
2393 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2394 | _ACEOF | |
2395 | ||
2396 | cat >>confdefs.h <<_ACEOF | |
2397 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2398 | _ACEOF | |
2399 | ||
2400 | cat >>confdefs.h <<_ACEOF | |
2401 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2402 | _ACEOF | |
2403 | ||
2404 | cat >>confdefs.h <<_ACEOF | |
2405 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2406 | _ACEOF | |
2407 | ||
2408 | cat >>confdefs.h <<_ACEOF | |
2409 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2410 | _ACEOF | |
2411 | ||
2412 | cat >>confdefs.h <<_ACEOF | |
2413 | #define PACKAGE_URL "$PACKAGE_URL" | |
2414 | _ACEOF | |
2415 | ||
2416 | ||
2417 | # Let the site file select an alternate cache file if it wants to. | |
2418 | # Prefer an explicitly selected file to automatically selected ones. | |
2419 | ac_site_file1=NONE | |
2420 | ac_site_file2=NONE | |
2421 | if test -n "$CONFIG_SITE"; then | |
d0ac1c44 SM |
2422 | # We do not want a PATH search for config.site. |
2423 | case $CONFIG_SITE in #(( | |
2424 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2425 | */*) ac_site_file1=$CONFIG_SITE;; | |
2426 | *) ac_site_file1=./$CONFIG_SITE;; | |
2427 | esac | |
81ecdfbb RW |
2428 | elif test "x$prefix" != xNONE; then |
2429 | ac_site_file1=$prefix/share/config.site | |
2430 | ac_site_file2=$prefix/etc/config.site | |
2431 | else | |
2432 | ac_site_file1=$ac_default_prefix/share/config.site | |
2433 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2434 | fi | |
2435 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2436 | do | |
2437 | test "x$ac_site_file" = xNONE && continue | |
d0ac1c44 | 2438 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
81ecdfbb RW |
2439 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
2440 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2441 | sed 's/^/| /' "$ac_site_file" >&5 | |
d0ac1c44 SM |
2442 | . "$ac_site_file" \ |
2443 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2444 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2445 | as_fn_error $? "failed to load site script $ac_site_file | |
2446 | See \`config.log' for more details" "$LINENO" 5; } | |
81ecdfbb RW |
2447 | fi |
2448 | done | |
2449 | ||
2450 | if test -r "$cache_file"; then | |
d0ac1c44 SM |
2451 | # Some versions of bash will fail to source /dev/null (special files |
2452 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2453 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
81ecdfbb RW |
2454 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
2455 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2456 | case $cache_file in | |
2457 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2458 | *) . "./$cache_file";; | |
2459 | esac | |
2460 | fi | |
2461 | else | |
2462 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2463 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2464 | >$cache_file | |
2465 | fi | |
2466 | ||
d0ac1c44 SM |
2467 | as_fn_append ac_header_list " stdlib.h" |
2468 | as_fn_append ac_header_list " unistd.h" | |
2469 | as_fn_append ac_header_list " sys/param.h" | |
81ecdfbb RW |
2470 | # Check that the precious variables saved in the cache have kept the same |
2471 | # value. | |
2472 | ac_cache_corrupted=false | |
2473 | for ac_var in $ac_precious_vars; do | |
2474 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2475 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2476 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2477 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2478 | case $ac_old_set,$ac_new_set in | |
2479 | set,) | |
2480 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2481 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2482 | ac_cache_corrupted=: ;; | |
2483 | ,set) | |
2484 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2485 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2486 | ac_cache_corrupted=: ;; | |
2487 | ,);; | |
2488 | *) | |
2489 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2490 | # differences in whitespace do not lead to failure. | |
2491 | ac_old_val_w=`echo x $ac_old_val` | |
2492 | ac_new_val_w=`echo x $ac_new_val` | |
2493 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2494 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2495 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2496 | ac_cache_corrupted=: | |
2497 | else | |
2498 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2499 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2500 | eval $ac_var=\$ac_old_val | |
2501 | fi | |
2502 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2503 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2504 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2505 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2506 | fi;; | |
2507 | esac | |
2508 | # Pass precious variables to config.status. | |
2509 | if test "$ac_new_set" = set; then | |
2510 | case $ac_new_val in | |
2511 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2512 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2513 | esac | |
2514 | case " $ac_configure_args " in | |
2515 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2516 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2517 | esac | |
5464f5a1 NN |
2518 | fi |
2519 | done | |
81ecdfbb RW |
2520 | if $ac_cache_corrupted; then |
2521 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2522 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2523 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2524 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
d0ac1c44 | 2525 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
81ecdfbb RW |
2526 | fi |
2527 | ## -------------------- ## | |
2528 | ## Main body of script. ## | |
2529 | ## -------------------- ## | |
2530 | ||
2531 | ac_ext=c | |
2532 | ac_cpp='$CPP $CPPFLAGS' | |
2533 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2534 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2535 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2536 | ||
2537 | ||
2538 | ||
2539 | ||
2540 | ||
2541 | ||
2542 | ||
2543 | ac_aux_dir= | |
2544 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
d0ac1c44 SM |
2545 | if test -f "$ac_dir/install-sh"; then |
2546 | ac_aux_dir=$ac_dir | |
2547 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2548 | break | |
2549 | elif test -f "$ac_dir/install.sh"; then | |
2550 | ac_aux_dir=$ac_dir | |
2551 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2552 | break | |
2553 | elif test -f "$ac_dir/shtool"; then | |
2554 | ac_aux_dir=$ac_dir | |
2555 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2556 | break | |
2557 | fi | |
5464f5a1 | 2558 | done |
81ecdfbb | 2559 | if test -z "$ac_aux_dir"; then |
d0ac1c44 | 2560 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 |
81ecdfbb RW |
2561 | fi |
2562 | ||
2563 | # These three variables are undocumented and unsupported, | |
2564 | # and are intended to be withdrawn in a future Autoconf release. | |
2565 | # They can cause serious problems if a builder's source tree is in a directory | |
2566 | # whose full name contains unusual characters. | |
2567 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2568 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2569 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2570 | ||
2571 | ||
2572 | # Make sure we can run config.sub. | |
2573 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
d0ac1c44 | 2574 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
81ecdfbb RW |
2575 | |
2576 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2577 | $as_echo_n "checking build system type... " >&6; } | |
d0ac1c44 | 2578 | if ${ac_cv_build+:} false; then : |
81ecdfbb RW |
2579 | $as_echo_n "(cached) " >&6 |
2580 | else | |
2581 | ac_build_alias=$build_alias | |
2582 | test "x$ac_build_alias" = x && | |
2583 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2584 | test "x$ac_build_alias" = x && | |
d0ac1c44 | 2585 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 |
81ecdfbb | 2586 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
d0ac1c44 | 2587 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
81ecdfbb RW |
2588 | |
2589 | fi | |
2590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2591 | $as_echo "$ac_cv_build" >&6; } | |
2592 | case $ac_cv_build in | |
2593 | *-*-*) ;; | |
d0ac1c44 | 2594 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; |
81ecdfbb RW |
2595 | esac |
2596 | build=$ac_cv_build | |
2597 | ac_save_IFS=$IFS; IFS='-' | |
2598 | set x $ac_cv_build | |
2599 | shift | |
2600 | build_cpu=$1 | |
2601 | build_vendor=$2 | |
2602 | shift; shift | |
2603 | # Remember, the first character of IFS is used to create $*, | |
2604 | # except with old shells: | |
2605 | build_os=$* | |
2606 | IFS=$ac_save_IFS | |
2607 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
5464f5a1 | 2608 | |
81ecdfbb RW |
2609 | |
2610 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2611 | $as_echo_n "checking host system type... " >&6; } | |
d0ac1c44 | 2612 | if ${ac_cv_host+:} false; then : |
81ecdfbb RW |
2613 | $as_echo_n "(cached) " >&6 |
2614 | else | |
2615 | if test "x$host_alias" = x; then | |
2616 | ac_cv_host=$ac_cv_build | |
2617 | else | |
2618 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
d0ac1c44 | 2619 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
5464f5a1 | 2620 | fi |
81ecdfbb | 2621 | |
5464f5a1 | 2622 | fi |
81ecdfbb RW |
2623 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
2624 | $as_echo "$ac_cv_host" >&6; } | |
2625 | case $ac_cv_host in | |
2626 | *-*-*) ;; | |
d0ac1c44 | 2627 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; |
81ecdfbb RW |
2628 | esac |
2629 | host=$ac_cv_host | |
2630 | ac_save_IFS=$IFS; IFS='-' | |
2631 | set x $ac_cv_host | |
2632 | shift | |
2633 | host_cpu=$1 | |
2634 | host_vendor=$2 | |
2635 | shift; shift | |
2636 | # Remember, the first character of IFS is used to create $*, | |
2637 | # except with old shells: | |
2638 | host_os=$* | |
2639 | IFS=$ac_save_IFS | |
2640 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2641 | ||
2642 | ||
2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2644 | $as_echo_n "checking target system type... " >&6; } | |
d0ac1c44 | 2645 | if ${ac_cv_target+:} false; then : |
81ecdfbb | 2646 | $as_echo_n "(cached) " >&6 |
5464f5a1 | 2647 | else |
81ecdfbb RW |
2648 | if test "x$target_alias" = x; then |
2649 | ac_cv_target=$ac_cv_host | |
2650 | else | |
2651 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
d0ac1c44 | 2652 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 |
5464f5a1 NN |
2653 | fi |
2654 | ||
2655 | fi | |
81ecdfbb RW |
2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 |
2657 | $as_echo "$ac_cv_target" >&6; } | |
2658 | case $ac_cv_target in | |
2659 | *-*-*) ;; | |
d0ac1c44 | 2660 | *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; |
81ecdfbb RW |
2661 | esac |
2662 | target=$ac_cv_target | |
2663 | ac_save_IFS=$IFS; IFS='-' | |
2664 | set x $ac_cv_target | |
2665 | shift | |
2666 | target_cpu=$1 | |
2667 | target_vendor=$2 | |
2668 | shift; shift | |
2669 | # Remember, the first character of IFS is used to create $*, | |
2670 | # except with old shells: | |
2671 | target_os=$* | |
2672 | IFS=$ac_save_IFS | |
2673 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2674 | ||
2675 | ||
2676 | # The aliases save the names the user supplied, while $host etc. | |
2677 | # will get canonicalized. | |
2678 | test -n "$target_alias" && | |
2679 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2680 | NONENONEs,x,x, && | |
2681 | program_prefix=${target_alias}- | |
d0ac1c44 | 2682 | |
83c79df8 AM |
2683 | am__api_version='1.15' |
2684 | ||
2685 | # Find a good install program. We prefer a C program (faster), | |
2686 | # so one script is as good as another. But avoid the broken or | |
2687 | # incompatible versions: | |
2688 | # SysV /etc/install, /usr/sbin/install | |
2689 | # SunOS /usr/etc/install | |
2690 | # IRIX /sbin/install | |
2691 | # AIX /bin/install | |
2692 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2693 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2694 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2695 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2696 | # OS/2's system install, which has a completely different semantic | |
2697 | # ./install, which can be erroneously created by make from ./install.sh. | |
2698 | # Reject install programs that cannot install multiple files. | |
2699 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2700 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2701 | if test -z "$INSTALL"; then | |
2702 | if ${ac_cv_path_install+:} false; then : | |
81ecdfbb | 2703 | $as_echo_n "(cached) " >&6 |
5464f5a1 | 2704 | else |
83c79df8 | 2705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5464f5a1 NN |
2706 | for as_dir in $PATH |
2707 | do | |
2708 | IFS=$as_save_IFS | |
2709 | test -z "$as_dir" && as_dir=. | |
83c79df8 AM |
2710 | # Account for people who put trailing slashes in PATH elements. |
2711 | case $as_dir/ in #(( | |
2712 | ./ | .// | /[cC]/* | \ | |
2713 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2714 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2715 | /usr/ucb/* ) ;; | |
2716 | *) | |
2717 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2718 | # Don't use installbsd from OSF since it installs stuff as root | |
2719 | # by default. | |
2720 | for ac_prog in ginstall scoinst install; do | |
2721 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2722 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2723 | if test $ac_prog = install && | |
2724 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2725 | # AIX install. It has an incompatible calling convention. | |
2726 | : | |
2727 | elif test $ac_prog = install && | |
2728 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2729 | # program-specific install script used by HP pwplus--don't use. | |
2730 | : | |
2731 | else | |
2732 | rm -rf conftest.one conftest.two conftest.dir | |
2733 | echo one > conftest.one | |
2734 | echo two > conftest.two | |
2735 | mkdir conftest.dir | |
2736 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2737 | test -s conftest.one && test -s conftest.two && | |
2738 | test -s conftest.dir/conftest.one && | |
2739 | test -s conftest.dir/conftest.two | |
2740 | then | |
2741 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2742 | break 3 | |
2743 | fi | |
2744 | fi | |
2745 | fi | |
2746 | done | |
2747 | done | |
2748 | ;; | |
2749 | esac | |
2750 | ||
81ecdfbb RW |
2751 | done |
2752 | IFS=$as_save_IFS | |
5464f5a1 | 2753 | |
58c85be7 | 2754 | rm -rf conftest.one conftest.two conftest.dir |
252b5132 RH |
2755 | |
2756 | fi | |
2757 | if test "${ac_cv_path_install+set}" = set; then | |
5464f5a1 | 2758 | INSTALL=$ac_cv_path_install |
252b5132 | 2759 | else |
58c85be7 RW |
2760 | # As a last resort, use the slow shell script. Don't cache a |
2761 | # value for INSTALL within a source directory, because that will | |
252b5132 | 2762 | # break other packages using the cache if that directory is |
58c85be7 | 2763 | # removed, or if the value is a relative name. |
5464f5a1 | 2764 | INSTALL=$ac_install_sh |
252b5132 RH |
2765 | fi |
2766 | fi | |
81ecdfbb RW |
2767 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
2768 | $as_echo "$INSTALL" >&6; } | |
252b5132 RH |
2769 | |
2770 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2771 | # It thinks the first close brace ends the variable substitution. | |
2772 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2773 | ||
5464f5a1 | 2774 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
252b5132 RH |
2775 | |
2776 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2777 | ||
81ecdfbb RW |
2778 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 |
2779 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
81ecdfbb RW |
2780 | # Reject unsafe characters in $srcdir or the absolute working directory |
2781 | # name. Accept space and tab only in the latter. | |
2782 | am_lf=' | |
2783 | ' | |
2784 | case `pwd` in | |
2785 | *[\\\"\#\$\&\'\`$am_lf]*) | |
d0ac1c44 | 2786 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; |
81ecdfbb RW |
2787 | esac |
2788 | case $srcdir in | |
2789 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
d0ac1c44 | 2790 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; |
81ecdfbb RW |
2791 | esac |
2792 | ||
d0ac1c44 | 2793 | # Do 'set' in a subshell so we don't clobber the current shell's |
252b5132 RH |
2794 | # arguments. Must try -L first in case configure is actually a |
2795 | # symlink; some systems play weird games with the mod time of symlinks | |
2796 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2797 | # directory). | |
2798 | if ( | |
d0ac1c44 SM |
2799 | am_has_slept=no |
2800 | for am_try in 1 2; do | |
2801 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2802 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2803 | if test "$*" = "X"; then | |
2804 | # -L didn't work. | |
2805 | set X `ls -t "$srcdir/configure" conftest.file` | |
2806 | fi | |
2807 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2808 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2809 | ||
2810 | # If neither matched, then we have a broken ls. This can happen | |
2811 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2812 | # broken ls alias from the environment. This has actually | |
2813 | # happened. Such a system could not be considered "sane". | |
2814 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2815 | alias in your environment" "$LINENO" 5 | |
2816 | fi | |
2817 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2818 | break | |
2819 | fi | |
2820 | # Just in case. | |
2821 | sleep 1 | |
2822 | am_has_slept=yes | |
2823 | done | |
f5385ebf | 2824 | test "$2" = conftest.file |
252b5132 RH |
2825 | ) |
2826 | then | |
2827 | # Ok. | |
2828 | : | |
2829 | else | |
d0ac1c44 | 2830 | as_fn_error $? "newly created file is older than distributed files! |
81ecdfbb | 2831 | Check your system clock" "$LINENO" 5 |
252b5132 | 2832 | fi |
81ecdfbb RW |
2833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2834 | $as_echo "yes" >&6; } | |
d0ac1c44 SM |
2835 | # If we didn't sleep, we still need to ensure time stamps of config.status and |
2836 | # generated files are strictly newer. | |
2837 | am_sleep_pid= | |
2838 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2839 | ( sleep 1 ) & | |
2840 | am_sleep_pid=$! | |
2841 | fi | |
2842 | ||
2843 | rm -f conftest.file | |
2844 | ||
252b5132 | 2845 | test "$program_prefix" != NONE && |
81ecdfbb | 2846 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
252b5132 RH |
2847 | # Use a double $ so make ignores it. |
2848 | test "$program_suffix" != NONE && | |
81ecdfbb RW |
2849 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2850 | # Double any \ or $. | |
5464f5a1 | 2851 | # By default was `s,x,x', remove it if useless. |
81ecdfbb RW |
2852 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' |
2853 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
5464f5a1 | 2854 | |
83c79df8 AM |
2855 | # Expand $ac_aux_dir to an absolute path. |
2856 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2857 | ||
81ecdfbb RW |
2858 | if test x"${MISSING+set}" != xset; then |
2859 | case $am_aux_dir in | |
2860 | *\ * | *\ *) | |
2861 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2862 | *) | |
2863 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2864 | esac | |
2865 | fi | |
f5385ebf | 2866 | # Use eval to expand $SHELL |
d0ac1c44 SM |
2867 | if eval "$MISSING --is-lightweight"; then |
2868 | am_missing_run="$MISSING " | |
f5385ebf AM |
2869 | else |
2870 | am_missing_run= | |
d0ac1c44 SM |
2871 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 |
2872 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
81ecdfbb RW |
2873 | fi |
2874 | ||
d0ac1c44 | 2875 | if test x"${install_sh+set}" != xset; then |
81ecdfbb RW |
2876 | case $am_aux_dir in |
2877 | *\ * | *\ *) | |
2878 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2879 | *) | |
2880 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2881 | esac | |
2882 | fi | |
2883 | ||
d0ac1c44 SM |
2884 | # Installed binaries are usually stripped using 'strip' when the user |
2885 | # run "make install-strip". However 'strip' might not be the right | |
81ecdfbb | 2886 | # tool to use in cross-compilation environments, therefore Automake |
d0ac1c44 | 2887 | # will honor the 'STRIP' environment variable to overrule this program. |
81ecdfbb RW |
2888 | if test "$cross_compiling" != no; then |
2889 | if test -n "$ac_tool_prefix"; then | |
2890 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2891 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2892 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2893 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2894 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb RW |
2895 | $as_echo_n "(cached) " >&6 |
2896 | else | |
2897 | if test -n "$STRIP"; then | |
2898 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2899 | else | |
2900 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2901 | for as_dir in $PATH | |
2902 | do | |
2903 | IFS=$as_save_IFS | |
2904 | test -z "$as_dir" && as_dir=. | |
2905 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2906 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
81ecdfbb RW |
2907 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2908 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2909 | break 2 | |
2910 | fi | |
2911 | done | |
2912 | done | |
2913 | IFS=$as_save_IFS | |
2914 | ||
2915 | fi | |
2916 | fi | |
2917 | STRIP=$ac_cv_prog_STRIP | |
2918 | if test -n "$STRIP"; then | |
2919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2920 | $as_echo "$STRIP" >&6; } | |
2921 | else | |
2922 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2923 | $as_echo "no" >&6; } | |
2924 | fi | |
2925 | ||
2926 | ||
2927 | fi | |
2928 | if test -z "$ac_cv_prog_STRIP"; then | |
2929 | ac_ct_STRIP=$STRIP | |
2930 | # Extract the first word of "strip", so it can be a program name with args. | |
2931 | set dummy strip; ac_word=$2 | |
2932 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2933 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 2934 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
81ecdfbb RW |
2935 | $as_echo_n "(cached) " >&6 |
2936 | else | |
2937 | if test -n "$ac_ct_STRIP"; then | |
2938 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2939 | else | |
2940 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2941 | for as_dir in $PATH | |
2942 | do | |
2943 | IFS=$as_save_IFS | |
2944 | test -z "$as_dir" && as_dir=. | |
2945 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2946 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
81ecdfbb RW |
2947 | ac_cv_prog_ac_ct_STRIP="strip" |
2948 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2949 | break 2 | |
2950 | fi | |
2951 | done | |
2952 | done | |
2953 | IFS=$as_save_IFS | |
2954 | ||
2955 | fi | |
2956 | fi | |
2957 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2958 | if test -n "$ac_ct_STRIP"; then | |
2959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2960 | $as_echo "$ac_ct_STRIP" >&6; } | |
2961 | else | |
2962 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2963 | $as_echo "no" >&6; } | |
2964 | fi | |
2965 | ||
2966 | if test "x$ac_ct_STRIP" = x; then | |
2967 | STRIP=":" | |
2968 | else | |
2969 | case $cross_compiling:$ac_tool_warned in | |
2970 | yes:) | |
2971 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2972 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2973 | ac_tool_warned=yes ;; | |
2974 | esac | |
2975 | STRIP=$ac_ct_STRIP | |
2976 | fi | |
2977 | else | |
2978 | STRIP="$ac_cv_prog_STRIP" | |
2979 | fi | |
2980 | ||
2981 | fi | |
2982 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2983 | ||
2984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2985 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2986 | if test -z "$MKDIR_P"; then | |
d0ac1c44 | 2987 | if ${ac_cv_path_mkdir+:} false; then : |
81ecdfbb RW |
2988 | $as_echo_n "(cached) " >&6 |
2989 | else | |
2990 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2991 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2992 | do | |
2993 | IFS=$as_save_IFS | |
2994 | test -z "$as_dir" && as_dir=. | |
2995 | for ac_prog in mkdir gmkdir; do | |
2996 | for ac_exec_ext in '' $ac_executable_extensions; do | |
d0ac1c44 | 2997 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue |
81ecdfbb RW |
2998 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2999 | 'mkdir (GNU coreutils) '* | \ | |
3000 | 'mkdir (coreutils) '* | \ | |
3001 | 'mkdir (fileutils) '4.1*) | |
3002 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3003 | break 3;; | |
3004 | esac | |
3005 | done | |
3006 | done | |
f5385ebf | 3007 | done |
81ecdfbb RW |
3008 | IFS=$as_save_IFS |
3009 | ||
3010 | fi | |
3011 | ||
d0ac1c44 | 3012 | test -d ./--version && rmdir ./--version |
81ecdfbb RW |
3013 | if test "${ac_cv_path_mkdir+set}" = set; then |
3014 | MKDIR_P="$ac_cv_path_mkdir -p" | |
f5385ebf | 3015 | else |
81ecdfbb RW |
3016 | # As a last resort, use the slow shell script. Don't cache a |
3017 | # value for MKDIR_P within a source directory, because that will | |
3018 | # break other packages using the cache if that directory is | |
3019 | # removed, or if the value is a relative name. | |
81ecdfbb | 3020 | MKDIR_P="$ac_install_sh -d" |
f5385ebf AM |
3021 | fi |
3022 | fi | |
81ecdfbb RW |
3023 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 |
3024 | $as_echo "$MKDIR_P" >&6; } | |
3025 | ||
f5385ebf AM |
3026 | for ac_prog in gawk mawk nawk awk |
3027 | do | |
3028 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3029 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3030 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3031 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3032 | if ${ac_cv_prog_AWK+:} false; then : |
81ecdfbb | 3033 | $as_echo_n "(cached) " >&6 |
f5385ebf AM |
3034 | else |
3035 | if test -n "$AWK"; then | |
3036 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3037 | else | |
3038 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3039 | for as_dir in $PATH | |
3040 | do | |
3041 | IFS=$as_save_IFS | |
3042 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3043 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3044 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
f5385ebf | 3045 | ac_cv_prog_AWK="$ac_prog" |
81ecdfbb | 3046 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
f5385ebf AM |
3047 | break 2 |
3048 | fi | |
3049 | done | |
81ecdfbb RW |
3050 | done |
3051 | IFS=$as_save_IFS | |
f5385ebf AM |
3052 | |
3053 | fi | |
3054 | fi | |
3055 | AWK=$ac_cv_prog_AWK | |
3056 | if test -n "$AWK"; then | |
81ecdfbb RW |
3057 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
3058 | $as_echo "$AWK" >&6; } | |
f5385ebf | 3059 | else |
81ecdfbb RW |
3060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3061 | $as_echo "no" >&6; } | |
f5385ebf AM |
3062 | fi |
3063 | ||
81ecdfbb | 3064 | |
f5385ebf AM |
3065 | test -n "$AWK" && break |
3066 | done | |
3067 | ||
81ecdfbb RW |
3068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
3069 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3070 | set x ${MAKE-make} | |
3071 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
d0ac1c44 | 3072 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : |
81ecdfbb | 3073 | $as_echo_n "(cached) " >&6 |
5464f5a1 NN |
3074 | else |
3075 | cat >conftest.make <<\_ACEOF | |
81ecdfbb | 3076 | SHELL = /bin/sh |
252b5132 | 3077 | all: |
81ecdfbb | 3078 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
5464f5a1 | 3079 | _ACEOF |
d0ac1c44 | 3080 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. |
81ecdfbb RW |
3081 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
3082 | *@@@%%%=?*=@@@%%%*) | |
3083 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3084 | *) | |
3085 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3086 | esac | |
5464f5a1 | 3087 | rm -f conftest.make |
252b5132 | 3088 | fi |
81ecdfbb RW |
3089 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
3090 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3091 | $as_echo "yes" >&6; } | |
252b5132 RH |
3092 | SET_MAKE= |
3093 | else | |
81ecdfbb RW |
3094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3095 | $as_echo "no" >&6; } | |
252b5132 RH |
3096 | SET_MAKE="MAKE=${MAKE-make}" |
3097 | fi | |
3098 | ||
f5385ebf AM |
3099 | rm -rf .tst 2>/dev/null |
3100 | mkdir .tst 2>/dev/null | |
3101 | if test -d .tst; then | |
3102 | am__leading_dot=. | |
3103 | else | |
3104 | am__leading_dot=_ | |
3105 | fi | |
3106 | rmdir .tst 2>/dev/null | |
3107 | ||
d0ac1c44 SM |
3108 | # Check whether --enable-silent-rules was given. |
3109 | if test "${enable_silent_rules+set}" = set; then : | |
3110 | enableval=$enable_silent_rules; | |
3111 | fi | |
3112 | ||
3113 | case $enable_silent_rules in # ((( | |
3114 | yes) AM_DEFAULT_VERBOSITY=0;; | |
3115 | no) AM_DEFAULT_VERBOSITY=1;; | |
3116 | *) AM_DEFAULT_VERBOSITY=1;; | |
3117 | esac | |
3118 | am_make=${MAKE-make} | |
3119 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
3120 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
3121 | if ${am_cv_make_support_nested_variables+:} false; then : | |
3122 | $as_echo_n "(cached) " >&6 | |
3123 | else | |
3124 | if $as_echo 'TRUE=$(BAR$(V)) | |
3125 | BAR0=false | |
3126 | BAR1=true | |
3127 | V=1 | |
3128 | am__doit: | |
3129 | @$(TRUE) | |
3130 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
3131 | am_cv_make_support_nested_variables=yes | |
3132 | else | |
3133 | am_cv_make_support_nested_variables=no | |
3134 | fi | |
3135 | fi | |
3136 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
3137 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
3138 | if test $am_cv_make_support_nested_variables = yes; then | |
3139 | AM_V='$(V)' | |
3140 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
3141 | else | |
3142 | AM_V=$AM_DEFAULT_VERBOSITY | |
3143 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
3144 | fi | |
3145 | AM_BACKSLASH='\' | |
3146 | ||
81ecdfbb RW |
3147 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
3148 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
3149 | # is not polluted with repeated "-I." | |
3150 | am__isrc=' -I$(srcdir)' | |
3151 | # test to see if srcdir already configured | |
3152 | if test -f $srcdir/config.status; then | |
d0ac1c44 | 3153 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 |
81ecdfbb | 3154 | fi |
252b5132 | 3155 | fi |
5464f5a1 | 3156 | |
f5385ebf AM |
3157 | # test whether we have cygpath |
3158 | if test -z "$CYGPATH_W"; then | |
3159 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
3160 | CYGPATH_W='cygpath -w' | |
3161 | else | |
3162 | CYGPATH_W=echo | |
3163 | fi | |
3164 | fi | |
3165 | ||
3166 | ||
3167 | # Define the identity of the package. | |
c4dd807e | 3168 | PACKAGE='bfd' |
573fe3fb | 3169 | VERSION='2.36.50' |
f5385ebf AM |
3170 | |
3171 | ||
5464f5a1 | 3172 | cat >>confdefs.h <<_ACEOF |
252b5132 | 3173 | #define PACKAGE "$PACKAGE" |
5464f5a1 | 3174 | _ACEOF |
252b5132 | 3175 | |
5464f5a1 NN |
3176 | |
3177 | cat >>confdefs.h <<_ACEOF | |
252b5132 | 3178 | #define VERSION "$VERSION" |
5464f5a1 | 3179 | _ACEOF |
252b5132 | 3180 | |
f5385ebf AM |
3181 | # Some tools Automake needs. |
3182 | ||
3183 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
3184 | ||
3185 | ||
3186 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
3187 | ||
3188 | ||
3189 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
3190 | ||
3191 | ||
83c79df8 AM |
3192 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
3193 | ||
3194 | ||
3195 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
3196 | ||
3197 | # For better backward compatibility. To be removed once Automake 1.9.x | |
3198 | # dies out for good. For more background, see: | |
3199 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
3200 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
3201 | mkdir_p='$(MKDIR_P)' | |
3202 | ||
3203 | # We need awk for the "check" target (and possibly the TAP driver). The | |
3204 | # system "awk" is bad on some platforms. | |
3205 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
3206 | # in the wild :-( We should find a proper way to deprecate it ... | |
3207 | AMTAR='$${TAR-tar}' | |
3208 | ||
3209 | ||
3210 | # We'll loop over all known methods to create a tar archive until one works. | |
3211 | _am_tools='gnutar pax cpio none' | |
3212 | ||
3213 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
3214 | ||
f5385ebf | 3215 | |
252b5132 | 3216 | |
252b5132 | 3217 | |
6be7c12c | 3218 | |
e43d48cc | 3219 | |
d0ac1c44 SM |
3220 | # POSIX will say in a future version that running "rm -f" with no argument |
3221 | # is OK; and we want to be able to make that assumption in our Makefile | |
3222 | # recipes. So use an aggressive probe to check that the usage we want is | |
3223 | # actually supported "in the wild" to an acceptable degree. | |
3224 | # See automake bug#10828. | |
3225 | # To make any issue more visible, cause the running configure to be aborted | |
3226 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3227 | # user can still override this though. | |
3228 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3229 | cat >&2 <<'END' | |
3230 | Oops! | |
3231 | ||
3232 | Your 'rm' program seems unable to run without file operands specified | |
3233 | on the command line, even when the '-f' option is present. This is contrary | |
3234 | to the behaviour of most rm programs out there, and not conforming with | |
3235 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3236 | ||
3237 | Please tell bug-automake@gnu.org about your system, including the value | |
3238 | of your $PATH and any error possibly output before this message. This | |
3239 | can help us improve future automake versions. | |
3240 | ||
3241 | END | |
3242 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3243 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3244 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3245 | echo >&2 | |
3246 | else | |
3247 | cat >&2 <<'END' | |
3248 | Aborting the configuration process, to ensure you take notice of the issue. | |
3249 | ||
3250 | You can download and install GNU coreutils to get an 'rm' implementation | |
3251 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3252 | ||
3253 | If you want to complete the configuration process using your problematic | |
3254 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3255 | to "yes", and re-run configure. | |
3256 | ||
3257 | END | |
3258 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3259 | fi | |
3260 | fi | |
3261 | ||
f5385ebf | 3262 | |
5464f5a1 NN |
3263 | if test -n "$ac_tool_prefix"; then |
3264 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
252b5132 | 3265 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
81ecdfbb RW |
3266 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3267 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3268 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 3269 | $as_echo_n "(cached) " >&6 |
252b5132 RH |
3270 | else |
3271 | if test -n "$AR"; then | |
3272 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
3273 | else | |
5464f5a1 NN |
3274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3275 | for as_dir in $PATH | |
3276 | do | |
3277 | IFS=$as_save_IFS | |
3278 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3279 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3280 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5464f5a1 | 3281 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 3282 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5464f5a1 NN |
3283 | break 2 |
3284 | fi | |
3285 | done | |
81ecdfbb RW |
3286 | done |
3287 | IFS=$as_save_IFS | |
5464f5a1 | 3288 | |
252b5132 RH |
3289 | fi |
3290 | fi | |
5464f5a1 | 3291 | AR=$ac_cv_prog_AR |
252b5132 | 3292 | if test -n "$AR"; then |
81ecdfbb RW |
3293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
3294 | $as_echo "$AR" >&6; } | |
252b5132 | 3295 | else |
81ecdfbb RW |
3296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3297 | $as_echo "no" >&6; } | |
5464f5a1 NN |
3298 | fi |
3299 | ||
81ecdfbb | 3300 | |
252b5132 | 3301 | fi |
5464f5a1 NN |
3302 | if test -z "$ac_cv_prog_AR"; then |
3303 | ac_ct_AR=$AR | |
3304 | # Extract the first word of "ar", so it can be a program name with args. | |
3305 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
3306 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3307 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3308 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
81ecdfbb | 3309 | $as_echo_n "(cached) " >&6 |
5464f5a1 NN |
3310 | else |
3311 | if test -n "$ac_ct_AR"; then | |
3312 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
3313 | else | |
3314 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3315 | for as_dir in $PATH | |
3316 | do | |
3317 | IFS=$as_save_IFS | |
3318 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3319 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3320 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5464f5a1 | 3321 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 3322 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5464f5a1 NN |
3323 | break 2 |
3324 | fi | |
3325 | done | |
81ecdfbb RW |
3326 | done |
3327 | IFS=$as_save_IFS | |
252b5132 | 3328 | |
5464f5a1 NN |
3329 | fi |
3330 | fi | |
3331 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
3332 | if test -n "$ac_ct_AR"; then | |
81ecdfbb RW |
3333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
3334 | $as_echo "$ac_ct_AR" >&6; } | |
5464f5a1 | 3335 | else |
81ecdfbb RW |
3336 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3337 | $as_echo "no" >&6; } | |
5464f5a1 | 3338 | fi |
252b5132 | 3339 | |
81ecdfbb RW |
3340 | if test "x$ac_ct_AR" = x; then |
3341 | AR="" | |
3342 | else | |
3343 | case $cross_compiling:$ac_tool_warned in | |
3344 | yes:) | |
3345 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3346 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3347 | ac_tool_warned=yes ;; | |
3348 | esac | |
3349 | AR=$ac_ct_AR | |
3350 | fi | |
5464f5a1 NN |
3351 | else |
3352 | AR="$ac_cv_prog_AR" | |
3353 | fi | |
6be7c12c | 3354 | |
5464f5a1 NN |
3355 | if test -n "$ac_tool_prefix"; then |
3356 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
252b5132 | 3357 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
81ecdfbb RW |
3358 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3359 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3360 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 3361 | $as_echo_n "(cached) " >&6 |
252b5132 RH |
3362 | else |
3363 | if test -n "$RANLIB"; then | |
3364 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
3365 | else | |
5464f5a1 NN |
3366 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3367 | for as_dir in $PATH | |
3368 | do | |
3369 | IFS=$as_save_IFS | |
3370 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3371 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3372 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5464f5a1 | 3373 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 3374 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5464f5a1 NN |
3375 | break 2 |
3376 | fi | |
3377 | done | |
81ecdfbb RW |
3378 | done |
3379 | IFS=$as_save_IFS | |
5464f5a1 | 3380 | |
252b5132 RH |
3381 | fi |
3382 | fi | |
5464f5a1 | 3383 | RANLIB=$ac_cv_prog_RANLIB |
252b5132 | 3384 | if test -n "$RANLIB"; then |
81ecdfbb RW |
3385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
3386 | $as_echo "$RANLIB" >&6; } | |
252b5132 | 3387 | else |
81ecdfbb RW |
3388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3389 | $as_echo "no" >&6; } | |
252b5132 RH |
3390 | fi |
3391 | ||
81ecdfbb | 3392 | |
5464f5a1 | 3393 | fi |
252b5132 | 3394 | if test -z "$ac_cv_prog_RANLIB"; then |
5464f5a1 | 3395 | ac_ct_RANLIB=$RANLIB |
252b5132 RH |
3396 | # Extract the first word of "ranlib", so it can be a program name with args. |
3397 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
3398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3399 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3400 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
81ecdfbb | 3401 | $as_echo_n "(cached) " >&6 |
6be7c12c | 3402 | else |
5464f5a1 NN |
3403 | if test -n "$ac_ct_RANLIB"; then |
3404 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6be7c12c | 3405 | else |
5464f5a1 NN |
3406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3407 | for as_dir in $PATH | |
3408 | do | |
3409 | IFS=$as_save_IFS | |
3410 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3411 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3412 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
5464f5a1 | 3413 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 3414 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5464f5a1 NN |
3415 | break 2 |
3416 | fi | |
3417 | done | |
81ecdfbb RW |
3418 | done |
3419 | IFS=$as_save_IFS | |
5464f5a1 | 3420 | |
252b5132 RH |
3421 | fi |
3422 | fi | |
5464f5a1 NN |
3423 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
3424 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
3425 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
3426 | $as_echo "$ac_ct_RANLIB" >&6; } | |
252b5132 | 3427 | else |
81ecdfbb RW |
3428 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3429 | $as_echo "no" >&6; } | |
252b5132 RH |
3430 | fi |
3431 | ||
81ecdfbb RW |
3432 | if test "x$ac_ct_RANLIB" = x; then |
3433 | RANLIB=":" | |
3434 | else | |
3435 | case $cross_compiling:$ac_tool_warned in | |
3436 | yes:) | |
3437 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3438 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3439 | ac_tool_warned=yes ;; | |
3440 | esac | |
3441 | RANLIB=$ac_ct_RANLIB | |
3442 | fi | |
252b5132 | 3443 | else |
5464f5a1 | 3444 | RANLIB="$ac_cv_prog_RANLIB" |
6be7c12c AO |
3445 | fi |
3446 | ||
252b5132 | 3447 | |
81ecdfbb RW |
3448 | # Check whether --enable-shared was given. |
3449 | if test "${enable_shared+set}" = set; then : | |
3450 | enableval=$enable_shared; p=${PACKAGE-default} | |
d7040cdb SE |
3451 | case $enableval in |
3452 | yes) enable_shared=yes ;; | |
3453 | no) enable_shared=no ;; | |
3454 | *) | |
3455 | enable_shared=no | |
3456 | # Look at the argument we got. We use all the common list separators. | |
3457 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
3458 | for pkg in $enableval; do | |
3459 | IFS="$lt_save_ifs" | |
3460 | if test "X$pkg" = "X$p"; then | |
3461 | enable_shared=yes | |
3462 | fi | |
3463 | done | |
3464 | IFS="$lt_save_ifs" | |
3465 | ;; | |
3466 | esac | |
252b5132 RH |
3467 | else |
3468 | enable_shared=no | |
81ecdfbb RW |
3469 | fi |
3470 | ||
252b5132 | 3471 | |
d7040cdb SE |
3472 | |
3473 | ||
3474 | ||
3475 | ||
3476 | ||
3477 | ||
3478 | ||
3479 | ||
cfbc9945 SE |
3480 | ac_ext=c |
3481 | ac_cpp='$CPP $CPPFLAGS' | |
3482 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3483 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3484 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3485 | if test -n "$ac_tool_prefix"; then | |
3486 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3487 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
81ecdfbb RW |
3488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3489 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3490 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3491 | $as_echo_n "(cached) " >&6 |
252b5132 | 3492 | else |
cfbc9945 SE |
3493 | if test -n "$CC"; then |
3494 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
b2ef150d | 3495 | else |
cfbc9945 SE |
3496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3497 | for as_dir in $PATH | |
3498 | do | |
3499 | IFS=$as_save_IFS | |
3500 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3501 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3502 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
cfbc9945 | 3503 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
81ecdfbb | 3504 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
cfbc9945 SE |
3505 | break 2 |
3506 | fi | |
3507 | done | |
81ecdfbb RW |
3508 | done |
3509 | IFS=$as_save_IFS | |
c5d1701e | 3510 | |
cfbc9945 SE |
3511 | fi |
3512 | fi | |
3513 | CC=$ac_cv_prog_CC | |
3514 | if test -n "$CC"; then | |
81ecdfbb RW |
3515 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3516 | $as_echo "$CC" >&6; } | |
252b5132 | 3517 | else |
81ecdfbb RW |
3518 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3519 | $as_echo "no" >&6; } | |
252b5132 | 3520 | fi |
cfbc9945 | 3521 | |
81ecdfbb | 3522 | |
cfbc9945 SE |
3523 | fi |
3524 | if test -z "$ac_cv_prog_CC"; then | |
3525 | ac_ct_CC=$CC | |
3526 | # Extract the first word of "gcc", so it can be a program name with args. | |
3527 | set dummy gcc; ac_word=$2 | |
81ecdfbb RW |
3528 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3529 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3530 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 3531 | $as_echo_n "(cached) " >&6 |
252b5132 | 3532 | else |
cfbc9945 SE |
3533 | if test -n "$ac_ct_CC"; then |
3534 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
252b5132 | 3535 | else |
cfbc9945 SE |
3536 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3537 | for as_dir in $PATH | |
3538 | do | |
3539 | IFS=$as_save_IFS | |
3540 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3541 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3542 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
cfbc9945 | 3543 | ac_cv_prog_ac_ct_CC="gcc" |
81ecdfbb | 3544 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
cfbc9945 SE |
3545 | break 2 |
3546 | fi | |
3547 | done | |
81ecdfbb RW |
3548 | done |
3549 | IFS=$as_save_IFS | |
cfbc9945 | 3550 | |
252b5132 RH |
3551 | fi |
3552 | fi | |
cfbc9945 SE |
3553 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
3554 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3556 | $as_echo "$ac_ct_CC" >&6; } | |
252b5132 | 3557 | else |
81ecdfbb RW |
3558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3559 | $as_echo "no" >&6; } | |
252b5132 | 3560 | fi |
cfbc9945 | 3561 | |
81ecdfbb RW |
3562 | if test "x$ac_ct_CC" = x; then |
3563 | CC="" | |
3564 | else | |
3565 | case $cross_compiling:$ac_tool_warned in | |
3566 | yes:) | |
3567 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3568 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3569 | ac_tool_warned=yes ;; | |
3570 | esac | |
3571 | CC=$ac_ct_CC | |
3572 | fi | |
cfbc9945 SE |
3573 | else |
3574 | CC="$ac_cv_prog_CC" | |
3575 | fi | |
3576 | ||
3577 | if test -z "$CC"; then | |
81ecdfbb RW |
3578 | if test -n "$ac_tool_prefix"; then |
3579 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
cfbc9945 | 3580 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
81ecdfbb RW |
3581 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3582 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3583 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3584 | $as_echo_n "(cached) " >&6 |
252b5132 | 3585 | else |
cfbc9945 SE |
3586 | if test -n "$CC"; then |
3587 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 3588 | else |
cfbc9945 SE |
3589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3590 | for as_dir in $PATH | |
3591 | do | |
3592 | IFS=$as_save_IFS | |
3593 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3594 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3595 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
cfbc9945 | 3596 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
81ecdfbb | 3597 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
cfbc9945 SE |
3598 | break 2 |
3599 | fi | |
3600 | done | |
81ecdfbb RW |
3601 | done |
3602 | IFS=$as_save_IFS | |
cfbc9945 | 3603 | |
252b5132 RH |
3604 | fi |
3605 | fi | |
cfbc9945 SE |
3606 | CC=$ac_cv_prog_CC |
3607 | if test -n "$CC"; then | |
81ecdfbb RW |
3608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3609 | $as_echo "$CC" >&6; } | |
ac48eca1 | 3610 | else |
81ecdfbb RW |
3611 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3612 | $as_echo "no" >&6; } | |
ac48eca1 | 3613 | fi |
ac48eca1 | 3614 | |
81ecdfbb RW |
3615 | |
3616 | fi | |
cfbc9945 | 3617 | fi |
81ecdfbb | 3618 | if test -z "$CC"; then |
cfbc9945 SE |
3619 | # Extract the first word of "cc", so it can be a program name with args. |
3620 | set dummy cc; ac_word=$2 | |
81ecdfbb RW |
3621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3622 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3623 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3624 | $as_echo_n "(cached) " >&6 |
252b5132 | 3625 | else |
81ecdfbb RW |
3626 | if test -n "$CC"; then |
3627 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
252b5132 | 3628 | else |
81ecdfbb | 3629 | ac_prog_rejected=no |
cfbc9945 SE |
3630 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3631 | for as_dir in $PATH | |
3632 | do | |
3633 | IFS=$as_save_IFS | |
3634 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3635 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3636 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
cfbc9945 SE |
3637 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
3638 | ac_prog_rejected=yes | |
3639 | continue | |
3640 | fi | |
3641 | ac_cv_prog_CC="cc" | |
81ecdfbb | 3642 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
cfbc9945 SE |
3643 | break 2 |
3644 | fi | |
3645 | done | |
81ecdfbb RW |
3646 | done |
3647 | IFS=$as_save_IFS | |
cfbc9945 SE |
3648 | |
3649 | if test $ac_prog_rejected = yes; then | |
3650 | # We found a bogon in the path, so make sure we never use it. | |
3651 | set dummy $ac_cv_prog_CC | |
3652 | shift | |
3653 | if test $# != 0; then | |
3654 | # We chose a different compiler from the bogus one. | |
3655 | # However, it has the same basename, so the bogon will be chosen | |
3656 | # first if we set CC to just the basename; use the full file name. | |
3657 | shift | |
3658 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3659 | fi | |
3660 | fi | |
3661 | fi | |
3662 | fi | |
3663 | CC=$ac_cv_prog_CC | |
3664 | if test -n "$CC"; then | |
81ecdfbb RW |
3665 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3666 | $as_echo "$CC" >&6; } | |
cfbc9945 | 3667 | else |
81ecdfbb RW |
3668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3669 | $as_echo "no" >&6; } | |
252b5132 RH |
3670 | fi |
3671 | ||
81ecdfbb | 3672 | |
cfbc9945 SE |
3673 | fi |
3674 | if test -z "$CC"; then | |
3675 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb | 3676 | for ac_prog in cl.exe |
cfbc9945 SE |
3677 | do |
3678 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3679 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
3680 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3681 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3682 | if ${ac_cv_prog_CC+:} false; then : |
81ecdfbb | 3683 | $as_echo_n "(cached) " >&6 |
ac48eca1 | 3684 | else |
cfbc9945 SE |
3685 | if test -n "$CC"; then |
3686 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3687 | else | |
3688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3689 | for as_dir in $PATH | |
3690 | do | |
3691 | IFS=$as_save_IFS | |
3692 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3693 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3694 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
cfbc9945 | 3695 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
81ecdfbb | 3696 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
cfbc9945 SE |
3697 | break 2 |
3698 | fi | |
3699 | done | |
81ecdfbb RW |
3700 | done |
3701 | IFS=$as_save_IFS | |
ac48eca1 | 3702 | |
cfbc9945 SE |
3703 | fi |
3704 | fi | |
3705 | CC=$ac_cv_prog_CC | |
3706 | if test -n "$CC"; then | |
81ecdfbb RW |
3707 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
3708 | $as_echo "$CC" >&6; } | |
cfbc9945 | 3709 | else |
81ecdfbb RW |
3710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3711 | $as_echo "no" >&6; } | |
cfbc9945 | 3712 | fi |
ac48eca1 | 3713 | |
81ecdfbb | 3714 | |
cfbc9945 SE |
3715 | test -n "$CC" && break |
3716 | done | |
3717 | fi | |
3718 | if test -z "$CC"; then | |
3719 | ac_ct_CC=$CC | |
81ecdfbb | 3720 | for ac_prog in cl.exe |
cfbc9945 SE |
3721 | do |
3722 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3723 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
3724 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
3725 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 3726 | if ${ac_cv_prog_ac_ct_CC+:} false; then : |
81ecdfbb | 3727 | $as_echo_n "(cached) " >&6 |
cfbc9945 SE |
3728 | else |
3729 | if test -n "$ac_ct_CC"; then | |
3730 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3731 | else | |
3732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3733 | for as_dir in $PATH | |
3734 | do | |
3735 | IFS=$as_save_IFS | |
3736 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 3737 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 3738 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
cfbc9945 | 3739 | ac_cv_prog_ac_ct_CC="$ac_prog" |
81ecdfbb | 3740 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
cfbc9945 SE |
3741 | break 2 |
3742 | fi | |
3743 | done | |
81ecdfbb RW |
3744 | done |
3745 | IFS=$as_save_IFS | |
ac48eca1 | 3746 | |
cfbc9945 SE |
3747 | fi |
3748 | fi | |
3749 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3750 | if test -n "$ac_ct_CC"; then | |
81ecdfbb RW |
3751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
3752 | $as_echo "$ac_ct_CC" >&6; } | |
cfbc9945 | 3753 | else |
81ecdfbb RW |
3754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
3755 | $as_echo "no" >&6; } | |
cfbc9945 | 3756 | fi |
ac48eca1 | 3757 | |
81ecdfbb | 3758 | |
cfbc9945 SE |
3759 | test -n "$ac_ct_CC" && break |
3760 | done | |
ac48eca1 | 3761 | |
81ecdfbb RW |
3762 | if test "x$ac_ct_CC" = x; then |
3763 | CC="" | |
3764 | else | |
3765 | case $cross_compiling:$ac_tool_warned in | |
3766 | yes:) | |
3767 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3768 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3769 | ac_tool_warned=yes ;; | |
3770 | esac | |
3771 | CC=$ac_ct_CC | |
3772 | fi | |
cfbc9945 | 3773 | fi |
55c80943 | 3774 | |
83c79df8 AM |
3775 | fi |
3776 | ||
3777 | ||
3778 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3779 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3780 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
3781 | See \`config.log' for more details" "$LINENO" 5; } | |
3782 | ||
3783 | # Provide some information about the compiler. | |
3784 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3785 | set X $ac_compile | |
3786 | ac_compiler=$2 | |
3787 | for ac_option in --version -v -V -qversion; do | |
3788 | { { ac_try="$ac_compiler $ac_option >&5" | |
3789 | case "(($ac_try" in | |
3790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3791 | *) ac_try_echo=$ac_try;; | |
3792 | esac | |
3793 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3794 | $as_echo "$ac_try_echo"; } >&5 | |
3795 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3796 | ac_status=$? | |
3797 | if test -s conftest.err; then | |
3798 | sed '10a\ | |
3799 | ... rest of stderr output deleted ... | |
3800 | 10q' conftest.err >conftest.er1 | |
3801 | cat conftest.er1 >&5 | |
3802 | fi | |
3803 | rm -f conftest.er1 conftest.err | |
3804 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3805 | test $ac_status = 0; } | |
3806 | done | |
3807 | ||
3808 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3809 | /* end confdefs.h. */ | |
3810 | ||
3811 | int | |
3812 | main () | |
3813 | { | |
3814 | ||
3815 | ; | |
3816 | return 0; | |
3817 | } | |
3818 | _ACEOF | |
3819 | ac_clean_files_save=$ac_clean_files | |
3820 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3821 | # Try to create an executable without -o first, disregard a.out. | |
3822 | # It will help us diagnose broken compilers, and finding out an intuition | |
3823 | # of exeext. | |
3824 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3825 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
3826 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3827 | ||
3828 | # The possible output files: | |
3829 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3830 | ||
3831 | ac_rmfiles= | |
3832 | for ac_file in $ac_files | |
3833 | do | |
3834 | case $ac_file in | |
3835 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3836 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3837 | esac | |
3838 | done | |
3839 | rm -f $ac_rmfiles | |
3840 | ||
3841 | if { { ac_try="$ac_link_default" | |
3842 | case "(($ac_try" in | |
3843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3844 | *) ac_try_echo=$ac_try;; | |
3845 | esac | |
3846 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3847 | $as_echo "$ac_try_echo"; } >&5 | |
3848 | (eval "$ac_link_default") 2>&5 | |
3849 | ac_status=$? | |
3850 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3851 | test $ac_status = 0; }; then : | |
3852 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3853 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3854 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3855 | # so that the user can short-circuit this test for compilers unknown to | |
3856 | # Autoconf. | |
3857 | for ac_file in $ac_files '' | |
3858 | do | |
3859 | test -f "$ac_file" || continue | |
3860 | case $ac_file in | |
3861 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3862 | ;; | |
3863 | [ab].out ) | |
3864 | # We found the default executable, but exeext='' is most | |
3865 | # certainly right. | |
3866 | break;; | |
3867 | *.* ) | |
3868 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3869 | then :; else | |
3870 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3871 | fi | |
3872 | # We set ac_cv_exeext here because the later test for it is not | |
3873 | # safe: cross compilers may not add the suffix if given an `-o' | |
3874 | # argument, so we may need to know it at that point already. | |
3875 | # Even if this section looks crufty: it has the advantage of | |
3876 | # actually working. | |
3877 | break;; | |
3878 | * ) | |
3879 | break;; | |
3880 | esac | |
3881 | done | |
3882 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3883 | ||
3884 | else | |
3885 | ac_file='' | |
3886 | fi | |
3887 | if test -z "$ac_file"; then : | |
3888 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3889 | $as_echo "no" >&6; } | |
3890 | $as_echo "$as_me: failed program was:" >&5 | |
3891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3892 | ||
3893 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3894 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3895 | as_fn_error 77 "C compiler cannot create executables | |
3896 | See \`config.log' for more details" "$LINENO" 5; } | |
3897 | else | |
3898 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3899 | $as_echo "yes" >&6; } | |
3900 | fi | |
3901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3902 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3904 | $as_echo "$ac_file" >&6; } | |
3905 | ac_exeext=$ac_cv_exeext | |
3906 | ||
3907 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3908 | ac_clean_files=$ac_clean_files_save | |
3909 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3910 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3911 | if { { ac_try="$ac_link" | |
3912 | case "(($ac_try" in | |
3913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3914 | *) ac_try_echo=$ac_try;; | |
3915 | esac | |
3916 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3917 | $as_echo "$ac_try_echo"; } >&5 | |
3918 | (eval "$ac_link") 2>&5 | |
3919 | ac_status=$? | |
3920 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3921 | test $ac_status = 0; }; then : | |
3922 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3923 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3924 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3925 | # `rm'. | |
3926 | for ac_file in conftest.exe conftest conftest.*; do | |
3927 | test -f "$ac_file" || continue | |
3928 | case $ac_file in | |
3929 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3930 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3931 | break;; | |
3932 | * ) break;; | |
3933 | esac | |
3934 | done | |
3935 | else | |
3936 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3937 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3938 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3939 | See \`config.log' for more details" "$LINENO" 5; } | |
3940 | fi | |
3941 | rm -f conftest conftest$ac_cv_exeext | |
3942 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3943 | $as_echo "$ac_cv_exeext" >&6; } | |
3944 | ||
3945 | rm -f conftest.$ac_ext | |
3946 | EXEEXT=$ac_cv_exeext | |
3947 | ac_exeext=$EXEEXT | |
3948 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3949 | /* end confdefs.h. */ | |
3950 | #include <stdio.h> | |
3951 | int | |
3952 | main () | |
3953 | { | |
3954 | FILE *f = fopen ("conftest.out", "w"); | |
3955 | return ferror (f) || fclose (f) != 0; | |
3956 | ||
3957 | ; | |
3958 | return 0; | |
3959 | } | |
3960 | _ACEOF | |
3961 | ac_clean_files="$ac_clean_files conftest.out" | |
3962 | # Check that the compiler produces executables we can run. If not, either | |
3963 | # the compiler is broken, or we cross compile. | |
3964 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3965 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3966 | if test "$cross_compiling" != yes; then | |
3967 | { { ac_try="$ac_link" | |
3968 | case "(($ac_try" in | |
3969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3970 | *) ac_try_echo=$ac_try;; | |
3971 | esac | |
3972 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3973 | $as_echo "$ac_try_echo"; } >&5 | |
3974 | (eval "$ac_link") 2>&5 | |
3975 | ac_status=$? | |
3976 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3977 | test $ac_status = 0; } | |
3978 | if { ac_try='./conftest$ac_cv_exeext' | |
3979 | { { case "(($ac_try" in | |
3980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3981 | *) ac_try_echo=$ac_try;; | |
3982 | esac | |
3983 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3984 | $as_echo "$ac_try_echo"; } >&5 | |
3985 | (eval "$ac_try") 2>&5 | |
3986 | ac_status=$? | |
3987 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3988 | test $ac_status = 0; }; }; then | |
3989 | cross_compiling=no | |
3990 | else | |
3991 | if test "$cross_compiling" = maybe; then | |
3992 | cross_compiling=yes | |
3993 | else | |
3994 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3995 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3996 | as_fn_error $? "cannot run C compiled programs. | |
3997 | If you meant to cross compile, use \`--host'. | |
3998 | See \`config.log' for more details" "$LINENO" 5; } | |
3999 | fi | |
4000 | fi | |
4001 | fi | |
4002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
4003 | $as_echo "$cross_compiling" >&6; } | |
4004 | ||
4005 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
4006 | ac_clean_files=$ac_clean_files_save | |
4007 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
4008 | $as_echo_n "checking for suffix of object files... " >&6; } | |
4009 | if ${ac_cv_objext+:} false; then : | |
4010 | $as_echo_n "(cached) " >&6 | |
4011 | else | |
4012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4013 | /* end confdefs.h. */ | |
ac48eca1 | 4014 | |
83c79df8 AM |
4015 | int |
4016 | main () | |
4017 | { | |
ac48eca1 | 4018 | |
83c79df8 AM |
4019 | ; |
4020 | return 0; | |
4021 | } | |
4022 | _ACEOF | |
4023 | rm -f conftest.o conftest.obj | |
4024 | if { { ac_try="$ac_compile" | |
81ecdfbb RW |
4025 | case "(($ac_try" in |
4026 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4027 | *) ac_try_echo=$ac_try;; | |
4028 | esac | |
4029 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4030 | $as_echo "$ac_try_echo"; } >&5 | |
83c79df8 | 4031 | (eval "$ac_compile") 2>&5 |
cfbc9945 | 4032 | ac_status=$? |
81ecdfbb | 4033 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
83c79df8 AM |
4034 | test $ac_status = 0; }; then : |
4035 | for ac_file in conftest.o conftest.obj conftest.*; do | |
4036 | test -f "$ac_file" || continue; | |
4037 | case $ac_file in | |
4038 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
4039 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
4040 | break;; | |
4041 | esac | |
81ecdfbb | 4042 | done |
83c79df8 AM |
4043 | else |
4044 | $as_echo "$as_me: failed program was:" >&5 | |
4045 | sed 's/^/| /' conftest.$ac_ext >&5 | |
ac48eca1 | 4046 | |
83c79df8 AM |
4047 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4048 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4049 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
4050 | See \`config.log' for more details" "$LINENO" 5; } | |
4051 | fi | |
4052 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
4053 | fi | |
4054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
4055 | $as_echo "$ac_cv_objext" >&6; } | |
4056 | OBJEXT=$ac_cv_objext | |
4057 | ac_objext=$OBJEXT | |
81ecdfbb RW |
4058 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
4059 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
d0ac1c44 | 4060 | if ${ac_cv_c_compiler_gnu+:} false; then : |
81ecdfbb | 4061 | $as_echo_n "(cached) " >&6 |
ac48eca1 | 4062 | else |
81ecdfbb | 4063 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cfbc9945 | 4064 | /* end confdefs.h. */ |
ac48eca1 | 4065 | |
cfbc9945 SE |
4066 | int |
4067 | main () | |
4068 | { | |
4069 | #ifndef __GNUC__ | |
4070 | choke me | |
4071 | #endif | |
5464f5a1 | 4072 | |
cfbc9945 SE |
4073 | ; |
4074 | return 0; | |
4075 | } | |
4076 | _ACEOF | |
81ecdfbb | 4077 | if ac_fn_c_try_compile "$LINENO"; then : |
cfbc9945 | 4078 | ac_compiler_gnu=yes |
ac48eca1 | 4079 | else |
81ecdfbb | 4080 | ac_compiler_gnu=no |
ac48eca1 | 4081 | fi |
81ecdfbb | 4082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
cfbc9945 | 4083 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
ac48eca1 | 4084 | |
5464f5a1 | 4085 | fi |
81ecdfbb RW |
4086 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4087 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4088 | if test $ac_compiler_gnu = yes; then | |
4089 | GCC=yes | |
4090 | else | |
4091 | GCC= | |
4092 | fi | |
cfbc9945 SE |
4093 | ac_test_CFLAGS=${CFLAGS+set} |
4094 | ac_save_CFLAGS=$CFLAGS | |
81ecdfbb RW |
4095 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
4096 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
d0ac1c44 | 4097 | if ${ac_cv_prog_cc_g+:} false; then : |
81ecdfbb RW |
4098 | $as_echo_n "(cached) " >&6 |
4099 | else | |
4100 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4101 | ac_c_werror_flag=yes | |
4102 | ac_cv_prog_cc_g=no | |
4103 | CFLAGS="-g" | |
4104 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
cfbc9945 SE |
4105 | /* end confdefs.h. */ |
4106 | ||
4107 | int | |
4108 | main () | |
4109 | { | |
4110 | ||
4111 | ; | |
4112 | return 0; | |
4113 | } | |
4114 | _ACEOF | |
81ecdfbb | 4115 | if ac_fn_c_try_compile "$LINENO"; then : |
cfbc9945 | 4116 | ac_cv_prog_cc_g=yes |
6be7c12c | 4117 | else |
81ecdfbb RW |
4118 | CFLAGS="" |
4119 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4120 | /* end confdefs.h. */ | |
4121 | ||
4122 | int | |
4123 | main () | |
4124 | { | |
4125 | ||
4126 | ; | |
4127 | return 0; | |
4128 | } | |
4129 | _ACEOF | |
4130 | if ac_fn_c_try_compile "$LINENO"; then : | |
4131 | ||
4132 | else | |
4133 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4134 | CFLAGS="-g" | |
4135 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4136 | /* end confdefs.h. */ | |
4137 | ||
4138 | int | |
4139 | main () | |
4140 | { | |
5464f5a1 | 4141 | |
81ecdfbb RW |
4142 | ; |
4143 | return 0; | |
4144 | } | |
4145 | _ACEOF | |
4146 | if ac_fn_c_try_compile "$LINENO"; then : | |
4147 | ac_cv_prog_cc_g=yes | |
4148 | fi | |
4149 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ac48eca1 | 4150 | fi |
81ecdfbb | 4151 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ac48eca1 | 4152 | fi |
81ecdfbb RW |
4153 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4154 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4155 | fi | |
4156 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4157 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
cfbc9945 SE |
4158 | if test "$ac_test_CFLAGS" = set; then |
4159 | CFLAGS=$ac_save_CFLAGS | |
4160 | elif test $ac_cv_prog_cc_g = yes; then | |
4161 | if test "$GCC" = yes; then | |
4162 | CFLAGS="-g -O2" | |
4163 | else | |
4164 | CFLAGS="-g" | |
4165 | fi | |
ac48eca1 | 4166 | else |
cfbc9945 SE |
4167 | if test "$GCC" = yes; then |
4168 | CFLAGS="-O2" | |
4169 | else | |
4170 | CFLAGS= | |
4171 | fi | |
ac48eca1 | 4172 | fi |
81ecdfbb RW |
4173 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
4174 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
d0ac1c44 | 4175 | if ${ac_cv_prog_cc_c89+:} false; then : |
81ecdfbb | 4176 | $as_echo_n "(cached) " >&6 |
ac48eca1 | 4177 | else |
81ecdfbb | 4178 | ac_cv_prog_cc_c89=no |
cfbc9945 | 4179 | ac_save_CC=$CC |
81ecdfbb | 4180 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
cfbc9945 SE |
4181 | /* end confdefs.h. */ |
4182 | #include <stdarg.h> | |
4183 | #include <stdio.h> | |
d0ac1c44 | 4184 | struct stat; |
cfbc9945 SE |
4185 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
4186 | struct buf { int x; }; | |
4187 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4188 | static char *e (p, i) | |
4189 | char **p; | |
4190 | int i; | |
4191 | { | |
4192 | return p[i]; | |
4193 | } | |
4194 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4195 | { | |
4196 | char *s; | |
4197 | va_list v; | |
4198 | va_start (v,p); | |
4199 | s = g (p, va_arg (v,int)); | |
4200 | va_end (v); | |
4201 | return s; | |
4202 | } | |
5464f5a1 | 4203 | |
cfbc9945 SE |
4204 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
4205 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4206 | These don't provoke an error unfortunately, instead are silently treated | |
81ecdfbb | 4207 | as 'x'. The following induces an error, until -std is added to get |
cfbc9945 SE |
4208 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
4209 | array size at least. It's necessary to write '\x00'==0 to get something | |
81ecdfbb | 4210 | that's true only with -std. */ |
cfbc9945 SE |
4211 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
4212 | ||
81ecdfbb RW |
4213 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
4214 | inside strings and character constants. */ | |
4215 | #define FOO(x) 'x' | |
4216 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4217 | ||
cfbc9945 SE |
4218 | int test (int i, double x); |
4219 | struct s1 {int (*f) (int a);}; | |
4220 | struct s2 {int (*f) (double a);}; | |
4221 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4222 | int argc; | |
4223 | char **argv; | |
4224 | int | |
4225 | main () | |
4226 | { | |
4227 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4228 | ; | |
4229 | return 0; | |
4230 | } | |
4231 | _ACEOF | |
81ecdfbb RW |
4232 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
4233 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
cfbc9945 SE |
4234 | do |
4235 | CC="$ac_save_CC $ac_arg" | |
81ecdfbb RW |
4236 | if ac_fn_c_try_compile "$LINENO"; then : |
4237 | ac_cv_prog_cc_c89=$ac_arg | |
5464f5a1 | 4238 | fi |
81ecdfbb RW |
4239 | rm -f core conftest.err conftest.$ac_objext |
4240 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
5464f5a1 | 4241 | done |
81ecdfbb | 4242 | rm -f conftest.$ac_ext |
cfbc9945 | 4243 | CC=$ac_save_CC |
5464f5a1 | 4244 | |
ac48eca1 | 4245 | fi |
81ecdfbb RW |
4246 | # AC_CACHE_VAL |
4247 | case "x$ac_cv_prog_cc_c89" in | |
4248 | x) | |
4249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4250 | $as_echo "none needed" >&6; } ;; | |
4251 | xno) | |
4252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4253 | $as_echo "unsupported" >&6; } ;; | |
cfbc9945 | 4254 | *) |
81ecdfbb RW |
4255 | CC="$CC $ac_cv_prog_cc_c89" |
4256 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4257 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
cfbc9945 | 4258 | esac |
81ecdfbb | 4259 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
6be7c12c | 4260 | |
6ec7057a | 4261 | fi |
cfbc9945 | 4262 | |
cfbc9945 SE |
4263 | ac_ext=c |
4264 | ac_cpp='$CPP $CPPFLAGS' | |
4265 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4266 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4267 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
92f01d61 | 4268 | |
d0ac1c44 SM |
4269 | ac_ext=c |
4270 | ac_cpp='$CPP $CPPFLAGS' | |
4271 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4272 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4273 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4274 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4275 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4276 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4277 | $as_echo_n "(cached) " >&6 | |
4278 | else | |
4279 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4280 | /* end confdefs.h. */ | |
4281 | ||
4282 | int | |
4283 | main () | |
4284 | { | |
4285 | ||
4286 | ; | |
4287 | return 0; | |
4288 | } | |
4289 | _ACEOF | |
4290 | # Make sure it works both with $CC and with simple cc. | |
4291 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4292 | # compilers refuse to overwrite an existing .o file with -o, | |
4293 | # though they will create one. | |
4294 | am_cv_prog_cc_c_o=yes | |
4295 | for am_i in 1 2; do | |
4296 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4297 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4298 | ac_status=$? | |
4299 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4300 | (exit $ac_status); } \ | |
4301 | && test -f conftest2.$ac_objext; then | |
4302 | : OK | |
4303 | else | |
4304 | am_cv_prog_cc_c_o=no | |
4305 | break | |
4306 | fi | |
4307 | done | |
4308 | rm -f core conftest* | |
4309 | unset am_i | |
4310 | fi | |
4311 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4312 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4313 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4314 | # Losing compiler, so override with the script. | |
4315 | # FIXME: It is wrong to rewrite CC. | |
4316 | # But if we don't then we get into trouble of one sort or another. | |
4317 | # A longer-term fix would be to have automake use am__CC in this case, | |
4318 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4319 | CC="$am_aux_dir/compile $CC" | |
4320 | fi | |
83c79df8 AM |
4321 | ac_ext=c |
4322 | ac_cpp='$CPP $CPPFLAGS' | |
4323 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4324 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4325 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4326 | ||
4327 | DEPDIR="${am__leading_dot}deps" | |
4328 | ||
4329 | ac_config_commands="$ac_config_commands depfiles" | |
4330 | ||
4331 | ||
4332 | am_make=${MAKE-make} | |
4333 | cat > confinc << 'END' | |
4334 | am__doit: | |
4335 | @echo this is the am__doit target | |
4336 | .PHONY: am__doit | |
4337 | END | |
4338 | # If we don't find an include directive, just comment out the code. | |
4339 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4340 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4341 | am__include="#" | |
4342 | am__quote= | |
4343 | _am_result=none | |
4344 | # First try GNU make style include. | |
4345 | echo "include confinc" > confmf | |
4346 | # Ignore all kinds of additional output from 'make'. | |
4347 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4348 | *the\ am__doit\ target*) | |
4349 | am__include=include | |
4350 | am__quote= | |
4351 | _am_result=GNU | |
4352 | ;; | |
4353 | esac | |
4354 | # Now try BSD make style include. | |
4355 | if test "$am__include" = "#"; then | |
4356 | echo '.include "confinc"' > confmf | |
4357 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4358 | *the\ am__doit\ target*) | |
4359 | am__include=.include | |
4360 | am__quote="\"" | |
4361 | _am_result=BSD | |
4362 | ;; | |
4363 | esac | |
4364 | fi | |
4365 | ||
4366 | ||
4367 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
4368 | $as_echo "$_am_result" >&6; } | |
4369 | rm -f confinc confmf | |
4370 | ||
4371 | # Check whether --enable-dependency-tracking was given. | |
4372 | if test "${enable_dependency_tracking+set}" = set; then : | |
4373 | enableval=$enable_dependency_tracking; | |
4374 | fi | |
4375 | ||
4376 | if test "x$enable_dependency_tracking" != xno; then | |
4377 | am_depcomp="$ac_aux_dir/depcomp" | |
4378 | AMDEPBACKSLASH='\' | |
4379 | am__nodep='_no' | |
4380 | fi | |
4381 | if test "x$enable_dependency_tracking" != xno; then | |
4382 | AMDEP_TRUE= | |
4383 | AMDEP_FALSE='#' | |
4384 | else | |
4385 | AMDEP_TRUE='#' | |
4386 | AMDEP_FALSE= | |
4387 | fi | |
4388 | ||
4389 | ||
4390 | ||
4391 | depcc="$CC" am_compiler_list= | |
4392 | ||
4393 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4394 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4395 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
4396 | $as_echo_n "(cached) " >&6 | |
4397 | else | |
4398 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4399 | # We make a subdir and do the tests there. Otherwise we can end up | |
4400 | # making bogus files that we don't know about and never remove. For | |
4401 | # instance it was reported that on HP-UX the gcc test will end up | |
4402 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4403 | # in D". | |
4404 | rm -rf conftest.dir | |
4405 | mkdir conftest.dir | |
4406 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4407 | # using a relative directory. | |
4408 | cp "$am_depcomp" conftest.dir | |
4409 | cd conftest.dir | |
4410 | # We will build objects and dependencies in a subdirectory because | |
4411 | # it helps to detect inapplicable dependency modes. For instance | |
4412 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4413 | # side effect of compilation, but ICC will put the dependencies in | |
4414 | # the current directory while Tru64 will put them in the object | |
4415 | # directory. | |
4416 | mkdir sub | |
4417 | ||
4418 | am_cv_CC_dependencies_compiler_type=none | |
4419 | if test "$am_compiler_list" = ""; then | |
4420 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4421 | fi | |
4422 | am__universal=false | |
4423 | case " $depcc " in #( | |
4424 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4425 | esac | |
4426 | ||
4427 | for depmode in $am_compiler_list; do | |
4428 | # Setup a source with many dependencies, because some compilers | |
4429 | # like to wrap large dependency lists on column 80 (with \), and | |
4430 | # we should not choose a depcomp mode which is confused by this. | |
4431 | # | |
4432 | # We need to recreate these files for each test, as the compiler may | |
4433 | # overwrite some of them when testing with obscure command lines. | |
4434 | # This happens at least with the AIX C compiler. | |
4435 | : > sub/conftest.c | |
4436 | for i in 1 2 3 4 5 6; do | |
4437 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4438 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4439 | # Solaris 10 /bin/sh. | |
4440 | echo '/* dummy */' > sub/conftst$i.h | |
4441 | done | |
4442 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4443 | ||
4444 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4445 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4446 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4447 | # versions had trouble with output in subdirs. | |
4448 | am__obj=sub/conftest.${OBJEXT-o} | |
4449 | am__minus_obj="-o $am__obj" | |
4450 | case $depmode in | |
4451 | gcc) | |
4452 | # This depmode causes a compiler race in universal mode. | |
4453 | test "$am__universal" = false || continue | |
4454 | ;; | |
4455 | nosideeffect) | |
4456 | # After this tag, mechanisms are not by side-effect, so they'll | |
4457 | # only be used when explicitly requested. | |
4458 | if test "x$enable_dependency_tracking" = xyes; then | |
4459 | continue | |
4460 | else | |
4461 | break | |
4462 | fi | |
4463 | ;; | |
4464 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4465 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4466 | # not run yet. These depmodes are late enough in the game, and | |
4467 | # so weak that their functioning should not be impacted. | |
4468 | am__obj=conftest.${OBJEXT-o} | |
4469 | am__minus_obj= | |
4470 | ;; | |
4471 | none) break ;; | |
4472 | esac | |
4473 | if depmode=$depmode \ | |
4474 | source=sub/conftest.c object=$am__obj \ | |
4475 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4476 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4477 | >/dev/null 2>conftest.err && | |
4478 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4479 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4480 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4481 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4482 | # icc doesn't choke on unknown options, it will just issue warnings | |
4483 | # or remarks (even with -Werror). So we grep stderr for any message | |
4484 | # that says an option was ignored or not supported. | |
4485 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4486 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4487 | # The diagnosis changed in icc 8.0: | |
4488 | # icc: Command line remark: option '-MP' not supported | |
4489 | if (grep 'ignoring option' conftest.err || | |
4490 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4491 | am_cv_CC_dependencies_compiler_type=$depmode | |
4492 | break | |
4493 | fi | |
4494 | fi | |
4495 | done | |
4496 | ||
4497 | cd .. | |
4498 | rm -rf conftest.dir | |
4499 | else | |
4500 | am_cv_CC_dependencies_compiler_type=none | |
4501 | fi | |
4502 | ||
4503 | fi | |
4504 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4505 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4506 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4507 | ||
4508 | if | |
4509 | test "x$enable_dependency_tracking" != xno \ | |
4510 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4511 | am__fastdepCC_TRUE= | |
4512 | am__fastdepCC_FALSE='#' | |
4513 | else | |
4514 | am__fastdepCC_TRUE='#' | |
4515 | am__fastdepCC_FALSE= | |
4516 | fi | |
4517 | ||
d0ac1c44 SM |
4518 | |
4519 | ||
7357c5b6 AM |
4520 | ac_ext=c |
4521 | ac_cpp='$CPP $CPPFLAGS' | |
4522 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4523 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4524 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
81ecdfbb RW |
4525 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
4526 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
7357c5b6 AM |
4527 | # On Suns, sometimes $CPP names a directory. |
4528 | if test -n "$CPP" && test -d "$CPP"; then | |
4529 | CPP= | |
4530 | fi | |
4531 | if test -z "$CPP"; then | |
d0ac1c44 | 4532 | if ${ac_cv_prog_CPP+:} false; then : |
81ecdfbb | 4533 | $as_echo_n "(cached) " >&6 |
7357c5b6 AM |
4534 | else |
4535 | # Double quotes because CPP needs to be expanded | |
4536 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
4537 | do | |
4538 | ac_preproc_ok=false | |
4539 | for ac_c_preproc_warn_flag in '' yes | |
4540 | do | |
4541 | # Use a header file that comes with gcc, so configuring glibc | |
4542 | # with a fresh cross-compiler works. | |
4543 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4544 | # <limits.h> exists even on freestanding compilers. | |
4545 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4546 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 4547 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4548 | /* end confdefs.h. */ |
4549 | #ifdef __STDC__ | |
4550 | # include <limits.h> | |
4551 | #else | |
4552 | # include <assert.h> | |
4553 | #endif | |
4554 | Syntax error | |
4555 | _ACEOF | |
81ecdfbb | 4556 | if ac_fn_c_try_cpp "$LINENO"; then : |
cfbc9945 | 4557 | |
81ecdfbb | 4558 | else |
7357c5b6 AM |
4559 | # Broken: fails on valid input. |
4560 | continue | |
4561 | fi | |
d0ac1c44 | 4562 | rm -f conftest.err conftest.i conftest.$ac_ext |
d7040cdb | 4563 | |
81ecdfbb | 4564 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 4565 | # can be detected and how. |
81ecdfbb | 4566 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4567 | /* end confdefs.h. */ |
4568 | #include <ac_nonexistent.h> | |
4569 | _ACEOF | |
81ecdfbb | 4570 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
4571 | # Broken: success on invalid input. |
4572 | continue | |
4573 | else | |
7357c5b6 AM |
4574 | # Passes both tests. |
4575 | ac_preproc_ok=: | |
4576 | break | |
4577 | fi | |
d0ac1c44 | 4578 | rm -f conftest.err conftest.i conftest.$ac_ext |
d7040cdb | 4579 | |
7357c5b6 AM |
4580 | done |
4581 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
d0ac1c44 | 4582 | rm -f conftest.i conftest.err conftest.$ac_ext |
81ecdfbb | 4583 | if $ac_preproc_ok; then : |
7357c5b6 AM |
4584 | break |
4585 | fi | |
d7040cdb | 4586 | |
7357c5b6 AM |
4587 | done |
4588 | ac_cv_prog_CPP=$CPP | |
d7040cdb | 4589 | |
7357c5b6 AM |
4590 | fi |
4591 | CPP=$ac_cv_prog_CPP | |
4592 | else | |
4593 | ac_cv_prog_CPP=$CPP | |
4594 | fi | |
81ecdfbb RW |
4595 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
4596 | $as_echo "$CPP" >&6; } | |
7357c5b6 AM |
4597 | ac_preproc_ok=false |
4598 | for ac_c_preproc_warn_flag in '' yes | |
4599 | do | |
4600 | # Use a header file that comes with gcc, so configuring glibc | |
4601 | # with a fresh cross-compiler works. | |
4602 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4603 | # <limits.h> exists even on freestanding compilers. | |
4604 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
4605 | # not just through cpp. "Syntax error" is here to catch this case. | |
81ecdfbb | 4606 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4607 | /* end confdefs.h. */ |
4608 | #ifdef __STDC__ | |
4609 | # include <limits.h> | |
4610 | #else | |
4611 | # include <assert.h> | |
4612 | #endif | |
4613 | Syntax error | |
4614 | _ACEOF | |
81ecdfbb | 4615 | if ac_fn_c_try_cpp "$LINENO"; then : |
d7040cdb | 4616 | |
81ecdfbb | 4617 | else |
7357c5b6 AM |
4618 | # Broken: fails on valid input. |
4619 | continue | |
4620 | fi | |
d0ac1c44 | 4621 | rm -f conftest.err conftest.i conftest.$ac_ext |
d7040cdb | 4622 | |
81ecdfbb | 4623 | # OK, works on sane cases. Now check whether nonexistent headers |
7357c5b6 | 4624 | # can be detected and how. |
81ecdfbb | 4625 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4626 | /* end confdefs.h. */ |
4627 | #include <ac_nonexistent.h> | |
4628 | _ACEOF | |
81ecdfbb | 4629 | if ac_fn_c_try_cpp "$LINENO"; then : |
7357c5b6 AM |
4630 | # Broken: success on invalid input. |
4631 | continue | |
4632 | else | |
7357c5b6 AM |
4633 | # Passes both tests. |
4634 | ac_preproc_ok=: | |
4635 | break | |
4636 | fi | |
d0ac1c44 | 4637 | rm -f conftest.err conftest.i conftest.$ac_ext |
d7040cdb | 4638 | |
7357c5b6 AM |
4639 | done |
4640 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
d0ac1c44 | 4641 | rm -f conftest.i conftest.err conftest.$ac_ext |
81ecdfbb RW |
4642 | if $ac_preproc_ok; then : |
4643 | ||
7357c5b6 | 4644 | else |
81ecdfbb RW |
4645 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4646 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
4647 | as_fn_error $? "C preprocessor \"$CPP\" fails sanity check |
4648 | See \`config.log' for more details" "$LINENO" 5; } | |
7357c5b6 | 4649 | fi |
d7040cdb | 4650 | |
7357c5b6 AM |
4651 | ac_ext=c |
4652 | ac_cpp='$CPP $CPPFLAGS' | |
4653 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4654 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4655 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 4656 | |
d7040cdb | 4657 | |
81ecdfbb RW |
4658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
4659 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
d0ac1c44 | 4660 | if ${ac_cv_path_GREP+:} false; then : |
81ecdfbb RW |
4661 | $as_echo_n "(cached) " >&6 |
4662 | else | |
4663 | if test -z "$GREP"; then | |
4664 | ac_path_GREP_found=false | |
4665 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4666 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4667 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4668 | do | |
4669 | IFS=$as_save_IFS | |
4670 | test -z "$as_dir" && as_dir=. | |
4671 | for ac_prog in grep ggrep; do | |
4672 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4673 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 4674 | as_fn_executable_p "$ac_path_GREP" || continue |
81ecdfbb RW |
4675 | # Check for GNU ac_path_GREP and select it if it is found. |
4676 | # Check for GNU $ac_path_GREP | |
4677 | case `"$ac_path_GREP" --version 2>&1` in | |
4678 | *GNU*) | |
4679 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4680 | *) | |
4681 | ac_count=0 | |
4682 | $as_echo_n 0123456789 >"conftest.in" | |
4683 | while : | |
4684 | do | |
4685 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4686 | mv "conftest.tmp" "conftest.in" | |
4687 | cp "conftest.in" "conftest.nl" | |
4688 | $as_echo 'GREP' >> "conftest.nl" | |
4689 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4690 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4691 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4692 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4693 | # Best one so far, save it but keep looking for a better one | |
4694 | ac_cv_path_GREP="$ac_path_GREP" | |
4695 | ac_path_GREP_max=$ac_count | |
4696 | fi | |
4697 | # 10*(2^10) chars as input seems more than enough | |
4698 | test $ac_count -gt 10 && break | |
4699 | done | |
4700 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4701 | esac | |
4702 | ||
4703 | $ac_path_GREP_found && break 3 | |
4704 | done | |
4705 | done | |
4706 | done | |
4707 | IFS=$as_save_IFS | |
4708 | if test -z "$ac_cv_path_GREP"; then | |
d0ac1c44 | 4709 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
81ecdfbb RW |
4710 | fi |
4711 | else | |
4712 | ac_cv_path_GREP=$GREP | |
4713 | fi | |
4714 | ||
4715 | fi | |
4716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4717 | $as_echo "$ac_cv_path_GREP" >&6; } | |
4718 | GREP="$ac_cv_path_GREP" | |
4719 | ||
4720 | ||
4721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4722 | $as_echo_n "checking for egrep... " >&6; } | |
d0ac1c44 | 4723 | if ${ac_cv_path_EGREP+:} false; then : |
81ecdfbb | 4724 | $as_echo_n "(cached) " >&6 |
7357c5b6 | 4725 | else |
81ecdfbb RW |
4726 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4727 | then ac_cv_path_EGREP="$GREP -E" | |
4728 | else | |
4729 | if test -z "$EGREP"; then | |
4730 | ac_path_EGREP_found=false | |
4731 | # Loop through the user's path and test for each of PROGNAME-LIST | |
4732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4733 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4734 | do | |
4735 | IFS=$as_save_IFS | |
4736 | test -z "$as_dir" && as_dir=. | |
4737 | for ac_prog in egrep; do | |
4738 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4739 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 4740 | as_fn_executable_p "$ac_path_EGREP" || continue |
81ecdfbb RW |
4741 | # Check for GNU ac_path_EGREP and select it if it is found. |
4742 | # Check for GNU $ac_path_EGREP | |
4743 | case `"$ac_path_EGREP" --version 2>&1` in | |
4744 | *GNU*) | |
4745 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4746 | *) | |
4747 | ac_count=0 | |
4748 | $as_echo_n 0123456789 >"conftest.in" | |
4749 | while : | |
4750 | do | |
4751 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4752 | mv "conftest.tmp" "conftest.in" | |
4753 | cp "conftest.in" "conftest.nl" | |
4754 | $as_echo 'EGREP' >> "conftest.nl" | |
4755 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4756 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4757 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4758 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4759 | # Best one so far, save it but keep looking for a better one | |
4760 | ac_cv_path_EGREP="$ac_path_EGREP" | |
4761 | ac_path_EGREP_max=$ac_count | |
7357c5b6 | 4762 | fi |
81ecdfbb RW |
4763 | # 10*(2^10) chars as input seems more than enough |
4764 | test $ac_count -gt 10 && break | |
4765 | done | |
4766 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4767 | esac | |
4768 | ||
4769 | $ac_path_EGREP_found && break 3 | |
4770 | done | |
4771 | done | |
4772 | done | |
4773 | IFS=$as_save_IFS | |
4774 | if test -z "$ac_cv_path_EGREP"; then | |
d0ac1c44 | 4775 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
81ecdfbb RW |
4776 | fi |
4777 | else | |
4778 | ac_cv_path_EGREP=$EGREP | |
4779 | fi | |
4780 | ||
4781 | fi | |
7357c5b6 | 4782 | fi |
81ecdfbb RW |
4783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
4784 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
4785 | EGREP="$ac_cv_path_EGREP" | |
d7040cdb SE |
4786 | |
4787 | ||
81ecdfbb RW |
4788 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
4789 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
d0ac1c44 | 4790 | if ${ac_cv_header_stdc+:} false; then : |
81ecdfbb | 4791 | $as_echo_n "(cached) " >&6 |
7357c5b6 | 4792 | else |
81ecdfbb | 4793 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4794 | /* end confdefs.h. */ |
4795 | #include <stdlib.h> | |
4796 | #include <stdarg.h> | |
4797 | #include <string.h> | |
4798 | #include <float.h> | |
d7040cdb | 4799 | |
7357c5b6 AM |
4800 | int |
4801 | main () | |
4802 | { | |
d7040cdb | 4803 | |
7357c5b6 AM |
4804 | ; |
4805 | return 0; | |
4806 | } | |
4807 | _ACEOF | |
81ecdfbb | 4808 | if ac_fn_c_try_compile "$LINENO"; then : |
7357c5b6 | 4809 | ac_cv_header_stdc=yes |
c428fa83 | 4810 | else |
81ecdfbb | 4811 | ac_cv_header_stdc=no |
7357c5b6 | 4812 | fi |
81ecdfbb | 4813 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d7040cdb | 4814 | |
7357c5b6 AM |
4815 | if test $ac_cv_header_stdc = yes; then |
4816 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
81ecdfbb | 4817 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4818 | /* end confdefs.h. */ |
4819 | #include <string.h> | |
d7040cdb | 4820 | |
7357c5b6 AM |
4821 | _ACEOF |
4822 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4823 | $EGREP "memchr" >/dev/null 2>&1; then : |
4824 | ||
7357c5b6 AM |
4825 | else |
4826 | ac_cv_header_stdc=no | |
4827 | fi | |
4828 | rm -f conftest* | |
d7040cdb | 4829 | |
7357c5b6 | 4830 | fi |
d7040cdb | 4831 | |
7357c5b6 AM |
4832 | if test $ac_cv_header_stdc = yes; then |
4833 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
81ecdfbb | 4834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4835 | /* end confdefs.h. */ |
4836 | #include <stdlib.h> | |
d7040cdb | 4837 | |
7357c5b6 AM |
4838 | _ACEOF |
4839 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
81ecdfbb RW |
4840 | $EGREP "free" >/dev/null 2>&1; then : |
4841 | ||
7357c5b6 AM |
4842 | else |
4843 | ac_cv_header_stdc=no | |
4844 | fi | |
4845 | rm -f conftest* | |
d7040cdb | 4846 | |
7357c5b6 | 4847 | fi |
d7040cdb | 4848 | |
7357c5b6 AM |
4849 | if test $ac_cv_header_stdc = yes; then |
4850 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
81ecdfbb | 4851 | if test "$cross_compiling" = yes; then : |
7357c5b6 AM |
4852 | : |
4853 | else | |
81ecdfbb | 4854 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
7357c5b6 AM |
4855 | /* end confdefs.h. */ |
4856 | #include <ctype.h> | |
81ecdfbb | 4857 | #include <stdlib.h> |
7357c5b6 AM |
4858 | #if ((' ' & 0x0FF) == 0x020) |
4859 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
4860 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
4861 | #else | |
4862 | # define ISLOWER(c) \ | |
4863 | (('a' <= (c) && (c) <= 'i') \ | |
4864 | || ('j' <= (c) && (c) <= 'r') \ | |
4865 | || ('s' <= (c) && (c) <= 'z')) | |
4866 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
4867 | #endif | |
d7040cdb | 4868 | |
7357c5b6 AM |
4869 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4870 | int | |
4871 | main () | |
4872 | { | |
4873 | int i; | |
4874 | for (i = 0; i < 256; i++) | |
4875 | if (XOR (islower (i), ISLOWER (i)) | |
4876 | || toupper (i) != TOUPPER (i)) | |
81ecdfbb RW |
4877 | return 2; |
4878 | return 0; | |
7357c5b6 AM |
4879 | } |
4880 | _ACEOF | |
81ecdfbb | 4881 | if ac_fn_c_try_run "$LINENO"; then : |
d7040cdb | 4882 | |
81ecdfbb RW |
4883 | else |
4884 | ac_cv_header_stdc=no | |
7357c5b6 | 4885 | fi |
81ecdfbb RW |
4886 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
4887 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
7357c5b6 | 4888 | fi |
81ecdfbb | 4889 | |
7357c5b6 AM |
4890 | fi |
4891 | fi | |
81ecdfbb RW |
4892 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
4893 | $as_echo "$ac_cv_header_stdc" >&6; } | |
7357c5b6 | 4894 | if test $ac_cv_header_stdc = yes; then |
d7040cdb | 4895 | |
81ecdfbb | 4896 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
d7040cdb | 4897 | |
7357c5b6 | 4898 | fi |
d7040cdb | 4899 | |
7357c5b6 | 4900 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
7357c5b6 AM |
4901 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4902 | inttypes.h stdint.h unistd.h | |
81ecdfbb RW |
4903 | do : |
4904 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4905 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
4906 | " | |
d0ac1c44 | 4907 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : |
7357c5b6 | 4908 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 4909 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
7357c5b6 | 4910 | _ACEOF |
d7040cdb | 4911 | |
7357c5b6 AM |
4912 | fi |
4913 | ||
4914 | done | |
4915 | ||
4916 | ||
4917 | ||
81ecdfbb | 4918 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" |
d0ac1c44 | 4919 | if test "x$ac_cv_header_minix_config_h" = xyes; then : |
7357c5b6 AM |
4920 | MINIX=yes |
4921 | else | |
4922 | MINIX= | |
4923 | fi | |
d7040cdb SE |
4924 | |
4925 | ||
7357c5b6 | 4926 | if test "$MINIX" = yes; then |
d7040cdb | 4927 | |
81ecdfbb | 4928 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h |
d7040cdb SE |
4929 | |
4930 | ||
81ecdfbb | 4931 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h |
d7040cdb SE |
4932 | |
4933 | ||
81ecdfbb | 4934 | $as_echo "#define _MINIX 1" >>confdefs.h |
d7040cdb | 4935 | |
7357c5b6 | 4936 | fi |
d7040cdb SE |
4937 | |
4938 | ||
81ecdfbb RW |
4939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 |
4940 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
d0ac1c44 | 4941 | if ${ac_cv_safe_to_define___extensions__+:} false; then : |
81ecdfbb | 4942 | $as_echo_n "(cached) " >&6 |
d053aef8 | 4943 | else |
81ecdfbb | 4944 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d053aef8 | 4945 | /* end confdefs.h. */ |
ce3c775b | 4946 | |
d0ac1c44 SM |
4947 | # define __EXTENSIONS__ 1 |
4948 | $ac_includes_default | |
d053aef8 JK |
4949 | int |
4950 | main () | |
4951 | { | |
4952 | ||
4953 | ; | |
4954 | return 0; | |
4955 | } | |
4956 | _ACEOF | |
81ecdfbb | 4957 | if ac_fn_c_try_compile "$LINENO"; then : |
ce3c775b | 4958 | ac_cv_safe_to_define___extensions__=yes |
d053aef8 | 4959 | else |
81ecdfbb | 4960 | ac_cv_safe_to_define___extensions__=no |
d053aef8 | 4961 | fi |
81ecdfbb | 4962 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
ce3c775b | 4963 | fi |
81ecdfbb RW |
4964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 |
4965 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
ce3c775b | 4966 | test $ac_cv_safe_to_define___extensions__ = yes && |
81ecdfbb | 4967 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h |
d053aef8 | 4968 | |
81ecdfbb | 4969 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h |
d053aef8 | 4970 | |
81ecdfbb RW |
4971 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h |
4972 | ||
4973 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
4974 | ||
4975 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
d053aef8 | 4976 | |
ce3c775b | 4977 | |
d053aef8 | 4978 | |
d053aef8 | 4979 | |
d7040cdb | 4980 | |
718a6fd8 SE |
4981 | case `pwd` in |
4982 | *\ * | *\ *) | |
81ecdfbb RW |
4983 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 |
4984 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
718a6fd8 | 4985 | esac |
d7040cdb SE |
4986 | |
4987 | ||
7357c5b6 | 4988 | |
3725885a RW |
4989 | macro_version='2.2.7a' |
4990 | macro_revision='1.3134' | |
7357c5b6 AM |
4991 | |
4992 | ||
4993 | ||
4994 | ||
4995 | ||
4996 | ||
7357c5b6 AM |
4997 | |
4998 | ||
4999 | ||
5000 | ||
5001 | ||
5002 | ||
5003 | ||
718a6fd8 | 5004 | ltmain="$ac_aux_dir/ltmain.sh" |
7357c5b6 | 5005 | |
3725885a RW |
5006 | # Backslashify metacharacters that are still active within |
5007 | # double-quoted strings. | |
5008 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5009 | ||
5010 | # Same as above, but do not quote variable references. | |
5011 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
5012 | ||
5013 | # Sed substitution to delay expansion of an escaped shell variable in a | |
5014 | # double_quote_subst'ed string. | |
5015 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5016 | ||
5017 | # Sed substitution to delay expansion of an escaped single quote. | |
5018 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5019 | ||
5020 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5021 | no_glob_subst='s/\*/\\\*/g' | |
5022 | ||
5023 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5024 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5025 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
5026 | ||
5027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
5028 | $as_echo_n "checking how to print strings... " >&6; } | |
5029 | # Test print first, because it will be a builtin if present. | |
5030 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
5031 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5032 | ECHO='print -r --' | |
5033 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5034 | ECHO='printf %s\n' | |
5035 | else | |
5036 | # Use this function as a fallback that always works. | |
5037 | func_fallback_echo () | |
5038 | { | |
5039 | eval 'cat <<_LTECHO_EOF | |
5040 | $1 | |
5041 | _LTECHO_EOF' | |
5042 | } | |
5043 | ECHO='func_fallback_echo' | |
5044 | fi | |
5045 | ||
5046 | # func_echo_all arg... | |
5047 | # Invoke $ECHO with all args, space-separated. | |
5048 | func_echo_all () | |
5049 | { | |
5050 | $ECHO "" | |
5051 | } | |
5052 | ||
5053 | case "$ECHO" in | |
5054 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5055 | $as_echo "printf" >&6; } ;; | |
5056 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5057 | $as_echo "print -r" >&6; } ;; | |
5058 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5059 | $as_echo "cat" >&6; } ;; | |
5060 | esac | |
5061 | ||
5062 | ||
5063 | ||
5064 | ||
5065 | ||
5066 | ||
5067 | ||
5068 | ||
5069 | ||
5070 | ||
5071 | ||
5072 | ||
5073 | ||
5074 | ||
81ecdfbb RW |
5075 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 |
5076 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
d0ac1c44 | 5077 | if ${ac_cv_path_SED+:} false; then : |
81ecdfbb | 5078 | $as_echo_n "(cached) " >&6 |
7357c5b6 | 5079 | else |
81ecdfbb RW |
5080 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
5081 | for ac_i in 1 2 3 4 5 6 7; do | |
5082 | ac_script="$ac_script$as_nl$ac_script" | |
5083 | done | |
5084 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5085 | { ac_script=; unset ac_script;} | |
5086 | if test -z "$SED"; then | |
5087 | ac_path_SED_found=false | |
5088 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5089 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7357c5b6 AM |
5090 | for as_dir in $PATH |
5091 | do | |
5092 | IFS=$as_save_IFS | |
5093 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5094 | for ac_prog in sed gsed; do |
7357c5b6 | 5095 | for ac_exec_ext in '' $ac_executable_extensions; do |
81ecdfbb | 5096 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
d0ac1c44 | 5097 | as_fn_executable_p "$ac_path_SED" || continue |
81ecdfbb RW |
5098 | # Check for GNU ac_path_SED and select it if it is found. |
5099 | # Check for GNU $ac_path_SED | |
5100 | case `"$ac_path_SED" --version 2>&1` in | |
5101 | *GNU*) | |
5102 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
5103 | *) | |
5104 | ac_count=0 | |
5105 | $as_echo_n 0123456789 >"conftest.in" | |
5106 | while : | |
5107 | do | |
5108 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5109 | mv "conftest.tmp" "conftest.in" | |
5110 | cp "conftest.in" "conftest.nl" | |
5111 | $as_echo '' >> "conftest.nl" | |
5112 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5113 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5114 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5115 | if test $ac_count -gt ${ac_path_SED_max-0}; then | |
5116 | # Best one so far, save it but keep looking for a better one | |
5117 | ac_cv_path_SED="$ac_path_SED" | |
5118 | ac_path_SED_max=$ac_count | |
5119 | fi | |
5120 | # 10*(2^10) chars as input seems more than enough | |
5121 | test $ac_count -gt 10 && break | |
5122 | done | |
5123 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5124 | esac | |
5125 | ||
5126 | $ac_path_SED_found && break 3 | |
7357c5b6 AM |
5127 | done |
5128 | done | |
81ecdfbb | 5129 | done |
7357c5b6 | 5130 | IFS=$as_save_IFS |
81ecdfbb | 5131 | if test -z "$ac_cv_path_SED"; then |
d0ac1c44 | 5132 | as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 |
7357c5b6 | 5133 | fi |
81ecdfbb RW |
5134 | else |
5135 | ac_cv_path_SED=$SED | |
7357c5b6 AM |
5136 | fi |
5137 | ||
81ecdfbb RW |
5138 | fi |
5139 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
5140 | $as_echo "$ac_cv_path_SED" >&6; } | |
5141 | SED="$ac_cv_path_SED" | |
5142 | rm -f conftest.sed | |
7357c5b6 AM |
5143 | |
5144 | test -z "$SED" && SED=sed | |
5145 | Xsed="$SED -e 1s/^X//" | |
5146 | ||
5147 | ||
5148 | ||
5149 | ||
5150 | ||
5151 | ||
5152 | ||
5153 | ||
5154 | ||
5155 | ||
5156 | ||
81ecdfbb RW |
5157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 |
5158 | $as_echo_n "checking for fgrep... " >&6; } | |
d0ac1c44 | 5159 | if ${ac_cv_path_FGREP+:} false; then : |
81ecdfbb | 5160 | $as_echo_n "(cached) " >&6 |
7357c5b6 | 5161 | else |
81ecdfbb RW |
5162 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 |
5163 | then ac_cv_path_FGREP="$GREP -F" | |
5164 | else | |
5165 | if test -z "$FGREP"; then | |
5166 | ac_path_FGREP_found=false | |
5167 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5169 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5170 | do | |
5171 | IFS=$as_save_IFS | |
5172 | test -z "$as_dir" && as_dir=. | |
5173 | for ac_prog in fgrep; do | |
5174 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5175 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
d0ac1c44 | 5176 | as_fn_executable_p "$ac_path_FGREP" || continue |
81ecdfbb RW |
5177 | # Check for GNU ac_path_FGREP and select it if it is found. |
5178 | # Check for GNU $ac_path_FGREP | |
5179 | case `"$ac_path_FGREP" --version 2>&1` in | |
5180 | *GNU*) | |
5181 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5182 | *) | |
5183 | ac_count=0 | |
5184 | $as_echo_n 0123456789 >"conftest.in" | |
5185 | while : | |
5186 | do | |
5187 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5188 | mv "conftest.tmp" "conftest.in" | |
5189 | cp "conftest.in" "conftest.nl" | |
5190 | $as_echo 'FGREP' >> "conftest.nl" | |
5191 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5192 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5193 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5194 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5195 | # Best one so far, save it but keep looking for a better one | |
5196 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5197 | ac_path_FGREP_max=$ac_count | |
7357c5b6 | 5198 | fi |
81ecdfbb RW |
5199 | # 10*(2^10) chars as input seems more than enough |
5200 | test $ac_count -gt 10 && break | |
5201 | done | |
5202 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5203 | esac | |
5204 | ||
5205 | $ac_path_FGREP_found && break 3 | |
5206 | done | |
5207 | done | |
5208 | done | |
5209 | IFS=$as_save_IFS | |
5210 | if test -z "$ac_cv_path_FGREP"; then | |
d0ac1c44 | 5211 | as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
81ecdfbb RW |
5212 | fi |
5213 | else | |
5214 | ac_cv_path_FGREP=$FGREP | |
7357c5b6 | 5215 | fi |
81ecdfbb RW |
5216 | |
5217 | fi | |
5218 | fi | |
5219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5220 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5221 | FGREP="$ac_cv_path_FGREP" | |
7357c5b6 AM |
5222 | |
5223 | ||
5224 | test -z "$GREP" && GREP=grep | |
5225 | ||
5226 | ||
5227 | ||
5228 | ||
5229 | ||
5230 | ||
5231 | ||
5232 | ||
5233 | ||
5234 | ||
5235 | ||
5236 | ||
5237 | ||
5238 | ||
5239 | ||
5240 | ||
5241 | ||
5242 | ||
5243 | ||
81ecdfbb RW |
5244 | # Check whether --with-gnu-ld was given. |
5245 | if test "${with_gnu_ld+set}" = set; then : | |
5246 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
7357c5b6 AM |
5247 | else |
5248 | with_gnu_ld=no | |
81ecdfbb RW |
5249 | fi |
5250 | ||
7357c5b6 AM |
5251 | ac_prog=ld |
5252 | if test "$GCC" = yes; then | |
5253 | # Check if gcc -print-prog-name=ld gives a path. | |
81ecdfbb RW |
5254 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 |
5255 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
7357c5b6 AM |
5256 | case $host in |
5257 | *-*-mingw*) | |
5258 | # gcc leaves a trailing carriage return which upsets mingw | |
5259 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5260 | *) | |
5261 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5262 | esac | |
5263 | case $ac_prog in | |
5264 | # Accept absolute paths. | |
5265 | [\\/]* | ?:[\\/]*) | |
5266 | re_direlt='/[^/][^/]*/\.\./' | |
5267 | # Canonicalize the pathname of ld | |
5268 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5269 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
d7040cdb | 5270 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` |
cfbc9945 SE |
5271 | done |
5272 | test -z "$LD" && LD="$ac_prog" | |
5273 | ;; | |
5bd8253d | 5274 | "") |
cfbc9945 SE |
5275 | # If it fails, then pretend we aren't using GCC. |
5276 | ac_prog=ld | |
5bd8253d L |
5277 | ;; |
5278 | *) | |
cfbc9945 SE |
5279 | # If it is relative, then search for the first ld in PATH. |
5280 | with_gnu_ld=unknown | |
5bd8253d | 5281 | ;; |
cfbc9945 SE |
5282 | esac |
5283 | elif test "$with_gnu_ld" = yes; then | |
81ecdfbb RW |
5284 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
5285 | $as_echo_n "checking for GNU ld... " >&6; } | |
cfbc9945 | 5286 | else |
81ecdfbb RW |
5287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
5288 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
cfbc9945 | 5289 | fi |
d0ac1c44 | 5290 | if ${lt_cv_path_LD+:} false; then : |
81ecdfbb | 5291 | $as_echo_n "(cached) " >&6 |
cfbc9945 SE |
5292 | else |
5293 | if test -z "$LD"; then | |
d7040cdb | 5294 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
cfbc9945 | 5295 | for ac_dir in $PATH; do |
d7040cdb | 5296 | IFS="$lt_save_ifs" |
cfbc9945 SE |
5297 | test -z "$ac_dir" && ac_dir=. |
5298 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5299 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5300 | # Check to see if the program is GNU ld. I'd rather use --version, | |
d7040cdb | 5301 | # but apparently some variants of GNU ld only accept -v. |
cfbc9945 | 5302 | # Break only if it was the GNU/non-GNU ld that we prefer. |
d7040cdb SE |
5303 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
5304 | *GNU* | *'with BFD'*) | |
cfbc9945 | 5305 | test "$with_gnu_ld" != no && break |
d7040cdb SE |
5306 | ;; |
5307 | *) | |
cfbc9945 | 5308 | test "$with_gnu_ld" != yes && break |
d7040cdb SE |
5309 | ;; |
5310 | esac | |
cfbc9945 SE |
5311 | fi |
5312 | done | |
d7040cdb | 5313 | IFS="$lt_save_ifs" |
cfbc9945 SE |
5314 | else |
5315 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
9e9b66a9 | 5316 | fi |
1ad12f97 NC |
5317 | fi |
5318 | ||
cfbc9945 SE |
5319 | LD="$lt_cv_path_LD" |
5320 | if test -n "$LD"; then | |
81ecdfbb RW |
5321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
5322 | $as_echo "$LD" >&6; } | |
cfbc9945 | 5323 | else |
81ecdfbb RW |
5324 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5325 | $as_echo "no" >&6; } | |
cfbc9945 | 5326 | fi |
d0ac1c44 | 5327 | test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 |
81ecdfbb RW |
5328 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
5329 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
d0ac1c44 | 5330 | if ${lt_cv_prog_gnu_ld+:} false; then : |
81ecdfbb | 5331 | $as_echo_n "(cached) " >&6 |
cfbc9945 | 5332 | else |
d7040cdb SE |
5333 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
5334 | case `$LD -v 2>&1 </dev/null` in | |
5335 | *GNU* | *'with BFD'*) | |
cfbc9945 | 5336 | lt_cv_prog_gnu_ld=yes |
d7040cdb SE |
5337 | ;; |
5338 | *) | |
cfbc9945 | 5339 | lt_cv_prog_gnu_ld=no |
d7040cdb SE |
5340 | ;; |
5341 | esac | |
49c96104 | 5342 | fi |
81ecdfbb RW |
5343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 |
5344 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
cfbc9945 | 5345 | with_gnu_ld=$lt_cv_prog_gnu_ld |
49c96104 | 5346 | |
9e9b66a9 | 5347 | |
cfbc9945 | 5348 | |
d7040cdb SE |
5349 | |
5350 | ||
5351 | ||
5352 | ||
5353 | ||
5354 | ||
81ecdfbb RW |
5355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 |
5356 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
d0ac1c44 | 5357 | if ${lt_cv_path_NM+:} false; then : |
81ecdfbb | 5358 | $as_echo_n "(cached) " >&6 |
cfbc9945 SE |
5359 | else |
5360 | if test -n "$NM"; then | |
5361 | # Let the user override the test. | |
5362 | lt_cv_path_NM="$NM" | |
5363 | else | |
d7040cdb SE |
5364 | lt_nm_to_check="${ac_tool_prefix}nm" |
5365 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5366 | lt_nm_to_check="$lt_nm_to_check nm" | |
5367 | fi | |
5368 | for lt_tmp_nm in $lt_nm_to_check; do | |
5369 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5370 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5371 | IFS="$lt_save_ifs" | |
5372 | test -z "$ac_dir" && ac_dir=. | |
5373 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5374 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5375 | # Check to see if the nm accepts a BSD-compat flag. | |
5376 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5377 | # nm: unknown option "B" ignored | |
5378 | # Tru64's nm complains that /dev/null is an invalid object file | |
5379 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5380 | */dev/null* | *'Invalid file or object type'*) | |
5381 | lt_cv_path_NM="$tmp_nm -B" | |
5382 | break | |
5383 | ;; | |
5384 | *) | |
5385 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5386 | */dev/null*) | |
5387 | lt_cv_path_NM="$tmp_nm -p" | |
5388 | break | |
5389 | ;; | |
5390 | *) | |
5391 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5392 | continue # so that we can try to find one that supports BSD flags | |
5393 | ;; | |
5394 | esac | |
5395 | ;; | |
5396 | esac | |
cfbc9945 | 5397 | fi |
d7040cdb SE |
5398 | done |
5399 | IFS="$lt_save_ifs" | |
cfbc9945 | 5400 | done |
d7040cdb | 5401 | : ${lt_cv_path_NM=no} |
cfbc9945 | 5402 | fi |
a2d91340 | 5403 | fi |
81ecdfbb RW |
5404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 |
5405 | $as_echo "$lt_cv_path_NM" >&6; } | |
d7040cdb SE |
5406 | if test "$lt_cv_path_NM" != "no"; then |
5407 | NM="$lt_cv_path_NM" | |
cfbc9945 | 5408 | else |
d7040cdb | 5409 | # Didn't find any BSD compatible name lister, look for dumpbin. |
3725885a RW |
5410 | if test -n "$DUMPBIN"; then : |
5411 | # Let the user override the test. | |
5412 | else | |
5413 | if test -n "$ac_tool_prefix"; then | |
5414 | for ac_prog in dumpbin "link -dump" | |
d7040cdb SE |
5415 | do |
5416 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5417 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
81ecdfbb RW |
5418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5419 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5420 | if ${ac_cv_prog_DUMPBIN+:} false; then : |
81ecdfbb | 5421 | $as_echo_n "(cached) " >&6 |
252b5132 | 5422 | else |
d7040cdb SE |
5423 | if test -n "$DUMPBIN"; then |
5424 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5425 | else | |
5426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5427 | for as_dir in $PATH | |
5428 | do | |
5429 | IFS=$as_save_IFS | |
5430 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5431 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5432 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 5433 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" |
81ecdfbb | 5434 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
5435 | break 2 |
5436 | fi | |
5437 | done | |
81ecdfbb RW |
5438 | done |
5439 | IFS=$as_save_IFS | |
5464f5a1 | 5440 | |
d7040cdb SE |
5441 | fi |
5442 | fi | |
5443 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
5444 | if test -n "$DUMPBIN"; then | |
81ecdfbb RW |
5445 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 |
5446 | $as_echo "$DUMPBIN" >&6; } | |
d7040cdb | 5447 | else |
81ecdfbb RW |
5448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5449 | $as_echo "no" >&6; } | |
d7040cdb | 5450 | fi |
d5fbea21 | 5451 | |
81ecdfbb | 5452 | |
d7040cdb SE |
5453 | test -n "$DUMPBIN" && break |
5454 | done | |
5455 | fi | |
5456 | if test -z "$DUMPBIN"; then | |
5457 | ac_ct_DUMPBIN=$DUMPBIN | |
3725885a | 5458 | for ac_prog in dumpbin "link -dump" |
d7040cdb SE |
5459 | do |
5460 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5461 | set dummy $ac_prog; ac_word=$2 | |
81ecdfbb RW |
5462 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5463 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5464 | if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : |
81ecdfbb | 5465 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
5466 | else |
5467 | if test -n "$ac_ct_DUMPBIN"; then | |
5468 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5469 | else | |
5470 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5471 | for as_dir in $PATH | |
5472 | do | |
5473 | IFS=$as_save_IFS | |
5474 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5475 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5476 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 5477 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" |
81ecdfbb | 5478 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb | 5479 | break 2 |
cfbc9945 | 5480 | fi |
d7040cdb | 5481 | done |
81ecdfbb RW |
5482 | done |
5483 | IFS=$as_save_IFS | |
d5fbea21 | 5484 | |
d7040cdb SE |
5485 | fi |
5486 | fi | |
5487 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5488 | if test -n "$ac_ct_DUMPBIN"; then | |
81ecdfbb RW |
5489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 |
5490 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
d7040cdb | 5491 | else |
81ecdfbb RW |
5492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5493 | $as_echo "no" >&6; } | |
d7040cdb | 5494 | fi |
d5fbea21 | 5495 | |
81ecdfbb | 5496 | |
d7040cdb SE |
5497 | test -n "$ac_ct_DUMPBIN" && break |
5498 | done | |
24443139 | 5499 | |
81ecdfbb RW |
5500 | if test "x$ac_ct_DUMPBIN" = x; then |
5501 | DUMPBIN=":" | |
5502 | else | |
5503 | case $cross_compiling:$ac_tool_warned in | |
5504 | yes:) | |
5505 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5506 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5507 | ac_tool_warned=yes ;; | |
5508 | esac | |
5509 | DUMPBIN=$ac_ct_DUMPBIN | |
5510 | fi | |
d7040cdb | 5511 | fi |
24443139 | 5512 | |
3725885a RW |
5513 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in |
5514 | *COFF*) | |
5515 | DUMPBIN="$DUMPBIN -symbols" | |
5516 | ;; | |
5517 | *) | |
5518 | DUMPBIN=: | |
5519 | ;; | |
5520 | esac | |
5521 | fi | |
24443139 | 5522 | |
d7040cdb SE |
5523 | if test "$DUMPBIN" != ":"; then |
5524 | NM="$DUMPBIN" | |
cfbc9945 | 5525 | fi |
d7040cdb SE |
5526 | fi |
5527 | test -z "$NM" && NM=nm | |
a703a6ea | 5528 | |
f5385ebf | 5529 | |
cfbc9945 | 5530 | |
24443139 AS |
5531 | |
5532 | ||
5533 | ||
81ecdfbb RW |
5534 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 |
5535 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
d0ac1c44 | 5536 | if ${lt_cv_nm_interface+:} false; then : |
81ecdfbb | 5537 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
5538 | else |
5539 | lt_cv_nm_interface="BSD nm" | |
5540 | echo "int some_variable = 0;" > conftest.$ac_ext | |
3725885a | 5541 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) |
d7040cdb SE |
5542 | (eval "$ac_compile" 2>conftest.err) |
5543 | cat conftest.err >&5 | |
3725885a | 5544 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) |
d7040cdb SE |
5545 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) |
5546 | cat conftest.err >&5 | |
3725885a | 5547 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) |
d7040cdb SE |
5548 | cat conftest.out >&5 |
5549 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5550 | lt_cv_nm_interface="MS dumpbin" | |
5551 | fi | |
5552 | rm -f conftest* | |
cfbc9945 | 5553 | fi |
81ecdfbb RW |
5554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 |
5555 | $as_echo "$lt_cv_nm_interface" >&6; } | |
a703a6ea | 5556 | |
81ecdfbb RW |
5557 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
5558 | $as_echo_n "checking whether ln -s works... " >&6; } | |
d7040cdb SE |
5559 | LN_S=$as_ln_s |
5560 | if test "$LN_S" = "ln -s"; then | |
81ecdfbb RW |
5561 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
5562 | $as_echo "yes" >&6; } | |
d7040cdb | 5563 | else |
81ecdfbb RW |
5564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
5565 | $as_echo "no, using $LN_S" >&6; } | |
d7040cdb | 5566 | fi |
252b5132 | 5567 | |
cfbc9945 | 5568 | # find the maximum length of command line arguments |
81ecdfbb RW |
5569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 |
5570 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
d0ac1c44 | 5571 | if ${lt_cv_sys_max_cmd_len+:} false; then : |
81ecdfbb | 5572 | $as_echo_n "(cached) " >&6 |
cfbc9945 SE |
5573 | else |
5574 | i=0 | |
5575 | teststring="ABCD" | |
5464f5a1 | 5576 | |
cfbc9945 SE |
5577 | case $build_os in |
5578 | msdosdjgpp*) | |
5579 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5580 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5581 | # during glob expansion). Even if it were fixed, the result of this | |
5582 | # check would be larger than it should be. | |
5583 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5584 | ;; | |
5464f5a1 | 5585 | |
d7040cdb SE |
5586 | gnu*) |
5587 | # Under GNU Hurd, this test is not required because there is | |
5588 | # no limit to the length of command line arguments. | |
5589 | # Libtool will interpret -1 as no limit whatsoever | |
5590 | lt_cv_sys_max_cmd_len=-1; | |
5591 | ;; | |
5592 | ||
718a6fd8 | 5593 | cygwin* | mingw* | cegcc*) |
cfbc9945 SE |
5594 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
5595 | # about 5 minutes as the teststring grows exponentially. | |
5596 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5597 | # you end up with a "frozen" computer, even though with patience | |
5598 | # the test eventually succeeds (with a max line length of 256k). | |
5599 | # Instead, let's just punt: use the minimum linelength reported by | |
5600 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5601 | lt_cv_sys_max_cmd_len=8192; | |
5602 | ;; | |
5464f5a1 | 5603 | |
3725885a RW |
5604 | mint*) |
5605 | # On MiNT this can take a long time and run out of memory. | |
5606 | lt_cv_sys_max_cmd_len=8192; | |
5607 | ;; | |
5608 | ||
cfbc9945 SE |
5609 | amigaos*) |
5610 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5611 | # So we just punt and use a minimum line length of 8192. | |
5612 | lt_cv_sys_max_cmd_len=8192; | |
5613 | ;; | |
5464f5a1 | 5614 | |
cfbc9945 SE |
5615 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
5616 | # This has been around since 386BSD, at least. Likely further. | |
5617 | if test -x /sbin/sysctl; then | |
5618 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5619 | elif test -x /usr/sbin/sysctl; then | |
5620 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5621 | else | |
d7040cdb | 5622 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
cfbc9945 SE |
5623 | fi |
5624 | # And add a safety zone | |
5625 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5626 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5627 | ;; | |
d7040cdb SE |
5628 | |
5629 | interix*) | |
5630 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5631 | lt_cv_sys_max_cmd_len=196608 | |
5632 | ;; | |
5633 | ||
5634 | osf*) | |
5635 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5636 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5637 | # nice to cause kernel panics so lets avoid the loop below. | |
5638 | # First set a reasonable default. | |
5639 | lt_cv_sys_max_cmd_len=16384 | |
5640 | # | |
5641 | if test -x /sbin/sysconfig; then | |
5642 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5643 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5644 | esac | |
5645 | fi | |
5646 | ;; | |
5647 | sco3.2v5*) | |
5648 | lt_cv_sys_max_cmd_len=102400 | |
5649 | ;; | |
5650 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5651 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5652 | if test -n "$kargmax"; then | |
5653 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5654 | else | |
5655 | lt_cv_sys_max_cmd_len=32768 | |
5656 | fi | |
5657 | ;; | |
5658 | *) | |
718a6fd8 SE |
5659 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
5660 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
79887925 L |
5661 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
5662 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5663 | else | |
5664 | # Make teststring a little bigger before we do anything with it. | |
5665 | # a 1K string should be a reasonable start. | |
5666 | for i in 1 2 3 4 5 6 7 8 ; do | |
5667 | teststring=$teststring$teststring | |
5668 | done | |
5669 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5670 | # If test is not a shell built-in, we'll probably end up computing a | |
5671 | # maximum length that is only half of the actual maximum length, but | |
5672 | # we can't tell. | |
3725885a RW |
5673 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ |
5674 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
79887925 L |
5675 | test $i != 17 # 1/2 MB should be enough |
5676 | do | |
5677 | i=`expr $i + 1` | |
5678 | teststring=$teststring$teststring | |
5679 | done | |
5680 | # Only check the string length outside the loop. | |
5681 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5682 | teststring= | |
5683 | # Add a significant safety factor because C++ compilers can tack on | |
5684 | # massive amounts of additional arguments before passing them to the | |
5685 | # linker. It appears as though 1/2 is a usable value. | |
5686 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5687 | fi | |
d7040cdb | 5688 | ;; |
cfbc9945 | 5689 | esac |
5464f5a1 | 5690 | |
252b5132 | 5691 | fi |
cfbc9945 | 5692 | |
d7040cdb | 5693 | if test -n $lt_cv_sys_max_cmd_len ; then |
81ecdfbb RW |
5694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 |
5695 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
5464f5a1 | 5696 | else |
81ecdfbb RW |
5697 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 |
5698 | $as_echo "none" >&6; } | |
5464f5a1 | 5699 | fi |
d7040cdb | 5700 | max_cmd_len=$lt_cv_sys_max_cmd_len |
252b5132 | 5701 | |
cfbc9945 | 5702 | |
252b5132 | 5703 | |
cfbc9945 | 5704 | |
cfbc9945 | 5705 | |
d7040cdb | 5706 | |
d7040cdb SE |
5707 | : ${CP="cp -f"} |
5708 | : ${MV="mv -f"} | |
5709 | : ${RM="rm -f"} | |
5710 | ||
81ecdfbb RW |
5711 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 |
5712 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
d7040cdb SE |
5713 | # Try some XSI features |
5714 | xsi_shell=no | |
5715 | ( _lt_dummy="a/b/c" | |
5716 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
718a6fd8 SE |
5717 | = c,a/b,, \ |
5718 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5719 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
d7040cdb | 5720 | && xsi_shell=yes |
81ecdfbb RW |
5721 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 |
5722 | $as_echo "$xsi_shell" >&6; } | |
d7040cdb SE |
5723 | |
5724 | ||
81ecdfbb RW |
5725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 |
5726 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
d7040cdb SE |
5727 | lt_shell_append=no |
5728 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5729 | >/dev/null 2>&1 \ | |
5730 | && lt_shell_append=yes | |
81ecdfbb RW |
5731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 |
5732 | $as_echo "$lt_shell_append" >&6; } | |
d7040cdb SE |
5733 | |
5734 | ||
5735 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5736 | lt_unset=unset | |
5464f5a1 | 5737 | else |
d7040cdb | 5738 | lt_unset=false |
5464f5a1 | 5739 | fi |
252b5132 | 5740 | |
d7040cdb SE |
5741 | |
5742 | ||
5743 | ||
5744 | ||
5745 | # test EBCDIC or ASCII | |
5746 | case `echo X|tr X '\101'` in | |
5747 | A) # ASCII based system | |
5748 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5749 | lt_SP2NL='tr \040 \012' | |
5750 | lt_NL2SP='tr \015\012 \040\040' | |
5751 | ;; | |
5752 | *) # EBCDIC based system | |
5753 | lt_SP2NL='tr \100 \n' | |
5754 | lt_NL2SP='tr \r\n \100\100' | |
5755 | ;; | |
5756 | esac | |
5757 | ||
5758 | ||
5759 | ||
5760 | ||
5761 | ||
5762 | ||
5763 | ||
5764 | ||
5765 | ||
81ecdfbb RW |
5766 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 |
5767 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
d0ac1c44 | 5768 | if ${lt_cv_ld_reload_flag+:} false; then : |
81ecdfbb | 5769 | $as_echo_n "(cached) " >&6 |
5464f5a1 | 5770 | else |
d7040cdb SE |
5771 | lt_cv_ld_reload_flag='-r' |
5772 | fi | |
81ecdfbb RW |
5773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 |
5774 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
d7040cdb SE |
5775 | reload_flag=$lt_cv_ld_reload_flag |
5776 | case $reload_flag in | |
5777 | "" | " "*) ;; | |
5778 | *) reload_flag=" $reload_flag" ;; | |
5779 | esac | |
5780 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5781 | case $host_os in | |
5782 | darwin*) | |
5783 | if test "$GCC" = yes; then | |
5784 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5785 | else | |
5786 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5787 | fi | |
5788 | ;; | |
5789 | esac | |
5790 | ||
5791 | ||
5792 | ||
5793 | ||
5794 | ||
5795 | ||
5796 | ||
5797 | ||
5798 | ||
718a6fd8 SE |
5799 | if test -n "$ac_tool_prefix"; then |
5800 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5801 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
81ecdfbb RW |
5802 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5803 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5804 | if ${ac_cv_prog_OBJDUMP+:} false; then : |
81ecdfbb | 5805 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
5806 | else |
5807 | if test -n "$OBJDUMP"; then | |
5808 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5809 | else | |
5810 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5811 | for as_dir in $PATH | |
5812 | do | |
5813 | IFS=$as_save_IFS | |
5814 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5815 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5816 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 5817 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" |
81ecdfbb | 5818 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
5819 | break 2 |
5820 | fi | |
5821 | done | |
81ecdfbb RW |
5822 | done |
5823 | IFS=$as_save_IFS | |
718a6fd8 SE |
5824 | |
5825 | fi | |
5826 | fi | |
5827 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5828 | if test -n "$OBJDUMP"; then | |
81ecdfbb RW |
5829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 |
5830 | $as_echo "$OBJDUMP" >&6; } | |
718a6fd8 | 5831 | else |
81ecdfbb RW |
5832 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5833 | $as_echo "no" >&6; } | |
718a6fd8 SE |
5834 | fi |
5835 | ||
81ecdfbb | 5836 | |
718a6fd8 SE |
5837 | fi |
5838 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5839 | ac_ct_OBJDUMP=$OBJDUMP | |
5840 | # Extract the first word of "objdump", so it can be a program name with args. | |
5841 | set dummy objdump; ac_word=$2 | |
81ecdfbb RW |
5842 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
5843 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 5844 | if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : |
81ecdfbb | 5845 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
5846 | else |
5847 | if test -n "$ac_ct_OBJDUMP"; then | |
5848 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5849 | else | |
5850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5851 | for as_dir in $PATH | |
5852 | do | |
5853 | IFS=$as_save_IFS | |
5854 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 5855 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 5856 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 5857 | ac_cv_prog_ac_ct_OBJDUMP="objdump" |
81ecdfbb | 5858 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
5859 | break 2 |
5860 | fi | |
5861 | done | |
81ecdfbb RW |
5862 | done |
5863 | IFS=$as_save_IFS | |
718a6fd8 | 5864 | |
718a6fd8 SE |
5865 | fi |
5866 | fi | |
5867 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5868 | if test -n "$ac_ct_OBJDUMP"; then | |
81ecdfbb RW |
5869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 |
5870 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
718a6fd8 | 5871 | else |
81ecdfbb RW |
5872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
5873 | $as_echo "no" >&6; } | |
718a6fd8 SE |
5874 | fi |
5875 | ||
81ecdfbb RW |
5876 | if test "x$ac_ct_OBJDUMP" = x; then |
5877 | OBJDUMP="false" | |
5878 | else | |
5879 | case $cross_compiling:$ac_tool_warned in | |
5880 | yes:) | |
5881 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5882 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5883 | ac_tool_warned=yes ;; | |
5884 | esac | |
5885 | OBJDUMP=$ac_ct_OBJDUMP | |
5886 | fi | |
718a6fd8 SE |
5887 | else |
5888 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5889 | fi | |
5890 | ||
5891 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5892 | ||
5893 | ||
5894 | ||
5895 | ||
5896 | ||
5897 | ||
5898 | ||
5899 | ||
d7040cdb | 5900 | |
81ecdfbb RW |
5901 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 |
5902 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
d0ac1c44 | 5903 | if ${lt_cv_deplibs_check_method+:} false; then : |
81ecdfbb | 5904 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
5905 | else |
5906 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5907 | lt_cv_file_magic_test_file= | |
5908 | lt_cv_deplibs_check_method='unknown' | |
5909 | # Need to set the preceding variable on all platforms that support | |
5910 | # interlibrary dependencies. | |
5911 | # 'none' -- dependencies not supported. | |
5912 | # `unknown' -- same as none, but documents that we really don't know. | |
5913 | # 'pass_all' -- all dependencies passed with no checks. | |
5914 | # 'test_compile' -- check by making test program. | |
5915 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5916 | # which responds to the $file_magic_cmd with a given extended regex. | |
5917 | # If you have `file' or equivalent on your system and you're not sure | |
5918 | # whether `pass_all' will *always* work, you probably want this one. | |
5919 | ||
5920 | case $host_os in | |
e81819a5 | 5921 | aix[4-9]*) |
d7040cdb SE |
5922 | lt_cv_deplibs_check_method=pass_all |
5923 | ;; | |
5924 | ||
5925 | beos*) | |
5926 | lt_cv_deplibs_check_method=pass_all | |
5927 | ;; | |
5928 | ||
5929 | bsdi[45]*) | |
5930 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5931 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5932 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5933 | ;; | |
5934 | ||
5935 | cygwin*) | |
5936 | # func_win32_libid is a shell function defined in ltmain.sh | |
5937 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5938 | lt_cv_file_magic_cmd='func_win32_libid' | |
5939 | ;; | |
5940 | ||
5941 | mingw* | pw32*) | |
5942 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5943 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5944 | # unless we find 'file', for example because we are cross-compiling. | |
3725885a RW |
5945 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. |
5946 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
d7040cdb SE |
5947 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5948 | lt_cv_file_magic_cmd='func_win32_libid' | |
5949 | else | |
5950 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
5951 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5952 | fi | |
5953 | ;; | |
5954 | ||
3725885a | 5955 | cegcc*) |
718a6fd8 SE |
5956 | # use the weaker test based on 'objdump'. See mingw*. |
5957 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5958 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5959 | ;; | |
5960 | ||
d7040cdb SE |
5961 | darwin* | rhapsody*) |
5962 | lt_cv_deplibs_check_method=pass_all | |
cfbc9945 | 5963 | ;; |
d7040cdb SE |
5964 | |
5965 | freebsd* | dragonfly*) | |
5966 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5967 | case $host_cpu in | |
5968 | i*86 ) | |
5969 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5970 | # Let's accept both of them until this is cleared up. | |
5971 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5972 | lt_cv_file_magic_cmd=/usr/bin/file | |
5973 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5974 | ;; | |
5975 | esac | |
5976 | else | |
5977 | lt_cv_deplibs_check_method=pass_all | |
5978 | fi | |
5979 | ;; | |
5980 | ||
5981 | gnu*) | |
5982 | lt_cv_deplibs_check_method=pass_all | |
cfbc9945 | 5983 | ;; |
d7040cdb | 5984 | |
3725885a RW |
5985 | haiku*) |
5986 | lt_cv_deplibs_check_method=pass_all | |
5987 | ;; | |
5988 | ||
d7040cdb SE |
5989 | hpux10.20* | hpux11*) |
5990 | lt_cv_file_magic_cmd=/usr/bin/file | |
5991 | case $host_cpu in | |
5992 | ia64*) | |
5993 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5994 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5995 | ;; | |
5996 | hppa*64*) | |
3725885a | 5997 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' |
d7040cdb SE |
5998 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
5999 | ;; | |
cfbc9945 | 6000 | *) |
3725885a | 6001 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' |
d7040cdb SE |
6002 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
6003 | ;; | |
6004 | esac | |
6005 | ;; | |
6be7c12c | 6006 | |
d7040cdb SE |
6007 | interix[3-9]*) |
6008 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6009 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6010 | ;; | |
cfbc9945 | 6011 | |
d7040cdb SE |
6012 | irix5* | irix6* | nonstopux*) |
6013 | case $LD in | |
6014 | *-32|*"-32 ") libmagic=32-bit;; | |
6015 | *-n32|*"-n32 ") libmagic=N32;; | |
6016 | *-64|*"-64 ") libmagic=64-bit;; | |
6017 | *) libmagic=never-match;; | |
6018 | esac | |
6019 | lt_cv_deplibs_check_method=pass_all | |
cfbc9945 | 6020 | ;; |
cfbc9945 | 6021 | |
d7040cdb | 6022 | # This must be Linux ELF. |
58e24671 | 6023 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
d7040cdb SE |
6024 | lt_cv_deplibs_check_method=pass_all |
6025 | ;; | |
5464f5a1 | 6026 | |
d7040cdb SE |
6027 | netbsd*) |
6028 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6029 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
cfbc9945 | 6030 | else |
d7040cdb | 6031 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
cfbc9945 | 6032 | fi |
d7040cdb SE |
6033 | ;; |
6034 | ||
6035 | newos6*) | |
6036 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6037 | lt_cv_file_magic_cmd=/usr/bin/file | |
6038 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6039 | ;; | |
6040 | ||
6041 | *nto* | *qnx*) | |
6042 | lt_cv_deplibs_check_method=pass_all | |
6043 | ;; | |
cfbc9945 | 6044 | |
d7040cdb SE |
6045 | openbsd*) |
6046 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6047 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6048 | else | |
6049 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
cfbc9945 SE |
6050 | fi |
6051 | ;; | |
d7040cdb SE |
6052 | |
6053 | osf3* | osf4* | osf5*) | |
6054 | lt_cv_deplibs_check_method=pass_all | |
6055 | ;; | |
6056 | ||
6057 | rdos*) | |
6058 | lt_cv_deplibs_check_method=pass_all | |
6059 | ;; | |
6060 | ||
6061 | solaris*) | |
6062 | lt_cv_deplibs_check_method=pass_all | |
6063 | ;; | |
6064 | ||
6065 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6066 | lt_cv_deplibs_check_method=pass_all | |
6067 | ;; | |
6068 | ||
6069 | sysv4 | sysv4.3*) | |
6070 | case $host_vendor in | |
6071 | motorola) | |
6072 | 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]' | |
6073 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6074 | ;; | |
6075 | ncr) | |
6076 | lt_cv_deplibs_check_method=pass_all | |
6077 | ;; | |
6078 | sequent) | |
6079 | lt_cv_file_magic_cmd='/bin/file' | |
6080 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6081 | ;; | |
6082 | sni) | |
6083 | lt_cv_file_magic_cmd='/bin/file' | |
6084 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6085 | lt_cv_file_magic_test_file=/lib/libc.so | |
6086 | ;; | |
6087 | siemens) | |
6088 | lt_cv_deplibs_check_method=pass_all | |
6089 | ;; | |
6090 | pc) | |
6091 | lt_cv_deplibs_check_method=pass_all | |
6092 | ;; | |
6093 | esac | |
6094 | ;; | |
6095 | ||
6096 | tpf*) | |
6097 | lt_cv_deplibs_check_method=pass_all | |
6098 | ;; | |
cfbc9945 SE |
6099 | esac |
6100 | ||
d7040cdb | 6101 | fi |
81ecdfbb RW |
6102 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 |
6103 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
d7040cdb SE |
6104 | file_magic_cmd=$lt_cv_file_magic_cmd |
6105 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6106 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6107 | ||
6108 | ||
6109 | ||
6110 | ||
6111 | ||
6112 | ||
6113 | ||
6114 | ||
6115 | ||
6116 | ||
6117 | ||
6118 | ||
a4966cd9 L |
6119 | plugin_option= |
6120 | plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll" | |
6121 | for plugin in $plugin_names; do | |
6122 | plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin` | |
6123 | if test x$plugin_so = x$plugin; then | |
6124 | plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin` | |
6125 | fi | |
6126 | if test x$plugin_so != x$plugin; then | |
6127 | plugin_option="--plugin $plugin_so" | |
6128 | break | |
6129 | fi | |
6130 | done | |
6131 | ||
cfbc9945 | 6132 | if test -n "$ac_tool_prefix"; then |
d7040cdb SE |
6133 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
6134 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
81ecdfbb RW |
6135 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6136 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6137 | if ${ac_cv_prog_AR+:} false; then : |
81ecdfbb | 6138 | $as_echo_n "(cached) " >&6 |
5464f5a1 | 6139 | else |
d7040cdb SE |
6140 | if test -n "$AR"; then |
6141 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
5464f5a1 NN |
6142 | else |
6143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6144 | for as_dir in $PATH | |
6145 | do | |
6146 | IFS=$as_save_IFS | |
6147 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6148 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6149 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 6150 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
81ecdfbb | 6151 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5464f5a1 NN |
6152 | break 2 |
6153 | fi | |
6154 | done | |
81ecdfbb RW |
6155 | done |
6156 | IFS=$as_save_IFS | |
5464f5a1 NN |
6157 | |
6158 | fi | |
6159 | fi | |
d7040cdb SE |
6160 | AR=$ac_cv_prog_AR |
6161 | if test -n "$AR"; then | |
81ecdfbb RW |
6162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
6163 | $as_echo "$AR" >&6; } | |
5464f5a1 | 6164 | else |
81ecdfbb RW |
6165 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6166 | $as_echo "no" >&6; } | |
5464f5a1 NN |
6167 | fi |
6168 | ||
81ecdfbb | 6169 | |
5464f5a1 | 6170 | fi |
d7040cdb SE |
6171 | if test -z "$ac_cv_prog_AR"; then |
6172 | ac_ct_AR=$AR | |
6173 | # Extract the first word of "ar", so it can be a program name with args. | |
6174 | set dummy ar; ac_word=$2 | |
81ecdfbb RW |
6175 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6176 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6177 | if ${ac_cv_prog_ac_ct_AR+:} false; then : |
81ecdfbb | 6178 | $as_echo_n "(cached) " >&6 |
252b5132 | 6179 | else |
d7040cdb SE |
6180 | if test -n "$ac_ct_AR"; then |
6181 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
252b5132 | 6182 | else |
5464f5a1 NN |
6183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6184 | for as_dir in $PATH | |
6185 | do | |
6186 | IFS=$as_save_IFS | |
6187 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6188 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6189 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 6190 | ac_cv_prog_ac_ct_AR="ar" |
81ecdfbb | 6191 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5464f5a1 NN |
6192 | break 2 |
6193 | fi | |
6194 | done | |
81ecdfbb RW |
6195 | done |
6196 | IFS=$as_save_IFS | |
5464f5a1 | 6197 | |
5464f5a1 NN |
6198 | fi |
6199 | fi | |
d7040cdb SE |
6200 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6201 | if test -n "$ac_ct_AR"; then | |
81ecdfbb RW |
6202 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
6203 | $as_echo "$ac_ct_AR" >&6; } | |
d7040cdb | 6204 | else |
81ecdfbb RW |
6205 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6206 | $as_echo "no" >&6; } | |
5464f5a1 NN |
6207 | fi |
6208 | ||
81ecdfbb RW |
6209 | if test "x$ac_ct_AR" = x; then |
6210 | AR="false" | |
6211 | else | |
6212 | case $cross_compiling:$ac_tool_warned in | |
6213 | yes:) | |
6214 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6215 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6216 | ac_tool_warned=yes ;; | |
6217 | esac | |
6218 | AR=$ac_ct_AR | |
6219 | fi | |
cfbc9945 | 6220 | else |
d7040cdb | 6221 | AR="$ac_cv_prog_AR" |
5464f5a1 | 6222 | fi |
cfbc9945 | 6223 | |
d7040cdb | 6224 | test -z "$AR" && AR=ar |
a4966cd9 L |
6225 | if test -n "$plugin_option"; then |
6226 | if $AR --help 2>&1 | grep -q "\--plugin"; then | |
83b33c6c L |
6227 | touch conftest.c |
6228 | $AR $plugin_option rc conftest.a conftest.c | |
6229 | if test "$?" != 0; then | |
6230 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5 | |
6231 | $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;} | |
6232 | else | |
6233 | AR="$AR $plugin_option" | |
6234 | fi | |
6235 | rm -f conftest.* | |
a4966cd9 L |
6236 | fi |
6237 | fi | |
d7040cdb SE |
6238 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
6239 | ||
6240 | ||
6241 | ||
6242 | ||
6243 | ||
6244 | ||
6245 | ||
6246 | ||
6247 | ||
6248 | ||
6249 | ||
cfbc9945 SE |
6250 | if test -n "$ac_tool_prefix"; then |
6251 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6252 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
81ecdfbb RW |
6253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6254 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6255 | if ${ac_cv_prog_STRIP+:} false; then : |
81ecdfbb | 6256 | $as_echo_n "(cached) " >&6 |
5464f5a1 | 6257 | else |
cfbc9945 SE |
6258 | if test -n "$STRIP"; then |
6259 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
5464f5a1 NN |
6260 | else |
6261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6262 | for as_dir in $PATH | |
6263 | do | |
6264 | IFS=$as_save_IFS | |
6265 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6266 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6267 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
cfbc9945 | 6268 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
81ecdfbb | 6269 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5464f5a1 NN |
6270 | break 2 |
6271 | fi | |
6272 | done | |
81ecdfbb RW |
6273 | done |
6274 | IFS=$as_save_IFS | |
5464f5a1 NN |
6275 | |
6276 | fi | |
6277 | fi | |
cfbc9945 SE |
6278 | STRIP=$ac_cv_prog_STRIP |
6279 | if test -n "$STRIP"; then | |
81ecdfbb RW |
6280 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
6281 | $as_echo "$STRIP" >&6; } | |
5464f5a1 | 6282 | else |
81ecdfbb RW |
6283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6284 | $as_echo "no" >&6; } | |
5464f5a1 NN |
6285 | fi |
6286 | ||
81ecdfbb | 6287 | |
252b5132 | 6288 | fi |
cfbc9945 SE |
6289 | if test -z "$ac_cv_prog_STRIP"; then |
6290 | ac_ct_STRIP=$STRIP | |
6291 | # Extract the first word of "strip", so it can be a program name with args. | |
6292 | set dummy strip; ac_word=$2 | |
81ecdfbb RW |
6293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6294 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6295 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : |
81ecdfbb | 6296 | $as_echo_n "(cached) " >&6 |
5464f5a1 | 6297 | else |
cfbc9945 SE |
6298 | if test -n "$ac_ct_STRIP"; then |
6299 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
5464f5a1 NN |
6300 | else |
6301 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6302 | for as_dir in $PATH | |
6303 | do | |
6304 | IFS=$as_save_IFS | |
6305 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6306 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6307 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
cfbc9945 | 6308 | ac_cv_prog_ac_ct_STRIP="strip" |
81ecdfbb | 6309 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5464f5a1 NN |
6310 | break 2 |
6311 | fi | |
6312 | done | |
81ecdfbb RW |
6313 | done |
6314 | IFS=$as_save_IFS | |
5464f5a1 NN |
6315 | |
6316 | fi | |
6317 | fi | |
cfbc9945 SE |
6318 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6319 | if test -n "$ac_ct_STRIP"; then | |
81ecdfbb RW |
6320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
6321 | $as_echo "$ac_ct_STRIP" >&6; } | |
5464f5a1 | 6322 | else |
81ecdfbb RW |
6323 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6324 | $as_echo "no" >&6; } | |
5464f5a1 NN |
6325 | fi |
6326 | ||
81ecdfbb RW |
6327 | if test "x$ac_ct_STRIP" = x; then |
6328 | STRIP=":" | |
6329 | else | |
6330 | case $cross_compiling:$ac_tool_warned in | |
6331 | yes:) | |
6332 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6333 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6334 | ac_tool_warned=yes ;; | |
6335 | esac | |
6336 | STRIP=$ac_ct_STRIP | |
6337 | fi | |
cfbc9945 SE |
6338 | else |
6339 | STRIP="$ac_cv_prog_STRIP" | |
5464f5a1 NN |
6340 | fi |
6341 | ||
d7040cdb | 6342 | test -z "$STRIP" && STRIP=: |
5464f5a1 | 6343 | |
cfbc9945 SE |
6344 | |
6345 | ||
cfbc9945 | 6346 | |
cfbc9945 SE |
6347 | |
6348 | ||
d7040cdb SE |
6349 | if test -n "$ac_tool_prefix"; then |
6350 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6351 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
81ecdfbb RW |
6352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6353 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6354 | if ${ac_cv_prog_RANLIB+:} false; then : |
81ecdfbb | 6355 | $as_echo_n "(cached) " >&6 |
cfbc9945 | 6356 | else |
d7040cdb SE |
6357 | if test -n "$RANLIB"; then |
6358 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6359 | else | |
6360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6361 | for as_dir in $PATH | |
6362 | do | |
6363 | IFS=$as_save_IFS | |
6364 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6365 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6366 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 6367 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
81ecdfbb | 6368 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb | 6369 | break 2 |
cfbc9945 | 6370 | fi |
d7040cdb | 6371 | done |
81ecdfbb RW |
6372 | done |
6373 | IFS=$as_save_IFS | |
cfbc9945 | 6374 | |
d7040cdb SE |
6375 | fi |
6376 | fi | |
6377 | RANLIB=$ac_cv_prog_RANLIB | |
6378 | if test -n "$RANLIB"; then | |
81ecdfbb RW |
6379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
6380 | $as_echo "$RANLIB" >&6; } | |
d7040cdb | 6381 | else |
81ecdfbb RW |
6382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6383 | $as_echo "no" >&6; } | |
d7040cdb | 6384 | fi |
cfbc9945 | 6385 | |
81ecdfbb | 6386 | |
d7040cdb SE |
6387 | fi |
6388 | if test -z "$ac_cv_prog_RANLIB"; then | |
6389 | ac_ct_RANLIB=$RANLIB | |
6390 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6391 | set dummy ranlib; ac_word=$2 | |
81ecdfbb RW |
6392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6393 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6394 | if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : |
81ecdfbb | 6395 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
6396 | else |
6397 | if test -n "$ac_ct_RANLIB"; then | |
6398 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6399 | else | |
6400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6401 | for as_dir in $PATH | |
6402 | do | |
6403 | IFS=$as_save_IFS | |
6404 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6405 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 6406 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 6407 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
81ecdfbb | 6408 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb | 6409 | break 2 |
cfbc9945 | 6410 | fi |
d7040cdb | 6411 | done |
81ecdfbb RW |
6412 | done |
6413 | IFS=$as_save_IFS | |
cfbc9945 | 6414 | |
d7040cdb SE |
6415 | fi |
6416 | fi | |
6417 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6418 | if test -n "$ac_ct_RANLIB"; then | |
81ecdfbb RW |
6419 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
6420 | $as_echo "$ac_ct_RANLIB" >&6; } | |
cfbc9945 | 6421 | else |
81ecdfbb RW |
6422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
6423 | $as_echo "no" >&6; } | |
d7040cdb | 6424 | fi |
5464f5a1 | 6425 | |
81ecdfbb RW |
6426 | if test "x$ac_ct_RANLIB" = x; then |
6427 | RANLIB=":" | |
6428 | else | |
6429 | case $cross_compiling:$ac_tool_warned in | |
6430 | yes:) | |
6431 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6432 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6433 | ac_tool_warned=yes ;; | |
6434 | esac | |
6435 | RANLIB=$ac_ct_RANLIB | |
6436 | fi | |
d7040cdb SE |
6437 | else |
6438 | RANLIB="$ac_cv_prog_RANLIB" | |
6439 | fi | |
5464f5a1 | 6440 | |
d7040cdb | 6441 | test -z "$RANLIB" && RANLIB=: |
a4966cd9 L |
6442 | if test -n "$plugin_option" && test "$RANLIB" != ":"; then |
6443 | if $RANLIB --help 2>&1 | grep -q "\--plugin"; then | |
6444 | RANLIB="$RANLIB $plugin_option" | |
6445 | fi | |
6446 | fi | |
5464f5a1 | 6447 | |
5464f5a1 | 6448 | |
5464f5a1 | 6449 | |
cfbc9945 | 6450 | |
cfbc9945 | 6451 | |
d7040cdb SE |
6452 | |
6453 | # Determine commands to create old-style static archives. | |
718a6fd8 | 6454 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
d7040cdb SE |
6455 | old_postinstall_cmds='chmod 644 $oldlib' |
6456 | old_postuninstall_cmds= | |
6457 | ||
6458 | if test -n "$RANLIB"; then | |
6459 | case $host_os in | |
6460 | openbsd*) | |
6461 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6462 | ;; | |
6463 | *) | |
6464 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6465 | ;; | |
6466 | esac | |
6467 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
cfbc9945 | 6468 | fi |
cfbc9945 | 6469 | |
3725885a RW |
6470 | case $host_os in |
6471 | darwin*) | |
6472 | lock_old_archive_extraction=yes ;; | |
6473 | *) | |
6474 | lock_old_archive_extraction=no ;; | |
6475 | esac | |
6476 | ||
6477 | ||
6478 | ||
6479 | ||
6480 | ||
6481 | ||
cfbc9945 | 6482 | |
cfbc9945 SE |
6483 | |
6484 | ||
cfbc9945 | 6485 | |
cfbc9945 | 6486 | |
cfbc9945 | 6487 | |
cfbc9945 | 6488 | |
cfbc9945 SE |
6489 | |
6490 | ||
cfbc9945 | 6491 | |
cfbc9945 | 6492 | |
cfbc9945 SE |
6493 | |
6494 | ||
6495 | ||
6496 | ||
6497 | ||
6498 | ||
6499 | ||
5464f5a1 | 6500 | |
5464f5a1 | 6501 | |
cfbc9945 SE |
6502 | |
6503 | ||
6504 | ||
5464f5a1 | 6505 | |
5464f5a1 | 6506 | |
cfbc9945 SE |
6507 | |
6508 | ||
6509 | ||
5464f5a1 | 6510 | |
cfbc9945 SE |
6511 | |
6512 | ||
6513 | ||
6514 | ||
d7040cdb SE |
6515 | # If no C compiler was specified, use CC. |
6516 | LTCC=${LTCC-"$CC"} | |
cfbc9945 | 6517 | |
d7040cdb SE |
6518 | # If no C compiler flags were specified, use CFLAGS. |
6519 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
cfbc9945 | 6520 | |
d7040cdb SE |
6521 | # Allow CC to be a program name with arguments. |
6522 | compiler=$CC | |
cfbc9945 | 6523 | |
cfbc9945 | 6524 | |
d7040cdb | 6525 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
81ecdfbb RW |
6526 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 |
6527 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
d0ac1c44 | 6528 | if ${lt_cv_sys_global_symbol_pipe+:} false; then : |
81ecdfbb | 6529 | $as_echo_n "(cached) " >&6 |
d7040cdb | 6530 | else |
5464f5a1 | 6531 | |
d7040cdb SE |
6532 | # These are sane defaults that work on at least a few old systems. |
6533 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
5464f5a1 | 6534 | |
d7040cdb SE |
6535 | # Character class describing NM global symbol codes. |
6536 | symcode='[BCDEGRST]' | |
6537 | ||
6538 | # Regexp to match symbols that can be accessed directly from C. | |
6539 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6540 | ||
6541 | # Define system-specific variables. | |
6542 | case $host_os in | |
6543 | aix*) | |
6544 | symcode='[BCDT]' | |
6545 | ;; | |
718a6fd8 | 6546 | cygwin* | mingw* | pw32* | cegcc*) |
d7040cdb SE |
6547 | symcode='[ABCDGISTW]' |
6548 | ;; | |
6549 | hpux*) | |
6550 | if test "$host_cpu" = ia64; then | |
6551 | symcode='[ABCDEGRST]' | |
6552 | fi | |
6553 | ;; | |
6554 | irix* | nonstopux*) | |
6555 | symcode='[BCDEGRST]' | |
6556 | ;; | |
6557 | osf*) | |
6558 | symcode='[BCDEGQRST]' | |
6559 | ;; | |
6560 | solaris*) | |
6561 | symcode='[BDRT]' | |
6562 | ;; | |
6563 | sco3.2v5*) | |
6564 | symcode='[DT]' | |
6565 | ;; | |
6566 | sysv4.2uw2*) | |
6567 | symcode='[DT]' | |
6568 | ;; | |
6569 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6570 | symcode='[ABDT]' | |
6571 | ;; | |
6572 | sysv4) | |
6573 | symcode='[DFNSTU]' | |
6574 | ;; | |
cfbc9945 | 6575 | esac |
5464f5a1 | 6576 | |
d7040cdb SE |
6577 | # If we're using GNU nm, then use its standard symbol codes. |
6578 | case `$NM -V 2>&1` in | |
6579 | *GNU* | *'with BFD'*) | |
6580 | symcode='[ABCDGIRSTW]' ;; | |
6581 | esac | |
5464f5a1 | 6582 | |
d7040cdb SE |
6583 | # Transform an extracted symbol line into a proper C declaration. |
6584 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6585 | # so use this general approach. | |
6586 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
5464f5a1 | 6587 | |
d7040cdb SE |
6588 | # Transform an extracted symbol line into symbol name and symbol address |
6589 | 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 | 6590 | 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 | 6591 | |
d7040cdb SE |
6592 | # Handle CRLF in mingw tool chain |
6593 | opt_cr= | |
6594 | case $build_os in | |
6595 | mingw*) | |
6596 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6597 | ;; | |
6598 | esac | |
5464f5a1 | 6599 | |
d7040cdb SE |
6600 | # Try without a prefix underscore, then with it. |
6601 | for ac_symprfx in "" "_"; do | |
6602 | ||
6603 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6604 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6605 | ||
6606 | # Write the raw and C identifiers. | |
6607 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6608 | # Fake it for dumpbin and say T for any non-static function | |
6609 | # and D for any global variable. | |
6610 | # Also find C++ and __fastcall symbols from MSVC++, | |
6611 | # which start with @ or ?. | |
6612 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6613 | " {last_section=section; section=\$ 3};"\ | |
6614 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6615 | " \$ 0!~/External *\|/{next};"\ | |
6616 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6617 | " {if(hide[section]) next};"\ | |
6618 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6619 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6620 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6621 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6622 | " ' prfx=^$ac_symprfx" | |
6623 | else | |
6624 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6625 | fi | |
cfbc9945 | 6626 | |
d7040cdb SE |
6627 | # Check to see that the pipe works correctly. |
6628 | pipe_works=no | |
cfbc9945 | 6629 | |
d7040cdb SE |
6630 | rm -f conftest* |
6631 | cat > conftest.$ac_ext <<_LT_EOF | |
6632 | #ifdef __cplusplus | |
6633 | extern "C" { | |
6634 | #endif | |
6635 | char nm_test_var; | |
6636 | void nm_test_func(void); | |
6637 | void nm_test_func(void){} | |
6638 | #ifdef __cplusplus | |
6639 | } | |
6640 | #endif | |
6641 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6642 | _LT_EOF | |
cfbc9945 | 6643 | |
81ecdfbb | 6644 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
d7040cdb SE |
6645 | (eval $ac_compile) 2>&5 |
6646 | ac_status=$? | |
81ecdfbb RW |
6647 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6648 | test $ac_status = 0; }; then | |
d7040cdb SE |
6649 | # Now try to grab the symbols. |
6650 | nlist=conftest.nm | |
3725885a RW |
6651 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 |
6652 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
d7040cdb | 6653 | ac_status=$? |
81ecdfbb RW |
6654 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6655 | test $ac_status = 0; } && test -s "$nlist"; then | |
d7040cdb SE |
6656 | # Try sorting and uniquifying the output. |
6657 | if sort "$nlist" | uniq > "$nlist"T; then | |
6658 | mv -f "$nlist"T "$nlist" | |
6659 | else | |
6660 | rm -f "$nlist"T | |
6661 | fi | |
cfbc9945 | 6662 | |
d7040cdb SE |
6663 | # Make sure that we snagged all the symbols we need. |
6664 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6665 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6666 | cat <<_LT_EOF > conftest.$ac_ext | |
6667 | #ifdef __cplusplus | |
6668 | extern "C" { | |
6669 | #endif | |
cfbc9945 | 6670 | |
d7040cdb SE |
6671 | _LT_EOF |
6672 | # Now generate the symbol file. | |
6673 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
5464f5a1 | 6674 | |
d7040cdb | 6675 | cat <<_LT_EOF >> conftest.$ac_ext |
cfbc9945 | 6676 | |
d7040cdb SE |
6677 | /* The mapping between symbol names and symbols. */ |
6678 | const struct { | |
6679 | const char *name; | |
6680 | void *address; | |
6681 | } | |
6682 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6683 | { | |
6684 | { "@PROGRAM@", (void *) 0 }, | |
6685 | _LT_EOF | |
6686 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6687 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6688 | {0, (void *) 0} | |
6689 | }; | |
6690 | ||
6691 | /* This works around a problem in FreeBSD linker */ | |
6692 | #ifdef FREEBSD_WORKAROUND | |
6693 | static const void *lt_preloaded_setup() { | |
6694 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6695 | } | |
6696 | #endif | |
cfbc9945 | 6697 | |
d7040cdb SE |
6698 | #ifdef __cplusplus |
6699 | } | |
6700 | #endif | |
6701 | _LT_EOF | |
6702 | # Now try linking the two files. | |
6703 | mv conftest.$ac_objext conftstm.$ac_objext | |
6704 | lt_save_LIBS="$LIBS" | |
6705 | lt_save_CFLAGS="$CFLAGS" | |
6706 | LIBS="conftstm.$ac_objext" | |
6707 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
81ecdfbb | 6708 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
d7040cdb SE |
6709 | (eval $ac_link) 2>&5 |
6710 | ac_status=$? | |
81ecdfbb RW |
6711 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6712 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
d7040cdb SE |
6713 | pipe_works=yes |
6714 | fi | |
6715 | LIBS="$lt_save_LIBS" | |
6716 | CFLAGS="$lt_save_CFLAGS" | |
6717 | else | |
6718 | echo "cannot find nm_test_func in $nlist" >&5 | |
6719 | fi | |
6720 | else | |
6721 | echo "cannot find nm_test_var in $nlist" >&5 | |
6722 | fi | |
6723 | else | |
6724 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6725 | fi | |
6726 | else | |
6727 | echo "$progname: failed program was:" >&5 | |
6728 | cat conftest.$ac_ext >&5 | |
6729 | fi | |
718a6fd8 | 6730 | rm -rf conftest* conftst* |
cfbc9945 | 6731 | |
d7040cdb SE |
6732 | # Do not use the global_symbol_pipe unless it works. |
6733 | if test "$pipe_works" = yes; then | |
6734 | break | |
6735 | else | |
6736 | lt_cv_sys_global_symbol_pipe= | |
6737 | fi | |
6738 | done | |
cfbc9945 | 6739 | |
252b5132 | 6740 | fi |
5464f5a1 | 6741 | |
d7040cdb SE |
6742 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6743 | lt_cv_sys_global_symbol_to_cdecl= | |
6744 | fi | |
6745 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
81ecdfbb RW |
6746 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 |
6747 | $as_echo "failed" >&6; } | |
b3baf5d0 | 6748 | else |
81ecdfbb RW |
6749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 |
6750 | $as_echo "ok" >&6; } | |
d7040cdb | 6751 | fi |
5464f5a1 | 6752 | |
cfbc9945 | 6753 | |
b3baf5d0 | 6754 | |
cfbc9945 SE |
6755 | |
6756 | ||
6757 | ||
6758 | ||
5464f5a1 | 6759 | |
4a2a2686 HPN |
6760 | |
6761 | ||
6762 | ||
cfbc9945 SE |
6763 | |
6764 | ||
cfbc9945 | 6765 | |
cfbc9945 | 6766 | |
718a6fd8 SE |
6767 | |
6768 | ||
6769 | ||
6770 | ||
6771 | ||
9d7cbccd | 6772 | |
20e95c23 | 6773 | |
81ecdfbb RW |
6774 | # Check whether --enable-libtool-lock was given. |
6775 | if test "${enable_libtool_lock+set}" = set; then : | |
6776 | enableval=$enable_libtool_lock; | |
6777 | fi | |
20e95c23 | 6778 | |
d7040cdb | 6779 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
20e95c23 | 6780 | |
d7040cdb SE |
6781 | # Some flags need to be propagated to the compiler or linker for good |
6782 | # libtool support. | |
6783 | case $host in | |
6784 | ia64-*-hpux*) | |
6785 | # Find out which ABI we are using. | |
6786 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6787 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
d7040cdb SE |
6788 | (eval $ac_compile) 2>&5 |
6789 | ac_status=$? | |
81ecdfbb RW |
6790 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6791 | test $ac_status = 0; }; then | |
d7040cdb SE |
6792 | case `/usr/bin/file conftest.$ac_objext` in |
6793 | *ELF-32*) | |
6794 | HPUX_IA64_MODE="32" | |
6795 | ;; | |
6796 | *ELF-64*) | |
6797 | HPUX_IA64_MODE="64" | |
6798 | ;; | |
20e95c23 | 6799 | esac |
d7040cdb SE |
6800 | fi |
6801 | rm -rf conftest* | |
6802 | ;; | |
6803 | *-*-irix6*) | |
6804 | # Find out which ABI we are using. | |
3725885a | 6805 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext |
81ecdfbb | 6806 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
d7040cdb SE |
6807 | (eval $ac_compile) 2>&5 |
6808 | ac_status=$? | |
81ecdfbb RW |
6809 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6810 | test $ac_status = 0; }; then | |
d7040cdb SE |
6811 | if test "$lt_cv_prog_gnu_ld" = yes; then |
6812 | case `/usr/bin/file conftest.$ac_objext` in | |
6813 | *32-bit*) | |
6814 | LD="${LD-ld} -melf32bsmip" | |
6815 | ;; | |
6816 | *N32*) | |
6817 | LD="${LD-ld} -melf32bmipn32" | |
6818 | ;; | |
6819 | *64-bit*) | |
6820 | LD="${LD-ld} -melf64bmip" | |
6821 | ;; | |
6822 | esac | |
20e95c23 | 6823 | else |
d7040cdb SE |
6824 | case `/usr/bin/file conftest.$ac_objext` in |
6825 | *32-bit*) | |
6826 | LD="${LD-ld} -32" | |
6827 | ;; | |
6828 | *N32*) | |
6829 | LD="${LD-ld} -n32" | |
6830 | ;; | |
6831 | *64-bit*) | |
6832 | LD="${LD-ld} -64" | |
6833 | ;; | |
20e95c23 DJ |
6834 | esac |
6835 | fi | |
d7040cdb SE |
6836 | fi |
6837 | rm -rf conftest* | |
6838 | ;; | |
20e95c23 | 6839 | |
cc9afea3 | 6840 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ |
d7040cdb SE |
6841 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) |
6842 | # Find out which ABI we are using. | |
6843 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6844 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
d7040cdb SE |
6845 | (eval $ac_compile) 2>&5 |
6846 | ac_status=$? | |
81ecdfbb RW |
6847 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6848 | test $ac_status = 0; }; then | |
d7040cdb SE |
6849 | case `/usr/bin/file conftest.o` in |
6850 | *32-bit*) | |
6851 | case $host in | |
6852 | x86_64-*kfreebsd*-gnu) | |
6853 | LD="${LD-ld} -m elf_i386_fbsd" | |
6854 | ;; | |
6855 | x86_64-*linux*) | |
6d2920c8 L |
6856 | case `/usr/bin/file conftest.o` in |
6857 | *x86-64*) | |
6858 | LD="${LD-ld} -m elf32_x86_64" | |
6859 | ;; | |
6860 | *) | |
6861 | LD="${LD-ld} -m elf_i386" | |
6862 | ;; | |
6863 | esac | |
d7040cdb | 6864 | ;; |
cc9afea3 AM |
6865 | powerpc64le-*linux*) |
6866 | LD="${LD-ld} -m elf32lppclinux" | |
6867 | ;; | |
6868 | powerpc64-*linux*) | |
d7040cdb SE |
6869 | LD="${LD-ld} -m elf32ppclinux" |
6870 | ;; | |
6871 | s390x-*linux*) | |
6872 | LD="${LD-ld} -m elf_s390" | |
6873 | ;; | |
6874 | sparc64-*linux*) | |
6875 | LD="${LD-ld} -m elf32_sparc" | |
6876 | ;; | |
6877 | esac | |
6878 | ;; | |
6879 | *64-bit*) | |
6880 | case $host in | |
6881 | x86_64-*kfreebsd*-gnu) | |
6882 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6883 | ;; | |
6884 | x86_64-*linux*) | |
6885 | LD="${LD-ld} -m elf_x86_64" | |
6886 | ;; | |
cc9afea3 AM |
6887 | powerpcle-*linux*) |
6888 | LD="${LD-ld} -m elf64lppc" | |
6889 | ;; | |
6890 | powerpc-*linux*) | |
d7040cdb SE |
6891 | LD="${LD-ld} -m elf64ppc" |
6892 | ;; | |
6893 | s390*-*linux*|s390*-*tpf*) | |
6894 | LD="${LD-ld} -m elf64_s390" | |
6895 | ;; | |
6896 | sparc*-*linux*) | |
6897 | LD="${LD-ld} -m elf64_sparc" | |
6898 | ;; | |
6899 | esac | |
6900 | ;; | |
20e95c23 DJ |
6901 | esac |
6902 | fi | |
d7040cdb | 6903 | rm -rf conftest* |
7357c5b6 | 6904 | ;; |
d7040cdb | 6905 | |
7357c5b6 AM |
6906 | *-*-sco3.2v5*) |
6907 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6908 | SAVE_CFLAGS="$CFLAGS" | |
6909 | CFLAGS="$CFLAGS -belf" | |
81ecdfbb RW |
6910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 |
6911 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
d0ac1c44 | 6912 | if ${lt_cv_cc_needs_belf+:} false; then : |
81ecdfbb | 6913 | $as_echo_n "(cached) " >&6 |
d7040cdb | 6914 | else |
7357c5b6 AM |
6915 | ac_ext=c |
6916 | ac_cpp='$CPP $CPPFLAGS' | |
6917 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6918 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6919 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb | 6920 | |
81ecdfbb | 6921 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb | 6922 | /* end confdefs.h. */ |
d7040cdb | 6923 | |
d7040cdb SE |
6924 | int |
6925 | main () | |
6926 | { | |
7357c5b6 AM |
6927 | |
6928 | ; | |
6929 | return 0; | |
d7040cdb SE |
6930 | } |
6931 | _ACEOF | |
81ecdfbb | 6932 | if ac_fn_c_try_link "$LINENO"; then : |
7357c5b6 | 6933 | lt_cv_cc_needs_belf=yes |
d7040cdb | 6934 | else |
81ecdfbb | 6935 | lt_cv_cc_needs_belf=no |
d7040cdb | 6936 | fi |
81ecdfbb RW |
6937 | rm -f core conftest.err conftest.$ac_objext \ |
6938 | conftest$ac_exeext conftest.$ac_ext | |
7357c5b6 AM |
6939 | ac_ext=c |
6940 | ac_cpp='$CPP $CPPFLAGS' | |
6941 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6942 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6943 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
d7040cdb SE |
6944 | |
6945 | fi | |
81ecdfbb RW |
6946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 |
6947 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7357c5b6 AM |
6948 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
6949 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6950 | CFLAGS="$SAVE_CFLAGS" | |
6951 | fi | |
6952 | ;; | |
6953 | sparc*-*solaris*) | |
6954 | # Find out which ABI we are using. | |
6955 | echo 'int i;' > conftest.$ac_ext | |
81ecdfbb | 6956 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
7357c5b6 AM |
6957 | (eval $ac_compile) 2>&5 |
6958 | ac_status=$? | |
81ecdfbb RW |
6959 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
6960 | test $ac_status = 0; }; then | |
7357c5b6 AM |
6961 | case `/usr/bin/file conftest.o` in |
6962 | *64-bit*) | |
6963 | case $lt_cv_prog_gnu_ld in | |
6964 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
718a6fd8 SE |
6965 | *) |
6966 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6967 | LD="${LD-ld} -64" | |
6968 | fi | |
6969 | ;; | |
7357c5b6 AM |
6970 | esac |
6971 | ;; | |
6972 | esac | |
6973 | fi | |
6974 | rm -rf conftest* | |
6975 | ;; | |
6976 | esac | |
d7040cdb | 6977 | |
7357c5b6 | 6978 | need_locks="$enable_libtool_lock" |
d7040cdb SE |
6979 | |
6980 | ||
718a6fd8 SE |
6981 | case $host_os in |
6982 | rhapsody* | darwin*) | |
6983 | if test -n "$ac_tool_prefix"; then | |
6984 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6985 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
81ecdfbb RW |
6986 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
6987 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 6988 | if ${ac_cv_prog_DSYMUTIL+:} false; then : |
81ecdfbb | 6989 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
6990 | else |
6991 | if test -n "$DSYMUTIL"; then | |
6992 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
6993 | else | |
6994 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6995 | for as_dir in $PATH | |
6996 | do | |
6997 | IFS=$as_save_IFS | |
6998 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 6999 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7000 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 7001 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
81ecdfbb | 7002 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7003 | break 2 |
7004 | fi | |
7005 | done | |
81ecdfbb RW |
7006 | done |
7007 | IFS=$as_save_IFS | |
718a6fd8 SE |
7008 | |
7009 | fi | |
7010 | fi | |
7011 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7012 | if test -n "$DSYMUTIL"; then | |
81ecdfbb RW |
7013 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 |
7014 | $as_echo "$DSYMUTIL" >&6; } | |
718a6fd8 | 7015 | else |
81ecdfbb RW |
7016 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7017 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7018 | fi |
7019 | ||
81ecdfbb | 7020 | |
718a6fd8 SE |
7021 | fi |
7022 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7023 | ac_ct_DSYMUTIL=$DSYMUTIL | |
7024 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
7025 | set dummy dsymutil; ac_word=$2 | |
81ecdfbb RW |
7026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7027 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7028 | if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : |
81ecdfbb | 7029 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
7030 | else |
7031 | if test -n "$ac_ct_DSYMUTIL"; then | |
7032 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7033 | else | |
7034 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7035 | for as_dir in $PATH | |
7036 | do | |
7037 | IFS=$as_save_IFS | |
7038 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7039 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7040 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 7041 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
81ecdfbb | 7042 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7043 | break 2 |
7044 | fi | |
7045 | done | |
81ecdfbb RW |
7046 | done |
7047 | IFS=$as_save_IFS | |
718a6fd8 | 7048 | |
718a6fd8 SE |
7049 | fi |
7050 | fi | |
7051 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7052 | if test -n "$ac_ct_DSYMUTIL"; then | |
81ecdfbb RW |
7053 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 |
7054 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
718a6fd8 | 7055 | else |
81ecdfbb RW |
7056 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7057 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7058 | fi |
7059 | ||
81ecdfbb RW |
7060 | if test "x$ac_ct_DSYMUTIL" = x; then |
7061 | DSYMUTIL=":" | |
7062 | else | |
7063 | case $cross_compiling:$ac_tool_warned in | |
7064 | yes:) | |
7065 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7066 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7067 | ac_tool_warned=yes ;; | |
7068 | esac | |
7069 | DSYMUTIL=$ac_ct_DSYMUTIL | |
7070 | fi | |
718a6fd8 SE |
7071 | else |
7072 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7073 | fi | |
7074 | ||
7075 | if test -n "$ac_tool_prefix"; then | |
7076 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7077 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
81ecdfbb RW |
7078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7079 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7080 | if ${ac_cv_prog_NMEDIT+:} false; then : |
81ecdfbb | 7081 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
7082 | else |
7083 | if test -n "$NMEDIT"; then | |
7084 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7085 | else | |
7086 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7087 | for as_dir in $PATH | |
7088 | do | |
7089 | IFS=$as_save_IFS | |
7090 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7091 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7092 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 7093 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
81ecdfbb | 7094 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7095 | break 2 |
7096 | fi | |
7097 | done | |
81ecdfbb RW |
7098 | done |
7099 | IFS=$as_save_IFS | |
718a6fd8 SE |
7100 | |
7101 | fi | |
7102 | fi | |
7103 | NMEDIT=$ac_cv_prog_NMEDIT | |
7104 | if test -n "$NMEDIT"; then | |
81ecdfbb RW |
7105 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 |
7106 | $as_echo "$NMEDIT" >&6; } | |
718a6fd8 | 7107 | else |
81ecdfbb RW |
7108 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7109 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7110 | fi |
7111 | ||
81ecdfbb | 7112 | |
718a6fd8 SE |
7113 | fi |
7114 | if test -z "$ac_cv_prog_NMEDIT"; then | |
7115 | ac_ct_NMEDIT=$NMEDIT | |
7116 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7117 | set dummy nmedit; ac_word=$2 | |
81ecdfbb RW |
7118 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7119 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7120 | if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : |
81ecdfbb | 7121 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
7122 | else |
7123 | if test -n "$ac_ct_NMEDIT"; then | |
7124 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7125 | else | |
7126 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7127 | for as_dir in $PATH | |
7128 | do | |
7129 | IFS=$as_save_IFS | |
7130 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7131 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7132 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 7133 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
81ecdfbb | 7134 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7135 | break 2 |
7136 | fi | |
7137 | done | |
81ecdfbb RW |
7138 | done |
7139 | IFS=$as_save_IFS | |
718a6fd8 | 7140 | |
718a6fd8 SE |
7141 | fi |
7142 | fi | |
7143 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7144 | if test -n "$ac_ct_NMEDIT"; then | |
81ecdfbb RW |
7145 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 |
7146 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
718a6fd8 | 7147 | else |
81ecdfbb RW |
7148 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7149 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7150 | fi |
7151 | ||
81ecdfbb RW |
7152 | if test "x$ac_ct_NMEDIT" = x; then |
7153 | NMEDIT=":" | |
7154 | else | |
7155 | case $cross_compiling:$ac_tool_warned in | |
7156 | yes:) | |
7157 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7158 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7159 | ac_tool_warned=yes ;; | |
7160 | esac | |
7161 | NMEDIT=$ac_ct_NMEDIT | |
7162 | fi | |
718a6fd8 SE |
7163 | else |
7164 | NMEDIT="$ac_cv_prog_NMEDIT" | |
7165 | fi | |
7166 | ||
7167 | if test -n "$ac_tool_prefix"; then | |
7168 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7169 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
81ecdfbb RW |
7170 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7171 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7172 | if ${ac_cv_prog_LIPO+:} false; then : |
81ecdfbb | 7173 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
7174 | else |
7175 | if test -n "$LIPO"; then | |
7176 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7177 | else | |
7178 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7179 | for as_dir in $PATH | |
7180 | do | |
7181 | IFS=$as_save_IFS | |
7182 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7183 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7184 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 7185 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
81ecdfbb | 7186 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7187 | break 2 |
7188 | fi | |
7189 | done | |
81ecdfbb RW |
7190 | done |
7191 | IFS=$as_save_IFS | |
718a6fd8 SE |
7192 | |
7193 | fi | |
7194 | fi | |
7195 | LIPO=$ac_cv_prog_LIPO | |
7196 | if test -n "$LIPO"; then | |
81ecdfbb RW |
7197 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 |
7198 | $as_echo "$LIPO" >&6; } | |
718a6fd8 | 7199 | else |
81ecdfbb RW |
7200 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7201 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7202 | fi |
7203 | ||
81ecdfbb | 7204 | |
718a6fd8 SE |
7205 | fi |
7206 | if test -z "$ac_cv_prog_LIPO"; then | |
7207 | ac_ct_LIPO=$LIPO | |
7208 | # Extract the first word of "lipo", so it can be a program name with args. | |
7209 | set dummy lipo; ac_word=$2 | |
81ecdfbb RW |
7210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7211 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7212 | if ${ac_cv_prog_ac_ct_LIPO+:} false; then : |
81ecdfbb | 7213 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
7214 | else |
7215 | if test -n "$ac_ct_LIPO"; then | |
7216 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7217 | else | |
7218 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7219 | for as_dir in $PATH | |
7220 | do | |
7221 | IFS=$as_save_IFS | |
7222 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7223 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7224 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 7225 | ac_cv_prog_ac_ct_LIPO="lipo" |
81ecdfbb | 7226 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7227 | break 2 |
7228 | fi | |
7229 | done | |
81ecdfbb RW |
7230 | done |
7231 | IFS=$as_save_IFS | |
718a6fd8 | 7232 | |
718a6fd8 SE |
7233 | fi |
7234 | fi | |
7235 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7236 | if test -n "$ac_ct_LIPO"; then | |
81ecdfbb RW |
7237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 |
7238 | $as_echo "$ac_ct_LIPO" >&6; } | |
718a6fd8 | 7239 | else |
81ecdfbb RW |
7240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7241 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7242 | fi |
7243 | ||
81ecdfbb RW |
7244 | if test "x$ac_ct_LIPO" = x; then |
7245 | LIPO=":" | |
7246 | else | |
7247 | case $cross_compiling:$ac_tool_warned in | |
7248 | yes:) | |
7249 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7250 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7251 | ac_tool_warned=yes ;; | |
7252 | esac | |
7253 | LIPO=$ac_ct_LIPO | |
7254 | fi | |
7255 | else | |
718a6fd8 SE |
7256 | LIPO="$ac_cv_prog_LIPO" |
7257 | fi | |
7258 | ||
7259 | if test -n "$ac_tool_prefix"; then | |
7260 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7261 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
81ecdfbb RW |
7262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7263 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7264 | if ${ac_cv_prog_OTOOL+:} false; then : |
81ecdfbb | 7265 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
7266 | else |
7267 | if test -n "$OTOOL"; then | |
7268 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7269 | else | |
7270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7271 | for as_dir in $PATH | |
7272 | do | |
7273 | IFS=$as_save_IFS | |
7274 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7275 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7276 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 7277 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" |
81ecdfbb | 7278 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7279 | break 2 |
7280 | fi | |
7281 | done | |
81ecdfbb RW |
7282 | done |
7283 | IFS=$as_save_IFS | |
718a6fd8 SE |
7284 | |
7285 | fi | |
7286 | fi | |
7287 | OTOOL=$ac_cv_prog_OTOOL | |
7288 | if test -n "$OTOOL"; then | |
81ecdfbb RW |
7289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 |
7290 | $as_echo "$OTOOL" >&6; } | |
718a6fd8 | 7291 | else |
81ecdfbb RW |
7292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7293 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7294 | fi |
7295 | ||
81ecdfbb | 7296 | |
718a6fd8 SE |
7297 | fi |
7298 | if test -z "$ac_cv_prog_OTOOL"; then | |
7299 | ac_ct_OTOOL=$OTOOL | |
7300 | # Extract the first word of "otool", so it can be a program name with args. | |
7301 | set dummy otool; ac_word=$2 | |
81ecdfbb RW |
7302 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7303 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7304 | if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : |
81ecdfbb | 7305 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
7306 | else |
7307 | if test -n "$ac_ct_OTOOL"; then | |
7308 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7309 | else | |
7310 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7311 | for as_dir in $PATH | |
7312 | do | |
7313 | IFS=$as_save_IFS | |
7314 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7315 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7316 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 7317 | ac_cv_prog_ac_ct_OTOOL="otool" |
81ecdfbb | 7318 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7319 | break 2 |
7320 | fi | |
7321 | done | |
81ecdfbb RW |
7322 | done |
7323 | IFS=$as_save_IFS | |
718a6fd8 | 7324 | |
718a6fd8 SE |
7325 | fi |
7326 | fi | |
7327 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7328 | if test -n "$ac_ct_OTOOL"; then | |
81ecdfbb RW |
7329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 |
7330 | $as_echo "$ac_ct_OTOOL" >&6; } | |
718a6fd8 | 7331 | else |
81ecdfbb RW |
7332 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7333 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7334 | fi |
7335 | ||
81ecdfbb RW |
7336 | if test "x$ac_ct_OTOOL" = x; then |
7337 | OTOOL=":" | |
7338 | else | |
7339 | case $cross_compiling:$ac_tool_warned in | |
7340 | yes:) | |
7341 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7342 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7343 | ac_tool_warned=yes ;; | |
7344 | esac | |
7345 | OTOOL=$ac_ct_OTOOL | |
7346 | fi | |
718a6fd8 SE |
7347 | else |
7348 | OTOOL="$ac_cv_prog_OTOOL" | |
7349 | fi | |
7350 | ||
7351 | if test -n "$ac_tool_prefix"; then | |
7352 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7353 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
81ecdfbb RW |
7354 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7355 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7356 | if ${ac_cv_prog_OTOOL64+:} false; then : |
81ecdfbb | 7357 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
7358 | else |
7359 | if test -n "$OTOOL64"; then | |
7360 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7361 | else | |
7362 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7363 | for as_dir in $PATH | |
7364 | do | |
7365 | IFS=$as_save_IFS | |
7366 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7367 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7368 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 7369 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" |
81ecdfbb | 7370 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7371 | break 2 |
7372 | fi | |
7373 | done | |
81ecdfbb RW |
7374 | done |
7375 | IFS=$as_save_IFS | |
718a6fd8 SE |
7376 | |
7377 | fi | |
7378 | fi | |
7379 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7380 | if test -n "$OTOOL64"; then | |
81ecdfbb RW |
7381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 |
7382 | $as_echo "$OTOOL64" >&6; } | |
718a6fd8 | 7383 | else |
81ecdfbb RW |
7384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7385 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7386 | fi |
7387 | ||
81ecdfbb | 7388 | |
718a6fd8 SE |
7389 | fi |
7390 | if test -z "$ac_cv_prog_OTOOL64"; then | |
7391 | ac_ct_OTOOL64=$OTOOL64 | |
7392 | # Extract the first word of "otool64", so it can be a program name with args. | |
7393 | set dummy otool64; ac_word=$2 | |
81ecdfbb RW |
7394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7395 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 7396 | if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : |
81ecdfbb | 7397 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
7398 | else |
7399 | if test -n "$ac_ct_OTOOL64"; then | |
7400 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7401 | else | |
7402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7403 | for as_dir in $PATH | |
7404 | do | |
7405 | IFS=$as_save_IFS | |
7406 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 7407 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 7408 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
718a6fd8 | 7409 | ac_cv_prog_ac_ct_OTOOL64="otool64" |
81ecdfbb | 7410 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
718a6fd8 SE |
7411 | break 2 |
7412 | fi | |
7413 | done | |
81ecdfbb RW |
7414 | done |
7415 | IFS=$as_save_IFS | |
718a6fd8 | 7416 | |
718a6fd8 SE |
7417 | fi |
7418 | fi | |
7419 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7420 | if test -n "$ac_ct_OTOOL64"; then | |
81ecdfbb RW |
7421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 |
7422 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
718a6fd8 | 7423 | else |
81ecdfbb RW |
7424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7425 | $as_echo "no" >&6; } | |
718a6fd8 SE |
7426 | fi |
7427 | ||
81ecdfbb RW |
7428 | if test "x$ac_ct_OTOOL64" = x; then |
7429 | OTOOL64=":" | |
7430 | else | |
7431 | case $cross_compiling:$ac_tool_warned in | |
7432 | yes:) | |
7433 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7434 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7435 | ac_tool_warned=yes ;; | |
7436 | esac | |
7437 | OTOOL64=$ac_ct_OTOOL64 | |
7438 | fi | |
718a6fd8 SE |
7439 | else |
7440 | OTOOL64="$ac_cv_prog_OTOOL64" | |
7441 | fi | |
7442 | ||
7443 | ||
7444 | ||
7445 | ||
7446 | ||
7447 | ||
7448 | ||
7449 | ||
7450 | ||
7451 | ||
7452 | ||
7453 | ||
7454 | ||
7455 | ||
7456 | ||
7457 | ||
7458 | ||
7459 | ||
7460 | ||
7461 | ||
7462 | ||
7463 | ||
7464 | ||
7465 | ||
7466 | ||
7467 | ||
7468 | ||
81ecdfbb RW |
7469 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 |
7470 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
d0ac1c44 | 7471 | if ${lt_cv_apple_cc_single_mod+:} false; then : |
81ecdfbb | 7472 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
7473 | else |
7474 | lt_cv_apple_cc_single_mod=no | |
7475 | if test -z "${LT_MULTI_MODULE}"; then | |
7476 | # By default we will add the -single_module flag. You can override | |
7477 | # by either setting the environment variable LT_MULTI_MODULE | |
7478 | # non-empty at configure time, or by adding -multi_module to the | |
7479 | # link flags. | |
7480 | rm -rf libconftest.dylib* | |
7481 | echo "int foo(void){return 1;}" > conftest.c | |
7482 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7483 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7484 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7485 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7486 | _lt_result=$? | |
7487 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7488 | lt_cv_apple_cc_single_mod=yes | |
7489 | else | |
7490 | cat conftest.err >&5 | |
7491 | fi | |
7492 | rm -rf libconftest.dylib* | |
7493 | rm -f conftest.* | |
7494 | fi | |
7495 | fi | |
81ecdfbb RW |
7496 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 |
7497 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7498 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7499 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
d0ac1c44 | 7500 | if ${lt_cv_ld_exported_symbols_list+:} false; then : |
81ecdfbb | 7501 | $as_echo_n "(cached) " >&6 |
718a6fd8 SE |
7502 | else |
7503 | lt_cv_ld_exported_symbols_list=no | |
7504 | save_LDFLAGS=$LDFLAGS | |
7505 | echo "_main" > conftest.sym | |
7506 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
81ecdfbb | 7507 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
718a6fd8 SE |
7508 | /* end confdefs.h. */ |
7509 | ||
7510 | int | |
7511 | main () | |
7512 | { | |
7513 | ||
7514 | ; | |
7515 | return 0; | |
7516 | } | |
7517 | _ACEOF | |
81ecdfbb | 7518 | if ac_fn_c_try_link "$LINENO"; then : |
718a6fd8 SE |
7519 | lt_cv_ld_exported_symbols_list=yes |
7520 | else | |
81ecdfbb | 7521 | lt_cv_ld_exported_symbols_list=no |
718a6fd8 | 7522 | fi |
81ecdfbb RW |
7523 | rm -f core conftest.err conftest.$ac_objext \ |
7524 | conftest$ac_exeext conftest.$ac_ext | |
718a6fd8 SE |
7525 | LDFLAGS="$save_LDFLAGS" |
7526 | ||
7527 | fi | |
81ecdfbb RW |
7528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7529 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
3725885a RW |
7530 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 |
7531 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
d0ac1c44 | 7532 | if ${lt_cv_ld_force_load+:} false; then : |
3725885a RW |
7533 | $as_echo_n "(cached) " >&6 |
7534 | else | |
7535 | lt_cv_ld_force_load=no | |
7536 | cat > conftest.c << _LT_EOF | |
7537 | int forced_loaded() { return 2;} | |
7538 | _LT_EOF | |
7539 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7540 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7541 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7542 | $AR cru libconftest.a conftest.o 2>&5 | |
7543 | cat > conftest.c << _LT_EOF | |
7544 | int main() { return 0;} | |
7545 | _LT_EOF | |
7546 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7547 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7548 | _lt_result=$? | |
7549 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
7550 | lt_cv_ld_force_load=yes | |
7551 | else | |
7552 | cat conftest.err >&5 | |
7553 | fi | |
7554 | rm -f conftest.err libconftest.a conftest conftest.c | |
7555 | rm -rf conftest.dSYM | |
7556 | ||
7557 | fi | |
7558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7559 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
718a6fd8 SE |
7560 | case $host_os in |
7561 | rhapsody* | darwin1.[012]) | |
7562 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7563 | darwin1.*) | |
7564 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7565 | darwin*) # darwin 5.x on | |
7566 | # if running on 10.5 or later, the deployment target defaults | |
7567 | # to the OS version, if on x86, and 10.4, the deployment | |
7568 | # target defaults to 10.4. Don't you love it? | |
7569 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7570 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7571 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
6e733cce | 7572 | 10.[012][,.]*) |
718a6fd8 SE |
7573 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
7574 | 10.*) | |
7575 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7576 | esac | |
7577 | ;; | |
7578 | esac | |
7579 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7580 | _lt_dar_single_mod='$single_module' | |
7581 | fi | |
7582 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7583 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7584 | else | |
7585 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7586 | fi | |
3725885a | 7587 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then |
718a6fd8 SE |
7588 | _lt_dsymutil='~$DSYMUTIL $lib || :' |
7589 | else | |
7590 | _lt_dsymutil= | |
7591 | fi | |
7592 | ;; | |
7593 | esac | |
7594 | ||
d7040cdb | 7595 | for ac_header in dlfcn.h |
81ecdfbb RW |
7596 | do : |
7597 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7598 | " | |
d0ac1c44 | 7599 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
d7040cdb | 7600 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 7601 | #define HAVE_DLFCN_H 1 |
d7040cdb SE |
7602 | _ACEOF |
7603 | ||
7604 | fi | |
7605 | ||
7606 | done | |
7607 | ||
7608 | ||
7609 | ||
3725885a RW |
7610 | |
7611 | ||
718a6fd8 | 7612 | # Set options |
ce3c775b | 7613 | enable_dlopen=yes |
718a6fd8 SE |
7614 | |
7615 | ||
7616 | ||
718a6fd8 SE |
7617 | |
7618 | enable_win32_dll=no | |
7619 | ||
7620 | ||
7621 | ||
81ecdfbb RW |
7622 | # Check whether --enable-static was given. |
7623 | if test "${enable_static+set}" = set; then : | |
7624 | enableval=$enable_static; p=${PACKAGE-default} | |
718a6fd8 SE |
7625 | case $enableval in |
7626 | yes) enable_static=yes ;; | |
7627 | no) enable_static=no ;; | |
7628 | *) | |
7629 | enable_static=no | |
7630 | # Look at the argument we got. We use all the common list separators. | |
7631 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7632 | for pkg in $enableval; do | |
7633 | IFS="$lt_save_ifs" | |
7634 | if test "X$pkg" = "X$p"; then | |
7635 | enable_static=yes | |
7636 | fi | |
7637 | done | |
7638 | IFS="$lt_save_ifs" | |
7639 | ;; | |
7640 | esac | |
7641 | else | |
7642 | enable_static=yes | |
81ecdfbb | 7643 | fi |
718a6fd8 SE |
7644 | |
7645 | ||
7646 | ||
7647 | ||
7648 | ||
7649 | ||
7650 | ||
7651 | ||
7652 | ||
81ecdfbb RW |
7653 | |
7654 | # Check whether --with-pic was given. | |
7655 | if test "${with_pic+set}" = set; then : | |
7656 | withval=$with_pic; pic_mode="$withval" | |
718a6fd8 SE |
7657 | else |
7658 | pic_mode=default | |
81ecdfbb RW |
7659 | fi |
7660 | ||
718a6fd8 SE |
7661 | |
7662 | test -z "$pic_mode" && pic_mode=default | |
7663 | ||
7664 | ||
7665 | ||
7666 | ||
7667 | ||
7668 | ||
7669 | ||
81ecdfbb RW |
7670 | # Check whether --enable-fast-install was given. |
7671 | if test "${enable_fast_install+set}" = set; then : | |
7672 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
718a6fd8 SE |
7673 | case $enableval in |
7674 | yes) enable_fast_install=yes ;; | |
7675 | no) enable_fast_install=no ;; | |
7676 | *) | |
7677 | enable_fast_install=no | |
7678 | # Look at the argument we got. We use all the common list separators. | |
7679 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7680 | for pkg in $enableval; do | |
7681 | IFS="$lt_save_ifs" | |
7682 | if test "X$pkg" = "X$p"; then | |
7683 | enable_fast_install=yes | |
7684 | fi | |
7685 | done | |
7686 | IFS="$lt_save_ifs" | |
7687 | ;; | |
7688 | esac | |
7689 | else | |
7690 | enable_fast_install=yes | |
81ecdfbb RW |
7691 | fi |
7692 | ||
718a6fd8 SE |
7693 | |
7694 | ||
7695 | ||
7696 | ||
7697 | ||
7698 | ||
7699 | ||
7700 | ||
7701 | ||
7702 | ||
d7040cdb SE |
7703 | # This can be used to rebuild libtool when needed |
7704 | LIBTOOL_DEPS="$ltmain" | |
7705 | ||
7706 | # Always use our own libtool. | |
7707 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
7708 | ||
7709 | ||
7710 | ||
7711 | ||
7712 | ||
7713 | ||
7714 | ||
7715 | ||
7716 | ||
7717 | ||
7718 | ||
7719 | ||
7720 | ||
7721 | ||
7722 | ||
7723 | ||
7724 | ||
7725 | ||
7726 | ||
7727 | ||
7728 | ||
7729 | ||
7730 | ||
3725885a | 7731 | |
d7040cdb SE |
7732 | |
7733 | ||
7734 | test -z "$LN_S" && LN_S="ln -s" | |
7735 | ||
7736 | ||
7737 | ||
7738 | ||
7739 | ||
7740 | ||
7741 | ||
7742 | ||
7743 | ||
7744 | ||
7745 | ||
7746 | ||
7747 | ||
7748 | ||
7749 | if test -n "${ZSH_VERSION+set}" ; then | |
7750 | setopt NO_GLOB_SUBST | |
7751 | fi | |
7752 | ||
81ecdfbb RW |
7753 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 |
7754 | $as_echo_n "checking for objdir... " >&6; } | |
d0ac1c44 | 7755 | if ${lt_cv_objdir+:} false; then : |
81ecdfbb | 7756 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
7757 | else |
7758 | rm -f .libs 2>/dev/null | |
7759 | mkdir .libs 2>/dev/null | |
7760 | if test -d .libs; then | |
7761 | lt_cv_objdir=.libs | |
7762 | else | |
7763 | # MS-DOS does not allow filenames that begin with a dot. | |
7764 | lt_cv_objdir=_libs | |
7765 | fi | |
7766 | rmdir .libs 2>/dev/null | |
7767 | fi | |
81ecdfbb RW |
7768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 |
7769 | $as_echo "$lt_cv_objdir" >&6; } | |
d7040cdb SE |
7770 | objdir=$lt_cv_objdir |
7771 | ||
7772 | ||
7773 | ||
7774 | ||
7775 | ||
7776 | cat >>confdefs.h <<_ACEOF | |
7777 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7778 | _ACEOF | |
7779 | ||
7780 | ||
7781 | ||
7782 | ||
d7040cdb SE |
7783 | case $host_os in |
7784 | aix3*) | |
7785 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7786 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7787 | # vanish in a puff of smoke. | |
7788 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7789 | COLLECT_NAMES= | |
7790 | export COLLECT_NAMES | |
7791 | fi | |
7792 | ;; | |
7793 | esac | |
7794 | ||
d7040cdb SE |
7795 | # Global variables: |
7796 | ofile=libtool | |
7797 | can_build_shared=yes | |
7798 | ||
7799 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
7800 | # which needs '.lib'). | |
7801 | libext=a | |
7802 | ||
7803 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
7804 | ||
7805 | old_CC="$CC" | |
7806 | old_CFLAGS="$CFLAGS" | |
7807 | ||
7808 | # Set sane defaults for various variables | |
7809 | test -z "$CC" && CC=cc | |
7810 | test -z "$LTCC" && LTCC=$CC | |
7811 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7812 | test -z "$LD" && LD=ld | |
7813 | test -z "$ac_objext" && ac_objext=o | |
7814 | ||
7815 | for cc_temp in $compiler""; do | |
7816 | case $cc_temp in | |
7817 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7818 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7819 | \-*) ;; | |
7820 | *) break;; | |
7821 | esac | |
7822 | done | |
3725885a | 7823 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` |
d7040cdb SE |
7824 | |
7825 | ||
7826 | # Only perform the check for file, if the check method requires it | |
7827 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7828 | case $deplibs_check_method in | |
7829 | file_magic*) | |
7830 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
81ecdfbb RW |
7831 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 |
7832 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
d0ac1c44 | 7833 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
81ecdfbb | 7834 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
7835 | else |
7836 | case $MAGIC_CMD in | |
7837 | [\\/*] | ?:[\\/]*) | |
7838 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7839 | ;; | |
7840 | *) | |
7841 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7842 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7843 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7844 | for ac_dir in $ac_dummy; do | |
7845 | IFS="$lt_save_ifs" | |
7846 | test -z "$ac_dir" && ac_dir=. | |
7847 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7848 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7849 | if test -n "$file_magic_test_file"; then | |
7850 | case $deplibs_check_method in | |
7851 | "file_magic "*) | |
7852 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7853 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7854 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7855 | $EGREP "$file_magic_regex" > /dev/null; then | |
7856 | : | |
7857 | else | |
7858 | cat <<_LT_EOF 1>&2 | |
7859 | ||
7860 | *** Warning: the command libtool uses to detect shared libraries, | |
7861 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7862 | *** The result is that libtool may fail to recognize shared libraries | |
7863 | *** as such. This will affect the creation of libtool libraries that | |
7864 | *** depend on shared libraries, but programs linked with such libtool | |
7865 | *** libraries will work regardless of this problem. Nevertheless, you | |
7866 | *** may want to report the problem to your system manager and/or to | |
7867 | *** bug-libtool@gnu.org | |
7868 | ||
7869 | _LT_EOF | |
7870 | fi ;; | |
7871 | esac | |
7872 | fi | |
7873 | break | |
7874 | fi | |
7875 | done | |
7876 | IFS="$lt_save_ifs" | |
7877 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7878 | ;; | |
7879 | esac | |
7880 | fi | |
7881 | ||
7882 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7883 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
7884 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
7885 | $as_echo "$MAGIC_CMD" >&6; } | |
d7040cdb | 7886 | else |
81ecdfbb RW |
7887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7888 | $as_echo "no" >&6; } | |
d7040cdb SE |
7889 | fi |
7890 | ||
7891 | ||
7892 | ||
7893 | ||
7894 | ||
7895 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
7896 | if test -n "$ac_tool_prefix"; then | |
81ecdfbb RW |
7897 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 |
7898 | $as_echo_n "checking for file... " >&6; } | |
d0ac1c44 | 7899 | if ${lt_cv_path_MAGIC_CMD+:} false; then : |
81ecdfbb | 7900 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
7901 | else |
7902 | case $MAGIC_CMD in | |
7903 | [\\/*] | ?:[\\/]*) | |
7904 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7905 | ;; | |
7906 | *) | |
7907 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7908 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7909 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7910 | for ac_dir in $ac_dummy; do | |
7911 | IFS="$lt_save_ifs" | |
7912 | test -z "$ac_dir" && ac_dir=. | |
7913 | if test -f $ac_dir/file; then | |
7914 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7915 | if test -n "$file_magic_test_file"; then | |
7916 | case $deplibs_check_method in | |
7917 | "file_magic "*) | |
7918 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7919 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7920 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7921 | $EGREP "$file_magic_regex" > /dev/null; then | |
7922 | : | |
7923 | else | |
7924 | cat <<_LT_EOF 1>&2 | |
7925 | ||
7926 | *** Warning: the command libtool uses to detect shared libraries, | |
7927 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7928 | *** The result is that libtool may fail to recognize shared libraries | |
7929 | *** as such. This will affect the creation of libtool libraries that | |
7930 | *** depend on shared libraries, but programs linked with such libtool | |
7931 | *** libraries will work regardless of this problem. Nevertheless, you | |
7932 | *** may want to report the problem to your system manager and/or to | |
7933 | *** bug-libtool@gnu.org | |
7934 | ||
7935 | _LT_EOF | |
7936 | fi ;; | |
7937 | esac | |
7938 | fi | |
7939 | break | |
7940 | fi | |
7941 | done | |
7942 | IFS="$lt_save_ifs" | |
7943 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7944 | ;; | |
7945 | esac | |
7946 | fi | |
7947 | ||
7948 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7949 | if test -n "$MAGIC_CMD"; then | |
81ecdfbb RW |
7950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 |
7951 | $as_echo "$MAGIC_CMD" >&6; } | |
d7040cdb | 7952 | else |
81ecdfbb RW |
7953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7954 | $as_echo "no" >&6; } | |
d7040cdb SE |
7955 | fi |
7956 | ||
7957 | ||
7958 | else | |
7959 | MAGIC_CMD=: | |
7960 | fi | |
7961 | fi | |
7962 | ||
7963 | fi | |
7964 | ;; | |
7965 | esac | |
7966 | ||
7967 | # Use C for the default configuration in the libtool script | |
7968 | ||
7969 | lt_save_CC="$CC" | |
7970 | ac_ext=c | |
7971 | ac_cpp='$CPP $CPPFLAGS' | |
7972 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7973 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7974 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7975 | ||
7976 | ||
7977 | # Source file extension for C test sources. | |
7978 | ac_ext=c | |
7979 | ||
7980 | # Object file extension for compiled C test sources. | |
7981 | objext=o | |
7982 | objext=$objext | |
7983 | ||
7984 | # Code to be used in simple compile tests | |
7985 | lt_simple_compile_test_code="int some_variable = 0;" | |
7986 | ||
7987 | # Code to be used in simple link tests | |
7988 | lt_simple_link_test_code='int main(){return(0);}' | |
7989 | ||
7990 | ||
7991 | ||
7992 | ||
7993 | ||
7994 | ||
7995 | ||
7996 | # If no C compiler was specified, use CC. | |
7997 | LTCC=${LTCC-"$CC"} | |
7998 | ||
7999 | # If no C compiler flags were specified, use CFLAGS. | |
8000 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8001 | ||
8002 | # Allow CC to be a program name with arguments. | |
8003 | compiler=$CC | |
8004 | ||
8005 | # Save the default compiler, since it gets overwritten when the other | |
8006 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8007 | compiler_DEFAULT=$CC | |
8008 | ||
8009 | # save warnings/boilerplate of simple test code | |
8010 | ac_outfile=conftest.$ac_objext | |
8011 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8012 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8013 | _lt_compiler_boilerplate=`cat conftest.err` | |
8014 | $RM conftest* | |
8015 | ||
8016 | ac_outfile=conftest.$ac_objext | |
8017 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8018 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8019 | _lt_linker_boilerplate=`cat conftest.err` | |
718a6fd8 | 8020 | $RM -r conftest* |
d7040cdb SE |
8021 | |
8022 | ||
8023 | ## CAVEAT EMPTOR: | |
8024 | ## There is no encapsulation within the following macros, do not change | |
8025 | ## the running order or otherwise move them around unless you know exactly | |
8026 | ## what you are doing... | |
8027 | if test -n "$compiler"; then | |
8028 | ||
8029 | lt_prog_compiler_no_builtin_flag= | |
8030 | ||
8031 | if test "$GCC" = yes; then | |
3725885a RW |
8032 | case $cc_basename in |
8033 | nvcc*) | |
8034 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8035 | *) | |
8036 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8037 | esac | |
d7040cdb | 8038 | |
81ecdfbb RW |
8039 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
8040 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
d0ac1c44 | 8041 | if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : |
81ecdfbb | 8042 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
8043 | else |
8044 | lt_cv_prog_compiler_rtti_exceptions=no | |
8045 | ac_outfile=conftest.$ac_objext | |
8046 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8047 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8048 | # Insert the option either (1) after the last *FLAGS variable, or | |
8049 | # (2) before a word containing "conftest.", or (3) at the end. | |
8050 | # Note that $ac_compile itself does not contain backslashes and begins | |
8051 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8052 | # The option is referenced via a variable to avoid confusing sed. | |
8053 | lt_compile=`echo "$ac_compile" | $SED \ | |
8054 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8055 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8056 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8057 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
d7040cdb SE |
8058 | (eval "$lt_compile" 2>conftest.err) |
8059 | ac_status=$? | |
8060 | cat conftest.err >&5 | |
3725885a | 8061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d7040cdb SE |
8062 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8063 | # The compiler can only warn and ignore the option if not recognized | |
8064 | # So say no if there are warnings other than the usual output. | |
3725885a | 8065 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
d7040cdb SE |
8066 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8067 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8068 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8069 | fi | |
8070 | fi | |
8071 | $RM conftest* | |
8072 | ||
8073 | fi | |
81ecdfbb RW |
8074 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
8075 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
d7040cdb SE |
8076 | |
8077 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8078 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8079 | else | |
8080 | : | |
8081 | fi | |
8082 | ||
8083 | fi | |
8084 | ||
8085 | ||
8086 | ||
8087 | ||
8088 | ||
8089 | ||
8090 | lt_prog_compiler_wl= | |
8091 | lt_prog_compiler_pic= | |
8092 | lt_prog_compiler_static= | |
8093 | ||
81ecdfbb RW |
8094 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 |
8095 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
d7040cdb SE |
8096 | |
8097 | if test "$GCC" = yes; then | |
8098 | lt_prog_compiler_wl='-Wl,' | |
8099 | lt_prog_compiler_static='-static' | |
8100 | ||
8101 | case $host_os in | |
8102 | aix*) | |
8103 | # All AIX code is PIC. | |
8104 | if test "$host_cpu" = ia64; then | |
8105 | # AIX 5 now supports IA64 processor | |
8106 | lt_prog_compiler_static='-Bstatic' | |
8107 | fi | |
6c9c0a50 | 8108 | lt_prog_compiler_pic='-fPIC' |
d7040cdb SE |
8109 | ;; |
8110 | ||
8111 | amigaos*) | |
718a6fd8 SE |
8112 | case $host_cpu in |
8113 | powerpc) | |
8114 | # see comment about AmigaOS4 .so support | |
8115 | lt_prog_compiler_pic='-fPIC' | |
8116 | ;; | |
8117 | m68k) | |
8118 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8119 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8120 | # like `-m68040'. | |
8121 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8122 | ;; | |
8123 | esac | |
d7040cdb SE |
8124 | ;; |
8125 | ||
8126 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8127 | # PIC is the default for these OSes. | |
8128 | ;; | |
8129 | ||
718a6fd8 | 8130 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
d7040cdb SE |
8131 | # This hack is so that the source file can tell whether it is being |
8132 | # built for inclusion in a dll (and should export symbols for example). | |
8133 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8134 | # (--disable-auto-import) libraries | |
8135 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8136 | ;; | |
8137 | ||
8138 | darwin* | rhapsody*) | |
8139 | # PIC is the default on this platform | |
8140 | # Common symbols not allowed in MH_DYLIB files | |
8141 | lt_prog_compiler_pic='-fno-common' | |
8142 | ;; | |
8143 | ||
3725885a RW |
8144 | haiku*) |
8145 | # PIC is the default for Haiku. | |
8146 | # The "-static" flag exists, but is broken. | |
8147 | lt_prog_compiler_static= | |
8148 | ;; | |
8149 | ||
d7040cdb | 8150 | hpux*) |
718a6fd8 SE |
8151 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit |
8152 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8153 | # sets the default TLS model and affects inlining. | |
d7040cdb | 8154 | case $host_cpu in |
718a6fd8 | 8155 | hppa*64*) |
d7040cdb SE |
8156 | # +Z the default |
8157 | ;; | |
8158 | *) | |
8159 | lt_prog_compiler_pic='-fPIC' | |
8160 | ;; | |
8161 | esac | |
8162 | ;; | |
8163 | ||
8164 | interix[3-9]*) | |
8165 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8166 | # Instead, we relocate shared libraries at runtime. | |
8167 | ;; | |
8168 | ||
8169 | msdosdjgpp*) | |
8170 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8171 | # on systems that don't support them. | |
8172 | lt_prog_compiler_can_build_shared=no | |
8173 | enable_shared=no | |
8174 | ;; | |
8175 | ||
8176 | *nto* | *qnx*) | |
8177 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8178 | # it will coredump. | |
8179 | lt_prog_compiler_pic='-fPIC -shared' | |
8180 | ;; | |
8181 | ||
8182 | sysv4*MP*) | |
8183 | if test -d /usr/nec; then | |
8184 | lt_prog_compiler_pic=-Kconform_pic | |
8185 | fi | |
8186 | ;; | |
8187 | ||
8188 | *) | |
8189 | lt_prog_compiler_pic='-fPIC' | |
8190 | ;; | |
8191 | esac | |
3725885a RW |
8192 | |
8193 | case $cc_basename in | |
8194 | nvcc*) # Cuda Compiler Driver 2.2 | |
8195 | lt_prog_compiler_wl='-Xlinker ' | |
8196 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
8197 | ;; | |
8198 | esac | |
d7040cdb SE |
8199 | else |
8200 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8201 | case $host_os in | |
8202 | aix*) | |
8203 | lt_prog_compiler_wl='-Wl,' | |
8204 | if test "$host_cpu" = ia64; then | |
8205 | # AIX 5 now supports IA64 processor | |
8206 | lt_prog_compiler_static='-Bstatic' | |
8207 | else | |
8208 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8209 | fi | |
8210 | ;; | |
d7040cdb | 8211 | |
718a6fd8 | 8212 | mingw* | cygwin* | pw32* | os2* | cegcc*) |
d7040cdb SE |
8213 | # This hack is so that the source file can tell whether it is being |
8214 | # built for inclusion in a dll (and should export symbols for example). | |
8215 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8216 | ;; | |
8217 | ||
8218 | hpux9* | hpux10* | hpux11*) | |
8219 | lt_prog_compiler_wl='-Wl,' | |
8220 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8221 | # not for PA HP-UX. | |
8222 | case $host_cpu in | |
8223 | hppa*64*|ia64*) | |
8224 | # +Z the default | |
8225 | ;; | |
8226 | *) | |
8227 | lt_prog_compiler_pic='+Z' | |
8228 | ;; | |
8229 | esac | |
8230 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8231 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8232 | ;; | |
8233 | ||
8234 | irix5* | irix6* | nonstopux*) | |
8235 | lt_prog_compiler_wl='-Wl,' | |
8236 | # PIC (with -KPIC) is the default. | |
8237 | lt_prog_compiler_static='-non_shared' | |
8238 | ;; | |
8239 | ||
58e24671 | 8240 | linux* | k*bsd*-gnu | kopensolaris*-gnu) |
d7040cdb | 8241 | case $cc_basename in |
718a6fd8 SE |
8242 | # old Intel for x86_64 which still supported -KPIC. |
8243 | ecc*) | |
d7040cdb SE |
8244 | lt_prog_compiler_wl='-Wl,' |
8245 | lt_prog_compiler_pic='-KPIC' | |
8246 | lt_prog_compiler_static='-static' | |
8247 | ;; | |
718a6fd8 SE |
8248 | # icc used to be incompatible with GCC. |
8249 | # ICC 10 doesn't accept -KPIC any more. | |
8250 | icc* | ifort*) | |
8251 | lt_prog_compiler_wl='-Wl,' | |
8252 | lt_prog_compiler_pic='-fPIC' | |
8253 | lt_prog_compiler_static='-static' | |
8254 | ;; | |
8255 | # Lahey Fortran 8.1. | |
8256 | lf95*) | |
8257 | lt_prog_compiler_wl='-Wl,' | |
8258 | lt_prog_compiler_pic='--shared' | |
8259 | lt_prog_compiler_static='--static' | |
8260 | ;; | |
3725885a | 8261 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) |
d7040cdb SE |
8262 | # Portland Group compilers (*not* the Pentium gcc compiler, |
8263 | # which looks to be a dead project) | |
8264 | lt_prog_compiler_wl='-Wl,' | |
8265 | lt_prog_compiler_pic='-fpic' | |
8266 | lt_prog_compiler_static='-Bstatic' | |
8267 | ;; | |
8268 | ccc*) | |
8269 | lt_prog_compiler_wl='-Wl,' | |
8270 | # All Alpha code is PIC. | |
8271 | lt_prog_compiler_static='-non_shared' | |
8272 | ;; | |
3725885a RW |
8273 | xl* | bgxl* | bgf* | mpixl*) |
8274 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
718a6fd8 SE |
8275 | lt_prog_compiler_wl='-Wl,' |
8276 | lt_prog_compiler_pic='-qpic' | |
8277 | lt_prog_compiler_static='-qstaticlink' | |
8278 | ;; | |
d7040cdb SE |
8279 | *) |
8280 | case `$CC -V 2>&1 | sed 5q` in | |
3725885a RW |
8281 | *Sun\ F* | *Sun*Fortran*) |
8282 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
d7040cdb SE |
8283 | lt_prog_compiler_pic='-KPIC' |
8284 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 8285 | lt_prog_compiler_wl='' |
d7040cdb | 8286 | ;; |
3725885a RW |
8287 | *Sun\ C*) |
8288 | # Sun C 5.9 | |
d7040cdb SE |
8289 | lt_prog_compiler_pic='-KPIC' |
8290 | lt_prog_compiler_static='-Bstatic' | |
3725885a | 8291 | lt_prog_compiler_wl='-Wl,' |
d7040cdb SE |
8292 | ;; |
8293 | esac | |
8294 | ;; | |
8295 | esac | |
8296 | ;; | |
8297 | ||
8298 | newsos6) | |
8299 | lt_prog_compiler_pic='-KPIC' | |
8300 | lt_prog_compiler_static='-Bstatic' | |
8301 | ;; | |
8302 | ||
8303 | *nto* | *qnx*) | |
8304 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8305 | # it will coredump. | |
8306 | lt_prog_compiler_pic='-fPIC -shared' | |
8307 | ;; | |
8308 | ||
8309 | osf3* | osf4* | osf5*) | |
8310 | lt_prog_compiler_wl='-Wl,' | |
8311 | # All OSF/1 code is PIC. | |
8312 | lt_prog_compiler_static='-non_shared' | |
8313 | ;; | |
8314 | ||
8315 | rdos*) | |
8316 | lt_prog_compiler_static='-non_shared' | |
8317 | ;; | |
8318 | ||
8319 | solaris*) | |
8320 | lt_prog_compiler_pic='-KPIC' | |
8321 | lt_prog_compiler_static='-Bstatic' | |
8322 | case $cc_basename in | |
8323 | f77* | f90* | f95*) | |
8324 | lt_prog_compiler_wl='-Qoption ld ';; | |
8325 | *) | |
8326 | lt_prog_compiler_wl='-Wl,';; | |
8327 | esac | |
8328 | ;; | |
8329 | ||
8330 | sunos4*) | |
8331 | lt_prog_compiler_wl='-Qoption ld ' | |
8332 | lt_prog_compiler_pic='-PIC' | |
8333 | lt_prog_compiler_static='-Bstatic' | |
8334 | ;; | |
8335 | ||
8336 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8337 | lt_prog_compiler_wl='-Wl,' | |
8338 | lt_prog_compiler_pic='-KPIC' | |
8339 | lt_prog_compiler_static='-Bstatic' | |
8340 | ;; | |
8341 | ||
8342 | sysv4*MP*) | |
8343 | if test -d /usr/nec ;then | |
8344 | lt_prog_compiler_pic='-Kconform_pic' | |
8345 | lt_prog_compiler_static='-Bstatic' | |
8346 | fi | |
8347 | ;; | |
8348 | ||
8349 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8350 | lt_prog_compiler_wl='-Wl,' | |
8351 | lt_prog_compiler_pic='-KPIC' | |
8352 | lt_prog_compiler_static='-Bstatic' | |
8353 | ;; | |
8354 | ||
8355 | unicos*) | |
8356 | lt_prog_compiler_wl='-Wl,' | |
8357 | lt_prog_compiler_can_build_shared=no | |
8358 | ;; | |
8359 | ||
8360 | uts4*) | |
8361 | lt_prog_compiler_pic='-pic' | |
8362 | lt_prog_compiler_static='-Bstatic' | |
8363 | ;; | |
8364 | ||
8365 | *) | |
8366 | lt_prog_compiler_can_build_shared=no | |
8367 | ;; | |
8368 | esac | |
8369 | fi | |
8370 | ||
8371 | case $host_os in | |
8372 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8373 | *djgpp*) | |
8374 | lt_prog_compiler_pic= | |
8375 | ;; | |
8376 | *) | |
8377 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8378 | ;; | |
8379 | esac | |
81ecdfbb RW |
8380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 |
8381 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
d7040cdb SE |
8382 | |
8383 | ||
8384 | ||
8385 | ||
8386 | ||
8387 | ||
8388 | # | |
8389 | # Check to make sure the PIC flag actually works. | |
8390 | # | |
8391 | if test -n "$lt_prog_compiler_pic"; then | |
81ecdfbb RW |
8392 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
8393 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
d0ac1c44 | 8394 | if ${lt_cv_prog_compiler_pic_works+:} false; then : |
81ecdfbb | 8395 | $as_echo_n "(cached) " >&6 |
d7040cdb | 8396 | else |
718a6fd8 | 8397 | lt_cv_prog_compiler_pic_works=no |
d7040cdb SE |
8398 | ac_outfile=conftest.$ac_objext |
8399 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8400 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8401 | # Insert the option either (1) after the last *FLAGS variable, or | |
8402 | # (2) before a word containing "conftest.", or (3) at the end. | |
8403 | # Note that $ac_compile itself does not contain backslashes and begins | |
8404 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8405 | # The option is referenced via a variable to avoid confusing sed. | |
8406 | lt_compile=`echo "$ac_compile" | $SED \ | |
8407 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8408 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8409 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8410 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
d7040cdb SE |
8411 | (eval "$lt_compile" 2>conftest.err) |
8412 | ac_status=$? | |
8413 | cat conftest.err >&5 | |
3725885a | 8414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d7040cdb SE |
8415 | if (exit $ac_status) && test -s "$ac_outfile"; then |
8416 | # The compiler can only warn and ignore the option if not recognized | |
8417 | # So say no if there are warnings other than the usual output. | |
3725885a | 8418 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp |
d7040cdb SE |
8419 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8420 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
718a6fd8 | 8421 | lt_cv_prog_compiler_pic_works=yes |
d7040cdb SE |
8422 | fi |
8423 | fi | |
8424 | $RM conftest* | |
8425 | ||
8426 | fi | |
81ecdfbb RW |
8427 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 |
8428 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
d7040cdb | 8429 | |
718a6fd8 | 8430 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
d7040cdb SE |
8431 | case $lt_prog_compiler_pic in |
8432 | "" | " "*) ;; | |
8433 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8434 | esac | |
8435 | else | |
8436 | lt_prog_compiler_pic= | |
8437 | lt_prog_compiler_can_build_shared=no | |
8438 | fi | |
8439 | ||
8440 | fi | |
8441 | ||
8442 | ||
8443 | ||
8444 | ||
8445 | ||
8446 | ||
8447 | # | |
8448 | # Check to make sure the static flag actually works. | |
8449 | # | |
8450 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
81ecdfbb RW |
8451 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
8452 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
d0ac1c44 | 8453 | if ${lt_cv_prog_compiler_static_works+:} false; then : |
81ecdfbb | 8454 | $as_echo_n "(cached) " >&6 |
d7040cdb | 8455 | else |
718a6fd8 | 8456 | lt_cv_prog_compiler_static_works=no |
d7040cdb SE |
8457 | save_LDFLAGS="$LDFLAGS" |
8458 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8459 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8460 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8461 | # The linker can only warn and ignore the option if not recognized | |
8462 | # So say no if there are warnings | |
8463 | if test -s conftest.err; then | |
8464 | # Append any errors to the config.log. | |
8465 | cat conftest.err 1>&5 | |
3725885a | 8466 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp |
d7040cdb SE |
8467 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
8468 | if diff conftest.exp conftest.er2 >/dev/null; then | |
718a6fd8 | 8469 | lt_cv_prog_compiler_static_works=yes |
d7040cdb SE |
8470 | fi |
8471 | else | |
718a6fd8 | 8472 | lt_cv_prog_compiler_static_works=yes |
d7040cdb SE |
8473 | fi |
8474 | fi | |
718a6fd8 | 8475 | $RM -r conftest* |
d7040cdb SE |
8476 | LDFLAGS="$save_LDFLAGS" |
8477 | ||
8478 | fi | |
81ecdfbb RW |
8479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 |
8480 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
d7040cdb | 8481 | |
718a6fd8 | 8482 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
d7040cdb SE |
8483 | : |
8484 | else | |
8485 | lt_prog_compiler_static= | |
8486 | fi | |
8487 | ||
8488 | ||
8489 | ||
8490 | ||
8491 | ||
8492 | ||
8493 | ||
81ecdfbb RW |
8494 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8495 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
d0ac1c44 | 8496 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
81ecdfbb | 8497 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
8498 | else |
8499 | lt_cv_prog_compiler_c_o=no | |
8500 | $RM -r conftest 2>/dev/null | |
8501 | mkdir conftest | |
8502 | cd conftest | |
8503 | mkdir out | |
8504 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8505 | ||
8506 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8507 | # Insert the option either (1) after the last *FLAGS variable, or | |
8508 | # (2) before a word containing "conftest.", or (3) at the end. | |
8509 | # Note that $ac_compile itself does not contain backslashes and begins | |
8510 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8511 | lt_compile=`echo "$ac_compile" | $SED \ | |
8512 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8513 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8514 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8515 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
d7040cdb SE |
8516 | (eval "$lt_compile" 2>out/conftest.err) |
8517 | ac_status=$? | |
8518 | cat out/conftest.err >&5 | |
3725885a | 8519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d7040cdb SE |
8520 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8521 | then | |
8522 | # The compiler can only warn and ignore the option if not recognized | |
8523 | # So say no if there are warnings | |
3725885a | 8524 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
d7040cdb SE |
8525 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8526 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8527 | lt_cv_prog_compiler_c_o=yes | |
8528 | fi | |
8529 | fi | |
8530 | chmod u+w . 2>&5 | |
8531 | $RM conftest* | |
8532 | # SGI C++ compiler will create directory out/ii_files/ for | |
8533 | # template instantiation | |
8534 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8535 | $RM out/* && rmdir out | |
8536 | cd .. | |
8537 | $RM -r conftest | |
8538 | $RM conftest* | |
8539 | ||
8540 | fi | |
81ecdfbb RW |
8541 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8542 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
8543 | |
8544 | ||
8545 | ||
8546 | ||
8547 | ||
8548 | ||
81ecdfbb RW |
8549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8550 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
d0ac1c44 | 8551 | if ${lt_cv_prog_compiler_c_o+:} false; then : |
81ecdfbb | 8552 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
8553 | else |
8554 | lt_cv_prog_compiler_c_o=no | |
8555 | $RM -r conftest 2>/dev/null | |
8556 | mkdir conftest | |
8557 | cd conftest | |
8558 | mkdir out | |
8559 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8560 | ||
8561 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8562 | # Insert the option either (1) after the last *FLAGS variable, or | |
8563 | # (2) before a word containing "conftest.", or (3) at the end. | |
8564 | # Note that $ac_compile itself does not contain backslashes and begins | |
8565 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8566 | lt_compile=`echo "$ac_compile" | $SED \ | |
8567 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8568 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8569 | -e 's:$: $lt_compiler_flag:'` | |
3725885a | 8570 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) |
d7040cdb SE |
8571 | (eval "$lt_compile" 2>out/conftest.err) |
8572 | ac_status=$? | |
8573 | cat out/conftest.err >&5 | |
3725885a | 8574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
d7040cdb SE |
8575 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8576 | then | |
8577 | # The compiler can only warn and ignore the option if not recognized | |
8578 | # So say no if there are warnings | |
3725885a | 8579 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp |
d7040cdb SE |
8580 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
8581 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8582 | lt_cv_prog_compiler_c_o=yes | |
8583 | fi | |
8584 | fi | |
8585 | chmod u+w . 2>&5 | |
8586 | $RM conftest* | |
8587 | # SGI C++ compiler will create directory out/ii_files/ for | |
8588 | # template instantiation | |
8589 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8590 | $RM out/* && rmdir out | |
8591 | cd .. | |
8592 | $RM -r conftest | |
8593 | $RM conftest* | |
8594 | ||
8595 | fi | |
81ecdfbb RW |
8596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 |
8597 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
d7040cdb SE |
8598 | |
8599 | ||
8600 | ||
8601 | ||
8602 | hard_links="nottested" | |
8603 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8604 | # do not overwrite the value of need_locks provided by the user | |
81ecdfbb RW |
8605 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 |
8606 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
d7040cdb SE |
8607 | hard_links=yes |
8608 | $RM conftest* | |
8609 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8610 | touch conftest.a | |
8611 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8612 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
81ecdfbb RW |
8613 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 |
8614 | $as_echo "$hard_links" >&6; } | |
d7040cdb | 8615 | if test "$hard_links" = no; then |
81ecdfbb RW |
8616 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8617 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
d7040cdb SE |
8618 | need_locks=warn |
8619 | fi | |
8620 | else | |
8621 | need_locks=no | |
8622 | fi | |
8623 | ||
8624 | ||
8625 | ||
8626 | ||
8627 | ||
8628 | ||
81ecdfbb RW |
8629 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8630 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
d7040cdb SE |
8631 | |
8632 | runpath_var= | |
8633 | allow_undefined_flag= | |
8634 | always_export_symbols=no | |
8635 | archive_cmds= | |
8636 | archive_expsym_cmds= | |
8637 | compiler_needs_object=no | |
8638 | enable_shared_with_static_runtimes=no | |
8639 | export_dynamic_flag_spec= | |
8640 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8641 | hardcode_automatic=no | |
8642 | hardcode_direct=no | |
8643 | hardcode_direct_absolute=no | |
8644 | hardcode_libdir_flag_spec= | |
8645 | hardcode_libdir_flag_spec_ld= | |
8646 | hardcode_libdir_separator= | |
8647 | hardcode_minus_L=no | |
8648 | hardcode_shlibpath_var=unsupported | |
8649 | inherit_rpath=no | |
8650 | link_all_deplibs=unknown | |
8651 | module_cmds= | |
8652 | module_expsym_cmds= | |
8653 | old_archive_from_new_cmds= | |
8654 | old_archive_from_expsyms_cmds= | |
8655 | thread_safe_flag_spec= | |
8656 | whole_archive_flag_spec= | |
8657 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8658 | # included in the symbol list | |
8659 | include_expsyms= | |
8660 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8661 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8662 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8663 | # as well as any symbol that contains `d'. | |
718a6fd8 | 8664 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
d7040cdb SE |
8665 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8666 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8667 | # the symbol is explicitly referenced. Since portable code cannot | |
8668 | # rely on this symbol name, it's probably fine to never include it in | |
8669 | # preloaded symbol tables. | |
718a6fd8 | 8670 | # Exclude shared library initialization/finalization symbols. |
d7040cdb SE |
8671 | extract_expsyms_cmds= |
8672 | ||
8673 | case $host_os in | |
718a6fd8 | 8674 | cygwin* | mingw* | pw32* | cegcc*) |
d7040cdb SE |
8675 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8676 | # When not using gcc, we currently assume that we are using | |
8677 | # Microsoft Visual C++. | |
8678 | if test "$GCC" != yes; then | |
8679 | with_gnu_ld=no | |
8680 | fi | |
8681 | ;; | |
8682 | interix*) | |
8683 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8684 | with_gnu_ld=yes | |
8685 | ;; | |
8686 | openbsd*) | |
8687 | with_gnu_ld=no | |
8688 | ;; | |
8689 | esac | |
8690 | ||
8691 | ld_shlibs=yes | |
3725885a RW |
8692 | |
8693 | # On some targets, GNU ld is compatible enough with the native linker | |
8694 | # that we're better off using the native interface for both. | |
8695 | lt_use_gnu_ld_interface=no | |
d7040cdb | 8696 | if test "$with_gnu_ld" = yes; then |
3725885a RW |
8697 | case $host_os in |
8698 | aix*) | |
8699 | # The AIX port of GNU ld has always aspired to compatibility | |
8700 | # with the native linker. However, as the warning in the GNU ld | |
8701 | # block says, versions before 2.19.5* couldn't really create working | |
8702 | # shared libraries, regardless of the interface used. | |
8703 | case `$LD -v 2>&1` in | |
8704 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
8705 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
8706 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
8707 | *) | |
8708 | lt_use_gnu_ld_interface=yes | |
8709 | ;; | |
8710 | esac | |
8711 | ;; | |
8712 | *) | |
8713 | lt_use_gnu_ld_interface=yes | |
8714 | ;; | |
8715 | esac | |
8716 | fi | |
8717 | ||
8718 | if test "$lt_use_gnu_ld_interface" = yes; then | |
d7040cdb SE |
8719 | # If archive_cmds runs LD, not CC, wlarc should be empty |
8720 | wlarc='${wl}' | |
8721 | ||
8722 | # Set some defaults for GNU ld with shared library support. These | |
8723 | # are reset later if shared libraries are not supported. Putting them | |
8724 | # here allows them to be overridden if necessary. | |
8725 | runpath_var=LD_RUN_PATH | |
8726 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8727 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8728 | # ancient GNU ld didn't support --whole-archive et. al. | |
8729 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8730 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8731 | else | |
8732 | whole_archive_flag_spec= | |
8733 | fi | |
8734 | supports_anon_versioning=no | |
8735 | case `$LD -v 2>&1` in | |
3725885a | 8736 | *GNU\ gold*) supports_anon_versioning=yes ;; |
d7040cdb SE |
8737 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
8738 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8739 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8740 | *\ 2.11.*) ;; # other 2.11 versions | |
8741 | *) supports_anon_versioning=yes ;; | |
8742 | esac | |
8743 | ||
8744 | # See if GNU ld supports shared libraries. | |
8745 | case $host_os in | |
e81819a5 | 8746 | aix[3-9]*) |
d7040cdb SE |
8747 | # On AIX/PPC, the GNU linker is very broken |
8748 | if test "$host_cpu" != ia64; then | |
8749 | ld_shlibs=no | |
8750 | cat <<_LT_EOF 1>&2 | |
8751 | ||
3725885a | 8752 | *** Warning: the GNU linker, at least up to release 2.19, is reported |
d7040cdb SE |
8753 | *** to be unable to reliably create shared libraries on AIX. |
8754 | *** Therefore, libtool is disabling shared libraries support. If you | |
3725885a RW |
8755 | *** really care for shared libraries, you may want to install binutils |
8756 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
8757 | *** You will then need to restart the configuration process. | |
d7040cdb SE |
8758 | |
8759 | _LT_EOF | |
8760 | fi | |
8761 | ;; | |
8762 | ||
8763 | amigaos*) | |
718a6fd8 SE |
8764 | case $host_cpu in |
8765 | powerpc) | |
8766 | # see comment about AmigaOS4 .so support | |
8767 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8768 | archive_expsym_cmds='' | |
8769 | ;; | |
8770 | m68k) | |
8771 | 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)' | |
8772 | hardcode_libdir_flag_spec='-L$libdir' | |
8773 | hardcode_minus_L=yes | |
8774 | ;; | |
8775 | esac | |
d7040cdb SE |
8776 | ;; |
8777 | ||
8778 | beos*) | |
8779 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8780 | allow_undefined_flag=unsupported | |
8781 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8782 | # support --undefined. This deserves some investigation. FIXME | |
8783 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8784 | else | |
8785 | ld_shlibs=no | |
8786 | fi | |
8787 | ;; | |
8788 | ||
718a6fd8 | 8789 | cygwin* | mingw* | pw32* | cegcc*) |
d7040cdb SE |
8790 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
8791 | # as there is no search path for DLLs. | |
8792 | hardcode_libdir_flag_spec='-L$libdir' | |
3725885a | 8793 | export_dynamic_flag_spec='${wl}--export-all-symbols' |
d7040cdb SE |
8794 | allow_undefined_flag=unsupported |
8795 | always_export_symbols=no | |
8796 | enable_shared_with_static_runtimes=yes | |
8797 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
8798 | ||
8799 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
8800 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8801 | # If the export-symbols file already is a .def file (1st line | |
8802 | # is EXPORTS), use it as is; otherwise, prepend... | |
8803 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8804 | cp $export_symbols $output_objdir/$soname.def; | |
8805 | else | |
8806 | echo EXPORTS > $output_objdir/$soname.def; | |
8807 | cat $export_symbols >> $output_objdir/$soname.def; | |
8808 | fi~ | |
8809 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8810 | else | |
8811 | ld_shlibs=no | |
8812 | fi | |
8813 | ;; | |
8814 | ||
3725885a RW |
8815 | haiku*) |
8816 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8817 | link_all_deplibs=yes | |
8818 | ;; | |
8819 | ||
d7040cdb SE |
8820 | interix[3-9]*) |
8821 | hardcode_direct=no | |
8822 | hardcode_shlibpath_var=no | |
8823 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8824 | export_dynamic_flag_spec='${wl}-E' | |
8825 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8826 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8827 | # default) and relocated if they conflict, which is a slow very memory | |
8828 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8829 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8830 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8831 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8832 | 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' | |
8833 | ;; | |
8834 | ||
58e24671 | 8835 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) |
d7040cdb SE |
8836 | tmp_diet=no |
8837 | if test "$host_os" = linux-dietlibc; then | |
8838 | case $cc_basename in | |
8839 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8840 | esac | |
8841 | fi | |
8842 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8843 | && test "$tmp_diet" = no | |
8844 | then | |
6e733cce | 8845 | tmp_addflag=' $pic_flag' |
718a6fd8 | 8846 | tmp_sharedflag='-shared' |
d7040cdb SE |
8847 | case $cc_basename,$host_cpu in |
8848 | pgcc*) # Portland Group C compiler | |
3725885a | 8849 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
d7040cdb SE |
8850 | tmp_addflag=' $pic_flag' |
8851 | ;; | |
3725885a RW |
8852 | pgf77* | pgf90* | pgf95* | pgfortran*) |
8853 | # Portland Group f77 and f90 compilers | |
8854 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
d7040cdb SE |
8855 | tmp_addflag=' $pic_flag -Mnomain' ;; |
8856 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8857 | tmp_addflag=' -i_dynamic' ;; | |
8858 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8859 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8860 | ifc* | ifort*) # Intel Fortran compiler | |
8861 | tmp_addflag=' -nofor_main' ;; | |
718a6fd8 SE |
8862 | lf95*) # Lahey Fortran 8.1 |
8863 | whole_archive_flag_spec= | |
8864 | tmp_sharedflag='--shared' ;; | |
3725885a | 8865 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) |
718a6fd8 SE |
8866 | tmp_sharedflag='-qmkshrobj' |
8867 | tmp_addflag= ;; | |
3725885a RW |
8868 | nvcc*) # Cuda Compiler Driver 2.2 |
8869 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' | |
8870 | compiler_needs_object=yes | |
8871 | ;; | |
d7040cdb SE |
8872 | esac |
8873 | case `$CC -V 2>&1 | sed 5q` in | |
8874 | *Sun\ C*) # Sun C 5.9 | |
3725885a | 8875 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' |
d7040cdb SE |
8876 | compiler_needs_object=yes |
8877 | tmp_sharedflag='-G' ;; | |
8878 | *Sun\ F*) # Sun Fortran 8.3 | |
8879 | tmp_sharedflag='-G' ;; | |
d7040cdb SE |
8880 | esac |
8881 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8882 | ||
8883 | if test "x$supports_anon_versioning" = xyes; then | |
8884 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8885 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8886 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8887 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8888 | fi | |
718a6fd8 SE |
8889 | |
8890 | case $cc_basename in | |
3725885a | 8891 | xlf* | bgf* | bgxlf* | mpixlf*) |
718a6fd8 SE |
8892 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself |
8893 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8894 | hardcode_libdir_flag_spec= | |
8895 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8896 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8897 | if test "x$supports_anon_versioning" = xyes; then | |
8898 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8899 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8900 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8901 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8902 | fi | |
8903 | ;; | |
8904 | esac | |
d7040cdb SE |
8905 | else |
8906 | ld_shlibs=no | |
8907 | fi | |
8908 | ;; | |
8909 | ||
8910 | netbsd*) | |
8911 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8912 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8913 | wlarc= | |
8914 | else | |
8915 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8916 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8917 | fi | |
8918 | ;; | |
8919 | ||
8920 | solaris*) | |
8921 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8922 | ld_shlibs=no | |
8923 | cat <<_LT_EOF 1>&2 | |
8924 | ||
8925 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
8926 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8927 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8928 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8929 | *** your PATH or compiler configuration so that the native linker is | |
8930 | *** used, and then restart. | |
8931 | ||
8932 | _LT_EOF | |
8933 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8934 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8935 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8936 | else | |
8937 | ld_shlibs=no | |
8938 | fi | |
8939 | ;; | |
8940 | ||
8941 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
8942 | case `$LD -v 2>&1` in | |
8943 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8944 | ld_shlibs=no | |
8945 | cat <<_LT_EOF 1>&2 | |
8946 | ||
8947 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
8948 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8949 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8950 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8951 | *** your PATH or compiler configuration so that the native linker is | |
8952 | *** used, and then restart. | |
8953 | ||
8954 | _LT_EOF | |
8955 | ;; | |
8956 | *) | |
8957 | # For security reasons, it is highly recommended that you always | |
8958 | # use absolute paths for naming shared libraries, and exclude the | |
8959 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8960 | # requires that you compile everything twice, which is a pain. | |
8961 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8962 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8963 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8964 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8965 | else | |
8966 | ld_shlibs=no | |
8967 | fi | |
8968 | ;; | |
8969 | esac | |
8970 | ;; | |
8971 | ||
8972 | sunos4*) | |
8973 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8974 | wlarc= | |
8975 | hardcode_direct=yes | |
8976 | hardcode_shlibpath_var=no | |
8977 | ;; | |
8978 | ||
8979 | *) | |
8980 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8981 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8982 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8983 | else | |
8984 | ld_shlibs=no | |
8985 | fi | |
8986 | ;; | |
8987 | esac | |
8988 | ||
8989 | if test "$ld_shlibs" = no; then | |
8990 | runpath_var= | |
8991 | hardcode_libdir_flag_spec= | |
8992 | export_dynamic_flag_spec= | |
8993 | whole_archive_flag_spec= | |
8994 | fi | |
8995 | else | |
8996 | # PORTME fill in a description of your system's linker (not GNU ld) | |
8997 | case $host_os in | |
8998 | aix3*) | |
8999 | allow_undefined_flag=unsupported | |
9000 | always_export_symbols=yes | |
9001 | 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' | |
9002 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9003 | # are no directories specified by -L. | |
9004 | hardcode_minus_L=yes | |
9005 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9006 | # Neither direct hardcoding nor static linking is supported with a | |
9007 | # broken collect2. | |
9008 | hardcode_direct=unsupported | |
9009 | fi | |
9010 | ;; | |
9011 | ||
e81819a5 | 9012 | aix[4-9]*) |
d7040cdb SE |
9013 | if test "$host_cpu" = ia64; then |
9014 | # On IA64, the linker does run time linking by default, so we don't | |
9015 | # have to do anything special. | |
9016 | aix_use_runtimelinking=no | |
9017 | exp_sym_flag='-Bexport' | |
9018 | no_entry_flag="" | |
9019 | else | |
9020 | # If we're using GNU nm, then we don't want the "-C" option. | |
9021 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
3725885a RW |
9022 | # Also, AIX nm treats weak defined symbols like other global |
9023 | # defined symbols, whereas GNU nm marks them as "W". | |
d7040cdb | 9024 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then |
3725885a | 9025 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
d7040cdb | 9026 | else |
5c14705f | 9027 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' |
d7040cdb SE |
9028 | fi |
9029 | aix_use_runtimelinking=no | |
9030 | ||
9031 | # Test if we are trying to use run time linking or normal | |
9032 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9033 | # need to do runtime linking. | |
e81819a5 | 9034 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
d7040cdb SE |
9035 | for ld_flag in $LDFLAGS; do |
9036 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9037 | aix_use_runtimelinking=yes | |
9038 | break | |
9039 | fi | |
9040 | done | |
9041 | ;; | |
9042 | esac | |
9043 | ||
9044 | exp_sym_flag='-bexport' | |
9045 | no_entry_flag='-bnoentry' | |
9046 | fi | |
9047 | ||
9048 | # When large executables or shared objects are built, AIX ld can | |
9049 | # have problems creating the table of contents. If linking a library | |
9050 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9051 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9052 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9053 | ||
9054 | archive_cmds='' | |
9055 | hardcode_direct=yes | |
9056 | hardcode_direct_absolute=yes | |
9057 | hardcode_libdir_separator=':' | |
9058 | link_all_deplibs=yes | |
9059 | file_list_spec='${wl}-f,' | |
9060 | ||
9061 | if test "$GCC" = yes; then | |
9062 | case $host_os in aix4.[012]|aix4.[012].*) | |
9063 | # We only want to do this on AIX 4.2 and lower, the check | |
9064 | # below for broken collect2 doesn't work under 4.3+ | |
9065 | collect2name=`${CC} -print-prog-name=collect2` | |
9066 | if test -f "$collect2name" && | |
9067 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9068 | then | |
9069 | # We have reworked collect2 | |
9070 | : | |
9071 | else | |
9072 | # We have old collect2 | |
9073 | hardcode_direct=unsupported | |
9074 | # It fails to find uninstalled libraries when the uninstalled | |
9075 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9076 | # to unsupported forces relinking | |
9077 | hardcode_minus_L=yes | |
9078 | hardcode_libdir_flag_spec='-L$libdir' | |
9079 | hardcode_libdir_separator= | |
9080 | fi | |
9081 | ;; | |
9082 | esac | |
9083 | shared_flag='-shared' | |
9084 | if test "$aix_use_runtimelinking" = yes; then | |
9085 | shared_flag="$shared_flag "'${wl}-G' | |
9086 | fi | |
9087 | else | |
9088 | # not using gcc | |
9089 | if test "$host_cpu" = ia64; then | |
9090 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9091 | # chokes on -Wl,-G. The following line is correct: | |
9092 | shared_flag='-G' | |
9093 | else | |
9094 | if test "$aix_use_runtimelinking" = yes; then | |
9095 | shared_flag='${wl}-G' | |
9096 | else | |
9097 | shared_flag='${wl}-bM:SRE' | |
9098 | fi | |
9099 | fi | |
9100 | fi | |
9101 | ||
718a6fd8 | 9102 | export_dynamic_flag_spec='${wl}-bexpall' |
d7040cdb SE |
9103 | # It seems that -bexpall does not export symbols beginning with |
9104 | # underscore (_), so it is better to generate a list of symbols to export. | |
9105 | always_export_symbols=yes | |
9106 | if test "$aix_use_runtimelinking" = yes; then | |
9107 | # Warning - without using the other runtime loading flags (-brtl), | |
9108 | # -berok will link without error, but may produce a broken library. | |
9109 | allow_undefined_flag='-berok' | |
9110 | # Determine the default libpath from the value encoded in an | |
9111 | # empty executable. | |
81ecdfbb | 9112 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
9113 | /* end confdefs.h. */ |
9114 | ||
9115 | int | |
9116 | main () | |
9117 | { | |
9118 | ||
9119 | ; | |
9120 | return 0; | |
9121 | } | |
9122 | _ACEOF | |
81ecdfbb | 9123 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb SE |
9124 | |
9125 | lt_aix_libpath_sed=' | |
9126 | /Import File Strings/,/^$/ { | |
9127 | /^0/ { | |
9128 | s/^0 *\(.*\)$/\1/ | |
9129 | p | |
9130 | } | |
9131 | }' | |
9132 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9133 | # Check for a 64-bit object if we didn't find anything. | |
9134 | if test -z "$aix_libpath"; then | |
9135 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9136 | fi | |
d7040cdb | 9137 | fi |
81ecdfbb RW |
9138 | rm -f core conftest.err conftest.$ac_objext \ |
9139 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb SE |
9140 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
9141 | ||
9142 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
3725885a | 9143 | archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
d7040cdb SE |
9144 | else |
9145 | if test "$host_cpu" = ia64; then | |
9146 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9147 | allow_undefined_flag="-z nodefs" | |
9148 | 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" | |
9149 | else | |
9150 | # Determine the default libpath from the value encoded in an | |
9151 | # empty executable. | |
81ecdfbb | 9152 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
9153 | /* end confdefs.h. */ |
9154 | ||
9155 | int | |
9156 | main () | |
9157 | { | |
9158 | ||
9159 | ; | |
9160 | return 0; | |
9161 | } | |
9162 | _ACEOF | |
81ecdfbb | 9163 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb SE |
9164 | |
9165 | lt_aix_libpath_sed=' | |
9166 | /Import File Strings/,/^$/ { | |
9167 | /^0/ { | |
9168 | s/^0 *\(.*\)$/\1/ | |
9169 | p | |
9170 | } | |
9171 | }' | |
9172 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9173 | # Check for a 64-bit object if we didn't find anything. | |
9174 | if test -z "$aix_libpath"; then | |
9175 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9176 | fi | |
d7040cdb | 9177 | fi |
81ecdfbb RW |
9178 | rm -f core conftest.err conftest.$ac_objext \ |
9179 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb SE |
9180 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
9181 | ||
9182 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9183 | # Warning - without using the other run time loading flags, | |
9184 | # -berok will link without error, but may produce a broken library. | |
9185 | no_undefined_flag=' ${wl}-bernotok' | |
9186 | allow_undefined_flag=' ${wl}-berok' | |
3725885a RW |
9187 | if test "$with_gnu_ld" = yes; then |
9188 | # We only use this code for GNU lds that support --whole-archive. | |
9189 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9190 | else | |
9191 | # Exported symbols can be pulled into shared objects from archives | |
9192 | whole_archive_flag_spec='$convenience' | |
9193 | fi | |
d7040cdb SE |
9194 | archive_cmds_need_lc=yes |
9195 | # This is similar to how AIX traditionally builds its shared libraries. | |
9196 | 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' | |
9197 | fi | |
9198 | fi | |
9199 | ;; | |
9200 | ||
9201 | amigaos*) | |
718a6fd8 SE |
9202 | case $host_cpu in |
9203 | powerpc) | |
9204 | # see comment about AmigaOS4 .so support | |
9205 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9206 | archive_expsym_cmds='' | |
9207 | ;; | |
9208 | m68k) | |
9209 | 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)' | |
9210 | hardcode_libdir_flag_spec='-L$libdir' | |
9211 | hardcode_minus_L=yes | |
9212 | ;; | |
9213 | esac | |
d7040cdb SE |
9214 | ;; |
9215 | ||
9216 | bsdi[45]*) | |
9217 | export_dynamic_flag_spec=-rdynamic | |
9218 | ;; | |
9219 | ||
718a6fd8 | 9220 | cygwin* | mingw* | pw32* | cegcc*) |
d7040cdb SE |
9221 | # When not using gcc, we currently assume that we are using |
9222 | # Microsoft Visual C++. | |
9223 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9224 | # no search path for DLLs. | |
9225 | hardcode_libdir_flag_spec=' ' | |
9226 | allow_undefined_flag=unsupported | |
9227 | # Tell ltmain to make .lib files, not .a files. | |
9228 | libext=lib | |
9229 | # Tell ltmain to make .dll files, not .so files. | |
9230 | shrext_cmds=".dll" | |
9231 | # FIXME: Setting linknames here is a bad hack. | |
3725885a | 9232 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' |
d7040cdb SE |
9233 | # The linker will automatically build a .lib file if we build a DLL. |
9234 | old_archive_from_new_cmds='true' | |
9235 | # FIXME: Should let the user specify the lib program. | |
9236 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9237 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9238 | enable_shared_with_static_runtimes=yes | |
9239 | ;; | |
9240 | ||
9241 | darwin* | rhapsody*) | |
d7040cdb | 9242 | |
718a6fd8 SE |
9243 | |
9244 | archive_cmds_need_lc=no | |
9245 | hardcode_direct=no | |
9246 | hardcode_automatic=yes | |
9247 | hardcode_shlibpath_var=unsupported | |
3725885a RW |
9248 | if test "$lt_cv_ld_force_load" = "yes"; then |
9249 | whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
9250 | else | |
9251 | whole_archive_flag_spec='' | |
9252 | fi | |
718a6fd8 SE |
9253 | link_all_deplibs=yes |
9254 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9255 | case $cc_basename in | |
9256 | ifort*) _lt_dar_can_shared=yes ;; | |
9257 | *) _lt_dar_can_shared=$GCC ;; | |
9258 | esac | |
9259 | if test "$_lt_dar_can_shared" = "yes"; then | |
3725885a | 9260 | output_verbose_link_cmd=func_echo_all |
718a6fd8 SE |
9261 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
9262 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9263 | 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}" | |
9264 | 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}" | |
9265 | ||
9266 | else | |
9267 | ld_shlibs=no | |
9268 | fi | |
9269 | ||
d7040cdb SE |
9270 | ;; |
9271 | ||
9272 | dgux*) | |
9273 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9274 | hardcode_libdir_flag_spec='-L$libdir' | |
9275 | hardcode_shlibpath_var=no | |
9276 | ;; | |
9277 | ||
d7040cdb SE |
9278 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
9279 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9280 | # does not break anything, and helps significantly (at the cost of a little | |
9281 | # extra space). | |
9282 | freebsd2.2*) | |
9283 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9284 | hardcode_libdir_flag_spec='-R$libdir' | |
9285 | hardcode_direct=yes | |
9286 | hardcode_shlibpath_var=no | |
9287 | ;; | |
9288 | ||
9289 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
6d2920c8 | 9290 | freebsd2.*) |
d7040cdb SE |
9291 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
9292 | hardcode_direct=yes | |
9293 | hardcode_minus_L=yes | |
9294 | hardcode_shlibpath_var=no | |
9295 | ;; | |
9296 | ||
9297 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9298 | freebsd* | dragonfly*) | |
9299 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9300 | hardcode_libdir_flag_spec='-R$libdir' | |
9301 | hardcode_direct=yes | |
9302 | hardcode_shlibpath_var=no | |
9303 | ;; | |
9304 | ||
9305 | hpux9*) | |
9306 | if test "$GCC" = yes; then | |
9307 | 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' | |
9308 | else | |
9309 | 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' | |
9310 | fi | |
9311 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9312 | hardcode_libdir_separator=: | |
9313 | hardcode_direct=yes | |
9314 | ||
9315 | # hardcode_minus_L: Not really in the search PATH, | |
9316 | # but as the default location of the library. | |
9317 | hardcode_minus_L=yes | |
9318 | export_dynamic_flag_spec='${wl}-E' | |
9319 | ;; | |
9320 | ||
9321 | hpux10*) | |
3725885a | 9322 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
d7040cdb SE |
9323 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
9324 | else | |
9325 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9326 | fi | |
9327 | if test "$with_gnu_ld" = no; then | |
9328 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9329 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9330 | hardcode_libdir_separator=: | |
9331 | hardcode_direct=yes | |
9332 | hardcode_direct_absolute=yes | |
9333 | export_dynamic_flag_spec='${wl}-E' | |
9334 | # hardcode_minus_L: Not really in the search PATH, | |
9335 | # but as the default location of the library. | |
9336 | hardcode_minus_L=yes | |
9337 | fi | |
9338 | ;; | |
9339 | ||
9340 | hpux11*) | |
3725885a | 9341 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then |
d7040cdb SE |
9342 | case $host_cpu in |
9343 | hppa*64*) | |
9344 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9345 | ;; | |
9346 | ia64*) | |
718a6fd8 | 9347 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
d7040cdb SE |
9348 | ;; |
9349 | *) | |
9350 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9351 | ;; | |
9352 | esac | |
9353 | else | |
9354 | case $host_cpu in | |
9355 | hppa*64*) | |
9356 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9357 | ;; | |
9358 | ia64*) | |
9359 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9360 | ;; | |
9361 | *) | |
3725885a RW |
9362 | |
9363 | # Older versions of the 11.00 compiler do not understand -b yet | |
9364 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9365 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9366 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
d0ac1c44 | 9367 | if ${lt_cv_prog_compiler__b+:} false; then : |
3725885a RW |
9368 | $as_echo_n "(cached) " >&6 |
9369 | else | |
9370 | lt_cv_prog_compiler__b=no | |
9371 | save_LDFLAGS="$LDFLAGS" | |
9372 | LDFLAGS="$LDFLAGS -b" | |
9373 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9374 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9375 | # The linker can only warn and ignore the option if not recognized | |
9376 | # So say no if there are warnings | |
9377 | if test -s conftest.err; then | |
9378 | # Append any errors to the config.log. | |
9379 | cat conftest.err 1>&5 | |
9380 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9381 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9382 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9383 | lt_cv_prog_compiler__b=yes | |
9384 | fi | |
9385 | else | |
9386 | lt_cv_prog_compiler__b=yes | |
9387 | fi | |
9388 | fi | |
9389 | $RM -r conftest* | |
9390 | LDFLAGS="$save_LDFLAGS" | |
9391 | ||
9392 | fi | |
9393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9394 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9395 | ||
9396 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9397 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9398 | else | |
9399 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9400 | fi | |
9401 | ||
d7040cdb SE |
9402 | ;; |
9403 | esac | |
9404 | fi | |
9405 | if test "$with_gnu_ld" = no; then | |
9406 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9407 | hardcode_libdir_separator=: | |
9408 | ||
9409 | case $host_cpu in | |
9410 | hppa*64*|ia64*) | |
9411 | hardcode_direct=no | |
9412 | hardcode_shlibpath_var=no | |
9413 | ;; | |
9414 | *) | |
9415 | hardcode_direct=yes | |
9416 | hardcode_direct_absolute=yes | |
9417 | export_dynamic_flag_spec='${wl}-E' | |
9418 | ||
9419 | # hardcode_minus_L: Not really in the search PATH, | |
9420 | # but as the default location of the library. | |
9421 | hardcode_minus_L=yes | |
9422 | ;; | |
9423 | esac | |
9424 | fi | |
9425 | ;; | |
9426 | ||
9427 | irix5* | irix6* | nonstopux*) | |
9428 | if test "$GCC" = yes; then | |
3725885a | 9429 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
d7040cdb SE |
9430 | # Try to use the -exported_symbol ld option, if it does not |
9431 | # work, assume that -exports_file does not work either and | |
9432 | # implicitly export all symbols. | |
9433 | save_LDFLAGS="$LDFLAGS" | |
9434 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
81ecdfbb RW |
9435 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
9436 | /* end confdefs.h. */ | |
d7040cdb SE |
9437 | int foo(void) {} |
9438 | _ACEOF | |
81ecdfbb | 9439 | if ac_fn_c_try_link "$LINENO"; then : |
3725885a | 9440 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' |
d7040cdb | 9441 | |
d7040cdb | 9442 | fi |
81ecdfbb RW |
9443 | rm -f core conftest.err conftest.$ac_objext \ |
9444 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb SE |
9445 | LDFLAGS="$save_LDFLAGS" |
9446 | else | |
3725885a RW |
9447 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
9448 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' | |
d7040cdb SE |
9449 | fi |
9450 | archive_cmds_need_lc='no' | |
9451 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9452 | hardcode_libdir_separator=: | |
9453 | inherit_rpath=yes | |
9454 | link_all_deplibs=yes | |
9455 | ;; | |
9456 | ||
9457 | netbsd*) | |
9458 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9459 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9460 | else | |
9461 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9462 | fi | |
9463 | hardcode_libdir_flag_spec='-R$libdir' | |
9464 | hardcode_direct=yes | |
9465 | hardcode_shlibpath_var=no | |
9466 | ;; | |
9467 | ||
9468 | newsos6) | |
9469 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9470 | hardcode_direct=yes | |
9471 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9472 | hardcode_libdir_separator=: | |
9473 | hardcode_shlibpath_var=no | |
9474 | ;; | |
9475 | ||
9476 | *nto* | *qnx*) | |
9477 | ;; | |
9478 | ||
9479 | openbsd*) | |
718a6fd8 SE |
9480 | if test -f /usr/libexec/ld.so; then |
9481 | hardcode_direct=yes | |
9482 | hardcode_shlibpath_var=no | |
9483 | hardcode_direct_absolute=yes | |
9484 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
d7040cdb | 9485 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
718a6fd8 | 9486 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
d7040cdb | 9487 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
718a6fd8 SE |
9488 | export_dynamic_flag_spec='${wl}-E' |
9489 | else | |
9490 | case $host_os in | |
9491 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9492 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9493 | hardcode_libdir_flag_spec='-R$libdir' | |
9494 | ;; | |
9495 | *) | |
9496 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9497 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9498 | ;; | |
9499 | esac | |
9500 | fi | |
9501 | else | |
9502 | ld_shlibs=no | |
d7040cdb SE |
9503 | fi |
9504 | ;; | |
9505 | ||
9506 | os2*) | |
9507 | hardcode_libdir_flag_spec='-L$libdir' | |
9508 | hardcode_minus_L=yes | |
9509 | allow_undefined_flag=unsupported | |
3725885a | 9510 | 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' |
d7040cdb SE |
9511 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
9512 | ;; | |
9513 | ||
9514 | osf3*) | |
9515 | if test "$GCC" = yes; then | |
9516 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
3725885a | 9517 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
d7040cdb SE |
9518 | else |
9519 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 9520 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
d7040cdb SE |
9521 | fi |
9522 | archive_cmds_need_lc='no' | |
9523 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9524 | hardcode_libdir_separator=: | |
9525 | ;; | |
9526 | ||
9527 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9528 | if test "$GCC" = yes; then | |
9529 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
3725885a | 9530 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' |
d7040cdb SE |
9531 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
9532 | else | |
9533 | allow_undefined_flag=' -expect_unresolved \*' | |
3725885a | 9534 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' |
d7040cdb | 9535 | 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~ |
3725885a | 9536 | $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' |
d7040cdb SE |
9537 | |
9538 | # Both c and cxx compiler support -rpath directly | |
9539 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9540 | fi | |
9541 | archive_cmds_need_lc='no' | |
9542 | hardcode_libdir_separator=: | |
9543 | ;; | |
9544 | ||
9545 | solaris*) | |
9546 | no_undefined_flag=' -z defs' | |
9547 | if test "$GCC" = yes; then | |
9548 | wlarc='${wl}' | |
9549 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9550 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9551 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9552 | else | |
9553 | case `$CC -V 2>&1` in | |
9554 | *"Compilers 5.0"*) | |
9555 | wlarc='' | |
9556 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9557 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9558 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9559 | ;; | |
9560 | *) | |
9561 | wlarc='${wl}' | |
9562 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9563 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9564 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9565 | ;; | |
9566 | esac | |
9567 | fi | |
9568 | hardcode_libdir_flag_spec='-R$libdir' | |
9569 | hardcode_shlibpath_var=no | |
9570 | case $host_os in | |
9571 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9572 | *) | |
9573 | # The compiler driver will combine and reorder linker options, | |
9574 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9575 | # but is careful enough not to reorder. | |
9576 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9577 | if test "$GCC" = yes; then | |
9578 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9579 | else | |
9580 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9581 | fi | |
9582 | ;; | |
9583 | esac | |
9584 | link_all_deplibs=yes | |
9585 | ;; | |
9586 | ||
9587 | sunos4*) | |
9588 | if test "x$host_vendor" = xsequent; then | |
9589 | # Use $CC to link under sequent, because it throws in some extra .o | |
9590 | # files that make .init and .fini sections work. | |
9591 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9592 | else | |
9593 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9594 | fi | |
9595 | hardcode_libdir_flag_spec='-L$libdir' | |
9596 | hardcode_direct=yes | |
9597 | hardcode_minus_L=yes | |
9598 | hardcode_shlibpath_var=no | |
9599 | ;; | |
9600 | ||
9601 | sysv4) | |
9602 | case $host_vendor in | |
9603 | sni) | |
9604 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9605 | hardcode_direct=yes # is this really true??? | |
9606 | ;; | |
9607 | siemens) | |
9608 | ## LD is ld it makes a PLAMLIB | |
9609 | ## CC just makes a GrossModule. | |
9610 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9611 | reload_cmds='$CC -r -o $output$reload_objs' | |
9612 | hardcode_direct=no | |
9613 | ;; | |
9614 | motorola) | |
9615 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9616 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9617 | ;; | |
9618 | esac | |
9619 | runpath_var='LD_RUN_PATH' | |
9620 | hardcode_shlibpath_var=no | |
9621 | ;; | |
9622 | ||
9623 | sysv4.3*) | |
9624 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9625 | hardcode_shlibpath_var=no | |
9626 | export_dynamic_flag_spec='-Bexport' | |
9627 | ;; | |
9628 | ||
9629 | sysv4*MP*) | |
9630 | if test -d /usr/nec; then | |
9631 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9632 | hardcode_shlibpath_var=no | |
9633 | runpath_var=LD_RUN_PATH | |
9634 | hardcode_runpath_var=yes | |
9635 | ld_shlibs=yes | |
9636 | fi | |
9637 | ;; | |
9638 | ||
9639 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9640 | no_undefined_flag='${wl}-z,text' | |
9641 | archive_cmds_need_lc=no | |
9642 | hardcode_shlibpath_var=no | |
9643 | runpath_var='LD_RUN_PATH' | |
9644 | ||
9645 | if test "$GCC" = yes; then | |
9646 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9647 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9648 | else | |
9649 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9650 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9651 | fi | |
9652 | ;; | |
9653 | ||
9654 | sysv5* | sco3.2v5* | sco5v6*) | |
9655 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9656 | # link with -lc, and that would cause any symbols used from libc to | |
9657 | # always be unresolved, which means just about no library would | |
9658 | # ever link correctly. If we're not using GNU ld we use -z text | |
9659 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9660 | # as -z defs. | |
9661 | no_undefined_flag='${wl}-z,text' | |
9662 | allow_undefined_flag='${wl}-z,nodefs' | |
9663 | archive_cmds_need_lc=no | |
9664 | hardcode_shlibpath_var=no | |
9665 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9666 | hardcode_libdir_separator=':' | |
9667 | link_all_deplibs=yes | |
9668 | export_dynamic_flag_spec='${wl}-Bexport' | |
9669 | runpath_var='LD_RUN_PATH' | |
9670 | ||
9671 | if test "$GCC" = yes; then | |
9672 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9673 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9674 | else | |
9675 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9676 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9677 | fi | |
9678 | ;; | |
9679 | ||
9680 | uts4*) | |
9681 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9682 | hardcode_libdir_flag_spec='-L$libdir' | |
9683 | hardcode_shlibpath_var=no | |
9684 | ;; | |
9685 | ||
9686 | *) | |
9687 | ld_shlibs=no | |
9688 | ;; | |
9689 | esac | |
9690 | ||
9691 | if test x$host_vendor = xsni; then | |
9692 | case $host in | |
9693 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9694 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9695 | ;; | |
9696 | esac | |
9697 | fi | |
9698 | fi | |
9699 | ||
81ecdfbb RW |
9700 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 |
9701 | $as_echo "$ld_shlibs" >&6; } | |
d7040cdb SE |
9702 | test "$ld_shlibs" = no && can_build_shared=no |
9703 | ||
9704 | with_gnu_ld=$with_gnu_ld | |
9705 | ||
9706 | ||
9707 | ||
9708 | ||
9709 | ||
9710 | ||
9711 | ||
9712 | ||
9713 | ||
9714 | ||
9715 | ||
9716 | ||
9717 | ||
9718 | ||
9719 | ||
9720 | # | |
9721 | # Do we need to explicitly link libc? | |
9722 | # | |
9723 | case "x$archive_cmds_need_lc" in | |
9724 | x|xyes) | |
9725 | # Assume -lc should be added | |
9726 | archive_cmds_need_lc=yes | |
9727 | ||
9728 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
9729 | case $archive_cmds in | |
9730 | *'~'*) | |
9731 | # FIXME: we may have to deal with multi-command sequences. | |
9732 | ;; | |
9733 | '$CC '*) | |
9734 | # Test whether the compiler implicitly links with -lc since on some | |
9735 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9736 | # to ld, don't add -lc before -lgcc. | |
81ecdfbb RW |
9737 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 |
9738 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
d0ac1c44 | 9739 | if ${lt_cv_archive_cmds_need_lc+:} false; then : |
81ecdfbb | 9740 | $as_echo_n "(cached) " >&6 |
39144654 RW |
9741 | else |
9742 | $RM conftest* | |
9743 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
d7040cdb | 9744 | |
81ecdfbb | 9745 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 |
d7040cdb SE |
9746 | (eval $ac_compile) 2>&5 |
9747 | ac_status=$? | |
81ecdfbb RW |
9748 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9749 | test $ac_status = 0; } 2>conftest.err; then | |
39144654 RW |
9750 | soname=conftest |
9751 | lib=conftest | |
9752 | libobjs=conftest.$ac_objext | |
9753 | deplibs= | |
9754 | wl=$lt_prog_compiler_wl | |
9755 | pic_flag=$lt_prog_compiler_pic | |
9756 | compiler_flags=-v | |
9757 | linker_flags=-v | |
9758 | verstring= | |
9759 | output_objdir=. | |
9760 | libname=conftest | |
9761 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9762 | allow_undefined_flag= | |
81ecdfbb | 9763 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 |
d7040cdb SE |
9764 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9765 | ac_status=$? | |
81ecdfbb RW |
9766 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
9767 | test $ac_status = 0; } | |
39144654 RW |
9768 | then |
9769 | lt_cv_archive_cmds_need_lc=no | |
9770 | else | |
9771 | lt_cv_archive_cmds_need_lc=yes | |
9772 | fi | |
9773 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9774 | else | |
9775 | cat conftest.err 1>&5 | |
9776 | fi | |
9777 | $RM conftest* | |
9778 | ||
9779 | fi | |
81ecdfbb RW |
9780 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 |
9781 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
39144654 | 9782 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc |
d7040cdb SE |
9783 | ;; |
9784 | esac | |
9785 | fi | |
9786 | ;; | |
9787 | esac | |
9788 | ||
9789 | ||
9790 | ||
9791 | ||
9792 | ||
9793 | ||
9794 | ||
9795 | ||
9796 | ||
9797 | ||
9798 | ||
9799 | ||
9800 | ||
9801 | ||
9802 | ||
9803 | ||
9804 | ||
9805 | ||
9806 | ||
9807 | ||
9808 | ||
9809 | ||
9810 | ||
9811 | ||
9812 | ||
9813 | ||
9814 | ||
9815 | ||
9816 | ||
9817 | ||
9818 | ||
9819 | ||
9820 | ||
9821 | ||
9822 | ||
9823 | ||
9824 | ||
9825 | ||
9826 | ||
9827 | ||
9828 | ||
9829 | ||
9830 | ||
9831 | ||
9832 | ||
9833 | ||
9834 | ||
9835 | ||
9836 | ||
9837 | ||
9838 | ||
9839 | ||
9840 | ||
9841 | ||
9842 | ||
9843 | ||
9844 | ||
9845 | ||
9846 | ||
9847 | ||
9848 | ||
9849 | ||
9850 | ||
9851 | ||
9852 | ||
9853 | ||
9854 | ||
9855 | ||
9856 | ||
9857 | ||
9858 | ||
9859 | ||
9860 | ||
9861 | ||
9862 | ||
9863 | ||
9864 | ||
9865 | ||
9866 | ||
9867 | ||
9868 | ||
9869 | ||
9870 | ||
9871 | ||
9872 | ||
9873 | ||
9874 | ||
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 | ||
81ecdfbb RW |
9945 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 |
9946 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
718a6fd8 SE |
9947 | |
9948 | if test "$GCC" = yes; then | |
d7040cdb SE |
9949 | case $host_os in |
9950 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9951 | *) lt_awk_arg="/^libraries:/" ;; | |
9952 | esac | |
3725885a RW |
9953 | case $host_os in |
9954 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
9955 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
9956 | esac | |
9957 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
9958 | case $lt_search_path_spec in | |
9959 | *\;*) | |
d7040cdb SE |
9960 | # if the path contains ";" then we assume it to be the separator |
9961 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9962 | # assumed that no part of a normal pathname contains ";" but that should | |
9963 | # okay in the real world where ";" in dirpaths is itself problematic. | |
3725885a RW |
9964 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` |
9965 | ;; | |
9966 | *) | |
9967 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
9968 | ;; | |
9969 | esac | |
d7040cdb SE |
9970 | # Ok, now we have the path, separated by spaces, we can step through it |
9971 | # and add multilib dir if necessary. | |
9972 | lt_tmp_lt_search_path_spec= | |
9973 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9974 | for lt_sys_path in $lt_search_path_spec; do | |
9975 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9976 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9977 | else | |
9978 | test -d "$lt_sys_path" && \ | |
9979 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9980 | fi | |
9981 | done | |
3725885a | 9982 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' |
d7040cdb SE |
9983 | BEGIN {RS=" "; FS="/|\n";} { |
9984 | lt_foo=""; | |
9985 | lt_count=0; | |
9986 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9987 | if ($lt_i != "" && $lt_i != ".") { | |
9988 | if ($lt_i == "..") { | |
9989 | lt_count++; | |
9990 | } else { | |
9991 | if (lt_count == 0) { | |
9992 | lt_foo="/" $lt_i lt_foo; | |
9993 | } else { | |
9994 | lt_count--; | |
9995 | } | |
9996 | } | |
9997 | } | |
9998 | } | |
9999 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10000 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10001 | }'` | |
3725885a RW |
10002 | # AWK program above erroneously prepends '/' to C:/dos/paths |
10003 | # for these hosts. | |
10004 | case $host_os in | |
10005 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10006 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10007 | esac | |
10008 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
d7040cdb SE |
10009 | else |
10010 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10011 | fi | |
10012 | library_names_spec= | |
10013 | libname_spec='lib$name' | |
10014 | soname_spec= | |
10015 | shrext_cmds=".so" | |
10016 | postinstall_cmds= | |
10017 | postuninstall_cmds= | |
10018 | finish_cmds= | |
10019 | finish_eval= | |
10020 | shlibpath_var= | |
10021 | shlibpath_overrides_runpath=unknown | |
10022 | version_type=none | |
10023 | dynamic_linker="$host_os ld.so" | |
10024 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10025 | need_lib_prefix=unknown | |
10026 | hardcode_into_libs=no | |
10027 | ||
10028 | # when you set need_version to no, make sure it does not cause -set_version | |
10029 | # flags to be left without arguments | |
10030 | need_version=unknown | |
10031 | ||
10032 | case $host_os in | |
10033 | aix3*) | |
10034 | version_type=linux | |
10035 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10036 | shlibpath_var=LIBPATH | |
10037 | ||
10038 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10039 | soname_spec='${libname}${release}${shared_ext}$major' | |
10040 | ;; | |
10041 | ||
e81819a5 | 10042 | aix[4-9]*) |
d7040cdb SE |
10043 | version_type=linux |
10044 | need_lib_prefix=no | |
10045 | need_version=no | |
10046 | hardcode_into_libs=yes | |
10047 | if test "$host_cpu" = ia64; then | |
10048 | # AIX 5 supports IA64 | |
10049 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10050 | shlibpath_var=LD_LIBRARY_PATH | |
10051 | else | |
10052 | # With GCC up to 2.95.x, collect2 would create an import file | |
10053 | # for dependence libraries. The import file would start with | |
10054 | # the line `#! .'. This would cause the generated library to | |
10055 | # depend on `.', always an invalid library. This was fixed in | |
10056 | # development snapshots of GCC prior to 3.0. | |
10057 | case $host_os in | |
10058 | aix4 | aix4.[01] | aix4.[01].*) | |
10059 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10060 | echo ' yes ' | |
10061 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10062 | : | |
10063 | else | |
10064 | can_build_shared=no | |
10065 | fi | |
10066 | ;; | |
10067 | esac | |
10068 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10069 | # soname into executable. Probably we can add versioning support to | |
10070 | # collect2, so additional links can be useful in future. | |
10071 | if test "$aix_use_runtimelinking" = yes; then | |
10072 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10073 | # instead of lib<name>.a to let people know that these are not | |
10074 | # typical AIX shared libraries. | |
10075 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10076 | else | |
10077 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10078 | # and later when we are not doing run time linking. | |
10079 | library_names_spec='${libname}${release}.a $libname.a' | |
10080 | soname_spec='${libname}${release}${shared_ext}$major' | |
10081 | fi | |
10082 | shlibpath_var=LIBPATH | |
10083 | fi | |
10084 | ;; | |
10085 | ||
10086 | amigaos*) | |
718a6fd8 SE |
10087 | case $host_cpu in |
10088 | powerpc) | |
10089 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10090 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10091 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10092 | ;; | |
10093 | m68k) | |
d7040cdb SE |
10094 | library_names_spec='$libname.ixlibrary $libname.a' |
10095 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
3725885a | 10096 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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 |
10097 | ;; |
10098 | esac | |
d7040cdb SE |
10099 | ;; |
10100 | ||
10101 | beos*) | |
10102 | library_names_spec='${libname}${shared_ext}' | |
10103 | dynamic_linker="$host_os ld.so" | |
10104 | shlibpath_var=LIBRARY_PATH | |
10105 | ;; | |
10106 | ||
10107 | bsdi[45]*) | |
10108 | version_type=linux | |
10109 | need_version=no | |
10110 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10111 | soname_spec='${libname}${release}${shared_ext}$major' | |
10112 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10113 | shlibpath_var=LD_LIBRARY_PATH | |
10114 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10115 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10116 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10117 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10118 | # libtool to hard-code these into programs | |
10119 | ;; | |
10120 | ||
718a6fd8 | 10121 | cygwin* | mingw* | pw32* | cegcc*) |
d7040cdb SE |
10122 | version_type=windows |
10123 | shrext_cmds=".dll" | |
10124 | need_version=no | |
10125 | need_lib_prefix=no | |
10126 | ||
718a6fd8 SE |
10127 | case $GCC,$host_os in |
10128 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
d7040cdb SE |
10129 | library_names_spec='$libname.dll.a' |
10130 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10131 | postinstall_cmds='base_file=`basename \${file}`~ | |
10132 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10133 | dldir=$destdir/`dirname \$dlpath`~ | |
10134 | test -d \$dldir || mkdir -p \$dldir~ | |
10135 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10136 | chmod a+x \$dldir/$dlname~ | |
10137 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10138 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10139 | fi' | |
10140 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10141 | dlpath=$dir/\$dldll~ | |
10142 | $RM \$dlpath' | |
10143 | shlibpath_overrides_runpath=yes | |
10144 | ||
10145 | case $host_os in | |
10146 | cygwin*) | |
10147 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10148 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
3725885a RW |
10149 | |
10150 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
d7040cdb | 10151 | ;; |
718a6fd8 | 10152 | mingw* | cegcc*) |
d7040cdb SE |
10153 | # MinGW DLLs use traditional 'lib' prefix |
10154 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
d7040cdb SE |
10155 | ;; |
10156 | pw32*) | |
10157 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10158 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10159 | ;; | |
10160 | esac | |
10161 | ;; | |
10162 | ||
10163 | *) | |
10164 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10165 | ;; | |
10166 | esac | |
10167 | dynamic_linker='Win32 ld.exe' | |
10168 | # FIXME: first we should search . and the directory the executable is in | |
10169 | shlibpath_var=PATH | |
10170 | ;; | |
10171 | ||
10172 | darwin* | rhapsody*) | |
10173 | dynamic_linker="$host_os dyld" | |
10174 | version_type=darwin | |
10175 | need_lib_prefix=no | |
10176 | need_version=no | |
10177 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10178 | soname_spec='${libname}${release}${major}$shared_ext' | |
10179 | shlibpath_overrides_runpath=yes | |
10180 | shlibpath_var=DYLD_LIBRARY_PATH | |
10181 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10182 | ||
10183 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10184 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10185 | ;; | |
10186 | ||
10187 | dgux*) | |
10188 | version_type=linux | |
10189 | need_lib_prefix=no | |
10190 | need_version=no | |
10191 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10192 | soname_spec='${libname}${release}${shared_ext}$major' | |
10193 | shlibpath_var=LD_LIBRARY_PATH | |
10194 | ;; | |
10195 | ||
d7040cdb SE |
10196 | freebsd* | dragonfly*) |
10197 | # DragonFly does not have aout. When/if they implement a new | |
10198 | # versioning mechanism, adjust this. | |
10199 | if test -x /usr/bin/objformat; then | |
10200 | objformat=`/usr/bin/objformat` | |
10201 | else | |
10202 | case $host_os in | |
6d2920c8 | 10203 | freebsd[23].*) objformat=aout ;; |
d7040cdb SE |
10204 | *) objformat=elf ;; |
10205 | esac | |
10206 | fi | |
10207 | version_type=freebsd-$objformat | |
10208 | case $version_type in | |
10209 | freebsd-elf*) | |
10210 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10211 | need_version=no | |
10212 | need_lib_prefix=no | |
10213 | ;; | |
10214 | freebsd-*) | |
10215 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10216 | need_version=yes | |
10217 | ;; | |
10218 | esac | |
10219 | shlibpath_var=LD_LIBRARY_PATH | |
10220 | case $host_os in | |
6d2920c8 | 10221 | freebsd2.*) |
d7040cdb SE |
10222 | shlibpath_overrides_runpath=yes |
10223 | ;; | |
10224 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10225 | shlibpath_overrides_runpath=yes | |
10226 | hardcode_into_libs=yes | |
10227 | ;; | |
10228 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10229 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10230 | shlibpath_overrides_runpath=no | |
10231 | hardcode_into_libs=yes | |
10232 | ;; | |
10233 | *) # from 4.6 on, and DragonFly | |
10234 | shlibpath_overrides_runpath=yes | |
10235 | hardcode_into_libs=yes | |
10236 | ;; | |
10237 | esac | |
10238 | ;; | |
10239 | ||
3725885a RW |
10240 | haiku*) |
10241 | version_type=linux | |
10242 | need_lib_prefix=no | |
10243 | need_version=no | |
10244 | dynamic_linker="$host_os runtime_loader" | |
10245 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10246 | soname_spec='${libname}${release}${shared_ext}$major' | |
10247 | shlibpath_var=LIBRARY_PATH | |
10248 | shlibpath_overrides_runpath=yes | |
10249 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
10250 | hardcode_into_libs=yes | |
10251 | ;; | |
10252 | ||
d7040cdb SE |
10253 | hpux9* | hpux10* | hpux11*) |
10254 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10255 | # link against other versions. | |
10256 | version_type=sunos | |
10257 | need_lib_prefix=no | |
10258 | need_version=no | |
10259 | case $host_cpu in | |
10260 | ia64*) | |
10261 | shrext_cmds='.so' | |
10262 | hardcode_into_libs=yes | |
10263 | dynamic_linker="$host_os dld.so" | |
10264 | shlibpath_var=LD_LIBRARY_PATH | |
10265 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10266 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10267 | soname_spec='${libname}${release}${shared_ext}$major' | |
10268 | if test "X$HPUX_IA64_MODE" = X32; then | |
10269 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10270 | else | |
10271 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10272 | fi | |
10273 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10274 | ;; | |
10275 | hppa*64*) | |
10276 | shrext_cmds='.sl' | |
10277 | hardcode_into_libs=yes | |
10278 | dynamic_linker="$host_os dld.sl" | |
10279 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10280 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10281 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10282 | soname_spec='${libname}${release}${shared_ext}$major' | |
10283 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10284 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10285 | ;; | |
10286 | *) | |
10287 | shrext_cmds='.sl' | |
10288 | dynamic_linker="$host_os dld.sl" | |
10289 | shlibpath_var=SHLIB_PATH | |
10290 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10291 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10292 | soname_spec='${libname}${release}${shared_ext}$major' | |
10293 | ;; | |
10294 | esac | |
3725885a | 10295 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... |
d7040cdb | 10296 | postinstall_cmds='chmod 555 $lib' |
3725885a RW |
10297 | # or fails outright, so override atomically: |
10298 | install_override_mode=555 | |
d7040cdb SE |
10299 | ;; |
10300 | ||
10301 | interix[3-9]*) | |
10302 | version_type=linux | |
10303 | need_lib_prefix=no | |
10304 | need_version=no | |
10305 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10306 | soname_spec='${libname}${release}${shared_ext}$major' | |
10307 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10308 | shlibpath_var=LD_LIBRARY_PATH | |
10309 | shlibpath_overrides_runpath=no | |
10310 | hardcode_into_libs=yes | |
10311 | ;; | |
10312 | ||
10313 | irix5* | irix6* | nonstopux*) | |
10314 | case $host_os in | |
10315 | nonstopux*) version_type=nonstopux ;; | |
10316 | *) | |
10317 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10318 | version_type=linux | |
10319 | else | |
10320 | version_type=irix | |
10321 | fi ;; | |
10322 | esac | |
10323 | need_lib_prefix=no | |
10324 | need_version=no | |
10325 | soname_spec='${libname}${release}${shared_ext}$major' | |
10326 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10327 | case $host_os in | |
10328 | irix5* | nonstopux*) | |
10329 | libsuff= shlibsuff= | |
10330 | ;; | |
10331 | *) | |
10332 | case $LD in # libtool.m4 will add one of these switches to LD | |
10333 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10334 | libsuff= shlibsuff= libmagic=32-bit;; | |
10335 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10336 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10337 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10338 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10339 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10340 | esac | |
10341 | ;; | |
10342 | esac | |
10343 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10344 | shlibpath_overrides_runpath=no | |
10345 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10346 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10347 | hardcode_into_libs=yes | |
10348 | ;; | |
10349 | ||
10350 | # No shared lib support for Linux oldld, aout, or coff. | |
10351 | linux*oldld* | linux*aout* | linux*coff*) | |
10352 | dynamic_linker=no | |
10353 | ;; | |
10354 | ||
10355 | # This must be Linux ELF. | |
f4782128 | 10356 | linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) |
d7040cdb SE |
10357 | version_type=linux |
10358 | need_lib_prefix=no | |
10359 | need_version=no | |
10360 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10361 | soname_spec='${libname}${release}${shared_ext}$major' | |
10362 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10363 | shlibpath_var=LD_LIBRARY_PATH | |
10364 | shlibpath_overrides_runpath=no | |
39144654 | 10365 | |
d7040cdb | 10366 | # Some binutils ld are patched to set DT_RUNPATH |
d0ac1c44 | 10367 | if ${lt_cv_shlibpath_overrides_runpath+:} false; then : |
81ecdfbb | 10368 | $as_echo_n "(cached) " >&6 |
39144654 RW |
10369 | else |
10370 | lt_cv_shlibpath_overrides_runpath=no | |
10371 | save_LDFLAGS=$LDFLAGS | |
10372 | save_libdir=$libdir | |
10373 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10374 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
81ecdfbb | 10375 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
10376 | /* end confdefs.h. */ |
10377 | ||
10378 | int | |
10379 | main () | |
10380 | { | |
10381 | ||
10382 | ; | |
10383 | return 0; | |
10384 | } | |
10385 | _ACEOF | |
81ecdfbb RW |
10386 | if ac_fn_c_try_link "$LINENO"; then : |
10387 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
39144654 | 10388 | lt_cv_shlibpath_overrides_runpath=yes |
d7040cdb | 10389 | fi |
d7040cdb | 10390 | fi |
81ecdfbb RW |
10391 | rm -f core conftest.err conftest.$ac_objext \ |
10392 | conftest$ac_exeext conftest.$ac_ext | |
39144654 RW |
10393 | LDFLAGS=$save_LDFLAGS |
10394 | libdir=$save_libdir | |
10395 | ||
10396 | fi | |
10397 | ||
10398 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
d7040cdb SE |
10399 | |
10400 | # This implies no fast_install, which is unacceptable. | |
10401 | # Some rework will be needed to allow for fast_install | |
10402 | # before this can be enabled. | |
10403 | hardcode_into_libs=yes | |
10404 | ||
10405 | # Append ld.so.conf contents to the search path | |
10406 | if test -f /etc/ld.so.conf; then | |
3725885a | 10407 | 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;s/"//g;/^$/d' | tr '\n' ' '` |
d7040cdb SE |
10408 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
10409 | fi | |
10410 | ||
10411 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10412 | # powerpc, because MkLinux only supported shared libraries with the | |
10413 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10414 | # most powerpc-linux boxes support dynamic linking these days and | |
10415 | # people can always --disable-shared, the test was removed, and we | |
10416 | # assume the GNU/Linux dynamic linker is in use. | |
10417 | dynamic_linker='GNU/Linux ld.so' | |
10418 | ;; | |
10419 | ||
10420 | netbsd*) | |
10421 | version_type=sunos | |
10422 | need_lib_prefix=no | |
10423 | need_version=no | |
10424 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10425 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10426 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10427 | dynamic_linker='NetBSD (a.out) ld.so' | |
10428 | else | |
10429 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10430 | soname_spec='${libname}${release}${shared_ext}$major' | |
10431 | dynamic_linker='NetBSD ld.elf_so' | |
10432 | fi | |
10433 | shlibpath_var=LD_LIBRARY_PATH | |
10434 | shlibpath_overrides_runpath=yes | |
10435 | hardcode_into_libs=yes | |
10436 | ;; | |
10437 | ||
10438 | newsos6) | |
10439 | version_type=linux | |
10440 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10441 | shlibpath_var=LD_LIBRARY_PATH | |
10442 | shlibpath_overrides_runpath=yes | |
10443 | ;; | |
10444 | ||
10445 | *nto* | *qnx*) | |
10446 | version_type=qnx | |
10447 | need_lib_prefix=no | |
10448 | need_version=no | |
10449 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10450 | soname_spec='${libname}${release}${shared_ext}$major' | |
10451 | shlibpath_var=LD_LIBRARY_PATH | |
10452 | shlibpath_overrides_runpath=no | |
10453 | hardcode_into_libs=yes | |
10454 | dynamic_linker='ldqnx.so' | |
10455 | ;; | |
10456 | ||
10457 | openbsd*) | |
10458 | version_type=sunos | |
10459 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10460 | need_lib_prefix=no | |
10461 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10462 | case $host_os in | |
10463 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10464 | *) need_version=no ;; | |
10465 | esac | |
10466 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10467 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10468 | shlibpath_var=LD_LIBRARY_PATH | |
10469 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10470 | case $host_os in | |
10471 | openbsd2.[89] | openbsd2.[89].*) | |
10472 | shlibpath_overrides_runpath=no | |
10473 | ;; | |
10474 | *) | |
10475 | shlibpath_overrides_runpath=yes | |
10476 | ;; | |
10477 | esac | |
10478 | else | |
10479 | shlibpath_overrides_runpath=yes | |
10480 | fi | |
10481 | ;; | |
10482 | ||
10483 | os2*) | |
10484 | libname_spec='$name' | |
10485 | shrext_cmds=".dll" | |
10486 | need_lib_prefix=no | |
10487 | library_names_spec='$libname${shared_ext} $libname.a' | |
10488 | dynamic_linker='OS/2 ld.exe' | |
10489 | shlibpath_var=LIBPATH | |
10490 | ;; | |
10491 | ||
10492 | osf3* | osf4* | osf5*) | |
10493 | version_type=osf | |
10494 | need_lib_prefix=no | |
10495 | need_version=no | |
10496 | soname_spec='${libname}${release}${shared_ext}$major' | |
10497 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10498 | shlibpath_var=LD_LIBRARY_PATH | |
10499 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10500 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10501 | ;; | |
10502 | ||
10503 | rdos*) | |
10504 | dynamic_linker=no | |
10505 | ;; | |
10506 | ||
10507 | solaris*) | |
10508 | version_type=linux | |
10509 | need_lib_prefix=no | |
10510 | need_version=no | |
10511 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10512 | soname_spec='${libname}${release}${shared_ext}$major' | |
10513 | shlibpath_var=LD_LIBRARY_PATH | |
10514 | shlibpath_overrides_runpath=yes | |
10515 | hardcode_into_libs=yes | |
10516 | # ldd complains unless libraries are executable | |
10517 | postinstall_cmds='chmod +x $lib' | |
10518 | ;; | |
10519 | ||
10520 | sunos4*) | |
10521 | version_type=sunos | |
10522 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10523 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10524 | shlibpath_var=LD_LIBRARY_PATH | |
10525 | shlibpath_overrides_runpath=yes | |
10526 | if test "$with_gnu_ld" = yes; then | |
10527 | need_lib_prefix=no | |
10528 | fi | |
10529 | need_version=yes | |
10530 | ;; | |
10531 | ||
10532 | sysv4 | sysv4.3*) | |
10533 | version_type=linux | |
10534 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10535 | soname_spec='${libname}${release}${shared_ext}$major' | |
10536 | shlibpath_var=LD_LIBRARY_PATH | |
10537 | case $host_vendor in | |
10538 | sni) | |
10539 | shlibpath_overrides_runpath=no | |
10540 | need_lib_prefix=no | |
10541 | runpath_var=LD_RUN_PATH | |
10542 | ;; | |
10543 | siemens) | |
10544 | need_lib_prefix=no | |
10545 | ;; | |
10546 | motorola) | |
10547 | need_lib_prefix=no | |
10548 | need_version=no | |
10549 | shlibpath_overrides_runpath=no | |
10550 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10551 | ;; | |
10552 | esac | |
10553 | ;; | |
10554 | ||
10555 | sysv4*MP*) | |
10556 | if test -d /usr/nec ;then | |
10557 | version_type=linux | |
10558 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10559 | soname_spec='$libname${shared_ext}.$major' | |
10560 | shlibpath_var=LD_LIBRARY_PATH | |
10561 | fi | |
10562 | ;; | |
10563 | ||
10564 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10565 | version_type=freebsd-elf | |
10566 | need_lib_prefix=no | |
10567 | need_version=no | |
10568 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10569 | soname_spec='${libname}${release}${shared_ext}$major' | |
10570 | shlibpath_var=LD_LIBRARY_PATH | |
10571 | shlibpath_overrides_runpath=yes | |
10572 | hardcode_into_libs=yes | |
10573 | if test "$with_gnu_ld" = yes; then | |
10574 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10575 | else | |
10576 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10577 | case $host_os in | |
10578 | sco3.2v5*) | |
10579 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10580 | ;; | |
10581 | esac | |
10582 | fi | |
10583 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10584 | ;; | |
10585 | ||
10586 | tpf*) | |
10587 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10588 | version_type=linux | |
10589 | need_lib_prefix=no | |
10590 | need_version=no | |
718a6fd8 | 10591 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
d7040cdb SE |
10592 | shlibpath_var=LD_LIBRARY_PATH |
10593 | shlibpath_overrides_runpath=no | |
10594 | hardcode_into_libs=yes | |
10595 | ;; | |
10596 | ||
10597 | uts4*) | |
10598 | version_type=linux | |
10599 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10600 | soname_spec='${libname}${release}${shared_ext}$major' | |
10601 | shlibpath_var=LD_LIBRARY_PATH | |
10602 | ;; | |
10603 | ||
10604 | *) | |
10605 | dynamic_linker=no | |
10606 | ;; | |
10607 | esac | |
81ecdfbb RW |
10608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 |
10609 | $as_echo "$dynamic_linker" >&6; } | |
d7040cdb SE |
10610 | test "$dynamic_linker" = no && can_build_shared=no |
10611 | ||
10612 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10613 | if test "$GCC" = yes; then | |
10614 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10615 | fi | |
10616 | ||
718a6fd8 SE |
10617 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
10618 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10619 | fi | |
10620 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10621 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10622 | fi | |
10623 | ||
d7040cdb SE |
10624 | |
10625 | ||
10626 | ||
10627 | ||
10628 | ||
10629 | ||
10630 | ||
10631 | ||
10632 | ||
10633 | ||
10634 | ||
10635 | ||
10636 | ||
10637 | ||
10638 | ||
10639 | ||
10640 | ||
10641 | ||
10642 | ||
10643 | ||
10644 | ||
10645 | ||
10646 | ||
10647 | ||
10648 | ||
10649 | ||
10650 | ||
10651 | ||
10652 | ||
10653 | ||
10654 | ||
10655 | ||
10656 | ||
10657 | ||
10658 | ||
10659 | ||
10660 | ||
10661 | ||
10662 | ||
10663 | ||
10664 | ||
10665 | ||
10666 | ||
10667 | ||
10668 | ||
10669 | ||
10670 | ||
10671 | ||
10672 | ||
10673 | ||
10674 | ||
10675 | ||
10676 | ||
10677 | ||
10678 | ||
10679 | ||
10680 | ||
10681 | ||
10682 | ||
10683 | ||
10684 | ||
10685 | ||
10686 | ||
10687 | ||
10688 | ||
10689 | ||
10690 | ||
10691 | ||
10692 | ||
10693 | ||
10694 | ||
10695 | ||
10696 | ||
10697 | ||
10698 | ||
10699 | ||
10700 | ||
10701 | ||
10702 | ||
10703 | ||
3725885a RW |
10704 | |
10705 | ||
10706 | ||
10707 | ||
10708 | ||
d7040cdb SE |
10709 | |
10710 | ||
10711 | ||
10712 | ||
10713 | ||
10714 | ||
81ecdfbb RW |
10715 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 |
10716 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
d7040cdb SE |
10717 | hardcode_action= |
10718 | if test -n "$hardcode_libdir_flag_spec" || | |
10719 | test -n "$runpath_var" || | |
10720 | test "X$hardcode_automatic" = "Xyes" ; then | |
10721 | ||
10722 | # We can hardcode non-existent directories. | |
10723 | if test "$hardcode_direct" != no && | |
10724 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10725 | # have to relink, otherwise we might link with an installed library | |
10726 | # when we should be linking with a yet-to-be-installed one | |
10727 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10728 | test "$hardcode_minus_L" != no; then | |
10729 | # Linking always hardcodes the temporary library directory. | |
10730 | hardcode_action=relink | |
10731 | else | |
10732 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10733 | hardcode_action=immediate | |
10734 | fi | |
10735 | else | |
10736 | # We cannot hardcode anything, or else we can only hardcode existing | |
10737 | # directories. | |
10738 | hardcode_action=unsupported | |
10739 | fi | |
81ecdfbb RW |
10740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 |
10741 | $as_echo "$hardcode_action" >&6; } | |
d7040cdb SE |
10742 | |
10743 | if test "$hardcode_action" = relink || | |
10744 | test "$inherit_rpath" = yes; then | |
10745 | # Fast installation is not supported | |
10746 | enable_fast_install=no | |
10747 | elif test "$shlibpath_overrides_runpath" = yes || | |
10748 | test "$enable_shared" = no; then | |
10749 | # Fast installation is not necessary | |
10750 | enable_fast_install=needless | |
10751 | fi | |
10752 | ||
10753 | ||
10754 | ||
10755 | ||
10756 | ||
10757 | ||
10758 | if test "x$enable_dlopen" != xyes; then | |
10759 | enable_dlopen=unknown | |
10760 | enable_dlopen_self=unknown | |
10761 | enable_dlopen_self_static=unknown | |
10762 | else | |
10763 | lt_cv_dlopen=no | |
10764 | lt_cv_dlopen_libs= | |
10765 | ||
10766 | case $host_os in | |
10767 | beos*) | |
10768 | lt_cv_dlopen="load_add_on" | |
10769 | lt_cv_dlopen_libs= | |
10770 | lt_cv_dlopen_self=yes | |
10771 | ;; | |
10772 | ||
718a6fd8 | 10773 | mingw* | pw32* | cegcc*) |
d7040cdb SE |
10774 | lt_cv_dlopen="LoadLibrary" |
10775 | lt_cv_dlopen_libs= | |
10776 | ;; | |
10777 | ||
10778 | cygwin*) | |
10779 | lt_cv_dlopen="dlopen" | |
10780 | lt_cv_dlopen_libs= | |
10781 | ;; | |
10782 | ||
10783 | darwin*) | |
10784 | # if libdl is installed we need to link against it | |
81ecdfbb RW |
10785 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10786 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
d0ac1c44 | 10787 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
81ecdfbb | 10788 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
10789 | else |
10790 | ac_check_lib_save_LIBS=$LIBS | |
10791 | LIBS="-ldl $LIBS" | |
81ecdfbb | 10792 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
10793 | /* end confdefs.h. */ |
10794 | ||
81ecdfbb RW |
10795 | /* Override any GCC internal prototype to avoid an error. |
10796 | Use char because int might match the return type of a GCC | |
10797 | builtin and then its argument prototype would still apply. */ | |
d7040cdb SE |
10798 | #ifdef __cplusplus |
10799 | extern "C" | |
10800 | #endif | |
d7040cdb SE |
10801 | char dlopen (); |
10802 | int | |
10803 | main () | |
10804 | { | |
81ecdfbb | 10805 | return dlopen (); |
d7040cdb SE |
10806 | ; |
10807 | return 0; | |
10808 | } | |
10809 | _ACEOF | |
81ecdfbb | 10810 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb SE |
10811 | ac_cv_lib_dl_dlopen=yes |
10812 | else | |
81ecdfbb | 10813 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 10814 | fi |
81ecdfbb RW |
10815 | rm -f core conftest.err conftest.$ac_objext \ |
10816 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb SE |
10817 | LIBS=$ac_check_lib_save_LIBS |
10818 | fi | |
81ecdfbb RW |
10819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10820 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
d0ac1c44 | 10821 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
d7040cdb SE |
10822 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10823 | else | |
10824 | ||
10825 | lt_cv_dlopen="dyld" | |
10826 | lt_cv_dlopen_libs= | |
10827 | lt_cv_dlopen_self=yes | |
10828 | ||
10829 | fi | |
10830 | ||
10831 | ;; | |
10832 | ||
10833 | *) | |
81ecdfbb | 10834 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" |
d0ac1c44 | 10835 | if test "x$ac_cv_func_shl_load" = xyes; then : |
d7040cdb SE |
10836 | lt_cv_dlopen="shl_load" |
10837 | else | |
81ecdfbb RW |
10838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 |
10839 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
d0ac1c44 | 10840 | if ${ac_cv_lib_dld_shl_load+:} false; then : |
81ecdfbb | 10841 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
10842 | else |
10843 | ac_check_lib_save_LIBS=$LIBS | |
10844 | LIBS="-ldld $LIBS" | |
81ecdfbb | 10845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
10846 | /* end confdefs.h. */ |
10847 | ||
81ecdfbb RW |
10848 | /* Override any GCC internal prototype to avoid an error. |
10849 | Use char because int might match the return type of a GCC | |
10850 | builtin and then its argument prototype would still apply. */ | |
d7040cdb SE |
10851 | #ifdef __cplusplus |
10852 | extern "C" | |
10853 | #endif | |
d7040cdb SE |
10854 | char shl_load (); |
10855 | int | |
10856 | main () | |
10857 | { | |
81ecdfbb | 10858 | return shl_load (); |
d7040cdb SE |
10859 | ; |
10860 | return 0; | |
10861 | } | |
10862 | _ACEOF | |
81ecdfbb | 10863 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb SE |
10864 | ac_cv_lib_dld_shl_load=yes |
10865 | else | |
81ecdfbb | 10866 | ac_cv_lib_dld_shl_load=no |
d7040cdb | 10867 | fi |
81ecdfbb RW |
10868 | rm -f core conftest.err conftest.$ac_objext \ |
10869 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb SE |
10870 | LIBS=$ac_check_lib_save_LIBS |
10871 | fi | |
81ecdfbb RW |
10872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 |
10873 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
d0ac1c44 | 10874 | if test "x$ac_cv_lib_dld_shl_load" = xyes; then : |
718a6fd8 | 10875 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
d7040cdb | 10876 | else |
81ecdfbb | 10877 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" |
d0ac1c44 | 10878 | if test "x$ac_cv_func_dlopen" = xyes; then : |
d7040cdb SE |
10879 | lt_cv_dlopen="dlopen" |
10880 | else | |
81ecdfbb RW |
10881 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
10882 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
d0ac1c44 | 10883 | if ${ac_cv_lib_dl_dlopen+:} false; then : |
81ecdfbb | 10884 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
10885 | else |
10886 | ac_check_lib_save_LIBS=$LIBS | |
10887 | LIBS="-ldl $LIBS" | |
81ecdfbb | 10888 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
10889 | /* end confdefs.h. */ |
10890 | ||
81ecdfbb RW |
10891 | /* Override any GCC internal prototype to avoid an error. |
10892 | Use char because int might match the return type of a GCC | |
10893 | builtin and then its argument prototype would still apply. */ | |
d7040cdb SE |
10894 | #ifdef __cplusplus |
10895 | extern "C" | |
10896 | #endif | |
d7040cdb SE |
10897 | char dlopen (); |
10898 | int | |
10899 | main () | |
10900 | { | |
81ecdfbb | 10901 | return dlopen (); |
d7040cdb SE |
10902 | ; |
10903 | return 0; | |
10904 | } | |
10905 | _ACEOF | |
81ecdfbb | 10906 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb SE |
10907 | ac_cv_lib_dl_dlopen=yes |
10908 | else | |
81ecdfbb | 10909 | ac_cv_lib_dl_dlopen=no |
d7040cdb | 10910 | fi |
81ecdfbb RW |
10911 | rm -f core conftest.err conftest.$ac_objext \ |
10912 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb SE |
10913 | LIBS=$ac_check_lib_save_LIBS |
10914 | fi | |
81ecdfbb RW |
10915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
10916 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
d0ac1c44 | 10917 | if test "x$ac_cv_lib_dl_dlopen" = xyes; then : |
d7040cdb SE |
10918 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10919 | else | |
81ecdfbb RW |
10920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 |
10921 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
d0ac1c44 | 10922 | if ${ac_cv_lib_svld_dlopen+:} false; then : |
81ecdfbb | 10923 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
10924 | else |
10925 | ac_check_lib_save_LIBS=$LIBS | |
10926 | LIBS="-lsvld $LIBS" | |
81ecdfbb | 10927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
10928 | /* end confdefs.h. */ |
10929 | ||
81ecdfbb RW |
10930 | /* Override any GCC internal prototype to avoid an error. |
10931 | Use char because int might match the return type of a GCC | |
10932 | builtin and then its argument prototype would still apply. */ | |
d7040cdb SE |
10933 | #ifdef __cplusplus |
10934 | extern "C" | |
10935 | #endif | |
d7040cdb SE |
10936 | char dlopen (); |
10937 | int | |
10938 | main () | |
10939 | { | |
81ecdfbb | 10940 | return dlopen (); |
d7040cdb SE |
10941 | ; |
10942 | return 0; | |
10943 | } | |
10944 | _ACEOF | |
81ecdfbb | 10945 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb SE |
10946 | ac_cv_lib_svld_dlopen=yes |
10947 | else | |
81ecdfbb | 10948 | ac_cv_lib_svld_dlopen=no |
d7040cdb | 10949 | fi |
81ecdfbb RW |
10950 | rm -f core conftest.err conftest.$ac_objext \ |
10951 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb SE |
10952 | LIBS=$ac_check_lib_save_LIBS |
10953 | fi | |
81ecdfbb RW |
10954 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 |
10955 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
d0ac1c44 | 10956 | if test "x$ac_cv_lib_svld_dlopen" = xyes; then : |
d7040cdb SE |
10957 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
10958 | else | |
81ecdfbb RW |
10959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 |
10960 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
d0ac1c44 | 10961 | if ${ac_cv_lib_dld_dld_link+:} false; then : |
81ecdfbb | 10962 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
10963 | else |
10964 | ac_check_lib_save_LIBS=$LIBS | |
10965 | LIBS="-ldld $LIBS" | |
81ecdfbb | 10966 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
d7040cdb SE |
10967 | /* end confdefs.h. */ |
10968 | ||
81ecdfbb RW |
10969 | /* Override any GCC internal prototype to avoid an error. |
10970 | Use char because int might match the return type of a GCC | |
10971 | builtin and then its argument prototype would still apply. */ | |
d7040cdb SE |
10972 | #ifdef __cplusplus |
10973 | extern "C" | |
10974 | #endif | |
d7040cdb SE |
10975 | char dld_link (); |
10976 | int | |
10977 | main () | |
10978 | { | |
81ecdfbb | 10979 | return dld_link (); |
d7040cdb SE |
10980 | ; |
10981 | return 0; | |
10982 | } | |
10983 | _ACEOF | |
81ecdfbb | 10984 | if ac_fn_c_try_link "$LINENO"; then : |
d7040cdb SE |
10985 | ac_cv_lib_dld_dld_link=yes |
10986 | else | |
81ecdfbb | 10987 | ac_cv_lib_dld_dld_link=no |
d7040cdb | 10988 | fi |
81ecdfbb RW |
10989 | rm -f core conftest.err conftest.$ac_objext \ |
10990 | conftest$ac_exeext conftest.$ac_ext | |
d7040cdb SE |
10991 | LIBS=$ac_check_lib_save_LIBS |
10992 | fi | |
81ecdfbb RW |
10993 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 |
10994 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
d0ac1c44 | 10995 | if test "x$ac_cv_lib_dld_dld_link" = xyes; then : |
718a6fd8 | 10996 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
d7040cdb SE |
10997 | fi |
10998 | ||
10999 | ||
11000 | fi | |
11001 | ||
11002 | ||
11003 | fi | |
11004 | ||
11005 | ||
11006 | fi | |
11007 | ||
11008 | ||
11009 | fi | |
11010 | ||
11011 | ||
11012 | fi | |
11013 | ||
11014 | ;; | |
11015 | esac | |
11016 | ||
11017 | if test "x$lt_cv_dlopen" != xno; then | |
11018 | enable_dlopen=yes | |
20e95c23 | 11019 | else |
d7040cdb | 11020 | enable_dlopen=no |
252b5132 | 11021 | fi |
5464f5a1 | 11022 | |
d7040cdb SE |
11023 | case $lt_cv_dlopen in |
11024 | dlopen) | |
11025 | save_CPPFLAGS="$CPPFLAGS" | |
11026 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11027 | ||
11028 | save_LDFLAGS="$LDFLAGS" | |
11029 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11030 | ||
11031 | save_LIBS="$LIBS" | |
11032 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11033 | ||
81ecdfbb RW |
11034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 |
11035 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
d0ac1c44 | 11036 | if ${lt_cv_dlopen_self+:} false; then : |
81ecdfbb | 11037 | $as_echo_n "(cached) " >&6 |
20e95c23 | 11038 | else |
d7040cdb SE |
11039 | if test "$cross_compiling" = yes; then : |
11040 | lt_cv_dlopen_self=cross | |
11041 | else | |
11042 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11043 | lt_status=$lt_dlunknown | |
11044 | cat > conftest.$ac_ext <<_LT_EOF | |
83c79df8 | 11045 | #line 11045 "configure" |
d7040cdb SE |
11046 | #include "confdefs.h" |
11047 | ||
11048 | #if HAVE_DLFCN_H | |
11049 | #include <dlfcn.h> | |
11050 | #endif | |
11051 | ||
11052 | #include <stdio.h> | |
11053 | ||
11054 | #ifdef RTLD_GLOBAL | |
11055 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11056 | #else | |
11057 | # ifdef DL_GLOBAL | |
11058 | # define LT_DLGLOBAL DL_GLOBAL | |
11059 | # else | |
11060 | # define LT_DLGLOBAL 0 | |
11061 | # endif | |
11062 | #endif | |
11063 | ||
11064 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11065 | find out it does not work in some platform. */ | |
11066 | #ifndef LT_DLLAZY_OR_NOW | |
11067 | # ifdef RTLD_LAZY | |
11068 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11069 | # else | |
11070 | # ifdef DL_LAZY | |
11071 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11072 | # else | |
11073 | # ifdef RTLD_NOW | |
11074 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11075 | # else | |
11076 | # ifdef DL_NOW | |
11077 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11078 | # else | |
11079 | # define LT_DLLAZY_OR_NOW 0 | |
11080 | # endif | |
11081 | # endif | |
11082 | # endif | |
11083 | # endif | |
11084 | #endif | |
11085 | ||
3725885a RW |
11086 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11087 | correspondingly for the symbols needed. */ | |
11088 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11089 | void fnord () __attribute__((visibility("default"))); | |
11090 | #endif | |
11091 | ||
11092 | void fnord () { int i=42; } | |
d7040cdb SE |
11093 | int main () |
11094 | { | |
11095 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11096 | int status = $lt_dlunknown; | |
11097 | ||
11098 | if (self) | |
11099 | { | |
11100 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
3725885a RW |
11101 | else |
11102 | { | |
11103 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11104 | else puts (dlerror ()); | |
11105 | } | |
d7040cdb SE |
11106 | /* dlclose (self); */ |
11107 | } | |
11108 | else | |
11109 | puts (dlerror ()); | |
11110 | ||
718a6fd8 | 11111 | return status; |
d7040cdb SE |
11112 | } |
11113 | _LT_EOF | |
81ecdfbb | 11114 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
d7040cdb SE |
11115 | (eval $ac_link) 2>&5 |
11116 | ac_status=$? | |
81ecdfbb RW |
11117 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11118 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
d7040cdb SE |
11119 | (./conftest; exit; ) >&5 2>/dev/null |
11120 | lt_status=$? | |
11121 | case x$lt_status in | |
11122 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11123 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11124 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11125 | esac | |
11126 | else : | |
11127 | # compilation failed | |
11128 | lt_cv_dlopen_self=no | |
11129 | fi | |
252b5132 | 11130 | fi |
d7040cdb | 11131 | rm -fr conftest* |
20e95c23 | 11132 | |
d7040cdb SE |
11133 | |
11134 | fi | |
81ecdfbb RW |
11135 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 |
11136 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
d7040cdb SE |
11137 | |
11138 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11139 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
81ecdfbb RW |
11140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 |
11141 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
d0ac1c44 | 11142 | if ${lt_cv_dlopen_self_static+:} false; then : |
81ecdfbb | 11143 | $as_echo_n "(cached) " >&6 |
20e95c23 | 11144 | else |
d7040cdb SE |
11145 | if test "$cross_compiling" = yes; then : |
11146 | lt_cv_dlopen_self_static=cross | |
11147 | else | |
11148 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11149 | lt_status=$lt_dlunknown | |
11150 | cat > conftest.$ac_ext <<_LT_EOF | |
83c79df8 | 11151 | #line 11151 "configure" |
d7040cdb SE |
11152 | #include "confdefs.h" |
11153 | ||
11154 | #if HAVE_DLFCN_H | |
11155 | #include <dlfcn.h> | |
11156 | #endif | |
11157 | ||
11158 | #include <stdio.h> | |
11159 | ||
11160 | #ifdef RTLD_GLOBAL | |
11161 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11162 | #else | |
11163 | # ifdef DL_GLOBAL | |
11164 | # define LT_DLGLOBAL DL_GLOBAL | |
11165 | # else | |
11166 | # define LT_DLGLOBAL 0 | |
11167 | # endif | |
11168 | #endif | |
11169 | ||
11170 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11171 | find out it does not work in some platform. */ | |
11172 | #ifndef LT_DLLAZY_OR_NOW | |
11173 | # ifdef RTLD_LAZY | |
11174 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11175 | # else | |
11176 | # ifdef DL_LAZY | |
11177 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11178 | # else | |
11179 | # ifdef RTLD_NOW | |
11180 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11181 | # else | |
11182 | # ifdef DL_NOW | |
11183 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11184 | # else | |
11185 | # define LT_DLLAZY_OR_NOW 0 | |
11186 | # endif | |
11187 | # endif | |
11188 | # endif | |
11189 | # endif | |
11190 | #endif | |
11191 | ||
3725885a RW |
11192 | /* When -fvisbility=hidden is used, assume the code has been annotated |
11193 | correspondingly for the symbols needed. */ | |
11194 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11195 | void fnord () __attribute__((visibility("default"))); | |
11196 | #endif | |
11197 | ||
11198 | void fnord () { int i=42; } | |
d7040cdb SE |
11199 | int main () |
11200 | { | |
11201 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11202 | int status = $lt_dlunknown; | |
11203 | ||
11204 | if (self) | |
11205 | { | |
11206 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
3725885a RW |
11207 | else |
11208 | { | |
11209 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11210 | else puts (dlerror ()); | |
11211 | } | |
d7040cdb SE |
11212 | /* dlclose (self); */ |
11213 | } | |
11214 | else | |
11215 | puts (dlerror ()); | |
11216 | ||
718a6fd8 | 11217 | return status; |
d7040cdb SE |
11218 | } |
11219 | _LT_EOF | |
81ecdfbb | 11220 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 |
d7040cdb SE |
11221 | (eval $ac_link) 2>&5 |
11222 | ac_status=$? | |
81ecdfbb RW |
11223 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
11224 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
d7040cdb SE |
11225 | (./conftest; exit; ) >&5 2>/dev/null |
11226 | lt_status=$? | |
11227 | case x$lt_status in | |
11228 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11229 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11230 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11231 | esac | |
11232 | else : | |
11233 | # compilation failed | |
11234 | lt_cv_dlopen_self_static=no | |
11235 | fi | |
11236 | fi | |
11237 | rm -fr conftest* | |
11238 | ||
11239 | ||
11240 | fi | |
81ecdfbb RW |
11241 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 |
11242 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
d7040cdb SE |
11243 | fi |
11244 | ||
11245 | CPPFLAGS="$save_CPPFLAGS" | |
11246 | LDFLAGS="$save_LDFLAGS" | |
11247 | LIBS="$save_LIBS" | |
11248 | ;; | |
11249 | esac | |
11250 | ||
11251 | case $lt_cv_dlopen_self in | |
11252 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11253 | *) enable_dlopen_self=unknown ;; | |
11254 | esac | |
11255 | ||
11256 | case $lt_cv_dlopen_self_static in | |
11257 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11258 | *) enable_dlopen_self_static=unknown ;; | |
11259 | esac | |
11260 | fi | |
11261 | ||
11262 | ||
11263 | ||
11264 | ||
11265 | ||
11266 | ||
11267 | ||
11268 | ||
11269 | ||
11270 | ||
11271 | ||
11272 | ||
11273 | ||
11274 | ||
11275 | ||
11276 | ||
11277 | ||
11278 | striplib= | |
11279 | old_striplib= | |
81ecdfbb RW |
11280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 |
11281 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
d7040cdb SE |
11282 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then |
11283 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11284 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
81ecdfbb RW |
11285 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11286 | $as_echo "yes" >&6; } | |
d7040cdb SE |
11287 | else |
11288 | # FIXME - insert some real tests, host_os isn't really good enough | |
11289 | case $host_os in | |
11290 | darwin*) | |
11291 | if test -n "$STRIP" ; then | |
11292 | striplib="$STRIP -x" | |
11293 | old_striplib="$STRIP -S" | |
81ecdfbb RW |
11294 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
11295 | $as_echo "yes" >&6; } | |
d7040cdb | 11296 | else |
81ecdfbb RW |
11297 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11298 | $as_echo "no" >&6; } | |
d7040cdb | 11299 | fi |
20e95c23 DJ |
11300 | ;; |
11301 | *) | |
81ecdfbb RW |
11302 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
11303 | $as_echo "no" >&6; } | |
d7040cdb SE |
11304 | ;; |
11305 | esac | |
11306 | fi | |
11307 | ||
11308 | ||
11309 | ||
11310 | ||
11311 | ||
11312 | ||
11313 | ||
11314 | ||
11315 | ||
11316 | ||
11317 | ||
11318 | ||
11319 | # Report which library types will actually be built | |
81ecdfbb RW |
11320 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 |
11321 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11322 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11323 | $as_echo "$can_build_shared" >&6; } | |
d7040cdb | 11324 | |
81ecdfbb RW |
11325 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 |
11326 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
d7040cdb SE |
11327 | test "$can_build_shared" = "no" && enable_shared=no |
11328 | ||
11329 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11330 | # are all built from PIC. | |
11331 | case $host_os in | |
11332 | aix3*) | |
11333 | test "$enable_shared" = yes && enable_static=no | |
11334 | if test -n "$RANLIB"; then | |
11335 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11336 | postinstall_cmds='$RANLIB $lib' | |
11337 | fi | |
11338 | ;; | |
11339 | ||
e81819a5 | 11340 | aix[4-9]*) |
d7040cdb SE |
11341 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
11342 | test "$enable_shared" = yes && enable_static=no | |
11343 | fi | |
20e95c23 | 11344 | ;; |
d7040cdb | 11345 | esac |
81ecdfbb RW |
11346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 |
11347 | $as_echo "$enable_shared" >&6; } | |
d7040cdb | 11348 | |
81ecdfbb RW |
11349 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 |
11350 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
d7040cdb SE |
11351 | # Make sure either enable_shared or enable_static is yes. |
11352 | test "$enable_shared" = yes || enable_static=yes | |
81ecdfbb RW |
11353 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 |
11354 | $as_echo "$enable_static" >&6; } | |
d7040cdb SE |
11355 | |
11356 | ||
11357 | ||
11358 | ||
11359 | fi | |
11360 | ac_ext=c | |
11361 | ac_cpp='$CPP $CPPFLAGS' | |
11362 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11363 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11364 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11365 | ||
11366 | CC="$lt_save_CC" | |
11367 | ||
11368 | ||
11369 | ||
11370 | ||
11371 | ||
11372 | ||
11373 | ||
11374 | ||
11375 | ||
11376 | ||
11377 | ||
11378 | ||
11379 | ||
81ecdfbb | 11380 | ac_config_commands="$ac_config_commands libtool" |
ce3c775b NC |
11381 | |
11382 | ||
11383 | ||
11384 | ||
11385 | # Only expand once: | |
11386 | ||
11387 | ||
11388 | ||
da2f07f1 JK |
11389 | # AC_PLUGINS setting $plugins is called by ACX_LARGEFILE. |
11390 | ||
3388710e JM |
11391 | # The tests for host and target for $enable_largefile require |
11392 | # canonical names. | |
11393 | ||
11394 | ||
11395 | ||
da2f07f1 JK |
11396 | # As the $enable_largefile decision depends on --enable-plugins we must set it |
11397 | # even in directories otherwise not depending on the $plugins option. | |
11398 | ||
5691d22d | 11399 | |
b879806f AM |
11400 | maybe_plugins=no |
11401 | for ac_header in dlfcn.h | |
11402 | do : | |
11403 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
11404 | " | |
d0ac1c44 | 11405 | if test "x$ac_cv_header_dlfcn_h" = xyes; then : |
b879806f AM |
11406 | cat >>confdefs.h <<_ACEOF |
11407 | #define HAVE_DLFCN_H 1 | |
11408 | _ACEOF | |
11409 | maybe_plugins=yes | |
11410 | fi | |
11411 | ||
11412 | done | |
11413 | ||
11414 | for ac_header in windows.h | |
11415 | do : | |
11416 | ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default | |
11417 | " | |
d0ac1c44 | 11418 | if test "x$ac_cv_header_windows_h" = xyes; then : |
b879806f AM |
11419 | cat >>confdefs.h <<_ACEOF |
11420 | #define HAVE_WINDOWS_H 1 | |
11421 | _ACEOF | |
11422 | maybe_plugins=yes | |
11423 | fi | |
11424 | ||
11425 | done | |
11426 | ||
11427 | ||
11428 | # Check whether --enable-plugins was given. | |
81ecdfbb RW |
11429 | if test "${enable_plugins+set}" = set; then : |
11430 | enableval=$enable_plugins; case "${enableval}" in | |
b879806f AM |
11431 | no) plugins=no ;; |
11432 | *) plugins=yes | |
11433 | if test "$maybe_plugins" != "yes" ; then | |
d0ac1c44 | 11434 | as_fn_error $? "Building with plugin support requires a host that supports dlopen." "$LINENO" 5 |
b879806f AM |
11435 | fi ;; |
11436 | esac | |
ce3c775b | 11437 | else |
b879806f AM |
11438 | plugins=$maybe_plugins |
11439 | ||
81ecdfbb | 11440 | fi |
ce3c775b | 11441 | |
2974be62 | 11442 | if test "$plugins" = "yes"; then |
3cba8b6c L |
11443 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlsym" >&5 |
11444 | $as_echo_n "checking for library containing dlsym... " >&6; } | |
d0ac1c44 | 11445 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
11446 | $as_echo_n "(cached) " >&6 |
11447 | else | |
11448 | ac_func_search_save_LIBS=$LIBS | |
11449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11450 | /* end confdefs.h. */ | |
11451 | ||
11452 | /* Override any GCC internal prototype to avoid an error. | |
11453 | Use char because int might match the return type of a GCC | |
11454 | builtin and then its argument prototype would still apply. */ | |
11455 | #ifdef __cplusplus | |
11456 | extern "C" | |
11457 | #endif | |
3cba8b6c | 11458 | char dlsym (); |
2974be62 AM |
11459 | int |
11460 | main () | |
11461 | { | |
3cba8b6c | 11462 | return dlsym (); |
2974be62 AM |
11463 | ; |
11464 | return 0; | |
11465 | } | |
11466 | _ACEOF | |
11467 | for ac_lib in '' dl; do | |
11468 | if test -z "$ac_lib"; then | |
11469 | ac_res="none required" | |
11470 | else | |
11471 | ac_res=-l$ac_lib | |
11472 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
11473 | fi | |
11474 | if ac_fn_c_try_link "$LINENO"; then : | |
3cba8b6c | 11475 | ac_cv_search_dlsym=$ac_res |
2974be62 AM |
11476 | fi |
11477 | rm -f core conftest.err conftest.$ac_objext \ | |
11478 | conftest$ac_exeext | |
d0ac1c44 | 11479 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
11480 | break |
11481 | fi | |
11482 | done | |
d0ac1c44 | 11483 | if ${ac_cv_search_dlsym+:} false; then : |
2974be62 AM |
11484 | |
11485 | else | |
3cba8b6c | 11486 | ac_cv_search_dlsym=no |
2974be62 AM |
11487 | fi |
11488 | rm conftest.$ac_ext | |
11489 | LIBS=$ac_func_search_save_LIBS | |
11490 | fi | |
3cba8b6c L |
11491 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlsym" >&5 |
11492 | $as_echo "$ac_cv_search_dlsym" >&6; } | |
11493 | ac_res=$ac_cv_search_dlsym | |
2974be62 AM |
11494 | if test "$ac_res" != no; then : |
11495 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" | |
11496 | ||
11497 | fi | |
11498 | ||
11499 | fi | |
ce3c775b | 11500 | |
5691d22d | 11501 | |
da2f07f1 | 11502 | case "${host}" in |
c8693053 RO |
11503 | sparc-*-solaris*|i?86-*-solaris*) |
11504 | # On native 32-bit Solaris/SPARC and x86, large-file and procfs support | |
11505 | # were mutually exclusive until Solaris 11.3. Without procfs support, | |
11506 | # the bfd/ elf module cannot provide certain routines such as | |
11507 | # elfcore_write_prpsinfo or elfcore_write_prstatus. So unless the user | |
11508 | # explicitly requested large-file support through the | |
11509 | # --enable-largefile switch, disable large-file support in favor of | |
11510 | # procfs support. | |
11511 | # | |
11512 | # Check if <sys/procfs.h> is incompatible with large-file support. | |
11513 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11514 | /* end confdefs.h. */ | |
11515 | #define _FILE_OFFSET_BITS 64 | |
11516 | #define _STRUCTURED_PROC 1 | |
11517 | #include <sys/procfs.h> | |
11518 | int | |
11519 | main () | |
11520 | { | |
11521 | ||
11522 | ; | |
11523 | return 0; | |
11524 | } | |
11525 | _ACEOF | |
11526 | if ac_fn_c_try_compile "$LINENO"; then : | |
11527 | acx_cv_procfs_lfs=yes | |
11528 | else | |
11529 | acx_cv_procfs_lfs=no | |
11530 | fi | |
11531 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11532 | # | |
11533 | # Forcefully disable large-file support only if necessary, gdb is in | |
11534 | # tree and enabled. | |
11535 | if test "${target}" = "${host}" -a "$acx_cv_procfs_lfs" = no \ | |
11536 | -a -d $srcdir/../gdb -a "$enable_gdb" != no; then | |
11537 | : ${enable_largefile="no"} | |
11538 | if test "$plugins" = yes; then | |
11539 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | |
11540 | plugin support disabled; require large-file support which is incompatible with GDB." >&5 | |
11541 | $as_echo "$as_me: WARNING: | |
11542 | plugin support disabled; require large-file support which is incompatible with GDB." >&2;} | |
11543 | plugins=no | |
11544 | fi | |
11545 | fi | |
11546 | # | |
11547 | # Explicitly undef _FILE_OFFSET_BITS if enable_largefile=no for the | |
11548 | # benefit of g++ 9+ which predefines it on Solaris. | |
11549 | if test "$enable_largefile" = no; then | |
11550 | LARGEFILE_CPPFLAGS="-U_FILE_OFFSET_BITS" | |
11551 | ||
11552 | fi | |
ce3c775b NC |
11553 | ;; |
11554 | esac | |
11555 | ||
81ecdfbb RW |
11556 | # Check whether --enable-largefile was given. |
11557 | if test "${enable_largefile+set}" = set; then : | |
11558 | enableval=$enable_largefile; | |
11559 | fi | |
ce3c775b | 11560 | |
ce3c775b NC |
11561 | if test "$enable_largefile" != no; then |
11562 | ||
81ecdfbb RW |
11563 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 |
11564 | $as_echo_n "checking for special C compiler options needed for large files... " >&6; } | |
d0ac1c44 | 11565 | if ${ac_cv_sys_largefile_CC+:} false; then : |
81ecdfbb | 11566 | $as_echo_n "(cached) " >&6 |
ce3c775b NC |
11567 | else |
11568 | ac_cv_sys_largefile_CC=no | |
11569 | if test "$GCC" != yes; then | |
11570 | ac_save_CC=$CC | |
11571 | while :; do | |
81ecdfbb RW |
11572 | # IRIX 6.2 and later do not support large files by default, |
11573 | # so use the C compiler's -n32 option if that helps. | |
11574 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ce3c775b NC |
11575 | /* end confdefs.h. */ |
11576 | #include <sys/types.h> | |
11577 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11578 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11579 | since some C++ compilers masquerading as C compilers | |
11580 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 11581 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
ce3c775b NC |
11582 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
11583 | && LARGE_OFF_T % 2147483647 == 1) | |
11584 | ? 1 : -1]; | |
11585 | int | |
11586 | main () | |
11587 | { | |
11588 | ||
11589 | ; | |
11590 | return 0; | |
11591 | } | |
11592 | _ACEOF | |
81ecdfbb | 11593 | if ac_fn_c_try_compile "$LINENO"; then : |
ce3c775b | 11594 | break |
ce3c775b | 11595 | fi |
81ecdfbb RW |
11596 | rm -f core conftest.err conftest.$ac_objext |
11597 | CC="$CC -n32" | |
11598 | if ac_fn_c_try_compile "$LINENO"; then : | |
ce3c775b | 11599 | ac_cv_sys_largefile_CC=' -n32'; break |
ce3c775b | 11600 | fi |
81ecdfbb | 11601 | rm -f core conftest.err conftest.$ac_objext |
ce3c775b NC |
11602 | break |
11603 | done | |
11604 | CC=$ac_save_CC | |
11605 | rm -f conftest.$ac_ext | |
11606 | fi | |
11607 | fi | |
81ecdfbb RW |
11608 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 |
11609 | $as_echo "$ac_cv_sys_largefile_CC" >&6; } | |
ce3c775b NC |
11610 | if test "$ac_cv_sys_largefile_CC" != no; then |
11611 | CC=$CC$ac_cv_sys_largefile_CC | |
11612 | fi | |
11613 | ||
81ecdfbb RW |
11614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
11615 | $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } | |
d0ac1c44 | 11616 | if ${ac_cv_sys_file_offset_bits+:} false; then : |
81ecdfbb | 11617 | $as_echo_n "(cached) " >&6 |
ce3c775b NC |
11618 | else |
11619 | while :; do | |
81ecdfbb | 11620 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce3c775b NC |
11621 | /* end confdefs.h. */ |
11622 | #include <sys/types.h> | |
11623 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11624 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11625 | since some C++ compilers masquerading as C compilers | |
11626 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 11627 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
ce3c775b NC |
11628 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
11629 | && LARGE_OFF_T % 2147483647 == 1) | |
11630 | ? 1 : -1]; | |
11631 | int | |
11632 | main () | |
11633 | { | |
11634 | ||
11635 | ; | |
11636 | return 0; | |
11637 | } | |
11638 | _ACEOF | |
81ecdfbb RW |
11639 | if ac_fn_c_try_compile "$LINENO"; then : |
11640 | ac_cv_sys_file_offset_bits=no; break | |
ce3c775b | 11641 | fi |
81ecdfbb RW |
11642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11643 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ce3c775b NC |
11644 | /* end confdefs.h. */ |
11645 | #define _FILE_OFFSET_BITS 64 | |
11646 | #include <sys/types.h> | |
11647 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11648 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11649 | since some C++ compilers masquerading as C compilers | |
11650 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 11651 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
ce3c775b NC |
11652 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
11653 | && LARGE_OFF_T % 2147483647 == 1) | |
11654 | ? 1 : -1]; | |
11655 | int | |
11656 | main () | |
11657 | { | |
11658 | ||
11659 | ; | |
11660 | return 0; | |
11661 | } | |
11662 | _ACEOF | |
81ecdfbb | 11663 | if ac_fn_c_try_compile "$LINENO"; then : |
ce3c775b | 11664 | ac_cv_sys_file_offset_bits=64; break |
ce3c775b | 11665 | fi |
81ecdfbb RW |
11666 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11667 | ac_cv_sys_file_offset_bits=unknown | |
ce3c775b NC |
11668 | break |
11669 | done | |
11670 | fi | |
81ecdfbb RW |
11671 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 |
11672 | $as_echo "$ac_cv_sys_file_offset_bits" >&6; } | |
11673 | case $ac_cv_sys_file_offset_bits in #( | |
11674 | no | unknown) ;; | |
11675 | *) | |
ce3c775b NC |
11676 | cat >>confdefs.h <<_ACEOF |
11677 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits | |
11678 | _ACEOF | |
81ecdfbb RW |
11679 | ;; |
11680 | esac | |
11681 | rm -rf conftest* | |
11682 | if test $ac_cv_sys_file_offset_bits = unknown; then | |
11683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 | |
11684 | $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } | |
d0ac1c44 | 11685 | if ${ac_cv_sys_large_files+:} false; then : |
81ecdfbb | 11686 | $as_echo_n "(cached) " >&6 |
ce3c775b NC |
11687 | else |
11688 | while :; do | |
81ecdfbb | 11689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
ce3c775b NC |
11690 | /* end confdefs.h. */ |
11691 | #include <sys/types.h> | |
11692 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11693 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11694 | since some C++ compilers masquerading as C compilers | |
11695 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 11696 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
ce3c775b NC |
11697 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
11698 | && LARGE_OFF_T % 2147483647 == 1) | |
11699 | ? 1 : -1]; | |
11700 | int | |
11701 | main () | |
11702 | { | |
11703 | ||
11704 | ; | |
11705 | return 0; | |
11706 | } | |
11707 | _ACEOF | |
81ecdfbb RW |
11708 | if ac_fn_c_try_compile "$LINENO"; then : |
11709 | ac_cv_sys_large_files=no; break | |
ce3c775b | 11710 | fi |
81ecdfbb RW |
11711 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11712 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
ce3c775b NC |
11713 | /* end confdefs.h. */ |
11714 | #define _LARGE_FILES 1 | |
11715 | #include <sys/types.h> | |
11716 | /* Check that off_t can represent 2**63 - 1 correctly. | |
11717 | We can't simply define LARGE_OFF_T to be 9223372036854775807, | |
11718 | since some C++ compilers masquerading as C compilers | |
11719 | incorrectly reject 9223372036854775807. */ | |
e0b2a78c | 11720 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
ce3c775b NC |
11721 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
11722 | && LARGE_OFF_T % 2147483647 == 1) | |
11723 | ? 1 : -1]; | |
11724 | int | |
11725 | main () | |
11726 | { | |
d7040cdb | 11727 | |
ce3c775b NC |
11728 | ; |
11729 | return 0; | |
11730 | } | |
11731 | _ACEOF | |
81ecdfbb | 11732 | if ac_fn_c_try_compile "$LINENO"; then : |
ce3c775b | 11733 | ac_cv_sys_large_files=1; break |
ce3c775b | 11734 | fi |
81ecdfbb RW |
11735 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
11736 | ac_cv_sys_large_files=unknown | |
ce3c775b NC |
11737 | break |
11738 | done | |
11739 | fi | |
81ecdfbb RW |
11740 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 |
11741 | $as_echo "$ac_cv_sys_large_files" >&6; } | |
11742 | case $ac_cv_sys_large_files in #( | |
11743 | no | unknown) ;; | |
11744 | *) | |
ce3c775b NC |
11745 | cat >>confdefs.h <<_ACEOF |
11746 | #define _LARGE_FILES $ac_cv_sys_large_files | |
11747 | _ACEOF | |
81ecdfbb RW |
11748 | ;; |
11749 | esac | |
11750 | rm -rf conftest* | |
11751 | fi | |
d0ac1c44 SM |
11752 | |
11753 | ||
ce3c775b | 11754 | fi |
d7040cdb SE |
11755 | |
11756 | ||
da2f07f1 | 11757 | |
1e927850 | 11758 | case "${target}" in |
c40e6650 | 11759 | hppa*64*-*-* | vax-*-netbsdelf*) ;; |
1e927850 AM |
11760 | *-*-*aout* | i[3-7]86-*-bsd* | i[3-7]86-*-msdos* | ns32k-*-* | \ |
11761 | pdp11-*-* | vax-*-*bsd*) | |
11762 | if test "$plugins" = "yes"; then | |
11763 | if test "${enable_plugins+set}" = set; then | |
11764 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enabling plugins for AOUT is experimental" >&5 | |
11765 | $as_echo "$as_me: WARNING: Enabling plugins for AOUT is experimental" >&2;} | |
11766 | else | |
11767 | plugins=no | |
11768 | fi | |
11769 | fi ;; | |
c40e6650 | 11770 | hppa*-*-hpux* | *-*-*vms* | \ |
1e927850 AM |
11771 | powerpc*-*-aix* | powerpc-*-beos* | powerpc-*-macos* | rs6000-*-*) |
11772 | if test "$plugins" = "yes"; then | |
11773 | if test "${enable_plugins+set}" = set; then | |
11774 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Enabling plugins may result in ar creating non-standard archives for ${target}" >&5 | |
11775 | $as_echo "$as_me: WARNING: Enabling plugins may result in ar creating non-standard archives for ${target}" >&2;} | |
11776 | else | |
11777 | plugins=no | |
11778 | fi | |
11779 | fi ;; | |
11780 | esac | |
11781 | ||
da2f07f1 JK |
11782 | if test "$plugins" = "yes"; then |
11783 | PLUGINS_TRUE= | |
11784 | PLUGINS_FALSE='#' | |
11785 | else | |
11786 | PLUGINS_TRUE='#' | |
11787 | PLUGINS_FALSE= | |
11788 | fi | |
11789 | ||
11790 | ||
81ecdfbb RW |
11791 | # Check whether --enable-64-bit-bfd was given. |
11792 | if test "${enable_64_bit_bfd+set}" = set; then : | |
11793 | enableval=$enable_64_bit_bfd; case "${enableval}" in | |
d7040cdb SE |
11794 | yes) want64=true ;; |
11795 | no) want64=false ;; | |
d0ac1c44 | 11796 | *) as_fn_error $? "bad value ${enableval} for 64-bit-bfd option" "$LINENO" 5 ;; |
d7040cdb SE |
11797 | esac |
11798 | else | |
11799 | want64=false | |
81ecdfbb RW |
11800 | fi |
11801 | ||
11802 | # Check whether --enable-targets was given. | |
11803 | if test "${enable_targets+set}" = set; then : | |
11804 | enableval=$enable_targets; case "${enableval}" in | |
d0ac1c44 | 11805 | yes | "") as_fn_error $? "enable-targets option must specify target names or 'all'" "$LINENO" 5 |
d7040cdb SE |
11806 | ;; |
11807 | no) enable_targets= ;; | |
11808 | *) enable_targets=$enableval ;; | |
11809 | esac | |
81ecdfbb | 11810 | fi |
504b7d20 | 11811 | |
e6cc316a L |
11812 | # Check whether --enable-64_bit_archive was given. |
11813 | if test "${enable_64_bit_archive+set}" = set; then : | |
11814 | enableval=$enable_64_bit_archive; case "${enableval}" in | |
11815 | yes) want_64_bit_archive=true ;; | |
11816 | no) want_64_bit_archive=false ;; | |
d0ac1c44 | 11817 | *) as_fn_error $? "bad value ${enableval} for 64-bit-archive option" "$LINENO" 5 ;; |
e6cc316a L |
11818 | esac |
11819 | else | |
11820 | want_64_bit_archive=unset | |
11821 | fi | |
11822 | ||
81ecdfbb RW |
11823 | |
11824 | # Check whether --with-mmap was given. | |
11825 | if test "${with_mmap+set}" = set; then : | |
11826 | withval=$with_mmap; case "${withval}" in | |
d7040cdb SE |
11827 | yes) want_mmap=true ;; |
11828 | no) want_mmap=false ;; | |
d0ac1c44 | 11829 | *) as_fn_error $? "bad value ${withval} for BFD with-mmap option" "$LINENO" 5 ;; |
20e95c23 | 11830 | esac |
252b5132 | 11831 | else |
d7040cdb | 11832 | want_mmap=false |
81ecdfbb RW |
11833 | fi |
11834 | ||
11835 | # Check whether --enable-secureplt was given. | |
11836 | if test "${enable_secureplt+set}" = set; then : | |
11837 | enableval=$enable_secureplt; case "${enableval}" in | |
d7040cdb SE |
11838 | yes) use_secureplt=true ;; |
11839 | no) use_secureplt=false ;; | |
d0ac1c44 | 11840 | *) as_fn_error $? "bad value ${enableval} for secureplt option" "$LINENO" 5 ;; |
d7040cdb | 11841 | esac |
252b5132 | 11842 | else |
cc75d373 | 11843 | use_secureplt=true |
81ecdfbb RW |
11844 | fi |
11845 | if test $use_secureplt = true; then | |
d7040cdb | 11846 | |
81ecdfbb | 11847 | $as_echo "#define USE_SECUREPLT 1" >>confdefs.h |
5464f5a1 | 11848 | |
252b5132 | 11849 | fi |
20e95c23 | 11850 | |
f6aec96d L |
11851 | # Decide if -z separate-code should be enabled in ELF linker by default. |
11852 | ac_default_ld_z_separate_code=unset | |
11853 | # Check whether --enable-separate-code was given. | |
11854 | if test "${enable_separate_code+set}" = set; then : | |
11855 | enableval=$enable_separate_code; case "${enableval}" in | |
11856 | yes) ac_default_ld_z_separate_code=1 ;; | |
11857 | no) ac_default_ld_z_separate_code=0 ;; | |
11858 | esac | |
11859 | fi | |
11860 | ||
11861 | # Enable -z separate-code by default for Linux/x86. | |
11862 | case "${target}" in | |
872899f1 | 11863 | i[3-7]86-*-linux-* | x86_64-*-linux-*) |
f6aec96d L |
11864 | if test ${ac_default_ld_z_separate_code} = unset; then |
11865 | ac_default_ld_z_separate_code=1 | |
11866 | fi | |
11867 | ;; | |
11868 | esac | |
11869 | if test "${ac_default_ld_z_separate_code}" = unset; then | |
11870 | ac_default_ld_z_separate_code=0 | |
11871 | fi | |
11872 | ||
11873 | cat >>confdefs.h <<_ACEOF | |
11874 | #define DEFAULT_LD_Z_SEPARATE_CODE $ac_default_ld_z_separate_code | |
11875 | _ACEOF | |
11876 | ||
11877 | ||
ef72a554 KT |
11878 | # Check whether --enable-leading-mingw64-underscores was given. |
11879 | if test "${enable_leading_mingw64_underscores+set}" = set; then : | |
11880 | enableval=$enable_leading_mingw64_underscores; | |
11881 | fi | |
11882 | ||
11883 | if test x"$enable_leading_mingw64_underscores" = xyes ; then : | |
11884 | ||
11885 | $as_echo "#define USE_MINGW64_LEADING_UNDERSCORES 1" >>confdefs.h | |
11886 | ||
11887 | fi | |
11888 | ||
0d4a1476 AS |
11889 | DEBUGDIR=${libdir}/debug |
11890 | ||
81ecdfbb RW |
11891 | # Check whether --with-separate-debug-dir was given. |
11892 | if test "${with_separate_debug_dir+set}" = set; then : | |
11893 | withval=$with_separate_debug_dir; DEBUGDIR="${withval}" | |
11894 | fi | |
11895 | ||
0d4a1476 AS |
11896 | |
11897 | ||
504b7d20 | 11898 | |
d7040cdb | 11899 | |
81ecdfbb RW |
11900 | # Check whether --with-pkgversion was given. |
11901 | if test "${with_pkgversion+set}" = set; then : | |
11902 | withval=$with_pkgversion; case "$withval" in | |
d0ac1c44 | 11903 | yes) as_fn_error $? "package version not specified" "$LINENO" 5 ;; |
d7040cdb SE |
11904 | no) PKGVERSION= ;; |
11905 | *) PKGVERSION="($withval) " ;; | |
11906 | esac | |
252b5132 | 11907 | else |
d7040cdb | 11908 | PKGVERSION="(GNU Binutils) " |
252b5132 | 11909 | |
81ecdfbb RW |
11910 | fi |
11911 | ||
20e95c23 DJ |
11912 | |
11913 | ||
5464f5a1 | 11914 | |
20e95c23 | 11915 | |
81ecdfbb RW |
11916 | # Check whether --with-bugurl was given. |
11917 | if test "${with_bugurl+set}" = set; then : | |
11918 | withval=$with_bugurl; case "$withval" in | |
d0ac1c44 | 11919 | yes) as_fn_error $? "bug URL not specified" "$LINENO" 5 ;; |
d7040cdb SE |
11920 | no) BUGURL= |
11921 | ;; | |
11922 | *) BUGURL="$withval" | |
11923 | ;; | |
11924 | esac | |
252b5132 | 11925 | else |
d7040cdb SE |
11926 | BUGURL="http://www.sourceware.org/bugzilla/" |
11927 | ||
81ecdfbb RW |
11928 | fi |
11929 | ||
d7040cdb SE |
11930 | case ${BUGURL} in |
11931 | "") | |
11932 | REPORT_BUGS_TO= | |
11933 | REPORT_BUGS_TEXI= | |
20e95c23 DJ |
11934 | ;; |
11935 | *) | |
d7040cdb SE |
11936 | REPORT_BUGS_TO="<$BUGURL>" |
11937 | REPORT_BUGS_TEXI=@uref{`echo "$BUGURL" | sed 's/@/@@/g'`} | |
20e95c23 | 11938 | ;; |
d7040cdb SE |
11939 | esac; |
11940 | ||
11941 | ||
11942 | ||
11943 | ||
11944 | ||
270c9937 JB |
11945 | # Set the 'development' global. |
11946 | . $srcdir/../bfd/development.sh | |
11947 | ||
c5da1932 VZ |
11948 | # Set acp_cpp_for_build variable |
11949 | ac_cpp_for_build="$CC_FOR_BUILD -E $CPPFLAGS_FOR_BUILD" | |
11950 | ||
9780e045 | 11951 | # Default set of GCC warnings to enable. |
d1a98e0c | 11952 | GCC_WARN_CFLAGS="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
c5da1932 | 11953 | GCC_WARN_CFLAGS_FOR_BUILD="-W -Wall -Wstrict-prototypes -Wmissing-prototypes" |
9780e045 NC |
11954 | |
11955 | # Add -Wshadow if the compiler is a sufficiently recent version of GCC. | |
d1a98e0c AM |
11956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
11957 | /* end confdefs.h. */ | |
11958 | __GNUC__ | |
11959 | _ACEOF | |
11960 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3107326d | 11961 | $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : |
d1a98e0c AM |
11962 | |
11963 | else | |
11964 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wshadow" | |
11965 | fi | |
11966 | rm -f conftest* | |
11967 | ||
d7040cdb | 11968 | |
9780e045 NC |
11969 | # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. |
11970 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11971 | /* end confdefs.h. */ | |
11972 | __GNUC__ | |
11973 | _ACEOF | |
11974 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3107326d | 11975 | $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : |
9780e045 NC |
11976 | |
11977 | else | |
11978 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wstack-usage=262144" | |
11979 | fi | |
11980 | rm -f conftest* | |
11981 | ||
11982 | ||
6757cf57 TS |
11983 | # Set WARN_WRITE_STRINGS if the compiler supports -Wwrite-strings. |
11984 | WARN_WRITE_STRINGS="" | |
11985 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11986 | /* end confdefs.h. */ | |
11987 | __GNUC__ | |
11988 | _ACEOF | |
11989 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3107326d | 11990 | $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : |
6757cf57 TS |
11991 | |
11992 | else | |
11993 | WARN_WRITE_STRINGS="-Wwrite-strings" | |
11994 | fi | |
11995 | rm -f conftest* | |
11996 | ||
9780e045 | 11997 | |
96fe4562 | 11998 | # Verify CC_FOR_BUILD to be compatible with warning flags |
c5da1932 VZ |
11999 | |
12000 | # Add -Wshadow if the compiler is a sufficiently recent version of GCC. | |
12001 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12002 | /* end confdefs.h. */ | |
12003 | __GNUC__ | |
12004 | _ACEOF | |
12005 | if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | | |
3107326d | 12006 | $EGREP "(^[0-3]$|^__GNUC__$)" >/dev/null 2>&1; then : |
c5da1932 VZ |
12007 | |
12008 | else | |
12009 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wshadow" | |
12010 | fi | |
12011 | rm -f conftest* | |
12012 | ||
12013 | ||
12014 | # Add -Wstack-usage if the compiler is a sufficiently recent version of GCC. | |
12015 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12016 | /* end confdefs.h. */ | |
12017 | __GNUC__ | |
12018 | _ACEOF | |
12019 | if (eval "$ac_cpp_for_build conftest.$ac_ext") 2>&5 | | |
3107326d | 12020 | $EGREP "(^[0-4]$|^__GNUC__$)" >/dev/null 2>&1; then : |
c5da1932 VZ |
12021 | |
12022 | else | |
12023 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wstack-usage=262144" | |
12024 | fi | |
12025 | rm -f conftest* | |
12026 | ||
12027 | ||
81ecdfbb RW |
12028 | # Check whether --enable-werror was given. |
12029 | if test "${enable_werror+set}" = set; then : | |
12030 | enableval=$enable_werror; case "${enableval}" in | |
d7040cdb SE |
12031 | yes | y) ERROR_ON_WARNING="yes" ;; |
12032 | no | n) ERROR_ON_WARNING="no" ;; | |
d0ac1c44 | 12033 | *) as_fn_error $? "bad value ${enableval} for --enable-werror" "$LINENO" 5 ;; |
d7040cdb | 12034 | esac |
81ecdfbb RW |
12035 | fi |
12036 | ||
d7040cdb | 12037 | |
d1a98e0c | 12038 | # Disable -Wformat by default when using gcc on mingw |
bb8541b9 L |
12039 | case "${host}" in |
12040 | *-*-mingw32*) | |
12041 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" ; then | |
12042 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Wno-format" | |
c5da1932 | 12043 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Wno-format" |
bb8541b9 L |
12044 | fi |
12045 | ;; | |
12046 | *) ;; | |
12047 | esac | |
12048 | ||
270c9937 JB |
12049 | # Enable -Werror by default when using gcc. Turn it off for releases. |
12050 | if test "${GCC}" = yes -a -z "${ERROR_ON_WARNING}" -a "$development" = true ; then | |
d7040cdb SE |
12051 | ERROR_ON_WARNING=yes |
12052 | fi | |
12053 | ||
12054 | NO_WERROR= | |
12055 | if test "${ERROR_ON_WARNING}" = yes ; then | |
9780e045 | 12056 | GCC_WARN_CFLAGS="$GCC_WARN_CFLAGS -Werror" |
c5da1932 | 12057 | GCC_WARN_CFLAGS_FOR_BUILD="$GCC_WARN_CFLAGS_FOR_BUILD -Werror" |
d7040cdb SE |
12058 | NO_WERROR="-Wno-error" |
12059 | fi | |
12060 | ||
12061 | if test "${GCC}" = yes ; then | |
12062 | WARN_CFLAGS="${GCC_WARN_CFLAGS}" | |
c5da1932 | 12063 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}" |
d7040cdb SE |
12064 | fi |
12065 | ||
81ecdfbb RW |
12066 | # Check whether --enable-build-warnings was given. |
12067 | if test "${enable_build_warnings+set}" = set; then : | |
12068 | enableval=$enable_build_warnings; case "${enableval}" in | |
c5da1932 VZ |
12069 | yes) WARN_CFLAGS="${GCC_WARN_CFLAGS}" |
12070 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD}";; | |
d7040cdb SE |
12071 | no) if test "${GCC}" = yes ; then |
12072 | WARN_CFLAGS="-w" | |
c5da1932 | 12073 | WARN_CFLAGS_FOR_BUILD="-w" |
d7040cdb SE |
12074 | fi;; |
12075 | ,*) t=`echo "${enableval}" | sed -e "s/,/ /g"` | |
c5da1932 VZ |
12076 | WARN_CFLAGS="${GCC_WARN_CFLAGS} ${t}" |
12077 | WARN_CFLAGS_FOR_BUILD="${GCC_WARN_CFLAGS_FOR_BUILD} ${t}";; | |
d7040cdb | 12078 | *,) t=`echo "${enableval}" | sed -e "s/,/ /g"` |
c5da1932 VZ |
12079 | WARN_CFLAGS="${t} ${GCC_WARN_CFLAGS}" |
12080 | WARN_CFLAGS_FOR_BUILD="${t} ${GCC_WARN_CFLAGS_FOR_BUILD}";; | |
12081 | *) WARN_CFLAGS=`echo "${enableval}" | sed -e "s/,/ /g"` | |
12082 | WARN_CFLAGS_FOR_BUILD=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
20e95c23 | 12083 | esac |
81ecdfbb RW |
12084 | fi |
12085 | ||
d7040cdb SE |
12086 | |
12087 | if test x"$silent" != x"yes" && test x"$WARN_CFLAGS" != x""; then | |
12088 | echo "Setting warning flags = $WARN_CFLAGS" 6>&1 | |
20e95c23 | 12089 | fi |
d7040cdb SE |
12090 | |
12091 | ||
12092 | ||
12093 | ||
12094 | ||
6757cf57 | 12095 | |
c5da1932 | 12096 | |
81ecdfbb | 12097 | ac_config_headers="$ac_config_headers config.h:config.in" |
d7040cdb SE |
12098 | |
12099 | ||
df7b86aa NC |
12100 | # PR 14072 |
12101 | ||
12102 | ||
d7040cdb | 12103 | if test -z "$target" ; then |
d0ac1c44 | 12104 | as_fn_error $? "Unrecognized target system type; please check config.sub." "$LINENO" 5 |
20e95c23 DJ |
12105 | fi |
12106 | ||
81ecdfbb RW |
12107 | |
12108 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
12109 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
12110 | # Check whether --enable-maintainer-mode was given. | |
12111 | if test "${enable_maintainer_mode+set}" = set; then : | |
12112 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
d7040cdb SE |
12113 | else |
12114 | USE_MAINTAINER_MODE=no | |
81ecdfbb | 12115 | fi |
20e95c23 | 12116 | |
81ecdfbb RW |
12117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 |
12118 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
12119 | if test $USE_MAINTAINER_MODE = yes; then | |
d7040cdb SE |
12120 | MAINTAINER_MODE_TRUE= |
12121 | MAINTAINER_MODE_FALSE='#' | |
12122 | else | |
12123 | MAINTAINER_MODE_TRUE='#' | |
12124 | MAINTAINER_MODE_FALSE= | |
6be7c12c | 12125 | fi |
5464f5a1 | 12126 | |
d7040cdb SE |
12127 | MAINT=$MAINTAINER_MODE_TRUE |
12128 | ||
12129 | ||
81ecdfbb | 12130 | if false; then |
d7040cdb SE |
12131 | GENINSRC_NEVER_TRUE= |
12132 | GENINSRC_NEVER_FALSE='#' | |
20e95c23 | 12133 | else |
d7040cdb SE |
12134 | GENINSRC_NEVER_TRUE='#' |
12135 | GENINSRC_NEVER_FALSE= | |
5464f5a1 | 12136 | fi |
5464f5a1 | 12137 | |
d7040cdb SE |
12138 | case ${build_alias} in |
12139 | "") build_noncanonical=${build} ;; | |
12140 | *) build_noncanonical=${build_alias} ;; | |
20e95c23 | 12141 | esac |
d7040cdb SE |
12142 | |
12143 | case ${host_alias} in | |
12144 | "") host_noncanonical=${build_noncanonical} ;; | |
12145 | *) host_noncanonical=${host_alias} ;; | |
12146 | esac | |
12147 | ||
12148 | case ${target_alias} in | |
12149 | "") target_noncanonical=${host_noncanonical} ;; | |
12150 | *) target_noncanonical=${target_alias} ;; | |
12151 | esac | |
12152 | ||
81ecdfbb RW |
12153 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to install libbfd" >&5 |
12154 | $as_echo_n "checking whether to install libbfd... " >&6; } | |
12155 | # Check whether --enable-install-libbfd was given. | |
12156 | if test "${enable_install_libbfd+set}" = set; then : | |
12157 | enableval=$enable_install_libbfd; install_libbfd_p=$enableval | |
252b5132 | 12158 | else |
d7040cdb SE |
12159 | if test "${host}" = "${target}" || test "$enable_shared" = "yes"; then |
12160 | install_libbfd_p=yes | |
12161 | else | |
12162 | install_libbfd_p=no | |
12163 | fi | |
81ecdfbb | 12164 | fi |
d7040cdb | 12165 | |
81ecdfbb RW |
12166 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $install_libbfd_p" >&5 |
12167 | $as_echo "$install_libbfd_p" >&6; } | |
12168 | if test $install_libbfd_p = yes; then | |
d7040cdb SE |
12169 | INSTALL_LIBBFD_TRUE= |
12170 | INSTALL_LIBBFD_FALSE='#' | |
12171 | else | |
12172 | INSTALL_LIBBFD_TRUE='#' | |
12173 | INSTALL_LIBBFD_FALSE= | |
5464f5a1 | 12174 | fi |
5464f5a1 | 12175 | |
d7040cdb | 12176 | # Need _noncanonical variables for this. |
5464f5a1 | 12177 | |
5464f5a1 | 12178 | |
d7040cdb SE |
12179 | |
12180 | ||
12181 | # libbfd.a is a host library containing target dependent code | |
12182 | bfdlibdir='$(libdir)' | |
12183 | bfdincludedir='$(includedir)' | |
12184 | if test "${host}" != "${target}"; then | |
12185 | bfdlibdir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/lib' | |
12186 | bfdincludedir='$(exec_prefix)/$(host_noncanonical)/$(target_noncanonical)/include' | |
20e95c23 | 12187 | fi |
6be7c12c | 12188 | |
5464f5a1 | 12189 | |
5464f5a1 NN |
12190 | |
12191 | ||
5464f5a1 | 12192 | |
ac48eca1 | 12193 | |
573e8a1c RW |
12194 | |
12195 | ||
d7040cdb SE |
12196 | host64=false |
12197 | target64=false | |
12198 | bfd_default_target_size=32 | |
252b5132 | 12199 | |
d7040cdb | 12200 | # host stuff: |
20e95c23 | 12201 | |
293b4d4f | 12202 | ALL_LINGUAS="da es fi fr hr id ja ro ru rw sr sv tr uk vi zh_CN pt" |
d7040cdb SE |
12203 | # If we haven't got the data from the intl directory, |
12204 | # assume NLS is disabled. | |
12205 | USE_NLS=no | |
12206 | LIBINTL= | |
12207 | LIBINTL_DEP= | |
12208 | INCINTL= | |
12209 | XGETTEXT= | |
12210 | GMSGFMT= | |
12211 | POSUB= | |
12212 | ||
12213 | if test -f ../intl/config.intl; then | |
12214 | . ../intl/config.intl | |
252b5132 | 12215 | fi |
81ecdfbb RW |
12216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
12217 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
d7040cdb | 12218 | if test x"$USE_NLS" != xyes; then |
81ecdfbb RW |
12219 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12220 | $as_echo "no" >&6; } | |
d7040cdb | 12221 | else |
81ecdfbb RW |
12222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
12223 | $as_echo "yes" >&6; } | |
5464f5a1 | 12224 | |
81ecdfbb | 12225 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
252b5132 | 12226 | |
6be7c12c | 12227 | |
81ecdfbb RW |
12228 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catalogs to be installed" >&5 |
12229 | $as_echo_n "checking for catalogs to be installed... " >&6; } | |
d7040cdb SE |
12230 | # Look for .po and .gmo files in the source directory. |
12231 | CATALOGS= | |
12232 | XLINGUAS= | |
12233 | for cat in $srcdir/po/*.gmo $srcdir/po/*.po; do | |
12234 | # If there aren't any .gmo files the shell will give us the | |
12235 | # literal string "../path/to/srcdir/po/*.gmo" which has to be | |
12236 | # weeded out. | |
12237 | case "$cat" in *\**) | |
12238 | continue;; | |
12239 | esac | |
12240 | # The quadruple backslash is collapsed to a double backslash | |
12241 | # by the backticks, then collapsed again by the double quotes, | |
12242 | # leaving us with one backslash in the sed expression (right | |
12243 | # before the dot that mustn't act as a wildcard). | |
12244 | cat=`echo $cat | sed -e "s!$srcdir/po/!!" -e "s!\\\\.po!.gmo!"` | |
12245 | lang=`echo $cat | sed -e "s!\\\\.gmo!!"` | |
12246 | # The user is allowed to set LINGUAS to a list of languages to | |
12247 | # install catalogs for. If it's empty that means "all of them." | |
12248 | if test "x$LINGUAS" = x; then | |
12249 | CATALOGS="$CATALOGS $cat" | |
12250 | XLINGUAS="$XLINGUAS $lang" | |
12251 | else | |
12252 | case "$LINGUAS" in *$lang*) | |
12253 | CATALOGS="$CATALOGS $cat" | |
12254 | XLINGUAS="$XLINGUAS $lang" | |
12255 | ;; | |
12256 | esac | |
12257 | fi | |
12258 | done | |
12259 | LINGUAS="$XLINGUAS" | |
81ecdfbb RW |
12260 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINGUAS" >&5 |
12261 | $as_echo "$LINGUAS" >&6; } | |
d7040cdb | 12262 | |
252b5132 | 12263 | |
d7040cdb | 12264 | DATADIRNAME=share |
252b5132 | 12265 | |
d7040cdb | 12266 | INSTOBJEXT=.mo |
5464f5a1 | 12267 | |
d7040cdb | 12268 | GENCAT=gencat |
20e95c23 | 12269 | |
d7040cdb | 12270 | CATOBJEXT=.gmo |
5464f5a1 | 12271 | |
20e95c23 | 12272 | fi |
5464f5a1 | 12273 | |
d7040cdb SE |
12274 | MKINSTALLDIRS= |
12275 | if test -n "$ac_aux_dir"; then | |
12276 | case "$ac_aux_dir" in | |
12277 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; | |
12278 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; | |
12279 | esac | |
12280 | fi | |
12281 | if test -z "$MKINSTALLDIRS"; then | |
12282 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" | |
5464f5a1 | 12283 | fi |
5464f5a1 | 12284 | |
5464f5a1 | 12285 | |
d7040cdb | 12286 | |
81ecdfbb RW |
12287 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
12288 | $as_echo_n "checking whether NLS is requested... " >&6; } | |
12289 | # Check whether --enable-nls was given. | |
12290 | if test "${enable_nls+set}" = set; then : | |
12291 | enableval=$enable_nls; USE_NLS=$enableval | |
252b5132 | 12292 | else |
d7040cdb | 12293 | USE_NLS=yes |
81ecdfbb RW |
12294 | fi |
12295 | ||
12296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 | |
12297 | $as_echo "$USE_NLS" >&6; } | |
5464f5a1 | 12298 | |
252b5132 | 12299 | |
5464f5a1 | 12300 | |
252b5132 | 12301 | |
d7040cdb SE |
12302 | |
12303 | ||
12304 | # Prepare PATH_SEPARATOR. | |
12305 | # The user is always right. | |
12306 | if test "${PATH_SEPARATOR+set}" != set; then | |
12307 | echo "#! /bin/sh" >conf$$.sh | |
12308 | echo "exit 0" >>conf$$.sh | |
12309 | chmod +x conf$$.sh | |
12310 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12311 | PATH_SEPARATOR=';' | |
20e95c23 | 12312 | else |
d7040cdb | 12313 | PATH_SEPARATOR=: |
20e95c23 | 12314 | fi |
d7040cdb SE |
12315 | rm -f conf$$.sh |
12316 | fi | |
12317 | ||
12318 | # Find out how to test for executable files. Don't use a zero-byte file, | |
12319 | # as systems may use methods other than mode bits to determine executability. | |
12320 | cat >conf$$.file <<_ASEOF | |
12321 | #! /bin/sh | |
12322 | exit 0 | |
12323 | _ASEOF | |
12324 | chmod +x conf$$.file | |
12325 | if test -x conf$$.file >/dev/null 2>&1; then | |
12326 | ac_executable_p="test -x" | |
20e95c23 | 12327 | else |
d7040cdb | 12328 | ac_executable_p="test -f" |
20e95c23 | 12329 | fi |
d7040cdb | 12330 | rm -f conf$$.file |
5464f5a1 | 12331 | |
d7040cdb SE |
12332 | # Extract the first word of "msgfmt", so it can be a program name with args. |
12333 | set dummy msgfmt; ac_word=$2 | |
81ecdfbb RW |
12334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12335 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12336 | if ${ac_cv_path_MSGFMT+:} false; then : |
81ecdfbb | 12337 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
12338 | else |
12339 | case "$MSGFMT" in | |
12340 | [\\/]* | ?:[\\/]*) | |
12341 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
12342 | ;; | |
12343 | *) | |
12344 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
12345 | for ac_dir in $PATH; do | |
12346 | IFS="$ac_save_IFS" | |
12347 | test -z "$ac_dir" && ac_dir=. | |
12348 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12349 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
12350 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && | |
12351 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
12352 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" | |
12353 | break 2 | |
12354 | fi | |
12355 | fi | |
12356 | done | |
12357 | done | |
12358 | IFS="$ac_save_IFS" | |
12359 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" | |
12360 | ;; | |
12361 | esac | |
5464f5a1 | 12362 | fi |
d7040cdb SE |
12363 | MSGFMT="$ac_cv_path_MSGFMT" |
12364 | if test "$MSGFMT" != ":"; then | |
81ecdfbb RW |
12365 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
12366 | $as_echo "$MSGFMT" >&6; } | |
20e95c23 | 12367 | else |
81ecdfbb RW |
12368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12369 | $as_echo "no" >&6; } | |
252b5132 | 12370 | fi |
d7040cdb SE |
12371 | |
12372 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
12373 | set dummy gmsgfmt; ac_word=$2 | |
81ecdfbb RW |
12374 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12375 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12376 | if ${ac_cv_path_GMSGFMT+:} false; then : |
81ecdfbb | 12377 | $as_echo_n "(cached) " >&6 |
252b5132 | 12378 | else |
d7040cdb SE |
12379 | case $GMSGFMT in |
12380 | [\\/]* | ?:[\\/]*) | |
12381 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. | |
12382 | ;; | |
12383 | *) | |
12384 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12385 | for as_dir in $PATH | |
12386 | do | |
12387 | IFS=$as_save_IFS | |
12388 | test -z "$as_dir" && as_dir=. | |
81ecdfbb | 12389 | for ac_exec_ext in '' $ac_executable_extensions; do |
d0ac1c44 | 12390 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
d7040cdb | 12391 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
81ecdfbb | 12392 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
d7040cdb SE |
12393 | break 2 |
12394 | fi | |
12395 | done | |
81ecdfbb RW |
12396 | done |
12397 | IFS=$as_save_IFS | |
5464f5a1 | 12398 | |
d7040cdb SE |
12399 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
12400 | ;; | |
12401 | esac | |
252b5132 | 12402 | fi |
d7040cdb | 12403 | GMSGFMT=$ac_cv_path_GMSGFMT |
d7040cdb | 12404 | if test -n "$GMSGFMT"; then |
81ecdfbb RW |
12405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
12406 | $as_echo "$GMSGFMT" >&6; } | |
252b5132 | 12407 | else |
81ecdfbb RW |
12408 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12409 | $as_echo "no" >&6; } | |
252b5132 RH |
12410 | fi |
12411 | ||
20e95c23 DJ |
12412 | |
12413 | ||
81ecdfbb | 12414 | |
d7040cdb SE |
12415 | # Prepare PATH_SEPARATOR. |
12416 | # The user is always right. | |
12417 | if test "${PATH_SEPARATOR+set}" != set; then | |
12418 | echo "#! /bin/sh" >conf$$.sh | |
12419 | echo "exit 0" >>conf$$.sh | |
12420 | chmod +x conf$$.sh | |
12421 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12422 | PATH_SEPARATOR=';' | |
12423 | else | |
12424 | PATH_SEPARATOR=: | |
12425 | fi | |
12426 | rm -f conf$$.sh | |
252b5132 | 12427 | fi |
20e95c23 | 12428 | |
d7040cdb SE |
12429 | # Find out how to test for executable files. Don't use a zero-byte file, |
12430 | # as systems may use methods other than mode bits to determine executability. | |
12431 | cat >conf$$.file <<_ASEOF | |
12432 | #! /bin/sh | |
12433 | exit 0 | |
12434 | _ASEOF | |
12435 | chmod +x conf$$.file | |
12436 | if test -x conf$$.file >/dev/null 2>&1; then | |
12437 | ac_executable_p="test -x" | |
12438 | else | |
12439 | ac_executable_p="test -f" | |
12440 | fi | |
12441 | rm -f conf$$.file | |
252b5132 | 12442 | |
d7040cdb SE |
12443 | # Extract the first word of "xgettext", so it can be a program name with args. |
12444 | set dummy xgettext; ac_word=$2 | |
81ecdfbb RW |
12445 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12446 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12447 | if ${ac_cv_path_XGETTEXT+:} false; then : |
81ecdfbb | 12448 | $as_echo_n "(cached) " >&6 |
20e95c23 | 12449 | else |
d7040cdb SE |
12450 | case "$XGETTEXT" in |
12451 | [\\/]* | ?:[\\/]*) | |
12452 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
12453 | ;; | |
12454 | *) | |
12455 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
12456 | for ac_dir in $PATH; do | |
12457 | IFS="$ac_save_IFS" | |
12458 | test -z "$ac_dir" && ac_dir=. | |
12459 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12460 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
12461 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
12462 | (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 | |
12463 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" | |
12464 | break 2 | |
12465 | fi | |
12466 | fi | |
12467 | done | |
12468 | done | |
12469 | IFS="$ac_save_IFS" | |
12470 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
12471 | ;; | |
12472 | esac | |
12473 | fi | |
12474 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
12475 | if test "$XGETTEXT" != ":"; then | |
81ecdfbb RW |
12476 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
12477 | $as_echo "$XGETTEXT" >&6; } | |
252b5132 | 12478 | else |
81ecdfbb RW |
12479 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12480 | $as_echo "no" >&6; } | |
252b5132 RH |
12481 | fi |
12482 | ||
d7040cdb | 12483 | rm -f messages.po |
5464f5a1 | 12484 | |
252b5132 | 12485 | |
d7040cdb SE |
12486 | # Prepare PATH_SEPARATOR. |
12487 | # The user is always right. | |
12488 | if test "${PATH_SEPARATOR+set}" != set; then | |
12489 | echo "#! /bin/sh" >conf$$.sh | |
12490 | echo "exit 0" >>conf$$.sh | |
12491 | chmod +x conf$$.sh | |
12492 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
12493 | PATH_SEPARATOR=';' | |
12494 | else | |
12495 | PATH_SEPARATOR=: | |
12496 | fi | |
12497 | rm -f conf$$.sh | |
252b5132 RH |
12498 | fi |
12499 | ||
d7040cdb SE |
12500 | # Find out how to test for executable files. Don't use a zero-byte file, |
12501 | # as systems may use methods other than mode bits to determine executability. | |
12502 | cat >conf$$.file <<_ASEOF | |
12503 | #! /bin/sh | |
12504 | exit 0 | |
12505 | _ASEOF | |
12506 | chmod +x conf$$.file | |
12507 | if test -x conf$$.file >/dev/null 2>&1; then | |
12508 | ac_executable_p="test -x" | |
5464f5a1 | 12509 | else |
d7040cdb | 12510 | ac_executable_p="test -f" |
20e95c23 | 12511 | fi |
d7040cdb | 12512 | rm -f conf$$.file |
5464f5a1 | 12513 | |
d7040cdb SE |
12514 | # Extract the first word of "msgmerge", so it can be a program name with args. |
12515 | set dummy msgmerge; ac_word=$2 | |
81ecdfbb RW |
12516 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
12517 | $as_echo_n "checking for $ac_word... " >&6; } | |
d0ac1c44 | 12518 | if ${ac_cv_path_MSGMERGE+:} false; then : |
81ecdfbb | 12519 | $as_echo_n "(cached) " >&6 |
d7040cdb SE |
12520 | else |
12521 | case "$MSGMERGE" in | |
12522 | [\\/]* | ?:[\\/]*) | |
12523 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. | |
12524 | ;; | |
12525 | *) | |
12526 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR | |
12527 | for ac_dir in $PATH; do | |
12528 | IFS="$ac_save_IFS" | |
12529 | test -z "$ac_dir" && ac_dir=. | |
12530 | for ac_exec_ext in '' $ac_executable_extensions; do | |
12531 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then | |
12532 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then | |
12533 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" | |
12534 | break 2 | |
12535 | fi | |
12536 | fi | |
12537 | done | |
12538 | done | |
12539 | IFS="$ac_save_IFS" | |
12540 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" | |
12541 | ;; | |
12542 | esac | |
5464f5a1 | 12543 | fi |
d7040cdb SE |
12544 | MSGMERGE="$ac_cv_path_MSGMERGE" |
12545 | if test "$MSGMERGE" != ":"; then | |
81ecdfbb RW |
12546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
12547 | $as_echo "$MSGMERGE" >&6; } | |
20e95c23 | 12548 | else |
81ecdfbb RW |
12549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
12550 | $as_echo "no" >&6; } | |
d7040cdb | 12551 | fi |
20e95c23 | 12552 | |
5464f5a1 | 12553 | |
d7040cdb SE |
12554 | if test "$GMSGFMT" != ":"; then |
12555 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && | |
12556 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then | |
12557 | : ; | |
12558 | else | |
12559 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` | |
81ecdfbb RW |
12560 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
12561 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } | |
d7040cdb SE |
12562 | GMSGFMT=":" |
12563 | fi | |
12564 | fi | |
252b5132 | 12565 | |
d7040cdb SE |
12566 | if test "$XGETTEXT" != ":"; then |
12567 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && | |
12568 | (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 | |
12569 | : ; | |
12570 | else | |
81ecdfbb RW |
12571 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
12572 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } | |
d7040cdb SE |
12573 | XGETTEXT=":" |
12574 | fi | |
12575 | rm -f messages.po | |
12576 | fi | |
6be7c12c | 12577 | |
81ecdfbb | 12578 | ac_config_commands="$ac_config_commands default-1" |
5464f5a1 | 12579 | |
252b5132 | 12580 | |
5464f5a1 | 12581 | |
d7040cdb SE |
12582 | # Permit host specific settings. |
12583 | . ${srcdir}/configure.host | |
12584 | ||
12585 | ||
252b5132 | 12586 | |
252b5132 | 12587 | |
d7040cdb | 12588 | BFD_HOST_64BIT_LONG=0 |
d2df793a | 12589 | BFD_HOST_64BIT_LONG_LONG=0 |
d7040cdb SE |
12590 | BFD_HOST_64_BIT_DEFINED=0 |
12591 | BFD_HOST_64_BIT= | |
12592 | BFD_HOST_U_64_BIT= | |
d2df793a | 12593 | BFD_HOSTPTR_T="unsigned long" |
6be7c12c | 12594 | |
81ecdfbb RW |
12595 | # The cast to long int works around a bug in the HP C Compiler |
12596 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12597 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12598 | # This bug is HP SR number 8606223364. | |
12599 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 | |
12600 | $as_echo_n "checking size of long long... " >&6; } | |
d0ac1c44 | 12601 | if ${ac_cv_sizeof_long_long+:} false; then : |
81ecdfbb | 12602 | $as_echo_n "(cached) " >&6 |
6726e1ea | 12603 | else |
81ecdfbb RW |
12604 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : |
12605 | ||
12606 | else | |
12607 | if test "$ac_cv_type_long_long" = yes; then | |
12608 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12609 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
12610 | as_fn_error 77 "cannot compute sizeof (long long) |
12611 | See \`config.log' for more details" "$LINENO" 5; } | |
81ecdfbb RW |
12612 | else |
12613 | ac_cv_sizeof_long_long=0 | |
12614 | fi | |
12615 | fi | |
12616 | ||
12617 | fi | |
12618 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 | |
12619 | $as_echo "$ac_cv_sizeof_long_long" >&6; } | |
12620 | ||
12621 | ||
12622 | ||
12623 | cat >>confdefs.h <<_ACEOF | |
12624 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long | |
5464f5a1 | 12625 | _ACEOF |
81ecdfbb RW |
12626 | |
12627 | ||
12628 | # The cast to long int works around a bug in the HP C Compiler | |
12629 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12630 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12631 | # This bug is HP SR number 8606223364. | |
12632 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 | |
12633 | $as_echo_n "checking size of void *... " >&6; } | |
d0ac1c44 | 12634 | if ${ac_cv_sizeof_void_p+:} false; then : |
81ecdfbb | 12635 | $as_echo_n "(cached) " >&6 |
6726e1ea | 12636 | else |
81ecdfbb | 12637 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : |
5464f5a1 | 12638 | |
81ecdfbb RW |
12639 | else |
12640 | if test "$ac_cv_type_void_p" = yes; then | |
12641 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12642 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
12643 | as_fn_error 77 "cannot compute sizeof (void *) |
12644 | See \`config.log' for more details" "$LINENO" 5; } | |
81ecdfbb RW |
12645 | else |
12646 | ac_cv_sizeof_void_p=0 | |
12647 | fi | |
6726e1ea | 12648 | fi |
81ecdfbb | 12649 | |
6726e1ea | 12650 | fi |
81ecdfbb RW |
12651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 |
12652 | $as_echo "$ac_cv_sizeof_void_p" >&6; } | |
6726e1ea | 12653 | |
6726e1ea | 12654 | |
2ba49b59 | 12655 | |
81ecdfbb RW |
12656 | cat >>confdefs.h <<_ACEOF |
12657 | #define SIZEOF_VOID_P $ac_cv_sizeof_void_p | |
5464f5a1 | 12658 | _ACEOF |
81ecdfbb RW |
12659 | |
12660 | ||
12661 | # The cast to long int works around a bug in the HP C Compiler | |
12662 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12663 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12664 | # This bug is HP SR number 8606223364. | |
12665 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 | |
12666 | $as_echo_n "checking size of long... " >&6; } | |
d0ac1c44 | 12667 | if ${ac_cv_sizeof_long+:} false; then : |
81ecdfbb | 12668 | $as_echo_n "(cached) " >&6 |
6726e1ea | 12669 | else |
81ecdfbb | 12670 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
5464f5a1 | 12671 | |
252b5132 | 12672 | else |
81ecdfbb RW |
12673 | if test "$ac_cv_type_long" = yes; then |
12674 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12675 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
12676 | as_fn_error 77 "cannot compute sizeof (long) |
12677 | See \`config.log' for more details" "$LINENO" 5; } | |
81ecdfbb RW |
12678 | else |
12679 | ac_cv_sizeof_long=0 | |
12680 | fi | |
12681 | fi | |
5464f5a1 | 12682 | |
81ecdfbb RW |
12683 | fi |
12684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 | |
12685 | $as_echo "$ac_cv_sizeof_long" >&6; } | |
2ba49b59 | 12686 | |
81ecdfbb RW |
12687 | |
12688 | ||
12689 | cat >>confdefs.h <<_ACEOF | |
12690 | #define SIZEOF_LONG $ac_cv_sizeof_long | |
5464f5a1 | 12691 | _ACEOF |
2ba49b59 | 12692 | |
2ba49b59 | 12693 | |
242a1159 AM |
12694 | # The cast to long int works around a bug in the HP C Compiler |
12695 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
12696 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
12697 | # This bug is HP SR number 8606223364. | |
12698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 | |
12699 | $as_echo_n "checking size of int... " >&6; } | |
12700 | if ${ac_cv_sizeof_int+:} false; then : | |
12701 | $as_echo_n "(cached) " >&6 | |
12702 | else | |
12703 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : | |
12704 | ||
12705 | else | |
12706 | if test "$ac_cv_type_int" = yes; then | |
12707 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12708 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12709 | as_fn_error 77 "cannot compute sizeof (int) | |
12710 | See \`config.log' for more details" "$LINENO" 5; } | |
12711 | else | |
12712 | ac_cv_sizeof_int=0 | |
12713 | fi | |
12714 | fi | |
12715 | ||
12716 | fi | |
12717 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 | |
12718 | $as_echo "$ac_cv_sizeof_int" >&6; } | |
12719 | ||
12720 | ||
12721 | ||
12722 | cat >>confdefs.h <<_ACEOF | |
12723 | #define SIZEOF_INT $ac_cv_sizeof_int | |
12724 | _ACEOF | |
12725 | ||
12726 | ||
81ecdfbb RW |
12727 | |
12728 | if test "x${ac_cv_sizeof_void_p}" = "x8"; then | |
12729 | host64=true | |
252b5132 | 12730 | fi |
5464f5a1 | 12731 | |
81ecdfbb RW |
12732 | if test "x${ac_cv_sizeof_long}" = "x8"; then |
12733 | BFD_HOST_64BIT_LONG=1 | |
12734 | test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long" | |
12735 | test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long" | |
12736 | elif test "x${ac_cv_sizeof_long_long}" = "x8"; then | |
12737 | BFD_HOST_64BIT_LONG_LONG=1 | |
12738 | test -n "${HOST_64BIT_TYPE}" || HOST_64BIT_TYPE="long long" | |
12739 | test -n "${HOST_U_64BIT_TYPE}" || HOST_U_64BIT_TYPE="unsigned long long" | |
12740 | if test "x${ac_cv_sizeof_void_p}" = "x8"; then | |
12741 | BFD_HOSTPTR_T="unsigned long long" | |
83c79df8 | 12742 | fi |
81ecdfbb | 12743 | fi |
efde2f2c | 12744 | |
83c79df8 AM |
12745 | if test -n "${HOST_64BIT_TYPE}" -a -n "${HOST_U_64BIT_TYPE}"; then |
12746 | BFD_HOST_64_BIT_DEFINED=1 | |
12747 | BFD_HOST_64_BIT="${HOST_64BIT_TYPE}" | |
12748 | BFD_HOST_U_64_BIT="${HOST_U_64BIT_TYPE}" | |
2ba49b59 | 12749 | fi |
81ecdfbb | 12750 | |
17d5dae2 | 12751 | |
81ecdfbb | 12752 | |
83c79df8 AM |
12753 | |
12754 | ||
12755 | ||
12756 | ||
12757 | ||
12758 | # Put a plausible default for CC_FOR_BUILD in Makefile. | |
12759 | if test -z "$CC_FOR_BUILD"; then | |
12760 | if test "x$cross_compiling" = "xno"; then | |
12761 | CC_FOR_BUILD='$(CC)' | |
12762 | else | |
12763 | CC_FOR_BUILD=gcc | |
12764 | fi | |
12765 | fi | |
12766 | ||
12767 | # Also set EXEEXT_FOR_BUILD. | |
12768 | if test "x$cross_compiling" = "xno"; then | |
12769 | EXEEXT_FOR_BUILD='$(EXEEXT)' | |
12770 | else | |
12771 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5 | |
12772 | $as_echo_n "checking for build system executable suffix... " >&6; } | |
12773 | if ${bfd_cv_build_exeext+:} false; then : | |
12774 | $as_echo_n "(cached) " >&6 | |
2ba49b59 | 12775 | else |
83c79df8 AM |
12776 | rm -f conftest* |
12777 | echo 'int main () { return 0; }' > conftest.c | |
12778 | bfd_cv_build_exeext= | |
12779 | ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5 | |
12780 | for file in conftest.*; do | |
12781 | case $file in | |
12782 | *.c | *.o | *.obj | *.ilk | *.pdb) ;; | |
12783 | *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;; | |
12784 | esac | |
12785 | done | |
12786 | rm -f conftest* | |
12787 | test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no | |
81ecdfbb | 12788 | fi |
83c79df8 AM |
12789 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_build_exeext" >&5 |
12790 | $as_echo "$bfd_cv_build_exeext" >&6; } | |
12791 | EXEEXT_FOR_BUILD="" | |
12792 | test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext} | |
81ecdfbb | 12793 | fi |
2ba49b59 | 12794 | |
2ba49b59 | 12795 | |
83c79df8 AM |
12796 | for ac_header in fcntl.h sys/file.h sys/resource.h sys/stat.h sys/types.h \ |
12797 | unistd.h | |
81ecdfbb | 12798 | do : |
83c79df8 AM |
12799 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
12800 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
12801 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
81ecdfbb | 12802 | cat >>confdefs.h <<_ACEOF |
83c79df8 | 12803 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
2ba49b59 | 12804 | _ACEOF |
81ecdfbb RW |
12805 | |
12806 | fi | |
83c79df8 | 12807 | |
81ecdfbb RW |
12808 | done |
12809 | ||
83c79df8 AM |
12810 | |
12811 | for ac_func in fcntl fdopen fileno fls getgid getpagesize getrlimit getuid \ | |
12812 | sysconf | |
81ecdfbb | 12813 | do : |
9d782e8d MW |
12814 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
12815 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
d0ac1c44 | 12816 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
81ecdfbb | 12817 | cat >>confdefs.h <<_ACEOF |
9d782e8d | 12818 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
2ba49b59 | 12819 | _ACEOF |
81ecdfbb RW |
12820 | |
12821 | fi | |
12822 | done | |
12823 | ||
12824 | ||
12825 | ac_fn_c_check_decl "$LINENO" "basename" "ac_cv_have_decl_basename" "$ac_includes_default" | |
d0ac1c44 | 12826 | if test "x$ac_cv_have_decl_basename" = xyes; then : |
81ecdfbb | 12827 | ac_have_decl=1 |
2ba49b59 | 12828 | else |
81ecdfbb | 12829 | ac_have_decl=0 |
2ba49b59 | 12830 | fi |
81ecdfbb RW |
12831 | |
12832 | cat >>confdefs.h <<_ACEOF | |
12833 | #define HAVE_DECL_BASENAME $ac_have_decl | |
12834 | _ACEOF | |
81ecdfbb | 12835 | ac_fn_c_check_decl "$LINENO" "ffs" "ac_cv_have_decl_ffs" "$ac_includes_default" |
d0ac1c44 | 12836 | if test "x$ac_cv_have_decl_ffs" = xyes; then : |
81ecdfbb RW |
12837 | ac_have_decl=1 |
12838 | else | |
12839 | ac_have_decl=0 | |
2ba49b59 KC |
12840 | fi |
12841 | ||
81ecdfbb RW |
12842 | cat >>confdefs.h <<_ACEOF |
12843 | #define HAVE_DECL_FFS $ac_have_decl | |
12844 | _ACEOF | |
81ecdfbb | 12845 | ac_fn_c_check_decl "$LINENO" "stpcpy" "ac_cv_have_decl_stpcpy" "$ac_includes_default" |
d0ac1c44 | 12846 | if test "x$ac_cv_have_decl_stpcpy" = xyes; then : |
81ecdfbb RW |
12847 | ac_have_decl=1 |
12848 | else | |
12849 | ac_have_decl=0 | |
d5efd9fc | 12850 | fi |
81ecdfbb RW |
12851 | |
12852 | cat >>confdefs.h <<_ACEOF | |
12853 | #define HAVE_DECL_STPCPY $ac_have_decl | |
12854 | _ACEOF | |
d6f1bafa | 12855 | ac_fn_c_check_decl "$LINENO" "asprintf" "ac_cv_have_decl_asprintf" "$ac_includes_default" |
d0ac1c44 | 12856 | if test "x$ac_cv_have_decl_asprintf" = xyes; then : |
d6f1bafa IB |
12857 | ac_have_decl=1 |
12858 | else | |
12859 | ac_have_decl=0 | |
12860 | fi | |
12861 | ||
12862 | cat >>confdefs.h <<_ACEOF | |
12863 | #define HAVE_DECL_ASPRINTF $ac_have_decl | |
12864 | _ACEOF | |
d6f1bafa | 12865 | ac_fn_c_check_decl "$LINENO" "vasprintf" "ac_cv_have_decl_vasprintf" "$ac_includes_default" |
d0ac1c44 | 12866 | if test "x$ac_cv_have_decl_vasprintf" = xyes; then : |
d6f1bafa IB |
12867 | ac_have_decl=1 |
12868 | else | |
12869 | ac_have_decl=0 | |
12870 | fi | |
12871 | ||
12872 | cat >>confdefs.h <<_ACEOF | |
12873 | #define HAVE_DECL_VASPRINTF $ac_have_decl | |
12874 | _ACEOF | |
12875 | ||
81ecdfbb | 12876 | |
5a026fc9 | 12877 | |
83c79df8 AM |
12878 | case "${host}" in |
12879 | *-*-msdos* | *-*-go32* | *-*-mingw32* | *-*-cygwin* | *-*-windows*) | |
5a026fc9 | 12880 | |
83c79df8 AM |
12881 | $as_echo "#define USE_BINARY_FOPEN 1" >>confdefs.h |
12882 | ;; | |
12883 | esac | |
81ecdfbb | 12884 | |
9ae46699 L |
12885 | # Link in zlib if we can. This allows us to read compressed debug sections. |
12886 | # This is used only by compress.c. | |
12887 | ||
12888 | # Use the system's zlib library. | |
39f3de7c L |
12889 | zlibdir="-L\$(top_builddir)/../zlib" |
12890 | zlibinc="-I\$(top_srcdir)/../zlib" | |
bf993e3c | 12891 | |
243340ad L |
12892 | # Check whether --with-system-zlib was given. |
12893 | if test "${with_system_zlib+set}" = set; then : | |
afa59b79 L |
12894 | withval=$with_system_zlib; if test x$with_system_zlib = xyes ; then |
12895 | zlibdir= | |
12896 | zlibinc= | |
12897 | fi | |
bf993e3c | 12898 | |
bf993e3c JB |
12899 | fi |
12900 | ||
12901 | ||
bf993e3c | 12902 | |
d5efd9fc | 12903 | |
9ae46699 | 12904 | |
629dabe3 AM |
12905 | save_CFLAGS="$CFLAGS" |
12906 | CFLAGS="$CFLAGS -Werror" | |
8722de9c AM |
12907 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler support for hidden visibility" >&5 |
12908 | $as_echo_n "checking compiler support for hidden visibility... " >&6; } | |
d0ac1c44 | 12909 | if ${bfd_cv_hidden+:} false; then : |
8722de9c AM |
12910 | $as_echo_n "(cached) " >&6 |
12911 | else | |
12912 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12913 | /* end confdefs.h. */ | |
12914 | ||
12915 | const char hw[] __attribute__ ((__visibility__ ("hidden"))) = "Hello, World\n"; | |
12916 | extern void print (const char *) __attribute__ ((__visibility__ ("hidden"))); | |
12917 | int | |
12918 | main () | |
12919 | { | |
12920 | print (hw); | |
12921 | ; | |
12922 | return 0; | |
12923 | } | |
12924 | _ACEOF | |
12925 | if ac_fn_c_try_compile "$LINENO"; then : | |
12926 | bfd_cv_hidden=yes | |
12927 | else | |
12928 | bfd_cv_hidden=no | |
12929 | fi | |
12930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
12931 | fi | |
12932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_hidden" >&5 | |
12933 | $as_echo "$bfd_cv_hidden" >&6; } | |
629dabe3 | 12934 | CFLAGS="$save_CFLAGS" |
8722de9c AM |
12935 | if test $bfd_cv_hidden = yes; then |
12936 | ||
12937 | $as_echo "#define HAVE_HIDDEN 1" >>confdefs.h | |
12938 | ||
12939 | fi | |
12940 | ||
c603b11b AM |
12941 | # Check if linker supports --as-needed and --no-as-needed options |
12942 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking linker --as-needed support" >&5 | |
12943 | $as_echo_n "checking linker --as-needed support... " >&6; } | |
d0ac1c44 | 12944 | if ${bfd_cv_ld_as_needed+:} false; then : |
c603b11b AM |
12945 | $as_echo_n "(cached) " >&6 |
12946 | else | |
12947 | bfd_cv_ld_as_needed=no | |
12948 | if $LD --help 2>/dev/null | grep as-needed > /dev/null; then | |
12949 | bfd_cv_ld_as_needed=yes | |
12950 | fi | |
d5efd9fc | 12951 | |
c603b11b AM |
12952 | fi |
12953 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_ld_as_needed" >&5 | |
12954 | $as_echo "$bfd_cv_ld_as_needed" >&6; } | |
d5efd9fc | 12955 | |
c603b11b AM |
12956 | LIBM= |
12957 | case $host in | |
12958 | *-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) | |
12959 | # These system don't have libm, or don't need it | |
12960 | ;; | |
12961 | *-ncr-sysv4.3*) | |
12962 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 | |
12963 | $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } | |
d0ac1c44 | 12964 | if ${ac_cv_lib_mw__mwvalidcheckl+:} false; then : |
c603b11b AM |
12965 | $as_echo_n "(cached) " >&6 |
12966 | else | |
12967 | ac_check_lib_save_LIBS=$LIBS | |
12968 | LIBS="-lmw $LIBS" | |
12969 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d5efd9fc | 12970 | /* end confdefs.h. */ |
c603b11b AM |
12971 | |
12972 | /* Override any GCC internal prototype to avoid an error. | |
12973 | Use char because int might match the return type of a GCC | |
12974 | builtin and then its argument prototype would still apply. */ | |
12975 | #ifdef __cplusplus | |
12976 | extern "C" | |
12977 | #endif | |
12978 | char _mwvalidcheckl (); | |
d5efd9fc AM |
12979 | int |
12980 | main () | |
12981 | { | |
c603b11b | 12982 | return _mwvalidcheckl (); |
d5efd9fc AM |
12983 | ; |
12984 | return 0; | |
12985 | } | |
12986 | _ACEOF | |
c603b11b AM |
12987 | if ac_fn_c_try_link "$LINENO"; then : |
12988 | ac_cv_lib_mw__mwvalidcheckl=yes | |
d5efd9fc | 12989 | else |
c603b11b | 12990 | ac_cv_lib_mw__mwvalidcheckl=no |
d5efd9fc | 12991 | fi |
c603b11b AM |
12992 | rm -f core conftest.err conftest.$ac_objext \ |
12993 | conftest$ac_exeext conftest.$ac_ext | |
12994 | LIBS=$ac_check_lib_save_LIBS | |
d5efd9fc | 12995 | fi |
c603b11b AM |
12996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 |
12997 | $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } | |
d0ac1c44 | 12998 | if test "x$ac_cv_lib_mw__mwvalidcheckl" = xyes; then : |
c603b11b | 12999 | LIBM="-lmw" |
d5efd9fc AM |
13000 | fi |
13001 | ||
c603b11b AM |
13002 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 |
13003 | $as_echo_n "checking for cos in -lm... " >&6; } | |
d0ac1c44 | 13004 | if ${ac_cv_lib_m_cos+:} false; then : |
81ecdfbb | 13005 | $as_echo_n "(cached) " >&6 |
d5efd9fc | 13006 | else |
c603b11b AM |
13007 | ac_check_lib_save_LIBS=$LIBS |
13008 | LIBS="-lm $LIBS" | |
13009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d5efd9fc | 13010 | /* end confdefs.h. */ |
81ecdfbb | 13011 | |
c603b11b AM |
13012 | /* Override any GCC internal prototype to avoid an error. |
13013 | Use char because int might match the return type of a GCC | |
13014 | builtin and then its argument prototype would still apply. */ | |
13015 | #ifdef __cplusplus | |
13016 | extern "C" | |
13017 | #endif | |
13018 | char cos (); | |
d5efd9fc AM |
13019 | int |
13020 | main () | |
13021 | { | |
c603b11b | 13022 | return cos (); |
d5efd9fc AM |
13023 | ; |
13024 | return 0; | |
13025 | } | |
13026 | _ACEOF | |
c603b11b AM |
13027 | if ac_fn_c_try_link "$LINENO"; then : |
13028 | ac_cv_lib_m_cos=yes | |
d5efd9fc | 13029 | else |
c603b11b | 13030 | ac_cv_lib_m_cos=no |
d5efd9fc | 13031 | fi |
c603b11b AM |
13032 | rm -f core conftest.err conftest.$ac_objext \ |
13033 | conftest$ac_exeext conftest.$ac_ext | |
13034 | LIBS=$ac_check_lib_save_LIBS | |
13035 | fi | |
13036 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 | |
13037 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
d0ac1c44 | 13038 | if test "x$ac_cv_lib_m_cos" = xyes; then : |
c603b11b | 13039 | LIBM="$LIBM -lm" |
d5efd9fc | 13040 | fi |
d5efd9fc | 13041 | |
c603b11b AM |
13042 | ;; |
13043 | *) | |
13044 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 | |
13045 | $as_echo_n "checking for cos in -lm... " >&6; } | |
d0ac1c44 | 13046 | if ${ac_cv_lib_m_cos+:} false; then : |
81ecdfbb | 13047 | $as_echo_n "(cached) " >&6 |
d5efd9fc | 13048 | else |
c603b11b AM |
13049 | ac_check_lib_save_LIBS=$LIBS |
13050 | LIBS="-lm $LIBS" | |
13051 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
d5efd9fc | 13052 | /* end confdefs.h. */ |
81ecdfbb | 13053 | |
c603b11b AM |
13054 | /* Override any GCC internal prototype to avoid an error. |
13055 | Use char because int might match the return type of a GCC | |
13056 | builtin and then its argument prototype would still apply. */ | |
13057 | #ifdef __cplusplus | |
13058 | extern "C" | |
13059 | #endif | |
13060 | char cos (); | |
d5efd9fc AM |
13061 | int |
13062 | main () | |
13063 | { | |
c603b11b | 13064 | return cos (); |
d5efd9fc AM |
13065 | ; |
13066 | return 0; | |
13067 | } | |
13068 | _ACEOF | |
c603b11b AM |
13069 | if ac_fn_c_try_link "$LINENO"; then : |
13070 | ac_cv_lib_m_cos=yes | |
81ecdfbb | 13071 | else |
c603b11b | 13072 | ac_cv_lib_m_cos=no |
81ecdfbb | 13073 | fi |
c603b11b AM |
13074 | rm -f core conftest.err conftest.$ac_objext \ |
13075 | conftest$ac_exeext conftest.$ac_ext | |
13076 | LIBS=$ac_check_lib_save_LIBS | |
13077 | fi | |
13078 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 | |
13079 | $as_echo "$ac_cv_lib_m_cos" >&6; } | |
d0ac1c44 | 13080 | if test "x$ac_cv_lib_m_cos" = xyes; then : |
c603b11b | 13081 | LIBM="-lm" |
81ecdfbb RW |
13082 | fi |
13083 | ||
c603b11b AM |
13084 | ;; |
13085 | esac | |
81ecdfbb | 13086 | |
81ecdfbb | 13087 | |
81ecdfbb | 13088 | |
c603b11b AM |
13089 | # When building a shared libbfd, link against the pic version of libiberty |
13090 | # so that apps that use libbfd won't need libiberty just to satisfy any | |
13091 | # libbfd references. | |
13092 | # We can't do that if a pic libiberty is unavailable since including non-pic | |
13093 | # code would insert text relocations into libbfd. | |
13094 | SHARED_LIBADD= | |
13095 | SHARED_LDFLAGS= | |
13096 | if test "$enable_shared" = "yes"; then | |
13097 | x=`sed -n -e 's/^[ ]*PICFLAG[ ]*=[ ]*//p' < ../libiberty/Makefile | sed -n '$p'` | |
13098 | if test -n "$x"; then | |
13099 | SHARED_LIBADD="-L`pwd`/../libiberty/pic -liberty" | |
13100 | fi | |
95148614 NA |
13101 | fi |
13102 | ||
13103 | SHARED_LIBADD="$SHARED_LIBADD $LIBINTL" | |
81ecdfbb | 13104 | |
95148614 | 13105 | if test "$enable_shared" = "yes"; then |
c603b11b | 13106 | case "${host}" in |
edd01d07 | 13107 | # More hacks to build DLLs on Windows. |
c603b11b AM |
13108 | *-*-cygwin*) |
13109 | SHARED_LDFLAGS="-no-undefined" | |
95148614 | 13110 | SHARED_LIBADD="-L`pwd`/../libiberty -liberty $SHARED_LIBADD -lcygwin -lkernel32" |
c603b11b AM |
13111 | ;; |
13112 | esac | |
13113 | ||
13114 | if test -n "$SHARED_LIBADD"; then | |
13115 | if test -n "$LIBM"; then | |
13116 | if test x"$bfd_cv_ld_as_needed" = xyes; then | |
13117 | # Link against libm only when needed. Put -lc, -lm inside -Wl | |
13118 | # to stop libtool reordering these options. | |
13119 | SHARED_LIBADD="$SHARED_LIBADD -Wl,-lc,--as-needed,`echo $LIBM | sed 's/ /,/g'`,--no-as-needed" | |
13120 | else | |
13121 | SHARED_LIBADD="$SHARED_LIBADD $LIBM" | |
13122 | fi | |
13123 | fi | |
13124 | fi | |
81ecdfbb | 13125 | fi |
d5efd9fc | 13126 | |
81ecdfbb | 13127 | |
81ecdfbb | 13128 | |
c603b11b | 13129 | # target stuff: |
81ecdfbb | 13130 | |
c603b11b AM |
13131 | # Canonicalize the secondary target names. |
13132 | if test -n "$enable_targets" ; then | |
13133 | for targ in `echo $enable_targets | sed 's/,/ /g'` | |
13134 | do | |
13135 | result=`$ac_config_sub $targ 2>/dev/null` | |
13136 | if test -n "$result" ; then | |
13137 | canon_targets="$canon_targets $result" | |
13138 | else | |
13139 | # Allow targets that config.sub doesn't recognize, like "all". | |
13140 | canon_targets="$canon_targets $targ" | |
13141 | fi | |
13142 | done | |
d5efd9fc | 13143 | fi |
d5efd9fc | 13144 | |
c603b11b AM |
13145 | all_targets=false |
13146 | defvec= | |
13147 | selvecs= | |
13148 | assocvecs= | |
13149 | selarchs= | |
13150 | TDEFINES= | |
13151 | for targ in $target $canon_targets | |
13152 | do | |
999d6dff | 13153 | if test $targ = all; then |
c603b11b AM |
13154 | all_targets=true |
13155 | assocvecs="$assocvecs $targ_defvec $targ_selvecs" | |
999d6dff | 13156 | elif test $targ != plugin; then |
c603b11b | 13157 | . $srcdir/config.bfd |
999d6dff | 13158 | if test $targ = $target; then |
c603b11b AM |
13159 | defvec=$targ_defvec |
13160 | fi | |
13161 | selvecs="$selvecs $targ_defvec $targ_selvecs" | |
13162 | selarchs="$selarchs $targ_archs" | |
13163 | TDEFINES="$TDEFINES $targ_cflags" | |
13164 | fi | |
13165 | done | |
d5efd9fc | 13166 | |
81ecdfbb | 13167 | |
c603b11b AM |
13168 | # This processing still needs to be done if we're to decide properly whether |
13169 | # 64-bit support needs to be compiled in. Currently, it will be included if | |
13170 | # the default or any other explicitly requested target requires it; it | |
13171 | # will not be included on a 32-bit host if no 64-bit target is requested, and | |
13172 | # no "--with-64-bit-bfd" option is given, even if "--enable-targets=all" is | |
13173 | # used. | |
81ecdfbb | 13174 | |
c603b11b AM |
13175 | # uniq the default and selected vectors in all the configured targets. |
13176 | f="" | |
13177 | for i in $selvecs ; do | |
13178 | case " $f " in | |
13179 | *" $i "*) ;; | |
13180 | *) f="$f $i" ;; | |
13181 | esac | |
13182 | done | |
13183 | selvecs="$f" | |
335e41d4 | 13184 | |
335e41d4 | 13185 | |
c603b11b AM |
13186 | # uniq the associated vectors in all the configured targets. |
13187 | f="" | |
13188 | for i in $assocvecs ; do | |
13189 | case " $f " in | |
13190 | *" $i "*) ;; | |
13191 | *) f="$f $i" ;; | |
13192 | esac | |
13193 | done | |
13194 | assocvecs="$f" | |
335e41d4 | 13195 | |
335e41d4 | 13196 | |
c603b11b AM |
13197 | # uniq the architectures in all the configured targets. |
13198 | f="" | |
13199 | for i in $selarchs ; do | |
13200 | case " $f " in | |
13201 | *" $i "*) ;; | |
13202 | *) f="$f $i" ;; | |
13203 | esac | |
13204 | done | |
13205 | selarchs="$f" | |
335e41d4 | 13206 | |
c603b11b AM |
13207 | # Target backend .o files. |
13208 | tb= | |
335e41d4 | 13209 | |
98641896 L |
13210 | elf="elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo |
13211 | dwarf1.lo dwarf2.lo" | |
c603b11b AM |
13212 | coffgen="coffgen.lo dwarf2.lo" |
13213 | coff="cofflink.lo $coffgen" | |
13214 | ecoff="ecofflink.lo $coffgen" | |
13215 | xcoff="xcofflink.lo $coffgen" | |
2ba49b59 | 13216 | |
bbd19b19 | 13217 | elfxx_x86="elfxx-x86.lo elf-ifunc.lo elf-vxworks.lo" |
81ecdfbb | 13218 | for vec in $selvecs |
49c97a80 | 13219 | do |
81ecdfbb RW |
13220 | target_size=32 |
13221 | case "$vec" in | |
13222 | # This list is alphabetized to make it easy to compare | |
13223 | # with the two vector lists in targets.c. For the same reason, | |
13224 | # use one entry per line, even though this leads to long lines. | |
2f67d686 AM |
13225 | aarch64_elf32_be_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;; |
13226 | aarch64_elf32_le_vec) tb="$tb elf32-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;; | |
d8bd95ef | 13227 | aarch64_elf64_be_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;; |
a75cf613 | 13228 | aarch64_elf64_be_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;; |
d8bd95ef | 13229 | aarch64_elf64_le_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;; |
a75cf613 | 13230 | aarch64_elf64_le_cloudabi_vec) tb="$tb elf64-aarch64.lo elfxx-aarch64.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;; |
f075eb5e | 13231 | aarch64_mach_o_vec) tb="$tb mach-o-aarch64.lo"; target_size=64 ;; |
f4943d82 | 13232 | alpha_ecoff_le_vec) tb="$tb coff-alpha.lo ecoff.lo $ecoff"; target_size=64 ;; |
2f67d686 AM |
13233 | alpha_elf64_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; |
13234 | alpha_elf64_fbsd_vec) tb="$tb elf64-alpha.lo elf64.lo $elf"; target_size=64 ;; | |
2f67d686 AM |
13235 | alpha_vms_vec) tb="$tb vms-alpha.lo vms-misc.lo vms-lib.lo"; target_size=64 ;; |
13236 | alpha_vms_lib_txt_vec) tb="$tb vms-lib.lo vms-misc.lo" ;; | |
13237 | am33_elf32_linux_vec) tb="$tb elf32-am33lin.lo elf32.lo $elf" ;; | |
6d00b590 | 13238 | aout0_be_vec) tb="$tb aout0.lo aout32.lo" ;; |
2f67d686 AM |
13239 | aout64_vec) tb="$tb demo64.lo aout64.lo"; target_size=64 ;; |
13240 | aout_vec) tb="$tb host-aout.lo aout32.lo" ;; | |
2f67d686 AM |
13241 | arc_elf32_be_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; |
13242 | arc_elf32_le_vec) tb="$tb elf32-arc.lo elf32.lo $elf" ;; | |
2f67d686 AM |
13243 | arm_elf32_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; |
13244 | arm_elf32_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; | |
617a5ada CL |
13245 | arm_elf32_fdpic_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; |
13246 | arm_elf32_fdpic_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; | |
2f67d686 AM |
13247 | arm_elf32_nacl_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; |
13248 | arm_elf32_nacl_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; | |
2f67d686 AM |
13249 | arm_elf32_vxworks_be_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; |
13250 | arm_elf32_vxworks_le_vec) tb="$tb elf32-arm.lo elf32.lo elf-nacl.lo elf-vxworks.lo $elf" ;; | |
f4943d82 AM |
13251 | arm_pe_be_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;; |
13252 | arm_pe_le_vec) tb="$tb pe-arm.lo peigen.lo $coff" ;; | |
f4943d82 AM |
13253 | arm_pe_wince_be_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;; |
13254 | arm_pe_wince_le_vec) tb="$tb pe-arm-wince.lo pe-arm.lo peigen.lo $coff" ;; | |
13255 | arm_pei_be_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;; | |
13256 | arm_pei_le_vec) tb="$tb pei-arm.lo peigen.lo $coff" ;; | |
f4943d82 AM |
13257 | arm_pei_wince_be_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;; |
13258 | arm_pei_wince_le_vec) tb="$tb pei-arm-wince.lo pei-arm.lo peigen.lo $coff" ;; | |
f075eb5e | 13259 | arm_mach_o_vec) tb="$tb mach-o-arm.lo" ;; |
6d00b590 AM |
13260 | avr_elf32_vec) tb="$tb elf32-avr.lo elf32.lo $elf" ;; |
13261 | bfin_elf32_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;; | |
13262 | bfin_elf32_fdpic_vec) tb="$tb elf32-bfin.lo elf32.lo $elf" ;; | |
6d00b590 | 13263 | cr16_elf32_vec) tb="$tb elf32-cr16.lo elf32.lo $elf" ;; |
2f67d686 | 13264 | cris_aout_vec) tb="$tb aout-cris.lo" ;; |
6d00b590 | 13265 | cris_elf32_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
2f67d686 | 13266 | cris_elf32_us_vec) tb="$tb elf32-cris.lo elf32.lo $elf" ;; |
6d00b590 | 13267 | crx_elf32_vec) tb="$tb elf32-crx.lo elf32.lo $elf" ;; |
b8891f8d AJ |
13268 | csky_elf32_be_vec) tb="$tb elf32-csky.lo elf32.lo $elf" ;; |
13269 | csky_elf32_le_vec) tb="$tb elf32-csky.lo elf32.lo $elf" ;; | |
6d00b590 AM |
13270 | d10v_elf32_vec) tb="$tb elf32-d10v.lo elf32.lo $elf" ;; |
13271 | d30v_elf32_vec) tb="$tb elf32-d30v.lo elf32.lo $elf" ;; | |
13272 | dlx_elf32_be_vec) tb="$tb elf32-dlx.lo elf32.lo $elf" ;; | |
2f67d686 AM |
13273 | elf32_be_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; |
13274 | elf32_le_vec) tb="$tb elf32-gen.lo elf32.lo $elf" ;; | |
13275 | elf64_be_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; | |
13276 | elf64_le_vec) tb="$tb elf64-gen.lo elf64.lo $elf"; target_size=64 ;; | |
45d5293f JM |
13277 | bpf_elf64_le_vec) tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64;; |
13278 | bpf_elf64_be_vec) tb="$tb elf64-bpf.lo elf64.lo $elf"; target_size=64 ;; | |
6d00b590 AM |
13279 | epiphany_elf32_vec) tb="$tb elf32-epiphany.lo elf32.lo $elf" ;; |
13280 | fr30_elf32_vec) tb="$tb elf32-fr30.lo elf32.lo $elf" ;; | |
13281 | frv_elf32_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; | |
13282 | frv_elf32_fdpic_vec) tb="$tb elf32-frv.lo elf32.lo $elf" ;; | |
13283 | h8300_elf32_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;; | |
5518c738 | 13284 | h8300_elf32_linux_vec) tb="$tb elf32-h8300.lo elf32.lo $elf" ;; |
2f67d686 | 13285 | hppa_elf32_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
6d00b590 AM |
13286 | hppa_elf32_linux_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; |
13287 | hppa_elf32_nbsd_vec) tb="$tb elf32-hppa.lo elf32.lo $elf" ;; | |
2f67d686 AM |
13288 | hppa_elf64_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; |
13289 | hppa_elf64_linux_vec) tb="$tb elf64-hppa.lo elf64.lo $elf"; target_size=64 ;; | |
13290 | hppa_som_vec) tb="$tb som.lo" ;; | |
2f67d686 AM |
13291 | i386_aout_vec) tb="$tb i386aout.lo aout32.lo" ;; |
13292 | i386_aout_bsd_vec) tb="$tb i386bsd.lo aout32.lo" ;; | |
2f67d686 | 13293 | i386_aout_lynx_vec) tb="$tb i386lynx.lo lynx-core.lo aout32.lo" ;; |
f4943d82 AM |
13294 | i386_coff_vec) tb="$tb coff-i386.lo $coff" ;; |
13295 | i386_coff_go32_vec) tb="$tb coff-go32.lo $coff" ;; | |
13296 | i386_coff_go32stubbed_vec) tb="$tb coff-stgo32.lo $coff" ;; | |
13297 | i386_coff_lynx_vec) tb="$tb cf-i386lynx.lo lynx-core.lo $coff" ;; | |
5f2a6b85 AM |
13298 | i386_elf32_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;; |
13299 | i386_elf32_fbsd_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;; | |
5f2a6b85 AM |
13300 | i386_elf32_sol2_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;; |
13301 | i386_elf32_vxworks_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;; | |
2f67d686 AM |
13302 | i386_mach_o_vec) tb="$tb mach-o-i386.lo" ;; |
13303 | i386_msdos_vec) tb="$tb i386msdos.lo" ;; | |
f4943d82 | 13304 | i386_pe_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;; |
251dae91 | 13305 | i386_pe_big_vec) tb="$tb pe-i386.lo peigen.lo $coff" ;; |
f4943d82 | 13306 | i386_pei_vec) tb="$tb pei-i386.lo peigen.lo $coff" ;; |
5f2a6b85 | 13307 | iamcu_elf32_vec) tb="$tb elf32-i386.lo $elfxx_x86 elf32.lo $elf" ;; |
6d00b590 AM |
13308 | ia64_elf32_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;; |
13309 | ia64_elf32_hpux_be_vec) tb="$tb elf32-ia64.lo elfxx-ia64.lo elf32.lo $elf" ;; | |
2f67d686 AM |
13310 | ia64_elf64_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;; |
13311 | ia64_elf64_le_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;; | |
13312 | ia64_elf64_hpux_be_vec) tb="$tb elf64-ia64.lo elfxx-ia64.lo elf64.lo $elf"; target_size=64 ;; | |
13313 | ia64_elf64_vms_vec) tb="$tb elf64-ia64-vms.lo elf64-ia64.lo elfxx-ia64.lo elf64.lo vms-lib.lo vms-misc.lo $elf"; target_size=64 ;; | |
f4943d82 | 13314 | ia64_pei_vec) tb="$tb pei-ia64.lo pepigen.lo $coff"; target_size=64 ;; |
6d00b590 AM |
13315 | ip2k_elf32_vec) tb="$tb elf32-ip2k.lo elf32.lo $elf" ;; |
13316 | iq2000_elf32_vec) tb="$tb elf32-iq2000.lo elf32.lo $elf" ;; | |
bbd19b19 L |
13317 | k1om_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;; |
13318 | k1om_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;; | |
13319 | l1om_elf64_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;; | |
13320 | l1om_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo elfxx-x86.lo elf-ifunc.lo elf64.lo $elf"; target_size=64 ;; | |
6d00b590 AM |
13321 | lm32_elf32_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;; |
13322 | lm32_elf32_fdpic_vec) tb="$tb elf32-lm32.lo elf32.lo $elf" ;; | |
6d00b590 AM |
13323 | m32c_elf32_vec) tb="$tb elf32-m32c.lo elf32.lo $elf" ;; |
13324 | m32r_elf32_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; | |
13325 | m32r_elf32_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; | |
13326 | m32r_elf32_linux_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; | |
13327 | m32r_elf32_linux_le_vec) tb="$tb elf32-m32r.lo elf32.lo $elf" ;; | |
13328 | m68hc11_elf32_vec) tb="$tb elf32-m68hc11.lo elf32-m68hc1x.lo elf32.lo $elf" ;; | |
13329 | m68hc12_elf32_vec) tb="$tb elf32-m68hc12.lo elf32-m68hc1x.lo elf32.lo $elf" ;; | |
13330 | m68k_elf32_vec) tb="$tb elf32-m68k.lo elf32.lo $elf" ;; | |
7b4ae824 | 13331 | s12z_elf32_vec) tb="$tb elf32-s12z.lo elf32.lo $elf" ;; |
f4943d82 AM |
13332 | mach_o_be_vec) tb="$tb mach-o.lo dwarf2.lo" ;; |
13333 | mach_o_le_vec) tb="$tb mach-o.lo dwarf2.lo" ;; | |
13334 | mach_o_fat_vec) tb="$tb mach-o.lo dwarf2.lo" ;; | |
6d00b590 AM |
13335 | mcore_elf32_be_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; |
13336 | mcore_elf32_le_vec) tb="$tb elf32-mcore.lo elf32.lo $elf" ;; | |
f4943d82 AM |
13337 | mcore_pe_be_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;; |
13338 | mcore_pe_le_vec) tb="$tb pe-mcore.lo peigen.lo $coff" ;; | |
13339 | mcore_pei_be_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;; | |
13340 | mcore_pei_le_vec) tb="$tb pei-mcore.lo peigen.lo $coff" ;; | |
6d00b590 AM |
13341 | mep_elf32_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;; |
13342 | mep_elf32_le_vec) tb="$tb elf32-mep.lo elf32.lo $elf" ;; | |
13343 | metag_elf32_vec) tb="$tb elf32-metag.lo elf32.lo $elf" ;; | |
6d00b590 | 13344 | microblaze_elf32_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;; |
2f67d686 | 13345 | microblaze_elf32_le_vec) tb="$tb elf32-microblaze.lo elf32.lo $elf" ;; |
8e415ce8 AM |
13346 | mips_ecoff_be_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;; |
13347 | mips_ecoff_le_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;; | |
13348 | mips_ecoff_bele_vec) tb="$tb coff-mips.lo ecoff.lo $ecoff" ;; | |
f4943d82 AM |
13349 | mips_elf32_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; |
13350 | mips_elf32_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; | |
13351 | mips_elf32_n_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; | |
13352 | mips_elf32_n_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; | |
13353 | mips_elf32_ntrad_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; | |
13354 | mips_elf32_ntrad_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; | |
13355 | mips_elf32_ntradfbsd_be_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; | |
13356 | mips_elf32_ntradfbsd_le_vec) tb="$tb elfn32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; | |
13357 | mips_elf32_trad_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; | |
13358 | mips_elf32_trad_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; | |
13359 | mips_elf32_tradfbsd_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; | |
13360 | mips_elf32_tradfbsd_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; | |
13361 | mips_elf32_vxworks_be_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; | |
13362 | mips_elf32_vxworks_le_vec) tb="$tb elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff" ;; | |
13363 | mips_elf64_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; | |
13364 | mips_elf64_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; | |
13365 | mips_elf64_trad_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; | |
13366 | mips_elf64_trad_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; | |
13367 | mips_elf64_tradfbsd_be_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; | |
13368 | mips_elf64_tradfbsd_le_vec) tb="$tb elf64-mips.lo elf64.lo elfxx-mips.lo elf-vxworks.lo elf32.lo $elf $ecoff"; target_size=64 ;; | |
2f67d686 AM |
13369 | mmix_elf64_vec) tb="$tb elf64-mmix.lo elf64.lo $elf" target_size=64 ;; |
13370 | mmix_mmo_vec) tb="$tb mmo.lo" target_size=64 ;; | |
13371 | mn10200_elf32_vec) tb="$tb elf-m10200.lo elf32.lo $elf" ;; | |
13372 | mn10300_elf32_vec) tb="$tb elf-m10300.lo elf32.lo $elf" ;; | |
13373 | moxie_elf32_be_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;; | |
13374 | moxie_elf32_le_vec) tb="$tb elf32-moxie.lo elf32.lo $elf" ;; | |
13375 | msp430_elf32_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;; | |
13376 | msp430_elf32_ti_vec) tb="$tb elf32-msp430.lo elf32.lo $elf" ;; | |
13377 | mt_elf32_vec) tb="$tb elf32-mt.lo elf32.lo $elf" ;; | |
6d00b590 AM |
13378 | nds32_elf32_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; |
13379 | nds32_elf32_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; | |
13380 | nds32_elf32_linux_be_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; | |
13381 | nds32_elf32_linux_le_vec) tb="$tb elf32-nds32.lo elf32.lo $elf" ;; | |
fe944acf | 13382 | nfp_elf64_vec) tb="$tb elf64-nfp.lo elf64.lo $elf" ;; |
2f67d686 AM |
13383 | nios2_elf32_be_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;; |
13384 | nios2_elf32_le_vec) tb="$tb elf32-nios2.lo elf32.lo $elf" ;; | |
13385 | ns32k_aout_pc532mach_vec) tb="$tb pc532-mach.lo aout-ns32k.lo" ;; | |
13386 | ns32k_aout_pc532nbsd_vec) tb="$tb ns32knetbsd.lo aout-ns32k.lo" ;; | |
6d00b590 | 13387 | or1k_elf32_vec) tb="$tb elf32-or1k.lo elf32.lo $elf" ;; |
2f67d686 AM |
13388 | pdp11_aout_vec) tb="$tb pdp11.lo" ;; |
13389 | pef_vec) tb="$tb pef.lo" ;; | |
13390 | pef_xlib_vec) tb="$tb pef.lo" ;; | |
6d00b590 AM |
13391 | pj_elf32_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;; |
13392 | pj_elf32_le_vec) tb="$tb elf32-pj.lo elf32.lo $elf" ;; | |
2f67d686 | 13393 | powerpc_boot_vec) tb="$tb ppcboot.lo" ;; |
6d00b590 AM |
13394 | powerpc_elf32_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; |
13395 | powerpc_elf32_le_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; | |
13396 | powerpc_elf32_fbsd_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; | |
13397 | powerpc_elf32_vxworks_vec) tb="$tb elf32-ppc.lo elf-vxworks.lo elf32.lo $elf" ;; | |
2f67d686 AM |
13398 | powerpc_elf64_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf"; target_size=64 ;; |
13399 | powerpc_elf64_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; | |
13400 | powerpc_elf64_fbsd_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; | |
6afcdeb3 | 13401 | powerpc_elf64_fbsd_le_vec) tb="$tb elf64-ppc.lo elf64-gen.lo elf64.lo $elf" target_size=64 ;; |
f4943d82 | 13402 | powerpc_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;; |
889294f6 | 13403 | pru_elf32_vec) tb="$tb elf32-pru.lo elf32.lo $elf" ;; |
02dd9d25 NC |
13404 | riscv_elf32_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf" ;; |
13405 | riscv_elf64_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;; | |
fbc09e7a MC |
13406 | riscv_elf32_be_vec) tb="$tb elf32-riscv.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf" ;; |
13407 | riscv_elf64_be_vec) tb="$tb elf64-riscv.lo elf64.lo elfxx-riscv.lo elf-ifunc.lo elf32.lo $elf"; target_size=64 ;; | |
6d00b590 | 13408 | rl78_elf32_vec) tb="$tb elf32-rl78.lo elf32.lo $elf" ;; |
f4943d82 AM |
13409 | rs6000_xcoff64_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;; |
13410 | rs6000_xcoff64_aix_vec) tb="$tb coff64-rs6000.lo aix5ppc-core.lo $xcoff"; target_size=64 ;; | |
13411 | rs6000_xcoff_vec) tb="$tb coff-rs6000.lo $xcoff" ;; | |
6d00b590 AM |
13412 | rx_elf32_be_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; |
13413 | rx_elf32_be_ns_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; | |
2f67d686 | 13414 | rx_elf32_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; |
42d4c301 | 13415 | rx_elf32_linux_le_vec) tb="$tb elf32-rx.lo elf32.lo $elf" ;; |
6d00b590 | 13416 | s390_elf32_vec) tb="$tb elf32-s390.lo elf32.lo $elf" ;; |
2f67d686 | 13417 | s390_elf64_vec) tb="$tb elf64-s390.lo elf64.lo $elf"; target_size=64 ;; |
a8e14f4c NC |
13418 | score_elf32_be_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo elf64.lo $elf"; want64=true; target_size=64 ;; |
13419 | score_elf32_le_vec) tb="$tb elf32-score.lo elf32-score7.lo elf32.lo elf64.lo $elf"; want64=true; target_size=64 ;; | |
f4943d82 AM |
13420 | sh_coff_vec) tb="$tb coff-sh.lo $coff" ;; |
13421 | sh_coff_le_vec) tb="$tb coff-sh.lo $coff" ;; | |
13422 | sh_coff_small_vec) tb="$tb coff-sh.lo $coff" ;; | |
13423 | sh_coff_small_le_vec) tb="$tb coff-sh.lo $coff" ;; | |
13424 | sh_elf32_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; | |
13425 | sh_elf32_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; | |
13426 | sh_elf32_fdpic_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; | |
13427 | sh_elf32_fdpic_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; | |
13428 | sh_elf32_linux_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; | |
13429 | sh_elf32_linux_be_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; | |
13430 | sh_elf32_nbsd_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; | |
13431 | sh_elf32_nbsd_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; | |
f4943d82 AM |
13432 | sh_elf32_vxworks_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; |
13433 | sh_elf32_vxworks_le_vec) tb="$tb elf32-sh.lo elf-vxworks.lo elf32.lo $elf coff-sh.lo $coff" ;; | |
13434 | sh_pe_le_vec) tb="$tb pe-sh.lo coff-sh.lo peigen.lo $coff" ;; | |
13435 | sh_pei_le_vec) tb="$tb pei-sh.lo coff-sh.lo peigen.lo $coff" ;; | |
2f67d686 AM |
13436 | sparc_elf32_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; |
13437 | sparc_elf32_sol2_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; | |
13438 | sparc_elf32_vxworks_vec) tb="$tb elf32-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf32.lo $elf" ;; | |
13439 | sparc_elf64_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; | |
13440 | sparc_elf64_fbsd_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; | |
13441 | sparc_elf64_sol2_vec) tb="$tb elf64-sparc.lo elfxx-sparc.lo elf-vxworks.lo elf64.lo $elf"; target_size=64 ;; | |
2f67d686 | 13442 | spu_elf32_vec) tb="$tb elf32-spu.lo elf32.lo $elf" ;; |
6d00b590 | 13443 | sym_vec) tb="$tb xsym.lo" ;; |
f4943d82 AM |
13444 | tic30_coff_vec) tb="$tb coff-tic30.lo $coffgen" ;; |
13445 | tic4x_coff0_vec) tb="$tb coff-tic4x.lo $coffgen" ;; | |
13446 | tic4x_coff0_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;; | |
13447 | tic4x_coff1_vec) tb="$tb coff-tic4x.lo $coffgen" ;; | |
13448 | tic4x_coff1_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;; | |
13449 | tic4x_coff2_vec) tb="$tb coff-tic4x.lo $coffgen" ;; | |
13450 | tic4x_coff2_beh_vec) tb="$tb coff-tic4x.lo $coffgen" ;; | |
13451 | tic54x_coff0_vec) tb="$tb coff-tic54x.lo $coffgen" ;; | |
13452 | tic54x_coff0_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;; | |
13453 | tic54x_coff1_vec) tb="$tb coff-tic54x.lo $coffgen" ;; | |
13454 | tic54x_coff1_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;; | |
13455 | tic54x_coff2_vec) tb="$tb coff-tic54x.lo $coffgen" ;; | |
13456 | tic54x_coff2_beh_vec) tb="$tb coff-tic54x.lo $coffgen" ;; | |
2f67d686 AM |
13457 | tic6x_elf32_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; |
13458 | tic6x_elf32_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; | |
13459 | tic6x_elf32_c6000_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; | |
13460 | tic6x_elf32_c6000_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; | |
13461 | tic6x_elf32_linux_be_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; | |
13462 | tic6x_elf32_linux_le_vec) tb="$tb elf32-tic6x.lo elf32.lo $elf" ;; | |
2f67d686 AM |
13463 | tilegx_elf32_be_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;; |
13464 | tilegx_elf32_le_vec) tb="$tb elf32-tilegx.lo elfxx-tilegx.lo elf32.lo $elf" ; target_size=32 ;; | |
13465 | tilegx_elf64_be_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;; | |
13466 | tilegx_elf64_le_vec) tb="$tb elf64-tilegx.lo elfxx-tilegx.lo elf64.lo $elf" ; target_size=64 ;; | |
13467 | tilepro_elf32_vec) tb="$tb elf32-tilepro.lo elf32.lo $elf" ;; | |
13468 | v800_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; | |
13469 | v850_elf32_vec) tb="$tb elf32-v850.lo elf32.lo $elf" ;; | |
6d00b590 | 13470 | vax_aout_1knbsd_vec) tb="$tb vax1knetbsd.lo aout32.lo" ;; |
2f67d686 AM |
13471 | vax_aout_nbsd_vec) tb="$tb vaxnetbsd.lo aout32.lo" ;; |
13472 | vax_elf32_vec) tb="$tb elf32-vax.lo elf32.lo $elf" ;; | |
3f8107ab | 13473 | ft32_elf32_vec) tb="$tb elf32-ft32.lo elf32.lo $elf" ;; |
d924db55 | 13474 | visium_elf32_vec) tb="$tb elf32-visium.lo elf32.lo $elf" ;; |
a6be0538 | 13475 | wasm_vec) tb="$tb wasm-module.lo" ;; |
8fb740dd | 13476 | wasm32_elf32_vec) tb="$tb elf32-wasm32.lo elf32.lo $elf" ;; |
f4943d82 | 13477 | x86_64_coff_vec) tb="$tb coff-x86_64.lo $coff"; target_size=64 ;; |
5f2a6b85 | 13478 | x86_64_elf32_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo elf32.lo $elf"; target_size=64 ;; |
5f2a6b85 AM |
13479 | x86_64_elf64_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;; |
13480 | x86_64_elf64_cloudabi_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;; | |
13481 | x86_64_elf64_fbsd_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;; | |
5f2a6b85 | 13482 | x86_64_elf64_sol2_vec) tb="$tb elf64-x86-64.lo $elfxx_x86 elf64.lo $elf"; target_size=64 ;; |
2f67d686 | 13483 | x86_64_mach_o_vec) tb="$tb mach-o-x86-64.lo" ;; |
f4943d82 | 13484 | x86_64_pe_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;; |
251dae91 | 13485 | x86_64_pe_big_vec) tb="$tb pe-x86_64.lo pex64igen.lo $coff"; target_size=64 ;; |
f4943d82 | 13486 | x86_64_pei_vec) tb="$tb pei-x86_64.lo pex64igen.lo $coff"; target_size=64 ;; |
2f67d686 AM |
13487 | xc16x_elf32_vec) tb="$tb elf32-xc16x.lo elf32.lo $elf" ;; |
13488 | xgate_elf32_vec) tb="$tb elf32-xgate.lo elf32.lo $elf" ;; | |
13489 | xstormy16_elf32_vec) tb="$tb elf32-xstormy16.lo elf32.lo $elf" ;; | |
13490 | xtensa_elf32_be_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; | |
13491 | xtensa_elf32_le_vec) tb="$tb xtensa-isa.lo xtensa-modules.lo elf32-xtensa.lo elf32.lo $elf" ;; | |
f4943d82 | 13492 | z80_coff_vec) tb="$tb coff-z80.lo reloc16.lo $coffgen" ;; |
6655dba2 | 13493 | z80_elf32_vec) tb="$tb elf32-z80.lo elf32.lo $elf" ;; |
f4943d82 | 13494 | z8k_coff_vec) tb="$tb coff-z8k.lo reloc16.lo $coff" ;; |
2ba49b59 | 13495 | |
c603b11b AM |
13496 | # These appear out of order in targets.c |
13497 | srec_vec) tb="$tb srec.lo" ;; | |
13498 | symbolsrec_vec) tb="$tb srec.lo" ;; | |
13499 | tekhex_vec) tb="$tb tekhex.lo" ;; | |
13500 | core_cisco_be_vec) tb="$tb cisco-core.lo" ;; | |
13501 | core_cisco_le_vec) tb="$tb cisco-core.lo" ;; | |
13502 | ||
13503 | "") ;; | |
d0ac1c44 | 13504 | *) as_fn_error $? "*** unknown target vector $vec" "$LINENO" 5 ;; |
c603b11b AM |
13505 | esac |
13506 | ||
13507 | if test ${target_size} = 64; then | |
13508 | target64=true | |
13509 | fi | |
13510 | if test x"${vec}" = x"${defvec}"; then | |
13511 | bfd_default_target_size=${target_size} | |
13512 | fi | |
13513 | done | |
13514 | ||
999d6dff AM |
13515 | if test "$plugins" = "yes"; then |
13516 | tb="$tb plugin.lo" | |
13517 | fi | |
13518 | ||
c603b11b AM |
13519 | # Target architecture .o files. |
13520 | # A couple of CPUs use shorter file names to avoid problems on DOS | |
13521 | # filesystems. | |
13522 | ta=`echo $selarchs | sed -e s/bfd_/cpu-/g -e s/_arch/.lo/g -e s/mn10200/m10200/ -e s/mn10300/m10300/` | |
13523 | ||
13524 | # Weed out duplicate .o files. | |
13525 | f="" | |
13526 | for i in $tb ; do | |
13527 | case " $f " in | |
13528 | *" $i "*) ;; | |
13529 | *) f="$f $i" ;; | |
13530 | esac | |
13531 | done | |
13532 | tb="$f" | |
13533 | ||
13534 | f="" | |
13535 | for i in $ta ; do | |
13536 | case " $f " in | |
13537 | *" $i "*) ;; | |
13538 | *) f="$f $i" ;; | |
13539 | esac | |
13540 | done | |
13541 | ta="$f" | |
13542 | ||
13543 | bfd_backends="$tb" | |
13544 | bfd_machines="$ta" | |
13545 | ||
13546 | if test x${all_targets} = xtrue ; then | |
13547 | bfd_backends="${bfd_backends}"' $(ALL_BACKENDS)' | |
13548 | bfd_machines="${bfd_machines}"' $(ALL_MACHINES)' | |
13549 | selvecs= | |
13550 | havevecs=-DHAVE_all_vecs | |
13551 | selarchs= | |
13552 | test -n "$assocvecs" && | |
13553 | assocvecs=`echo $assocvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
13554 | else # all_targets is true | |
13555 | # Only set these if they will be nonempty, for the clever echo. | |
13556 | havevecs= | |
13557 | assocvecs= | |
13558 | test -n "$selvecs" && | |
13559 | havevecs=`echo $selvecs | sed -e 's/^/-DHAVE_/' -e 's/ \(.\)/ -DHAVE_\1/g'` | |
13560 | test -n "$selvecs" && | |
13561 | selvecs=`echo $selvecs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
13562 | test -n "$selarchs" && | |
13563 | selarchs=`echo $selarchs | sed -e 's/^/\&/' -e 's/ \(.\)/,\&\1/g'` | |
13564 | fi # all_targets is true | |
13565 | ||
e6cc316a L |
13566 | # 64-bit archives need a 64-bit bfd_vma. |
13567 | if test "x$want_64_bit_archive" = xtrue; then | |
13568 | want64=true | |
13569 | ||
13570 | $as_echo "#define USE_64_BIT_ARCHIVE 1" >>confdefs.h | |
13571 | ||
13572 | fi | |
13573 | ||
c603b11b AM |
13574 | case ${host64}-${target64}-${want64} in |
13575 | *true*) | |
13576 | wordsize=64 | |
13577 | bfd64_libs='$(BFD64_LIBS)' | |
13578 | all_backends='$(BFD64_BACKENDS) $(BFD32_BACKENDS)' | |
13579 | if test $BFD_HOST_64_BIT_DEFINED = 0; then | |
13580 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have requested a 64 bit BFD configuration, but" >&5 | |
13581 | $as_echo "$as_me: WARNING: You have requested a 64 bit BFD configuration, but" >&2;} | |
13582 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler may not have a 64 bit integral type" >&5 | |
13583 | $as_echo "$as_me: WARNING: your compiler may not have a 64 bit integral type" >&2;} | |
13584 | fi | |
13585 | if test -n "$GCC" ; then | |
13586 | bad_64bit_gcc=no; | |
13587 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc version with buggy 64-bit support" >&5 | |
13588 | $as_echo_n "checking for gcc version with buggy 64-bit support... " >&6; } | |
13589 | # Add more tests for gcc versions with non-working 64-bit support here. | |
13590 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13591 | /* end confdefs.h. */ | |
13592 | :__GNUC__:__GNUC_MINOR__:__i386__: | |
13593 | _ACEOF | |
13594 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
13595 | $EGREP ": 2 : 91 : 1 :" >/dev/null 2>&1; then : | |
13596 | bad_64bit_gcc=yes; | |
13597 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: egcs-1.1.2 on ix86 spotted" >&5 | |
13598 | $as_echo "yes: egcs-1.1.2 on ix86 spotted" >&6; } | |
13599 | else | |
13600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13601 | $as_echo "no" >&6; } | |
13602 | fi | |
13603 | rm -f conftest* | |
13604 | ||
13605 | if test $bad_64bit_gcc = yes ; then | |
d0ac1c44 | 13606 | as_fn_error $? "A newer version of gcc is needed for the requested 64-bit BFD configuration" "$LINENO" 5 |
c603b11b AM |
13607 | fi |
13608 | fi | |
13609 | ;; | |
13610 | false-false-false) | |
13611 | wordsize=32 | |
13612 | all_backends='$(BFD32_BACKENDS)' | |
13613 | ;; | |
13614 | esac | |
13615 | ||
13616 | tdefaults="" | |
13617 | test -n "${defvec}" && tdefaults="${tdefaults} -DDEFAULT_VECTOR=${defvec}" | |
13618 | test -n "${selvecs}" && tdefaults="${tdefaults} -DSELECT_VECS='${selvecs}'" | |
13619 | test -n "${assocvecs}" && tdefaults="${tdefaults} -DASSOCIATED_VECS='${assocvecs}'" | |
13620 | test -n "${selarchs}" && tdefaults="${tdefaults} -DSELECT_ARCHITECTURES='${selarchs}'" | |
13621 | ||
13622 | ||
13623 | ||
13624 | ||
13625 | ||
13626 | ||
13627 | ||
13628 | ||
13629 | ||
13630 | ||
13631 | # If we are configured native, pick a core file support file. | |
13632 | COREFILE= | |
13633 | COREFLAG= | |
13634 | CORE_HEADER= | |
13635 | TRAD_HEADER= | |
13636 | if test "${target}" = "${host}"; then | |
13637 | case "${host}" in | |
13638 | alpha*-*-freebsd* | alpha*-*-kfreebsd*-gnu | alpha*-*-*vms*) | |
13639 | COREFILE='' | |
13640 | ;; | |
13641 | alpha*-*-linux-*) | |
13642 | COREFILE=trad-core.lo | |
13643 | TRAD_HEADER='"hosts/alphalinux.h"' | |
13644 | ;; | |
13645 | alpha*-*-netbsd* | alpha*-*-openbsd*) | |
13646 | COREFILE=netbsd-core.lo | |
13647 | ;; | |
13648 | alpha*-*-*) | |
13649 | COREFILE=osf-core.lo | |
13650 | ;; | |
13651 | arm-*-freebsd* | arm-*-kfreebsd*-gnu) | |
13652 | COREFILE='' ;; | |
8b5d0a4f | 13653 | arm*-*-netbsd* | arm-*-openbsd*) |
c603b11b AM |
13654 | COREFILE=netbsd-core.lo |
13655 | ;; | |
13656 | arm-*-riscix) COREFILE=trad-core.lo ;; | |
13657 | hppa*-*-hpux*) COREFILE=hpux-core.lo ;; | |
13658 | hppa*-*-hiux*) COREFILE=hpux-core.lo ;; | |
13659 | hppa*-*-mpeix*) COREFILE=hpux-core.lo ;; | |
13660 | hppa*-*-bsd*) COREFILE="hpux-core.lo hppabsd-core.lo" | |
13661 | COREFLAG="-DHPUX_CORE -DHPPABSD_CORE" ;; | |
13662 | hppa*-*-netbsd* | hppa*-*-openbsd*) | |
13663 | COREFILE=netbsd-core.lo | |
13664 | ;; | |
13665 | ||
c603b11b AM |
13666 | i[3-7]86-sequent-bsd*) |
13667 | COREFILE=trad-core.lo | |
13668 | TRAD_HEADER='"hosts/symmetry.h"' | |
13669 | ;; | |
13670 | i[3-7]86-sequent-sysv4*) ;; | |
13671 | i[3-7]86-sequent-sysv*) | |
13672 | COREFILE=trad-core.lo | |
13673 | TRAD_HEADER='"hosts/symmetry.h"' | |
13674 | ;; | |
13675 | i[3-7]86-*-bsdi) | |
13676 | COREFILE= | |
13677 | ;; | |
13678 | 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*) | |
13679 | COREFILE=trad-core.lo | |
13680 | TRAD_HEADER='"hosts/i386bsd.h"' | |
13681 | ;; | |
13682 | i[3-7]86-*-freebsd* | i[3-7]86-*-kfreebsd*-gnu | i[3-7]86-*-dragonfly*) | |
13683 | COREFILE='' | |
13684 | TRAD_HEADER='"hosts/i386bsd.h"' | |
13685 | ;; | |
13686 | i[3-7]86-*-netbsd* | i[3-7]86-*-knetbsd*-gnu | i[3-7]86-*-openbsd*) | |
13687 | COREFILE=netbsd-core.lo | |
13688 | ;; | |
13689 | i[3-7]86-esix-sysv3*) | |
13690 | COREFILE=trad-core.lo | |
13691 | TRAD_HEADER='"hosts/esix.h"' | |
13692 | ;; | |
13693 | i[3-7]86-*-sco3.2v5*) | |
13694 | COREFILE=sco5-core.lo | |
13695 | ;; | |
13696 | i[3-7]86-*-sco* | i[3-7]86-*-isc*) | |
13697 | COREFILE=trad-core.lo | |
13698 | TRAD_HEADER='"hosts/i386sco.h"' | |
13699 | ;; | |
13700 | i[3-7]86-*-mach3*) | |
13701 | COREFILE=trad-core.lo | |
13702 | TRAD_HEADER='"hosts/i386mach3.h"' | |
13703 | ;; | |
13704 | i[3-7]86-*-linux-*) | |
13705 | COREFILE=trad-core.lo | |
13706 | TRAD_HEADER='"hosts/i386linux.h"' | |
13707 | case "$enable_targets"-"$want64" in | |
13708 | *x86_64-*linux*|*-true) | |
13709 | CORE_HEADER='"hosts/x86-64linux.h"' | |
13710 | esac | |
13711 | ;; | |
13712 | i[3-7]86-*-isc*) COREFILE=trad-core.lo ;; | |
13713 | i[3-7]86-*-aix*) COREFILE=aix386-core.lo ;; | |
8b5d0a4f | 13714 | mips*-*-netbsd* | mips*-*-openbsd*) |
c603b11b AM |
13715 | COREFILE=netbsd-core.lo |
13716 | ;; | |
c603b11b AM |
13717 | mips-sgi-irix4*) COREFILE=irix-core.lo ;; |
13718 | mips-sgi-irix5*) COREFILE=irix-core.lo ;; | |
13719 | mips-sgi-irix6*) COREFILE=irix-core.lo ;; | |
c603b11b AM |
13720 | m68*-*-linux-*) |
13721 | COREFILE=trad-core.lo | |
13722 | TRAD_HEADER='"hosts/m68klinux.h"' | |
13723 | ;; | |
dc12032b | 13724 | m68*-*-netbsd*) |
c603b11b AM |
13725 | COREFILE=netbsd-core.lo |
13726 | ;; | |
c603b11b AM |
13727 | ns32k-pc532-mach) |
13728 | COREFILE=trad-core.lo | |
13729 | TRAD_HEADER='"hosts/pc532mach.h"' | |
13730 | ;; | |
13731 | ns32k-*-netbsd* | ns32k-*-openbsd*) | |
13732 | COREFILE=netbsd-core.lo | |
13733 | ;; | |
13734 | rs6000-*-lynx*) | |
13735 | COREFILE=lynx-core.lo | |
13736 | ;; | |
13737 | rs6000-*-aix[5-9].* | powerpc-*-aix[5-9].* | powerpc64-*-aix[5-9].*) | |
13738 | COREFILE=rs6000-core.lo | |
13739 | COREFLAG="$COREFLAG -DAIX_5_CORE -DAIX_CORE_DUMPX_CORE" | |
13740 | ;; | |
13741 | rs6000-*-aix4.[3-9]* | powerpc-*-aix4.[3-9]*) | |
13742 | COREFILE=rs6000-core.lo | |
13743 | COREFLAG="$COREFLAG -DAIX_CORE_DUMPX_CORE" | |
13744 | # Not all versions of AIX with -DAIX_CORE_DUMPX_CORE | |
13745 | # have c_impl as a member of struct core_dumpx | |
13746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for c_impl in struct core_dumpx" >&5 | |
13747 | $as_echo_n "checking for c_impl in struct core_dumpx... " >&6; } | |
13748 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13749 | /* end confdefs.h. */ | |
13750 | #include <core.h> | |
13751 | int | |
13752 | main () | |
13753 | { | |
13754 | struct core_dumpx c; c.c_impl = 0; | |
13755 | ; | |
13756 | return 0; | |
13757 | } | |
13758 | _ACEOF | |
13759 | if ac_fn_c_try_compile "$LINENO"; then : | |
13760 | ||
13761 | $as_echo "#define HAVE_ST_C_IMPL 1" >>confdefs.h | |
13762 | ||
13763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
13764 | $as_echo "yes" >&6; } | |
13765 | else | |
13766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
13767 | $as_echo "no" >&6; } | |
13768 | fi | |
13769 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13770 | ;; | |
13771 | rs6000-*-aix4*) COREFILE=rs6000-core.lo ;; | |
13772 | rs6000-*-*) COREFILE=rs6000-core.lo ;; | |
13773 | powerpc64-*-aix*) COREFILE=rs6000-core.lo ;; | |
13774 | powerpc-*-aix4*) COREFILE=rs6000-core.lo ;; | |
13775 | powerpc-*-aix*) COREFILE=rs6000-core.lo ;; | |
13776 | powerpc-*-beos*) ;; | |
13777 | powerpc-*-freebsd* | powerpc-*-kfreebsd*-gnu) | |
13778 | COREFILE='' ;; | |
13779 | powerpc-*-netbsd*) COREFILE=netbsd-core.lo ;; | |
13780 | powerpc-*-*bsd*) COREFILE=netbsd-core.lo ;; | |
13781 | s390*-*-*) COREFILE=trad-core.lo ;; | |
13782 | sh*-*-netbsd* | sh*-*-openbsd*) | |
13783 | COREFILE=netbsd-core.lo | |
13784 | ;; | |
13785 | sparc-*-netbsd* | sparc*-*-openbsd*) | |
13786 | COREFILE=netbsd-core.lo | |
13787 | ;; | |
c603b11b AM |
13788 | vax-*-netbsd* | vax-*-openbsd*) |
13789 | COREFILE=netbsd-core.lo | |
13790 | ;; | |
13791 | vax-*-ultrix2*) | |
13792 | COREFILE=trad-core.lo | |
13793 | TRAD_HEADER='"hosts/vaxult2.h"' | |
13794 | ;; | |
13795 | vax-*-ultrix*) | |
13796 | COREFILE=trad-core.lo | |
13797 | TRAD_HEADER='"hosts/vaxult2.h"' | |
13798 | ;; | |
13799 | vax-*-linux-*) | |
13800 | COREFILE=trad-core.lo | |
13801 | TRAD_HEADER='"hosts/vaxlinux.h"' | |
13802 | ;; | |
13803 | vax-*-*) | |
13804 | COREFILE=trad-core.lo | |
13805 | TRAD_HEADER='"hosts/vaxbsd.h"' | |
13806 | ;; | |
13807 | x86_64-*-linux*) | |
13808 | CORE_HEADER='"hosts/x86-64linux.h"' | |
13809 | ;; | |
13810 | x86_64-*-netbsd* | x86_64-*-openbsd*) | |
13811 | COREFILE=netbsd-core.lo | |
13812 | ;; | |
13813 | esac | |
13814 | ||
13815 | case "$COREFILE" in | |
13816 | aix386-core.lo) COREFLAG=-DAIX386_CORE ;; | |
13817 | hppabsd-core.lo) COREFLAG=-DHPPABSD_CORE ;; | |
13818 | hpux-core.lo) COREFLAG=-DHPUX_CORE ;; | |
13819 | irix-core.lo) COREFLAG=-DIRIX_CORE ;; | |
13820 | lynx-core.lo) COREFLAG=-DLYNX_CORE ;; | |
13821 | netbsd-core.lo) COREFLAG=-DNETBSD_CORE ;; | |
13822 | osf-core.lo) COREFLAG=-DOSF_CORE ;; | |
13823 | ptrace-core.lo) COREFLAG=-DPTRACE_CORE ;; | |
13824 | rs6000-core.lo) COREFLAG="$COREFLAG -DAIX_CORE" ;; | |
13825 | sco5-core.lo) COREFLAG="$COREFLAG -DSCO5_CORE" ;; | |
13826 | trad-core.lo) COREFLAG="$COREFLAG -DTRAD_CORE" ;; | |
13827 | esac | |
13828 | ||
13829 | # ELF corefile support has several flavors, but all of | |
13830 | # them use something called <sys/procfs.h> | |
c8693053 RO |
13831 | |
13832 | $as_echo "#define _STRUCTURED_PROC 1" >>confdefs.h | |
13833 | ||
13834 | for ac_header in sys/procfs.h | |
c603b11b AM |
13835 | do : |
13836 | ac_fn_c_check_header_mongrel "$LINENO" "sys/procfs.h" "ac_cv_header_sys_procfs_h" "$ac_includes_default" | |
d0ac1c44 | 13837 | if test "x$ac_cv_header_sys_procfs_h" = xyes; then : |
c603b11b AM |
13838 | cat >>confdefs.h <<_ACEOF |
13839 | #define HAVE_SYS_PROCFS_H 1 | |
13840 | _ACEOF | |
13841 | ||
13842 | fi | |
13843 | ||
13844 | done | |
13845 | ||
13846 | if test "$ac_cv_header_sys_procfs_h" = yes; then | |
c8693053 RO |
13847 | |
13848 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t in sys/procfs.h" >&5 | |
c603b11b | 13849 | $as_echo_n "checking for prstatus_t in sys/procfs.h... " >&6; } |
d0ac1c44 | 13850 | if ${bfd_cv_have_sys_procfs_type_prstatus_t+:} false; then : |
c603b11b AM |
13851 | $as_echo_n "(cached) " >&6 |
13852 | else | |
13853 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13854 | /* end confdefs.h. */ | |
13855 | ||
13856 | #define _SYSCALL32 | |
c603b11b AM |
13857 | #include <sys/procfs.h> |
13858 | int | |
13859 | main () | |
13860 | { | |
13861 | prstatus_t avar | |
13862 | ; | |
13863 | return 0; | |
13864 | } | |
13865 | _ACEOF | |
13866 | if ac_fn_c_try_compile "$LINENO"; then : | |
13867 | bfd_cv_have_sys_procfs_type_prstatus_t=yes | |
13868 | else | |
13869 | bfd_cv_have_sys_procfs_type_prstatus_t=no | |
13870 | ||
13871 | fi | |
13872 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13873 | fi | |
13874 | ||
13875 | if test $bfd_cv_have_sys_procfs_type_prstatus_t = yes; then | |
13876 | ||
13877 | $as_echo "#define HAVE_PRSTATUS_T 1" >>confdefs.h | |
13878 | ||
13879 | fi | |
13880 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus_t" >&5 | |
13881 | $as_echo "$bfd_cv_have_sys_procfs_type_prstatus_t" >&6; } | |
13882 | ||
c8693053 RO |
13883 | |
13884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t in sys/procfs.h" >&5 | |
c603b11b | 13885 | $as_echo_n "checking for prstatus32_t in sys/procfs.h... " >&6; } |
d0ac1c44 | 13886 | if ${bfd_cv_have_sys_procfs_type_prstatus32_t+:} false; then : |
c603b11b AM |
13887 | $as_echo_n "(cached) " >&6 |
13888 | else | |
13889 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13890 | /* end confdefs.h. */ | |
13891 | ||
13892 | #define _SYSCALL32 | |
c603b11b AM |
13893 | #include <sys/procfs.h> |
13894 | int | |
13895 | main () | |
13896 | { | |
13897 | prstatus32_t avar | |
13898 | ; | |
13899 | return 0; | |
13900 | } | |
13901 | _ACEOF | |
13902 | if ac_fn_c_try_compile "$LINENO"; then : | |
13903 | bfd_cv_have_sys_procfs_type_prstatus32_t=yes | |
13904 | else | |
13905 | bfd_cv_have_sys_procfs_type_prstatus32_t=no | |
13906 | ||
13907 | fi | |
13908 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13909 | fi | |
13910 | ||
13911 | if test $bfd_cv_have_sys_procfs_type_prstatus32_t = yes; then | |
13912 | ||
13913 | $as_echo "#define HAVE_PRSTATUS32_T 1" >>confdefs.h | |
13914 | ||
13915 | fi | |
13916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prstatus32_t" >&5 | |
13917 | $as_echo "$bfd_cv_have_sys_procfs_type_prstatus32_t" >&6; } | |
13918 | ||
c8693053 RO |
13919 | |
13920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus_t.pr_who in sys/procfs.h" >&5 | |
c603b11b | 13921 | $as_echo_n "checking for prstatus_t.pr_who in sys/procfs.h... " >&6; } |
d0ac1c44 | 13922 | if ${bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who+:} false; then : |
c603b11b AM |
13923 | $as_echo_n "(cached) " >&6 |
13924 | else | |
13925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13926 | /* end confdefs.h. */ | |
13927 | ||
13928 | #define _SYSCALL32 | |
c603b11b AM |
13929 | #include <sys/procfs.h> |
13930 | int | |
13931 | main () | |
13932 | { | |
13933 | prstatus_t avar; void* aref = (void*) &avar.pr_who | |
13934 | ; | |
13935 | return 0; | |
13936 | } | |
13937 | _ACEOF | |
13938 | if ac_fn_c_try_compile "$LINENO"; then : | |
13939 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=yes | |
13940 | else | |
13941 | bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who=no | |
13942 | ||
13943 | fi | |
13944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13945 | fi | |
13946 | ||
13947 | if test $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who = yes; then | |
13948 | ||
13949 | $as_echo "#define HAVE_PRSTATUS_T_PR_WHO 1" >>confdefs.h | |
13950 | ||
13951 | fi | |
13952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&5 | |
13953 | $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus_t_pr_who" >&6; } | |
13954 | ||
c8693053 RO |
13955 | |
13956 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prstatus32_t.pr_who in sys/procfs.h" >&5 | |
c603b11b | 13957 | $as_echo_n "checking for prstatus32_t.pr_who in sys/procfs.h... " >&6; } |
d0ac1c44 | 13958 | if ${bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who+:} false; then : |
c603b11b AM |
13959 | $as_echo_n "(cached) " >&6 |
13960 | else | |
13961 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13962 | /* end confdefs.h. */ | |
13963 | ||
13964 | #define _SYSCALL32 | |
c603b11b AM |
13965 | #include <sys/procfs.h> |
13966 | int | |
13967 | main () | |
13968 | { | |
13969 | prstatus32_t avar; void* aref = (void*) &avar.pr_who | |
13970 | ; | |
13971 | return 0; | |
13972 | } | |
13973 | _ACEOF | |
13974 | if ac_fn_c_try_compile "$LINENO"; then : | |
13975 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=yes | |
13976 | else | |
13977 | bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who=no | |
13978 | ||
13979 | fi | |
13980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
13981 | fi | |
13982 | ||
13983 | if test $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who = yes; then | |
13984 | ||
13985 | $as_echo "#define HAVE_PRSTATUS32_T_PR_WHO 1" >>confdefs.h | |
13986 | ||
13987 | fi | |
13988 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&5 | |
13989 | $as_echo "$bfd_cv_have_sys_procfs_type_member_prstatus32_t_pr_who" >&6; } | |
13990 | ||
c8693053 RO |
13991 | |
13992 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus_t in sys/procfs.h" >&5 | |
c603b11b | 13993 | $as_echo_n "checking for pstatus_t in sys/procfs.h... " >&6; } |
d0ac1c44 | 13994 | if ${bfd_cv_have_sys_procfs_type_pstatus_t+:} false; then : |
c603b11b AM |
13995 | $as_echo_n "(cached) " >&6 |
13996 | else | |
13997 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
13998 | /* end confdefs.h. */ | |
13999 | ||
14000 | #define _SYSCALL32 | |
c603b11b AM |
14001 | #include <sys/procfs.h> |
14002 | int | |
14003 | main () | |
14004 | { | |
14005 | pstatus_t avar | |
14006 | ; | |
14007 | return 0; | |
14008 | } | |
14009 | _ACEOF | |
14010 | if ac_fn_c_try_compile "$LINENO"; then : | |
14011 | bfd_cv_have_sys_procfs_type_pstatus_t=yes | |
14012 | else | |
14013 | bfd_cv_have_sys_procfs_type_pstatus_t=no | |
14014 | ||
14015 | fi | |
14016 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14017 | fi | |
14018 | ||
14019 | if test $bfd_cv_have_sys_procfs_type_pstatus_t = yes; then | |
14020 | ||
14021 | $as_echo "#define HAVE_PSTATUS_T 1" >>confdefs.h | |
14022 | ||
14023 | fi | |
14024 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus_t" >&5 | |
14025 | $as_echo "$bfd_cv_have_sys_procfs_type_pstatus_t" >&6; } | |
14026 | ||
c8693053 RO |
14027 | |
14028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pxstatus_t in sys/procfs.h" >&5 | |
c603b11b | 14029 | $as_echo_n "checking for pxstatus_t in sys/procfs.h... " >&6; } |
d0ac1c44 | 14030 | if ${bfd_cv_have_sys_procfs_type_pxstatus_t+:} false; then : |
c603b11b AM |
14031 | $as_echo_n "(cached) " >&6 |
14032 | else | |
14033 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14034 | /* end confdefs.h. */ | |
14035 | ||
14036 | #define _SYSCALL32 | |
c603b11b AM |
14037 | #include <sys/procfs.h> |
14038 | int | |
14039 | main () | |
14040 | { | |
14041 | pxstatus_t avar | |
14042 | ; | |
14043 | return 0; | |
14044 | } | |
14045 | _ACEOF | |
14046 | if ac_fn_c_try_compile "$LINENO"; then : | |
14047 | bfd_cv_have_sys_procfs_type_pxstatus_t=yes | |
14048 | else | |
14049 | bfd_cv_have_sys_procfs_type_pxstatus_t=no | |
14050 | ||
14051 | fi | |
14052 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14053 | fi | |
14054 | ||
14055 | if test $bfd_cv_have_sys_procfs_type_pxstatus_t = yes; then | |
14056 | ||
14057 | $as_echo "#define HAVE_PXSTATUS_T 1" >>confdefs.h | |
14058 | ||
14059 | fi | |
14060 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pxstatus_t" >&5 | |
14061 | $as_echo "$bfd_cv_have_sys_procfs_type_pxstatus_t" >&6; } | |
14062 | ||
c8693053 RO |
14063 | |
14064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pstatus32_t in sys/procfs.h" >&5 | |
c603b11b | 14065 | $as_echo_n "checking for pstatus32_t in sys/procfs.h... " >&6; } |
d0ac1c44 | 14066 | if ${bfd_cv_have_sys_procfs_type_pstatus32_t+:} false; then : |
c603b11b AM |
14067 | $as_echo_n "(cached) " >&6 |
14068 | else | |
14069 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14070 | /* end confdefs.h. */ | |
14071 | ||
14072 | #define _SYSCALL32 | |
c603b11b AM |
14073 | #include <sys/procfs.h> |
14074 | int | |
14075 | main () | |
14076 | { | |
14077 | pstatus32_t avar | |
14078 | ; | |
14079 | return 0; | |
14080 | } | |
14081 | _ACEOF | |
14082 | if ac_fn_c_try_compile "$LINENO"; then : | |
14083 | bfd_cv_have_sys_procfs_type_pstatus32_t=yes | |
14084 | else | |
14085 | bfd_cv_have_sys_procfs_type_pstatus32_t=no | |
14086 | ||
14087 | fi | |
14088 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14089 | fi | |
14090 | ||
14091 | if test $bfd_cv_have_sys_procfs_type_pstatus32_t = yes; then | |
14092 | ||
14093 | $as_echo "#define HAVE_PSTATUS32_T 1" >>confdefs.h | |
14094 | ||
14095 | fi | |
14096 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_pstatus32_t" >&5 | |
14097 | $as_echo "$bfd_cv_have_sys_procfs_type_pstatus32_t" >&6; } | |
14098 | ||
c8693053 RO |
14099 | |
14100 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t in sys/procfs.h" >&5 | |
c603b11b | 14101 | $as_echo_n "checking for prpsinfo_t in sys/procfs.h... " >&6; } |
d0ac1c44 | 14102 | if ${bfd_cv_have_sys_procfs_type_prpsinfo_t+:} false; then : |
c603b11b AM |
14103 | $as_echo_n "(cached) " >&6 |
14104 | else | |
14105 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14106 | /* end confdefs.h. */ | |
14107 | ||
14108 | #define _SYSCALL32 | |
c603b11b AM |
14109 | #include <sys/procfs.h> |
14110 | int | |
14111 | main () | |
14112 | { | |
14113 | prpsinfo_t avar | |
14114 | ; | |
14115 | return 0; | |
14116 | } | |
14117 | _ACEOF | |
14118 | if ac_fn_c_try_compile "$LINENO"; then : | |
14119 | bfd_cv_have_sys_procfs_type_prpsinfo_t=yes | |
14120 | else | |
14121 | bfd_cv_have_sys_procfs_type_prpsinfo_t=no | |
14122 | ||
14123 | fi | |
14124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14125 | fi | |
14126 | ||
14127 | if test $bfd_cv_have_sys_procfs_type_prpsinfo_t = yes; then | |
14128 | ||
14129 | $as_echo "#define HAVE_PRPSINFO_T 1" >>confdefs.h | |
14130 | ||
14131 | fi | |
14132 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo_t" >&5 | |
14133 | $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo_t" >&6; } | |
14134 | ||
c8693053 RO |
14135 | |
14136 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo_t.pr_pid in sys/procfs.h" >&5 | |
c603b11b | 14137 | $as_echo_n "checking for prpsinfo_t.pr_pid in sys/procfs.h... " >&6; } |
d0ac1c44 | 14138 | if ${bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid+:} false; then : |
c603b11b AM |
14139 | $as_echo_n "(cached) " >&6 |
14140 | else | |
14141 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14142 | /* end confdefs.h. */ | |
14143 | ||
14144 | #define _SYSCALL32 | |
c603b11b AM |
14145 | #include <sys/procfs.h> |
14146 | int | |
14147 | main () | |
14148 | { | |
14149 | prpsinfo_t avar; void* aref = (void*) &avar.pr_pid | |
14150 | ; | |
14151 | return 0; | |
14152 | } | |
14153 | _ACEOF | |
14154 | if ac_fn_c_try_compile "$LINENO"; then : | |
14155 | bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=yes | |
14156 | else | |
14157 | bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid=no | |
14158 | ||
14159 | fi | |
14160 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14161 | fi | |
14162 | ||
14163 | if test $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid = yes; then | |
14164 | ||
14165 | $as_echo "#define HAVE_PRPSINFO_T_PR_PID 1" >>confdefs.h | |
14166 | ||
14167 | fi | |
14168 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&5 | |
14169 | $as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo_t_pr_pid" >&6; } | |
14170 | ||
c8693053 RO |
14171 | |
14172 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t in sys/procfs.h" >&5 | |
c603b11b | 14173 | $as_echo_n "checking for prpsinfo32_t in sys/procfs.h... " >&6; } |
d0ac1c44 | 14174 | if ${bfd_cv_have_sys_procfs_type_prpsinfo32_t+:} false; then : |
c603b11b AM |
14175 | $as_echo_n "(cached) " >&6 |
14176 | else | |
14177 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14178 | /* end confdefs.h. */ | |
14179 | ||
14180 | #define _SYSCALL32 | |
c603b11b AM |
14181 | #include <sys/procfs.h> |
14182 | int | |
14183 | main () | |
14184 | { | |
14185 | prpsinfo32_t avar | |
14186 | ; | |
14187 | return 0; | |
14188 | } | |
14189 | _ACEOF | |
14190 | if ac_fn_c_try_compile "$LINENO"; then : | |
14191 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=yes | |
14192 | else | |
14193 | bfd_cv_have_sys_procfs_type_prpsinfo32_t=no | |
14194 | ||
14195 | fi | |
14196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14197 | fi | |
14198 | ||
14199 | if test $bfd_cv_have_sys_procfs_type_prpsinfo32_t = yes; then | |
14200 | ||
14201 | $as_echo "#define HAVE_PRPSINFO32_T 1" >>confdefs.h | |
14202 | ||
14203 | fi | |
14204 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&5 | |
14205 | $as_echo "$bfd_cv_have_sys_procfs_type_prpsinfo32_t" >&6; } | |
14206 | ||
c8693053 RO |
14207 | |
14208 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for prpsinfo32_t.pr_pid in sys/procfs.h" >&5 | |
c603b11b | 14209 | $as_echo_n "checking for prpsinfo32_t.pr_pid in sys/procfs.h... " >&6; } |
d0ac1c44 | 14210 | if ${bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid+:} false; then : |
c603b11b AM |
14211 | $as_echo_n "(cached) " >&6 |
14212 | else | |
14213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14214 | /* end confdefs.h. */ | |
14215 | ||
14216 | #define _SYSCALL32 | |
c603b11b AM |
14217 | #include <sys/procfs.h> |
14218 | int | |
14219 | main () | |
14220 | { | |
14221 | prpsinfo32_t avar; void* aref = (void*) &avar.pr_pid | |
14222 | ; | |
14223 | return 0; | |
14224 | } | |
14225 | _ACEOF | |
14226 | if ac_fn_c_try_compile "$LINENO"; then : | |
14227 | bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=yes | |
14228 | else | |
14229 | bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid=no | |
14230 | ||
14231 | fi | |
14232 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14233 | fi | |
14234 | ||
14235 | if test $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid = yes; then | |
14236 | ||
14237 | $as_echo "#define HAVE_PRPSINFO32_T_PR_PID 1" >>confdefs.h | |
14238 | ||
14239 | fi | |
14240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&5 | |
14241 | $as_echo "$bfd_cv_have_sys_procfs_type_member_prpsinfo32_t_pr_pid" >&6; } | |
14242 | ||
c8693053 RO |
14243 | |
14244 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t in sys/procfs.h" >&5 | |
c603b11b | 14245 | $as_echo_n "checking for psinfo_t in sys/procfs.h... " >&6; } |
d0ac1c44 | 14246 | if ${bfd_cv_have_sys_procfs_type_psinfo_t+:} false; then : |
c603b11b AM |
14247 | $as_echo_n "(cached) " >&6 |
14248 | else | |
14249 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14250 | /* end confdefs.h. */ | |
14251 | ||
14252 | #define _SYSCALL32 | |
c603b11b AM |
14253 | #include <sys/procfs.h> |
14254 | int | |
14255 | main () | |
14256 | { | |
14257 | psinfo_t avar | |
14258 | ; | |
14259 | return 0; | |
14260 | } | |
14261 | _ACEOF | |
14262 | if ac_fn_c_try_compile "$LINENO"; then : | |
14263 | bfd_cv_have_sys_procfs_type_psinfo_t=yes | |
14264 | else | |
14265 | bfd_cv_have_sys_procfs_type_psinfo_t=no | |
14266 | ||
14267 | fi | |
14268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14269 | fi | |
14270 | ||
14271 | if test $bfd_cv_have_sys_procfs_type_psinfo_t = yes; then | |
14272 | ||
14273 | $as_echo "#define HAVE_PSINFO_T 1" >>confdefs.h | |
14274 | ||
14275 | fi | |
14276 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo_t" >&5 | |
14277 | $as_echo "$bfd_cv_have_sys_procfs_type_psinfo_t" >&6; } | |
14278 | ||
c8693053 RO |
14279 | |
14280 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo_t.pr_pid in sys/procfs.h" >&5 | |
c603b11b | 14281 | $as_echo_n "checking for psinfo_t.pr_pid in sys/procfs.h... " >&6; } |
d0ac1c44 | 14282 | if ${bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid+:} false; then : |
c603b11b AM |
14283 | $as_echo_n "(cached) " >&6 |
14284 | else | |
14285 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14286 | /* end confdefs.h. */ | |
14287 | ||
14288 | #define _SYSCALL32 | |
c603b11b AM |
14289 | #include <sys/procfs.h> |
14290 | int | |
14291 | main () | |
14292 | { | |
14293 | psinfo_t avar; void* aref = (void*) &avar.pr_pid | |
14294 | ; | |
14295 | return 0; | |
14296 | } | |
14297 | _ACEOF | |
14298 | if ac_fn_c_try_compile "$LINENO"; then : | |
14299 | bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=yes | |
14300 | else | |
14301 | bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid=no | |
14302 | ||
14303 | fi | |
14304 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14305 | fi | |
14306 | ||
14307 | if test $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid = yes; then | |
14308 | ||
14309 | $as_echo "#define HAVE_PSINFO_T_PR_PID 1" >>confdefs.h | |
14310 | ||
14311 | fi | |
14312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&5 | |
14313 | $as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo_t_pr_pid" >&6; } | |
14314 | ||
c8693053 RO |
14315 | |
14316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t in sys/procfs.h" >&5 | |
c603b11b | 14317 | $as_echo_n "checking for psinfo32_t in sys/procfs.h... " >&6; } |
d0ac1c44 | 14318 | if ${bfd_cv_have_sys_procfs_type_psinfo32_t+:} false; then : |
c603b11b AM |
14319 | $as_echo_n "(cached) " >&6 |
14320 | else | |
14321 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14322 | /* end confdefs.h. */ | |
14323 | ||
14324 | #define _SYSCALL32 | |
c603b11b AM |
14325 | #include <sys/procfs.h> |
14326 | int | |
14327 | main () | |
14328 | { | |
14329 | psinfo32_t avar | |
14330 | ; | |
14331 | return 0; | |
14332 | } | |
14333 | _ACEOF | |
14334 | if ac_fn_c_try_compile "$LINENO"; then : | |
14335 | bfd_cv_have_sys_procfs_type_psinfo32_t=yes | |
14336 | else | |
14337 | bfd_cv_have_sys_procfs_type_psinfo32_t=no | |
14338 | ||
14339 | fi | |
14340 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14341 | fi | |
14342 | ||
14343 | if test $bfd_cv_have_sys_procfs_type_psinfo32_t = yes; then | |
14344 | ||
14345 | $as_echo "#define HAVE_PSINFO32_T 1" >>confdefs.h | |
14346 | ||
14347 | fi | |
14348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_psinfo32_t" >&5 | |
14349 | $as_echo "$bfd_cv_have_sys_procfs_type_psinfo32_t" >&6; } | |
14350 | ||
c8693053 RO |
14351 | |
14352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for psinfo32_t.pr_pid in sys/procfs.h" >&5 | |
c603b11b | 14353 | $as_echo_n "checking for psinfo32_t.pr_pid in sys/procfs.h... " >&6; } |
d0ac1c44 | 14354 | if ${bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid+:} false; then : |
c603b11b AM |
14355 | $as_echo_n "(cached) " >&6 |
14356 | else | |
14357 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14358 | /* end confdefs.h. */ | |
14359 | ||
14360 | #define _SYSCALL32 | |
c603b11b AM |
14361 | #include <sys/procfs.h> |
14362 | int | |
14363 | main () | |
14364 | { | |
14365 | psinfo32_t avar; void* aref = (void*) &avar.pr_pid | |
14366 | ; | |
14367 | return 0; | |
14368 | } | |
14369 | _ACEOF | |
14370 | if ac_fn_c_try_compile "$LINENO"; then : | |
14371 | bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=yes | |
14372 | else | |
14373 | bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid=no | |
14374 | ||
14375 | fi | |
14376 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14377 | fi | |
14378 | ||
14379 | if test $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid = yes; then | |
14380 | ||
14381 | $as_echo "#define HAVE_PSINFO32_T_PR_PID 1" >>confdefs.h | |
14382 | ||
14383 | fi | |
14384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&5 | |
14385 | $as_echo "$bfd_cv_have_sys_procfs_type_member_psinfo32_t_pr_pid" >&6; } | |
14386 | ||
c8693053 RO |
14387 | |
14388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t in sys/procfs.h" >&5 | |
c603b11b | 14389 | $as_echo_n "checking for lwpstatus_t in sys/procfs.h... " >&6; } |
d0ac1c44 | 14390 | if ${bfd_cv_have_sys_procfs_type_lwpstatus_t+:} false; then : |
c603b11b AM |
14391 | $as_echo_n "(cached) " >&6 |
14392 | else | |
14393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14394 | /* end confdefs.h. */ | |
14395 | ||
14396 | #define _SYSCALL32 | |
c603b11b AM |
14397 | #include <sys/procfs.h> |
14398 | int | |
14399 | main () | |
14400 | { | |
14401 | lwpstatus_t avar | |
14402 | ; | |
14403 | return 0; | |
14404 | } | |
14405 | _ACEOF | |
14406 | if ac_fn_c_try_compile "$LINENO"; then : | |
14407 | bfd_cv_have_sys_procfs_type_lwpstatus_t=yes | |
14408 | else | |
14409 | bfd_cv_have_sys_procfs_type_lwpstatus_t=no | |
14410 | ||
14411 | fi | |
14412 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14413 | fi | |
14414 | ||
14415 | if test $bfd_cv_have_sys_procfs_type_lwpstatus_t = yes; then | |
14416 | ||
14417 | $as_echo "#define HAVE_LWPSTATUS_T 1" >>confdefs.h | |
14418 | ||
14419 | fi | |
14420 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpstatus_t" >&5 | |
14421 | $as_echo "$bfd_cv_have_sys_procfs_type_lwpstatus_t" >&6; } | |
14422 | ||
c8693053 RO |
14423 | |
14424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpxstatus_t in sys/procfs.h" >&5 | |
c603b11b | 14425 | $as_echo_n "checking for lwpxstatus_t in sys/procfs.h... " >&6; } |
d0ac1c44 | 14426 | if ${bfd_cv_have_sys_procfs_type_lwpxstatus_t+:} false; then : |
c603b11b AM |
14427 | $as_echo_n "(cached) " >&6 |
14428 | else | |
14429 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14430 | /* end confdefs.h. */ | |
14431 | ||
14432 | #define _SYSCALL32 | |
c603b11b AM |
14433 | #include <sys/procfs.h> |
14434 | int | |
14435 | main () | |
14436 | { | |
14437 | lwpxstatus_t avar | |
14438 | ; | |
14439 | return 0; | |
14440 | } | |
14441 | _ACEOF | |
14442 | if ac_fn_c_try_compile "$LINENO"; then : | |
14443 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=yes | |
14444 | else | |
14445 | bfd_cv_have_sys_procfs_type_lwpxstatus_t=no | |
14446 | ||
14447 | fi | |
14448 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14449 | fi | |
14450 | ||
14451 | if test $bfd_cv_have_sys_procfs_type_lwpxstatus_t = yes; then | |
14452 | ||
14453 | $as_echo "#define HAVE_LWPXSTATUS_T 1" >>confdefs.h | |
5464f5a1 | 14454 | |
c603b11b AM |
14455 | fi |
14456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&5 | |
14457 | $as_echo "$bfd_cv_have_sys_procfs_type_lwpxstatus_t" >&6; } | |
1012372a | 14458 | |
c8693053 RO |
14459 | |
14460 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_context in sys/procfs.h" >&5 | |
c603b11b | 14461 | $as_echo_n "checking for lwpstatus_t.pr_context in sys/procfs.h... " >&6; } |
d0ac1c44 | 14462 | if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context+:} false; then : |
c603b11b AM |
14463 | $as_echo_n "(cached) " >&6 |
14464 | else | |
14465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14466 | /* end confdefs.h. */ | |
2ba49b59 | 14467 | |
c603b11b | 14468 | #define _SYSCALL32 |
c603b11b AM |
14469 | #include <sys/procfs.h> |
14470 | int | |
14471 | main () | |
14472 | { | |
14473 | lwpstatus_t avar; void* aref = (void*) &avar.pr_context | |
14474 | ; | |
14475 | return 0; | |
14476 | } | |
14477 | _ACEOF | |
14478 | if ac_fn_c_try_compile "$LINENO"; then : | |
14479 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=yes | |
14480 | else | |
14481 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context=no | |
5464f5a1 | 14482 | |
c603b11b AM |
14483 | fi |
14484 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14485 | fi | |
1012372a | 14486 | |
c603b11b | 14487 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context = yes; then |
2ba49b59 | 14488 | |
c603b11b | 14489 | $as_echo "#define HAVE_LWPSTATUS_T_PR_CONTEXT 1" >>confdefs.h |
1012372a | 14490 | |
c603b11b AM |
14491 | fi |
14492 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&5 | |
14493 | $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_context" >&6; } | |
81ecdfbb | 14494 | |
c8693053 RO |
14495 | |
14496 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_reg in sys/procfs.h" >&5 | |
c603b11b | 14497 | $as_echo_n "checking for lwpstatus_t.pr_reg in sys/procfs.h... " >&6; } |
d0ac1c44 | 14498 | if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg+:} false; then : |
c603b11b AM |
14499 | $as_echo_n "(cached) " >&6 |
14500 | else | |
14501 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
81ecdfbb | 14502 | /* end confdefs.h. */ |
c603b11b AM |
14503 | |
14504 | #define _SYSCALL32 | |
c603b11b AM |
14505 | #include <sys/procfs.h> |
14506 | int | |
14507 | main () | |
14508 | { | |
14509 | lwpstatus_t avar; void* aref = (void*) &avar.pr_reg | |
14510 | ; | |
14511 | return 0; | |
14512 | } | |
81ecdfbb | 14513 | _ACEOF |
c603b11b AM |
14514 | if ac_fn_c_try_compile "$LINENO"; then : |
14515 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=yes | |
2ba49b59 | 14516 | else |
c603b11b AM |
14517 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg=no |
14518 | ||
14519 | fi | |
14520 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
2ba49b59 | 14521 | fi |
1012372a | 14522 | |
c603b11b AM |
14523 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg = yes; then |
14524 | ||
14525 | $as_echo "#define HAVE_LWPSTATUS_T_PR_REG 1" >>confdefs.h | |
14526 | ||
14527 | fi | |
14528 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&5 | |
14529 | $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_reg" >&6; } | |
14530 | ||
c8693053 RO |
14531 | |
14532 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lwpstatus_t.pr_fpreg in sys/procfs.h" >&5 | |
c603b11b | 14533 | $as_echo_n "checking for lwpstatus_t.pr_fpreg in sys/procfs.h... " >&6; } |
d0ac1c44 | 14534 | if ${bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg+:} false; then : |
c603b11b AM |
14535 | $as_echo_n "(cached) " >&6 |
14536 | else | |
14537 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14538 | /* end confdefs.h. */ | |
14539 | ||
14540 | #define _SYSCALL32 | |
c603b11b AM |
14541 | #include <sys/procfs.h> |
14542 | int | |
14543 | main () | |
14544 | { | |
14545 | lwpstatus_t avar; void* aref = (void*) &avar.pr_fpreg | |
14546 | ; | |
14547 | return 0; | |
14548 | } | |
14549 | _ACEOF | |
14550 | if ac_fn_c_try_compile "$LINENO"; then : | |
14551 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=yes | |
14552 | else | |
14553 | bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg=no | |
14554 | ||
14555 | fi | |
14556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14557 | fi | |
14558 | ||
14559 | if test $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg = yes; then | |
1012372a | 14560 | |
c603b11b AM |
14561 | $as_echo "#define HAVE_LWPSTATUS_T_PR_FPREG 1" >>confdefs.h |
14562 | ||
14563 | fi | |
14564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&5 | |
14565 | $as_echo "$bfd_cv_have_sys_procfs_type_member_lwpstatus_t_pr_fpreg" >&6; } | |
14566 | ||
c8693053 RO |
14567 | |
14568 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for win32_pstatus_t in sys/procfs.h" >&5 | |
c603b11b | 14569 | $as_echo_n "checking for win32_pstatus_t in sys/procfs.h... " >&6; } |
d0ac1c44 | 14570 | if ${bfd_cv_have_sys_procfs_type_win32_pstatus_t+:} false; then : |
c603b11b AM |
14571 | $as_echo_n "(cached) " >&6 |
14572 | else | |
14573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
14574 | /* end confdefs.h. */ | |
14575 | ||
14576 | #define _SYSCALL32 | |
c603b11b AM |
14577 | #include <sys/procfs.h> |
14578 | int | |
14579 | main () | |
14580 | { | |
14581 | win32_pstatus_t avar | |
14582 | ; | |
14583 | return 0; | |
14584 | } | |
14585 | _ACEOF | |
14586 | if ac_fn_c_try_compile "$LINENO"; then : | |
14587 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=yes | |
14588 | else | |
14589 | bfd_cv_have_sys_procfs_type_win32_pstatus_t=no | |
14590 | ||
14591 | fi | |
14592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
14593 | fi | |
14594 | ||
14595 | if test $bfd_cv_have_sys_procfs_type_win32_pstatus_t = yes; then | |
14596 | ||
14597 | $as_echo "#define HAVE_WIN32_PSTATUS_T 1" >>confdefs.h | |
14598 | ||
14599 | fi | |
14600 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&5 | |
14601 | $as_echo "$bfd_cv_have_sys_procfs_type_win32_pstatus_t" >&6; } | |
14602 | ||
14603 | fi | |
14604 | fi | |
1012372a AC |
14605 | |
14606 | ||
c603b11b | 14607 | if test -n "$CORE_HEADER"; then |
1012372a | 14608 | |
c603b11b AM |
14609 | cat >>confdefs.h <<_ACEOF |
14610 | #define CORE_HEADER $CORE_HEADER | |
14611 | _ACEOF | |
252b5132 | 14612 | |
c603b11b AM |
14613 | fi |
14614 | if test -n "$TRAD_HEADER"; then | |
6be7c12c | 14615 | |
c603b11b AM |
14616 | cat >>confdefs.h <<_ACEOF |
14617 | #define TRAD_HEADER $TRAD_HEADER | |
14618 | _ACEOF | |
5464f5a1 | 14619 | |
c603b11b | 14620 | fi |
5464f5a1 | 14621 | |
81ecdfbb RW |
14622 | if test "$plugins" = "yes"; then |
14623 | supports_plugins=1 | |
5464f5a1 | 14624 | else |
81ecdfbb | 14625 | supports_plugins=0 |
5464f5a1 | 14626 | fi |
5464f5a1 | 14627 | |
81ecdfbb | 14628 | |
3cf9e6c4 | 14629 | |
96fe4562 | 14630 | # Determine the host dependent file_ptr a.k.a. off_t type. In order |
81ecdfbb RW |
14631 | # prefer: off64_t - if ftello64 and fseeko64, off_t - if ftello and |
14632 | # fseeko, long. This assumes that sizeof off_t is .ge. sizeof long. | |
14633 | # Hopefully a reasonable assumption since fseeko et.al. should be | |
14634 | # upward compatible. | |
14635 | for ac_func in ftello ftello64 fseeko fseeko64 fopen64 | |
14636 | do : | |
14637 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14638 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
d0ac1c44 | 14639 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
81ecdfbb RW |
14640 | cat >>confdefs.h <<_ACEOF |
14641 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5464f5a1 | 14642 | _ACEOF |
5464f5a1 | 14643 | |
252b5132 | 14644 | fi |
81ecdfbb | 14645 | done |
5464f5a1 | 14646 | |
83c79df8 AM |
14647 | ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default" |
14648 | if test "x$ac_cv_have_decl_ftello" = xyes; then : | |
14649 | ac_have_decl=1 | |
14650 | else | |
14651 | ac_have_decl=0 | |
14652 | fi | |
14653 | ||
14654 | cat >>confdefs.h <<_ACEOF | |
14655 | #define HAVE_DECL_FTELLO $ac_have_decl | |
14656 | _ACEOF | |
14657 | ac_fn_c_check_decl "$LINENO" "ftello64" "ac_cv_have_decl_ftello64" "$ac_includes_default" | |
14658 | if test "x$ac_cv_have_decl_ftello64" = xyes; then : | |
14659 | ac_have_decl=1 | |
14660 | else | |
14661 | ac_have_decl=0 | |
14662 | fi | |
14663 | ||
14664 | cat >>confdefs.h <<_ACEOF | |
14665 | #define HAVE_DECL_FTELLO64 $ac_have_decl | |
14666 | _ACEOF | |
14667 | ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default" | |
14668 | if test "x$ac_cv_have_decl_fseeko" = xyes; then : | |
14669 | ac_have_decl=1 | |
14670 | else | |
14671 | ac_have_decl=0 | |
14672 | fi | |
14673 | ||
14674 | cat >>confdefs.h <<_ACEOF | |
14675 | #define HAVE_DECL_FSEEKO $ac_have_decl | |
14676 | _ACEOF | |
14677 | ac_fn_c_check_decl "$LINENO" "fseeko64" "ac_cv_have_decl_fseeko64" "$ac_includes_default" | |
14678 | if test "x$ac_cv_have_decl_fseeko64" = xyes; then : | |
14679 | ac_have_decl=1 | |
14680 | else | |
14681 | ac_have_decl=0 | |
14682 | fi | |
14683 | ||
14684 | cat >>confdefs.h <<_ACEOF | |
14685 | #define HAVE_DECL_FSEEKO64 $ac_have_decl | |
14686 | _ACEOF | |
14687 | ac_fn_c_check_decl "$LINENO" "fopen64" "ac_cv_have_decl_fopen64" "$ac_includes_default" | |
14688 | if test "x$ac_cv_have_decl_fopen64" = xyes; then : | |
14689 | ac_have_decl=1 | |
14690 | else | |
14691 | ac_have_decl=0 | |
14692 | fi | |
14693 | ||
14694 | cat >>confdefs.h <<_ACEOF | |
14695 | #define HAVE_DECL_FOPEN64 $ac_have_decl | |
14696 | _ACEOF | |
14697 | ||
81ecdfbb RW |
14698 | if test x"$ac_cv_func_ftello" = xyes -a x"$ac_cv_func_fseeko" = xyes; then |
14699 | # The cast to long int works around a bug in the HP C Compiler | |
14700 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects | |
14701 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. | |
14702 | # This bug is HP SR number 8606223364. | |
14703 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 | |
14704 | $as_echo_n "checking size of off_t... " >&6; } | |
d0ac1c44 | 14705 | if ${ac_cv_sizeof_off_t+:} false; then : |
81ecdfbb | 14706 | $as_echo_n "(cached) " >&6 |
6be7c12c | 14707 | else |
81ecdfbb | 14708 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : |
5464f5a1 | 14709 | |
81ecdfbb RW |
14710 | else |
14711 | if test "$ac_cv_type_off_t" = yes; then | |
14712 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
14713 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
d0ac1c44 SM |
14714 | as_fn_error 77 "cannot compute sizeof (off_t) |
14715 | See \`config.log' for more details" "$LINENO" 5; } | |
81ecdfbb RW |
14716 | else |
14717 | ac_cv_sizeof_off_t=0 | |
14718 | fi | |
5464f5a1 | 14719 | fi |
5464f5a1 | 14720 | |
252b5132 | 14721 | fi |
81ecdfbb RW |
14722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 |
14723 | $as_echo "$ac_cv_sizeof_off_t" >&6; } | |
5464f5a1 | 14724 | |
252b5132 | 14725 | |
5464f5a1 | 14726 | |
81ecdfbb RW |
14727 | cat >>confdefs.h <<_ACEOF |
14728 | #define SIZEOF_OFF_T $ac_cv_sizeof_off_t | |
5464f5a1 | 14729 | _ACEOF |
5464f5a1 | 14730 | |
5464f5a1 | 14731 | |
81ecdfbb RW |
14732 | fi |
14733 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking file_ptr type" >&5 | |
14734 | $as_echo_n "checking file_ptr type... " >&6; } | |
14735 | bfd_file_ptr="long" | |
14736 | bfd_ufile_ptr="unsigned long" | |
14737 | if test x"$ac_cv_func_ftello64" = xyes -a x"$ac_cv_func_fseeko64" = xyes \ | |
14738 | -o x"${ac_cv_sizeof_off_t}" = x8; then | |
14739 | bfd_file_ptr=BFD_HOST_64_BIT | |
14740 | bfd_ufile_ptr=BFD_HOST_U_64_BIT | |
14741 | fi | |
14742 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bfd_file_ptr" >&5 | |
14743 | $as_echo "$bfd_file_ptr" >&6; } | |
14744 | ||
6be7c12c | 14745 | |
252b5132 | 14746 | |
d0ac1c44 SM |
14747 | |
14748 | ||
14749 | ||
14750 | for ac_header in $ac_header_list | |
81ecdfbb RW |
14751 | do : |
14752 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
d0ac1c44 SM |
14753 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
14754 | " | |
14755 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
81ecdfbb RW |
14756 | cat >>confdefs.h <<_ACEOF |
14757 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5464f5a1 | 14758 | _ACEOF |
5464f5a1 | 14759 | |
5464f5a1 | 14760 | fi |
81ecdfbb RW |
14761 | |
14762 | done | |
14763 | ||
d0ac1c44 SM |
14764 | |
14765 | ||
14766 | ||
14767 | ||
14768 | ||
14769 | ||
14770 | ||
81ecdfbb RW |
14771 | for ac_func in getpagesize |
14772 | do : | |
14773 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" | |
d0ac1c44 | 14774 | if test "x$ac_cv_func_getpagesize" = xyes; then : |
5464f5a1 | 14775 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 14776 | #define HAVE_GETPAGESIZE 1 |
5464f5a1 | 14777 | _ACEOF |
252b5132 | 14778 | |
252b5132 RH |
14779 | fi |
14780 | done | |
14781 | ||
81ecdfbb RW |
14782 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
14783 | $as_echo_n "checking for working mmap... " >&6; } | |
d0ac1c44 | 14784 | if ${ac_cv_func_mmap_fixed_mapped+:} false; then : |
81ecdfbb | 14785 | $as_echo_n "(cached) " >&6 |
252b5132 | 14786 | else |
81ecdfbb | 14787 | if test "$cross_compiling" = yes; then : |
252b5132 RH |
14788 | ac_cv_func_mmap_fixed_mapped=no |
14789 | else | |
81ecdfbb | 14790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
5464f5a1 NN |
14791 | /* end confdefs.h. */ |
14792 | $ac_includes_default | |
14793 | /* malloc might have been renamed as rpl_malloc. */ | |
14794 | #undef malloc | |
6be7c12c | 14795 | |
252b5132 RH |
14796 | /* Thanks to Mike Haertel and Jim Avera for this test. |
14797 | Here is a matrix of mmap possibilities: | |
14798 | mmap private not fixed | |
14799 | mmap private fixed at somewhere currently unmapped | |
14800 | mmap private fixed at somewhere already mapped | |
14801 | mmap shared not fixed | |
14802 | mmap shared fixed at somewhere currently unmapped | |
14803 | mmap shared fixed at somewhere already mapped | |
14804 | For private mappings, we should verify that changes cannot be read() | |
14805 | back from the file, nor mmap's back from the file at a different | |
14806 | address. (There have been systems where private was not correctly | |
14807 | implemented like the infamous i386 svr4.0, and systems where the | |
5464f5a1 | 14808 | VM page cache was not coherent with the file system buffer cache |
252b5132 RH |
14809 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
14810 | For shared mappings, we should conversely verify that changes get | |
5464f5a1 | 14811 | propagated back to all the places they're supposed to be. |
252b5132 RH |
14812 | |
14813 | Grep wants private fixed already mapped. | |
14814 | The main things grep needs to know about mmap are: | |
14815 | * does it exist and is it safe to write into the mmap'd area | |
14816 | * how to use it (BSD variants) */ | |
5464f5a1 | 14817 | |
252b5132 RH |
14818 | #include <fcntl.h> |
14819 | #include <sys/mman.h> | |
14820 | ||
81ecdfbb | 14821 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
5464f5a1 NN |
14822 | char *malloc (); |
14823 | #endif | |
6be7c12c | 14824 | |
5464f5a1 | 14825 | /* This mess was copied from the GNU getpagesize.h. */ |
81ecdfbb | 14826 | #ifndef HAVE_GETPAGESIZE |
252b5132 RH |
14827 | # ifdef _SC_PAGESIZE |
14828 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
14829 | # else /* no _SC_PAGESIZE */ | |
81ecdfbb | 14830 | # ifdef HAVE_SYS_PARAM_H |
252b5132 RH |
14831 | # include <sys/param.h> |
14832 | # ifdef EXEC_PAGESIZE | |
14833 | # define getpagesize() EXEC_PAGESIZE | |
14834 | # else /* no EXEC_PAGESIZE */ | |
14835 | # ifdef NBPG | |
14836 | # define getpagesize() NBPG * CLSIZE | |
14837 | # ifndef CLSIZE | |
14838 | # define CLSIZE 1 | |
14839 | # endif /* no CLSIZE */ | |
14840 | # else /* no NBPG */ | |
14841 | # ifdef NBPC | |
14842 | # define getpagesize() NBPC | |
14843 | # else /* no NBPC */ | |
14844 | # ifdef PAGESIZE | |
14845 | # define getpagesize() PAGESIZE | |
14846 | # endif /* PAGESIZE */ | |
14847 | # endif /* no NBPC */ | |
14848 | # endif /* no NBPG */ | |
14849 | # endif /* no EXEC_PAGESIZE */ | |
14850 | # else /* no HAVE_SYS_PARAM_H */ | |
14851 | # define getpagesize() 8192 /* punt totally */ | |
14852 | # endif /* no HAVE_SYS_PARAM_H */ | |
14853 | # endif /* no _SC_PAGESIZE */ | |
14854 | ||
5464f5a1 NN |
14855 | #endif /* no HAVE_GETPAGESIZE */ |
14856 | ||
14857 | int | |
14858 | main () | |
14859 | { | |
14860 | char *data, *data2, *data3; | |
d0ac1c44 | 14861 | const char *cdata2; |
5464f5a1 | 14862 | int i, pagesize; |
d0ac1c44 | 14863 | int fd, fd2; |
5464f5a1 NN |
14864 | |
14865 | pagesize = getpagesize (); | |
14866 | ||
14867 | /* First, make a file with some known garbage in it. */ | |
14868 | data = (char *) malloc (pagesize); | |
14869 | if (!data) | |
81ecdfbb | 14870 | return 1; |
5464f5a1 NN |
14871 | for (i = 0; i < pagesize; ++i) |
14872 | *(data + i) = rand (); | |
14873 | umask (0); | |
14874 | fd = creat ("conftest.mmap", 0600); | |
14875 | if (fd < 0) | |
d0ac1c44 | 14876 | return 2; |
5464f5a1 | 14877 | if (write (fd, data, pagesize) != pagesize) |
d0ac1c44 | 14878 | return 3; |
5464f5a1 NN |
14879 | close (fd); |
14880 | ||
d0ac1c44 SM |
14881 | /* Next, check that the tail of a page is zero-filled. File must have |
14882 | non-zero length, otherwise we risk SIGBUS for entire page. */ | |
14883 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); | |
14884 | if (fd2 < 0) | |
14885 | return 4; | |
14886 | cdata2 = ""; | |
14887 | if (write (fd2, cdata2, 1) != 1) | |
14888 | return 5; | |
14889 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); | |
14890 | if (data2 == MAP_FAILED) | |
14891 | return 6; | |
14892 | for (i = 0; i < pagesize; ++i) | |
14893 | if (*(data2 + i)) | |
14894 | return 7; | |
14895 | close (fd2); | |
14896 | if (munmap (data2, pagesize)) | |
14897 | return 8; | |
14898 | ||
5464f5a1 NN |
14899 | /* Next, try to mmap the file at a fixed address which already has |
14900 | something else allocated at it. If we can, also make sure that | |
14901 | we see the same garbage. */ | |
14902 | fd = open ("conftest.mmap", O_RDWR); | |
14903 | if (fd < 0) | |
d0ac1c44 | 14904 | return 9; |
5464f5a1 NN |
14905 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
14906 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
d0ac1c44 | 14907 | return 10; |
5464f5a1 NN |
14908 | for (i = 0; i < pagesize; ++i) |
14909 | if (*(data + i) != *(data2 + i)) | |
d0ac1c44 | 14910 | return 11; |
5464f5a1 NN |
14911 | |
14912 | /* Finally, make sure that changes to the mapped area do not | |
14913 | percolate back to the file as seen by read(). (This is a bug on | |
14914 | some variants of i386 svr4.0.) */ | |
14915 | for (i = 0; i < pagesize; ++i) | |
14916 | *(data2 + i) = *(data2 + i) + 1; | |
14917 | data3 = (char *) malloc (pagesize); | |
14918 | if (!data3) | |
d0ac1c44 | 14919 | return 12; |
5464f5a1 | 14920 | if (read (fd, data3, pagesize) != pagesize) |
d0ac1c44 | 14921 | return 13; |
5464f5a1 NN |
14922 | for (i = 0; i < pagesize; ++i) |
14923 | if (*(data + i) != *(data3 + i)) | |
d0ac1c44 | 14924 | return 14; |
5464f5a1 | 14925 | close (fd); |
81ecdfbb | 14926 | return 0; |
5464f5a1 NN |
14927 | } |
14928 | _ACEOF | |
81ecdfbb | 14929 | if ac_fn_c_try_run "$LINENO"; then : |
5464f5a1 NN |
14930 | ac_cv_func_mmap_fixed_mapped=yes |
14931 | else | |
81ecdfbb | 14932 | ac_cv_func_mmap_fixed_mapped=no |
5464f5a1 | 14933 | fi |
81ecdfbb RW |
14934 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
14935 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5464f5a1 | 14936 | fi |
81ecdfbb | 14937 | |
5464f5a1 | 14938 | fi |
81ecdfbb RW |
14939 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
14940 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } | |
5464f5a1 NN |
14941 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
14942 | ||
81ecdfbb | 14943 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
5464f5a1 NN |
14944 | |
14945 | fi | |
d0ac1c44 | 14946 | rm -f conftest.mmap conftest.txt |
5464f5a1 | 14947 | |
5464f5a1 | 14948 | for ac_func in madvise mprotect |
81ecdfbb RW |
14949 | do : |
14950 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
14951 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
d0ac1c44 | 14952 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : |
5464f5a1 | 14953 | cat >>confdefs.h <<_ACEOF |
81ecdfbb | 14954 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
5464f5a1 NN |
14955 | _ACEOF |
14956 | ||
14957 | fi | |
14958 | done | |
14959 | ||
14960 | case ${want_mmap}+${ac_cv_func_mmap_fixed_mapped} in | |
14961 | true+yes ) | |
81ecdfbb | 14962 | $as_echo "#define USE_MMAP 1" >>confdefs.h |
5464f5a1 NN |
14963 | ;; |
14964 | esac | |
14965 | ||
14966 | rm -f doc/config.status | |
81ecdfbb | 14967 | ac_config_files="$ac_config_files Makefile doc/Makefile bfd-in3.h:bfd-in2.h po/Makefile.in:po/Make-in" |
5464f5a1 | 14968 | |
20e95c23 | 14969 | |
81ecdfbb | 14970 | ac_config_commands="$ac_config_commands default" |
5464f5a1 | 14971 | |
108a6f8e CD |
14972 | |
14973 | ||
14974 | ||
14975 | ||
14976 | ||
31dd3154 | 14977 | |
5464f5a1 NN |
14978 | cat >confcache <<\_ACEOF |
14979 | # This file is a shell script that caches the results of configure | |
14980 | # tests run on this system so they can be shared between configure | |
14981 | # scripts and configure runs, see configure's option --config-cache. | |
14982 | # It is not useful on other systems. If it contains results you don't | |
14983 | # want to keep, you may remove or edit it. | |
14984 | # | |
14985 | # config.status only pays attention to the cache file if you give it | |
14986 | # the --recheck option to rerun configure. | |
14987 | # | |
14988 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
14989 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
14990 | # following values. | |
14991 | ||
14992 | _ACEOF | |
14993 | ||
14994 | # The following way of writing the cache mishandles newlines in values, | |
14995 | # but we know of no workaround that is simple, portable, and efficient. | |
81ecdfbb | 14996 | # So, we kill variables containing newlines. |
5464f5a1 NN |
14997 | # Ultrix sh set writes to stderr and can't be redirected directly, |
14998 | # and sets the high bit in the cache file unless we assign to the vars. | |
81ecdfbb RW |
14999 | ( |
15000 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15001 | eval ac_val=\$$ac_var | |
15002 | case $ac_val in #( | |
15003 | *${as_nl}*) | |
15004 | case $ac_var in #( | |
15005 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
15006 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
15007 | esac | |
15008 | case $ac_var in #( | |
15009 | _ | IFS | as_nl) ;; #( | |
15010 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
15011 | *) { eval $ac_var=; unset $ac_var;} ;; | |
15012 | esac ;; | |
15013 | esac | |
15014 | done | |
15015 | ||
5464f5a1 | 15016 | (set) 2>&1 | |
81ecdfbb RW |
15017 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
15018 | *${as_nl}ac_space=\ *) | |
15019 | # `set' does not quote correctly, so add quotes: double-quote | |
15020 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
5464f5a1 NN |
15021 | sed -n \ |
15022 | "s/'/'\\\\''/g; | |
15023 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
81ecdfbb | 15024 | ;; #( |
5464f5a1 NN |
15025 | *) |
15026 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
81ecdfbb | 15027 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
5464f5a1 | 15028 | ;; |
81ecdfbb RW |
15029 | esac | |
15030 | sort | |
15031 | ) | | |
5464f5a1 | 15032 | sed ' |
81ecdfbb | 15033 | /^ac_cv_env_/b end |
5464f5a1 | 15034 | t clear |
81ecdfbb | 15035 | :clear |
5464f5a1 NN |
15036 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
15037 | t end | |
81ecdfbb RW |
15038 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
15039 | :end' >>confcache | |
15040 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15041 | if test -w "$cache_file"; then | |
d0ac1c44 | 15042 | if test "x$cache_file" != "x/dev/null"; then |
81ecdfbb RW |
15043 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
15044 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
d0ac1c44 SM |
15045 | if test ! -f "$cache_file" || test -h "$cache_file"; then |
15046 | cat confcache >"$cache_file" | |
15047 | else | |
15048 | case $cache_file in #( | |
15049 | */* | ?:*) | |
15050 | mv -f confcache "$cache_file"$$ && | |
15051 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
15052 | *) | |
15053 | mv -f confcache "$cache_file" ;; | |
15054 | esac | |
15055 | fi | |
15056 | fi | |
5464f5a1 | 15057 | else |
81ecdfbb RW |
15058 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
15059 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
5464f5a1 NN |
15060 | fi |
15061 | fi | |
15062 | rm -f confcache | |
15063 | ||
15064 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
15065 | # Let make expand exec_prefix. | |
15066 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15067 | ||
5464f5a1 NN |
15068 | DEFS=-DHAVE_CONFIG_H |
15069 | ||
15070 | ac_libobjs= | |
15071 | ac_ltlibobjs= | |
d0ac1c44 | 15072 | U= |
5464f5a1 NN |
15073 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
15074 | # 1. Remove the extension, and $U if already installed. | |
81ecdfbb RW |
15075 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
15076 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
15077 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
15078 | # will be set to the directory where LIBOBJS objects are built. | |
15079 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15080 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
5464f5a1 NN |
15081 | done |
15082 | LIBOBJS=$ac_libobjs | |
15083 | ||
15084 | LTLIBOBJS=$ac_ltlibobjs | |
15085 | ||
15086 | ||
d0ac1c44 SM |
15087 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 |
15088 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
15089 | if test -n "$am_sleep_pid"; then | |
15090 | # Hide warnings about reused PIDs. | |
15091 | wait $am_sleep_pid 2>/dev/null | |
15092 | fi | |
15093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
15094 | $as_echo "done" >&6; } | |
81ecdfbb RW |
15095 | if test -n "$EXEEXT"; then |
15096 | am__EXEEXT_TRUE= | |
15097 | am__EXEEXT_FALSE='#' | |
15098 | else | |
15099 | am__EXEEXT_TRUE='#' | |
15100 | am__EXEEXT_FALSE= | |
f5385ebf | 15101 | fi |
81ecdfbb | 15102 | |
83c79df8 AM |
15103 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
15104 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
15105 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15106 | fi | |
15107 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
15108 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
15109 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15110 | fi | |
ce3c775b | 15111 | if test -z "${PLUGINS_TRUE}" && test -z "${PLUGINS_FALSE}"; then |
d0ac1c44 | 15112 | as_fn_error $? "conditional \"PLUGINS\" was never defined. |
81ecdfbb | 15113 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
ce3c775b | 15114 | fi |
f5385ebf | 15115 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
d0ac1c44 | 15116 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. |
81ecdfbb | 15117 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
f5385ebf | 15118 | fi |
d5fbea21 | 15119 | if test -z "${GENINSRC_NEVER_TRUE}" && test -z "${GENINSRC_NEVER_FALSE}"; then |
d0ac1c44 | 15120 | as_fn_error $? "conditional \"GENINSRC_NEVER\" was never defined. |
81ecdfbb | 15121 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
d5fbea21 | 15122 | fi |
f5385ebf | 15123 | if test -z "${INSTALL_LIBBFD_TRUE}" && test -z "${INSTALL_LIBBFD_FALSE}"; then |
d0ac1c44 | 15124 | as_fn_error $? "conditional \"INSTALL_LIBBFD\" was never defined. |
81ecdfbb | 15125 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 |
f5385ebf | 15126 | fi |
5464f5a1 | 15127 | |
d0ac1c44 | 15128 | : "${CONFIG_STATUS=./config.status}" |
81ecdfbb | 15129 | ac_write_fail=0 |
5464f5a1 NN |
15130 | ac_clean_files_save=$ac_clean_files |
15131 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
81ecdfbb RW |
15132 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
15133 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15134 | as_write_fail=0 | |
15135 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
5464f5a1 NN |
15136 | #! $SHELL |
15137 | # Generated by $as_me. | |
15138 | # Run this file to recreate the current configuration. | |
15139 | # Compiler output produced by configure, useful for debugging | |
15140 | # configure, is in config.log if it exists. | |
15141 | ||
15142 | debug=false | |
15143 | ac_cs_recheck=false | |
15144 | ac_cs_silent=false | |
5464f5a1 | 15145 | |
81ecdfbb RW |
15146 | SHELL=\${CONFIG_SHELL-$SHELL} |
15147 | export SHELL | |
15148 | _ASEOF | |
15149 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
15150 | ## -------------------- ## | |
15151 | ## M4sh Initialization. ## | |
15152 | ## -------------------- ## | |
5464f5a1 | 15153 | |
81ecdfbb RW |
15154 | # Be more Bourne compatible |
15155 | DUALCASE=1; export DUALCASE # for MKS sh | |
15156 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
5464f5a1 NN |
15157 | emulate sh |
15158 | NULLCMD=: | |
81ecdfbb | 15159 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
5464f5a1 NN |
15160 | # is contrary to our usage. Disable this feature. |
15161 | alias -g '${1+"$@"}'='"$@"' | |
81ecdfbb RW |
15162 | setopt NO_GLOB_SUBST |
15163 | else | |
15164 | case `(set -o) 2>/dev/null` in #( | |
15165 | *posix*) : | |
15166 | set -o posix ;; #( | |
15167 | *) : | |
15168 | ;; | |
15169 | esac | |
5464f5a1 | 15170 | fi |
5464f5a1 | 15171 | |
81ecdfbb RW |
15172 | |
15173 | as_nl=' | |
15174 | ' | |
15175 | export as_nl | |
15176 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15177 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15178 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15179 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15180 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
15181 | # but without wasting forks for bash or zsh. | |
15182 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
15183 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15184 | as_echo='print -r --' | |
15185 | as_echo_n='print -rn --' | |
15186 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15187 | as_echo='printf %s\n' | |
15188 | as_echo_n='printf %s' | |
15189 | else | |
15190 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15191 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15192 | as_echo_n='/usr/ucb/echo -n' | |
15193 | else | |
15194 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
15195 | as_echo_n_body='eval | |
15196 | arg=$1; | |
15197 | case $arg in #( | |
15198 | *"$as_nl"*) | |
15199 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15200 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15201 | esac; | |
15202 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15203 | ' | |
15204 | export as_echo_n_body | |
15205 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
15206 | fi | |
15207 | export as_echo_body | |
15208 | as_echo='sh -c $as_echo_body as_echo' | |
15209 | fi | |
15210 | ||
15211 | # The user is always right. | |
15212 | if test "${PATH_SEPARATOR+set}" != set; then | |
15213 | PATH_SEPARATOR=: | |
15214 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15215 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15216 | PATH_SEPARATOR=';' | |
15217 | } | |
5464f5a1 NN |
15218 | fi |
15219 | ||
15220 | ||
81ecdfbb RW |
15221 | # IFS |
15222 | # We need space, tab and new line, in precisely that order. Quoting is | |
15223 | # there to prevent editors from complaining about space-tab. | |
15224 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15225 | # splitting by setting IFS to empty value.) | |
15226 | IFS=" "" $as_nl" | |
15227 | ||
15228 | # Find who we are. Look in the path if we contain no directory separator. | |
d0ac1c44 | 15229 | as_myself= |
81ecdfbb RW |
15230 | case $0 in #(( |
15231 | *[\\/]* ) as_myself=$0 ;; | |
15232 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15233 | for as_dir in $PATH | |
15234 | do | |
15235 | IFS=$as_save_IFS | |
15236 | test -z "$as_dir" && as_dir=. | |
15237 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15238 | done | |
15239 | IFS=$as_save_IFS | |
15240 | ||
15241 | ;; | |
15242 | esac | |
15243 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15244 | # in which case we are not to be found in the path. | |
15245 | if test "x$as_myself" = x; then | |
15246 | as_myself=$0 | |
15247 | fi | |
15248 | if test ! -f "$as_myself"; then | |
15249 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15250 | exit 1 | |
15251 | fi | |
15252 | ||
15253 | # Unset variables that we do not need and which cause bugs (e.g. in | |
15254 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
15255 | # suppresses any "Segmentation fault" message there. '((' could | |
15256 | # trigger a bug in pdksh 5.2.14. | |
15257 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
15258 | do eval test x\${$as_var+set} = xset \ | |
15259 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15260 | done | |
5464f5a1 NN |
15261 | PS1='$ ' |
15262 | PS2='> ' | |
15263 | PS4='+ ' | |
15264 | ||
15265 | # NLS nuisances. | |
81ecdfbb RW |
15266 | LC_ALL=C |
15267 | export LC_ALL | |
15268 | LANGUAGE=C | |
15269 | export LANGUAGE | |
15270 | ||
15271 | # CDPATH. | |
15272 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15273 | ||
15274 | ||
d0ac1c44 SM |
15275 | # as_fn_error STATUS ERROR [LINENO LOG_FD] |
15276 | # ---------------------------------------- | |
81ecdfbb RW |
15277 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
15278 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
d0ac1c44 | 15279 | # script with STATUS, using 1 if that was 0. |
81ecdfbb RW |
15280 | as_fn_error () |
15281 | { | |
d0ac1c44 SM |
15282 | as_status=$1; test $as_status -eq 0 && as_status=1 |
15283 | if test "$4"; then | |
15284 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15285 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
5464f5a1 | 15286 | fi |
d0ac1c44 | 15287 | $as_echo "$as_me: error: $2" >&2 |
81ecdfbb RW |
15288 | as_fn_exit $as_status |
15289 | } # as_fn_error | |
15290 | ||
15291 | ||
15292 | # as_fn_set_status STATUS | |
15293 | # ----------------------- | |
15294 | # Set $? to STATUS, without forking. | |
15295 | as_fn_set_status () | |
15296 | { | |
15297 | return $1 | |
15298 | } # as_fn_set_status | |
15299 | ||
15300 | # as_fn_exit STATUS | |
15301 | # ----------------- | |
15302 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15303 | as_fn_exit () | |
15304 | { | |
15305 | set +e | |
15306 | as_fn_set_status $1 | |
15307 | exit $1 | |
15308 | } # as_fn_exit | |
15309 | ||
15310 | # as_fn_unset VAR | |
15311 | # --------------- | |
15312 | # Portably unset VAR. | |
15313 | as_fn_unset () | |
15314 | { | |
15315 | { eval $1=; unset $1;} | |
15316 | } | |
15317 | as_unset=as_fn_unset | |
15318 | # as_fn_append VAR VALUE | |
15319 | # ---------------------- | |
15320 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15321 | # advantage of any shell optimizations that allow amortized linear growth over | |
15322 | # repeated appends, instead of the typical quadratic growth present in naive | |
15323 | # implementations. | |
15324 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15325 | eval 'as_fn_append () | |
15326 | { | |
15327 | eval $1+=\$2 | |
15328 | }' | |
15329 | else | |
15330 | as_fn_append () | |
15331 | { | |
15332 | eval $1=\$$1\$2 | |
15333 | } | |
15334 | fi # as_fn_append | |
15335 | ||
15336 | # as_fn_arith ARG... | |
15337 | # ------------------ | |
15338 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15339 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15340 | # must be portable across $(()) and expr. | |
15341 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15342 | eval 'as_fn_arith () | |
15343 | { | |
15344 | as_val=$(( $* )) | |
15345 | }' | |
15346 | else | |
15347 | as_fn_arith () | |
15348 | { | |
15349 | as_val=`expr "$@" || test $? -eq 1` | |
15350 | } | |
15351 | fi # as_fn_arith | |
15352 | ||
5464f5a1 | 15353 | |
81ecdfbb RW |
15354 | if expr a : '\(a\)' >/dev/null 2>&1 && |
15355 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
5464f5a1 NN |
15356 | as_expr=expr |
15357 | else | |
15358 | as_expr=false | |
15359 | fi | |
15360 | ||
81ecdfbb | 15361 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
5464f5a1 NN |
15362 | as_basename=basename |
15363 | else | |
15364 | as_basename=false | |
15365 | fi | |
252b5132 | 15366 | |
81ecdfbb RW |
15367 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
15368 | as_dirname=dirname | |
15369 | else | |
15370 | as_dirname=false | |
15371 | fi | |
6be7c12c | 15372 | |
81ecdfbb | 15373 | as_me=`$as_basename -- "$0" || |
5464f5a1 NN |
15374 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
15375 | X"$0" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
15376 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
15377 | $as_echo X/"$0" | | |
15378 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15379 | s//\1/ | |
15380 | q | |
15381 | } | |
15382 | /^X\/\(\/\/\)$/{ | |
15383 | s//\1/ | |
15384 | q | |
15385 | } | |
15386 | /^X\/\(\/\).*/{ | |
15387 | s//\1/ | |
15388 | q | |
15389 | } | |
15390 | s/.*/./; q'` | |
5464f5a1 | 15391 | |
5464f5a1 NN |
15392 | # Avoid depending upon Character Ranges. |
15393 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15394 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15395 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15396 | as_cr_digits='0123456789' | |
15397 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15398 | ||
81ecdfbb RW |
15399 | ECHO_C= ECHO_N= ECHO_T= |
15400 | case `echo -n x` in #((((( | |
15401 | -n*) | |
15402 | case `echo 'xy\c'` in | |
15403 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15404 | xy) ECHO_C='\c';; | |
15405 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15406 | ECHO_T=' ';; | |
15407 | esac;; | |
15408 | *) | |
15409 | ECHO_N='-n';; | |
5464f5a1 NN |
15410 | esac |
15411 | ||
81ecdfbb RW |
15412 | rm -f conf$$ conf$$.exe conf$$.file |
15413 | if test -d conf$$.dir; then | |
15414 | rm -f conf$$.dir/conf$$.file | |
252b5132 | 15415 | else |
81ecdfbb RW |
15416 | rm -f conf$$.dir |
15417 | mkdir conf$$.dir 2>/dev/null | |
252b5132 | 15418 | fi |
81ecdfbb RW |
15419 | if (echo >conf$$.file) 2>/dev/null; then |
15420 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
5464f5a1 | 15421 | as_ln_s='ln -s' |
81ecdfbb RW |
15422 | # ... but there are two gotchas: |
15423 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15424 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
d0ac1c44 | 15425 | # In both cases, we have to default to `cp -pR'. |
81ecdfbb | 15426 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d0ac1c44 | 15427 | as_ln_s='cp -pR' |
81ecdfbb RW |
15428 | elif ln conf$$.file conf$$ 2>/dev/null; then |
15429 | as_ln_s=ln | |
15430 | else | |
d0ac1c44 | 15431 | as_ln_s='cp -pR' |
5464f5a1 | 15432 | fi |
5464f5a1 | 15433 | else |
d0ac1c44 | 15434 | as_ln_s='cp -pR' |
252b5132 | 15435 | fi |
81ecdfbb RW |
15436 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
15437 | rmdir conf$$.dir 2>/dev/null | |
15438 | ||
15439 | ||
15440 | # as_fn_mkdir_p | |
15441 | # ------------- | |
15442 | # Create "$as_dir" as a directory, including parents if necessary. | |
15443 | as_fn_mkdir_p () | |
15444 | { | |
15445 | ||
15446 | case $as_dir in #( | |
15447 | -*) as_dir=./$as_dir;; | |
15448 | esac | |
15449 | test -d "$as_dir" || eval $as_mkdir_p || { | |
15450 | as_dirs= | |
15451 | while :; do | |
15452 | case $as_dir in #( | |
15453 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15454 | *) as_qdir=$as_dir;; | |
15455 | esac | |
15456 | as_dirs="'$as_qdir' $as_dirs" | |
15457 | as_dir=`$as_dirname -- "$as_dir" || | |
15458 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15459 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15460 | X"$as_dir" : 'X\(//\)$' \| \ | |
15461 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15462 | $as_echo X"$as_dir" | | |
15463 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15464 | s//\1/ | |
15465 | q | |
15466 | } | |
15467 | /^X\(\/\/\)[^/].*/{ | |
15468 | s//\1/ | |
15469 | q | |
15470 | } | |
15471 | /^X\(\/\/\)$/{ | |
15472 | s//\1/ | |
15473 | q | |
15474 | } | |
15475 | /^X\(\/\).*/{ | |
15476 | s//\1/ | |
15477 | q | |
15478 | } | |
15479 | s/.*/./; q'` | |
15480 | test -d "$as_dir" && break | |
15481 | done | |
15482 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
d0ac1c44 | 15483 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" |
81ecdfbb | 15484 | |
6be7c12c | 15485 | |
81ecdfbb | 15486 | } # as_fn_mkdir_p |
5464f5a1 | 15487 | if mkdir -p . 2>/dev/null; then |
81ecdfbb | 15488 | as_mkdir_p='mkdir -p "$as_dir"' |
5464f5a1 NN |
15489 | else |
15490 | test -d ./-p && rmdir ./-p | |
15491 | as_mkdir_p=false | |
252b5132 | 15492 | fi |
81ecdfbb | 15493 | |
d0ac1c44 SM |
15494 | |
15495 | # as_fn_executable_p FILE | |
15496 | # ----------------------- | |
15497 | # Test if FILE is an executable regular file. | |
15498 | as_fn_executable_p () | |
15499 | { | |
15500 | test -f "$1" && test -x "$1" | |
15501 | } # as_fn_executable_p | |
15502 | as_test_x='test -x' | |
15503 | as_executable_p=as_fn_executable_p | |
252b5132 | 15504 | |
5464f5a1 NN |
15505 | # Sed expression to map a string onto a valid CPP name. |
15506 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
252b5132 | 15507 | |
5464f5a1 NN |
15508 | # Sed expression to map a string onto a valid variable name. |
15509 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
6be7c12c | 15510 | |
252b5132 | 15511 | |
5464f5a1 | 15512 | exec 6>&1 |
81ecdfbb RW |
15513 | ## ----------------------------------- ## |
15514 | ## Main body of $CONFIG_STATUS script. ## | |
15515 | ## ----------------------------------- ## | |
15516 | _ASEOF | |
15517 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
5464f5a1 | 15518 | |
81ecdfbb RW |
15519 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15520 | # Save the log message, to keep $0 and so on meaningful, and to | |
5464f5a1 | 15521 | # report actual input values of CONFIG_FILES etc. instead of their |
81ecdfbb RW |
15522 | # values after options handling. |
15523 | ac_log=" | |
573fe3fb | 15524 | This file was extended by bfd $as_me 2.36.50, which was |
d0ac1c44 | 15525 | generated by GNU Autoconf 2.69. Invocation command line was |
5464f5a1 NN |
15526 | |
15527 | CONFIG_FILES = $CONFIG_FILES | |
15528 | CONFIG_HEADERS = $CONFIG_HEADERS | |
15529 | CONFIG_LINKS = $CONFIG_LINKS | |
15530 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
15531 | $ $0 $@ | |
15532 | ||
81ecdfbb RW |
15533 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
15534 | " | |
15535 | ||
5464f5a1 NN |
15536 | _ACEOF |
15537 | ||
81ecdfbb RW |
15538 | case $ac_config_files in *" |
15539 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
15540 | esac | |
5464f5a1 | 15541 | |
81ecdfbb RW |
15542 | case $ac_config_headers in *" |
15543 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
15544 | esac | |
252b5132 | 15545 | |
252b5132 | 15546 | |
81ecdfbb RW |
15547 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
15548 | # Files that config.status was made for. | |
15549 | config_files="$ac_config_files" | |
15550 | config_headers="$ac_config_headers" | |
15551 | config_commands="$ac_config_commands" | |
252b5132 | 15552 | |
81ecdfbb | 15553 | _ACEOF |
5464f5a1 | 15554 | |
81ecdfbb | 15555 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5464f5a1 | 15556 | ac_cs_usage="\ |
81ecdfbb RW |
15557 | \`$as_me' instantiates files and other configuration actions |
15558 | from templates according to the current configuration. Unless the files | |
15559 | and actions are specified as TAGs, all are instantiated by default. | |
5464f5a1 | 15560 | |
81ecdfbb | 15561 | Usage: $0 [OPTION]... [TAG]... |
5464f5a1 NN |
15562 | |
15563 | -h, --help print this help, then exit | |
81ecdfbb | 15564 | -V, --version print version number and configuration settings, then exit |
d0ac1c44 | 15565 | --config print configuration, then exit |
81ecdfbb RW |
15566 | -q, --quiet, --silent |
15567 | do not print progress messages | |
5464f5a1 NN |
15568 | -d, --debug don't remove temporary files |
15569 | --recheck update $as_me by reconfiguring in the same conditions | |
81ecdfbb RW |
15570 | --file=FILE[:TEMPLATE] |
15571 | instantiate the configuration file FILE | |
15572 | --header=FILE[:TEMPLATE] | |
15573 | instantiate the configuration header FILE | |
5464f5a1 NN |
15574 | |
15575 | Configuration files: | |
15576 | $config_files | |
15577 | ||
15578 | Configuration headers: | |
15579 | $config_headers | |
15580 | ||
15581 | Configuration commands: | |
15582 | $config_commands | |
15583 | ||
81ecdfbb | 15584 | Report bugs to the package provider." |
5464f5a1 | 15585 | |
81ecdfbb RW |
15586 | _ACEOF |
15587 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 15588 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
5464f5a1 | 15589 | ac_cs_version="\\ |
573fe3fb | 15590 | bfd config.status 2.36.50 |
d0ac1c44 SM |
15591 | configured by $0, generated by GNU Autoconf 2.69, |
15592 | with options \\"\$ac_cs_config\\" | |
5464f5a1 | 15593 | |
d0ac1c44 | 15594 | Copyright (C) 2012 Free Software Foundation, Inc. |
5464f5a1 NN |
15595 | This config.status script is free software; the Free Software Foundation |
15596 | gives unlimited permission to copy, distribute and modify it." | |
81ecdfbb RW |
15597 | |
15598 | ac_pwd='$ac_pwd' | |
15599 | srcdir='$srcdir' | |
15600 | INSTALL='$INSTALL' | |
15601 | MKDIR_P='$MKDIR_P' | |
15602 | AWK='$AWK' | |
15603 | test -n "\$AWK" || AWK=awk | |
5464f5a1 NN |
15604 | _ACEOF |
15605 | ||
81ecdfbb RW |
15606 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15607 | # The default lists apply if the user does not specify any file. | |
5464f5a1 NN |
15608 | ac_need_defaults=: |
15609 | while test $# != 0 | |
15610 | do | |
15611 | case $1 in | |
d0ac1c44 | 15612 | --*=?*) |
81ecdfbb RW |
15613 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
15614 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
5464f5a1 | 15615 | ac_shift=: |
6be7c12c | 15616 | ;; |
d0ac1c44 SM |
15617 | --*=) |
15618 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
15619 | ac_optarg= | |
15620 | ac_shift=: | |
15621 | ;; | |
81ecdfbb | 15622 | *) |
5464f5a1 NN |
15623 | ac_option=$1 |
15624 | ac_optarg=$2 | |
15625 | ac_shift=shift | |
6be7c12c | 15626 | ;; |
5464f5a1 | 15627 | esac |
252b5132 | 15628 | |
5464f5a1 NN |
15629 | case $ac_option in |
15630 | # Handling of the options. | |
5464f5a1 NN |
15631 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
15632 | ac_cs_recheck=: ;; | |
81ecdfbb RW |
15633 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
15634 | $as_echo "$ac_cs_version"; exit ;; | |
d0ac1c44 SM |
15635 | --config | --confi | --conf | --con | --co | --c ) |
15636 | $as_echo "$ac_cs_config"; exit ;; | |
81ecdfbb | 15637 | --debug | --debu | --deb | --de | --d | -d ) |
5464f5a1 NN |
15638 | debug=: ;; |
15639 | --file | --fil | --fi | --f ) | |
15640 | $ac_shift | |
81ecdfbb RW |
15641 | case $ac_optarg in |
15642 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
d0ac1c44 | 15643 | '') as_fn_error $? "missing file argument" ;; |
81ecdfbb RW |
15644 | esac |
15645 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
5464f5a1 NN |
15646 | ac_need_defaults=false;; |
15647 | --header | --heade | --head | --hea ) | |
15648 | $ac_shift | |
81ecdfbb RW |
15649 | case $ac_optarg in |
15650 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
15651 | esac | |
15652 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
5464f5a1 | 15653 | ac_need_defaults=false;; |
81ecdfbb RW |
15654 | --he | --h) |
15655 | # Conflict between --help and --header | |
d0ac1c44 | 15656 | as_fn_error $? "ambiguous option: \`$1' |
81ecdfbb RW |
15657 | Try \`$0 --help' for more information.";; |
15658 | --help | --hel | -h ) | |
15659 | $as_echo "$ac_cs_usage"; exit ;; | |
5464f5a1 NN |
15660 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
15661 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
15662 | ac_cs_silent=: ;; | |
6be7c12c | 15663 | |
5464f5a1 | 15664 | # This is an error. |
d0ac1c44 | 15665 | -*) as_fn_error $? "unrecognized option: \`$1' |
81ecdfbb | 15666 | Try \`$0 --help' for more information." ;; |
252b5132 | 15667 | |
81ecdfbb RW |
15668 | *) as_fn_append ac_config_targets " $1" |
15669 | ac_need_defaults=false ;; | |
252b5132 | 15670 | |
5464f5a1 NN |
15671 | esac |
15672 | shift | |
15673 | done | |
6be7c12c | 15674 | |
5464f5a1 | 15675 | ac_configure_extra_args= |
252b5132 | 15676 | |
5464f5a1 NN |
15677 | if $ac_cs_silent; then |
15678 | exec 6>/dev/null | |
15679 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
15680 | fi | |
6be7c12c | 15681 | |
5464f5a1 | 15682 | _ACEOF |
81ecdfbb | 15683 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
5464f5a1 | 15684 | if \$ac_cs_recheck; then |
d0ac1c44 | 15685 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
81ecdfbb RW |
15686 | shift |
15687 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
15688 | CONFIG_SHELL='$SHELL' | |
15689 | export CONFIG_SHELL | |
15690 | exec "\$@" | |
5464f5a1 NN |
15691 | fi |
15692 | ||
15693 | _ACEOF | |
81ecdfbb RW |
15694 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
15695 | exec 5>>config.log | |
15696 | { | |
15697 | echo | |
15698 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
15699 | ## Running $as_me. ## | |
15700 | _ASBOX | |
15701 | $as_echo "$ac_log" | |
15702 | } >&5 | |
5464f5a1 | 15703 | |
81ecdfbb RW |
15704 | _ACEOF |
15705 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
6be7c12c | 15706 | # |
81ecdfbb | 15707 | # INIT-COMMANDS |
6be7c12c | 15708 | # |
f5385ebf | 15709 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
d7040cdb SE |
15710 | |
15711 | ||
15712 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
15713 | # if CDPATH is set. | |
15714 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15715 | ||
15716 | sed_quote_subst='$sed_quote_subst' | |
15717 | double_quote_subst='$double_quote_subst' | |
15718 | delay_variable_subst='$delay_variable_subst' | |
3725885a RW |
15719 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' |
15720 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
15721 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
15722 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
15723 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
15724 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
15725 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
15726 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
15727 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
15728 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
15729 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
15730 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
15731 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
15732 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
15733 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
15734 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
15735 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
15736 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
15737 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
15738 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
15739 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
15740 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
15741 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
15742 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
15743 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
15744 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
15745 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
15746 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
15747 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
15748 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
15749 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
15750 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
15751 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
15752 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
15753 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
15754 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
15755 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
15756 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15757 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15758 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
15759 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
15760 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
15761 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
15762 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
15763 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
15764 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
15765 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
15766 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
15767 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
15768 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
15769 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
15770 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
15771 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
15772 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
15773 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
15774 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
15775 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
15776 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
15777 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
15778 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
15779 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
15780 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
15781 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
15782 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
15783 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
15784 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
15785 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
15786 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
15787 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
15788 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
15789 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
15790 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
15791 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
15792 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
15793 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
15794 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
15795 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
15796 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
15797 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
15798 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
15799 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
15800 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
15801 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
15802 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
15803 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
15804 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
15805 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
15806 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
15807 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
15808 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
15809 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
15810 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
15811 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
15812 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
15813 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
15814 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
15815 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
15816 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
15817 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
15818 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
15819 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
15820 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
15821 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
15822 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
15823 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
15824 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
15825 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
15826 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15827 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
15828 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
15829 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
15830 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
15831 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
15832 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
15833 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
15834 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
15835 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
15836 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
15837 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
15838 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
d7040cdb SE |
15839 | |
15840 | LTCC='$LTCC' | |
15841 | LTCFLAGS='$LTCFLAGS' | |
15842 | compiler='$compiler_DEFAULT' | |
15843 | ||
3725885a RW |
15844 | # A function that is used when there is no print builtin or printf. |
15845 | func_fallback_echo () | |
15846 | { | |
15847 | eval 'cat <<_LTECHO_EOF | |
15848 | \$1 | |
15849 | _LTECHO_EOF' | |
15850 | } | |
15851 | ||
d7040cdb | 15852 | # Quote evaled strings. |
3725885a RW |
15853 | for var in SHELL \ |
15854 | ECHO \ | |
15855 | SED \ | |
d7040cdb SE |
15856 | GREP \ |
15857 | EGREP \ | |
15858 | FGREP \ | |
15859 | LD \ | |
15860 | NM \ | |
15861 | LN_S \ | |
15862 | lt_SP2NL \ | |
15863 | lt_NL2SP \ | |
15864 | reload_flag \ | |
718a6fd8 | 15865 | OBJDUMP \ |
d7040cdb SE |
15866 | deplibs_check_method \ |
15867 | file_magic_cmd \ | |
15868 | AR \ | |
15869 | AR_FLAGS \ | |
15870 | STRIP \ | |
15871 | RANLIB \ | |
15872 | CC \ | |
15873 | CFLAGS \ | |
15874 | compiler \ | |
15875 | lt_cv_sys_global_symbol_pipe \ | |
15876 | lt_cv_sys_global_symbol_to_cdecl \ | |
15877 | lt_cv_sys_global_symbol_to_c_name_address \ | |
718a6fd8 | 15878 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ |
d7040cdb SE |
15879 | lt_prog_compiler_no_builtin_flag \ |
15880 | lt_prog_compiler_wl \ | |
15881 | lt_prog_compiler_pic \ | |
15882 | lt_prog_compiler_static \ | |
15883 | lt_cv_prog_compiler_c_o \ | |
15884 | need_locks \ | |
718a6fd8 SE |
15885 | DSYMUTIL \ |
15886 | NMEDIT \ | |
15887 | LIPO \ | |
15888 | OTOOL \ | |
15889 | OTOOL64 \ | |
d7040cdb SE |
15890 | shrext_cmds \ |
15891 | export_dynamic_flag_spec \ | |
15892 | whole_archive_flag_spec \ | |
15893 | compiler_needs_object \ | |
15894 | with_gnu_ld \ | |
15895 | allow_undefined_flag \ | |
15896 | no_undefined_flag \ | |
15897 | hardcode_libdir_flag_spec \ | |
15898 | hardcode_libdir_flag_spec_ld \ | |
15899 | hardcode_libdir_separator \ | |
15900 | fix_srcfile_path \ | |
15901 | exclude_expsyms \ | |
15902 | include_expsyms \ | |
15903 | file_list_spec \ | |
15904 | variables_saved_for_relink \ | |
15905 | libname_spec \ | |
15906 | library_names_spec \ | |
15907 | soname_spec \ | |
3725885a | 15908 | install_override_mode \ |
d7040cdb SE |
15909 | finish_eval \ |
15910 | old_striplib \ | |
15911 | striplib; do | |
3725885a | 15912 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 15913 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 15914 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
15915 | ;; |
15916 | *) | |
15917 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
15918 | ;; | |
15919 | esac | |
15920 | done | |
15921 | ||
15922 | # Double-quote double-evaled strings. | |
15923 | for var in reload_cmds \ | |
15924 | old_postinstall_cmds \ | |
15925 | old_postuninstall_cmds \ | |
15926 | old_archive_cmds \ | |
15927 | extract_expsyms_cmds \ | |
15928 | old_archive_from_new_cmds \ | |
15929 | old_archive_from_expsyms_cmds \ | |
15930 | archive_cmds \ | |
15931 | archive_expsym_cmds \ | |
15932 | module_cmds \ | |
15933 | module_expsym_cmds \ | |
15934 | export_symbols_cmds \ | |
15935 | prelink_cmds \ | |
15936 | postinstall_cmds \ | |
15937 | postuninstall_cmds \ | |
15938 | finish_cmds \ | |
15939 | sys_lib_search_path_spec \ | |
15940 | sys_lib_dlsearch_path_spec; do | |
3725885a | 15941 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in |
d7040cdb | 15942 | *[\\\\\\\`\\"\\\$]*) |
3725885a | 15943 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" |
d7040cdb SE |
15944 | ;; |
15945 | *) | |
15946 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
15947 | ;; | |
15948 | esac | |
15949 | done | |
15950 | ||
d7040cdb SE |
15951 | ac_aux_dir='$ac_aux_dir' |
15952 | xsi_shell='$xsi_shell' | |
15953 | lt_shell_append='$lt_shell_append' | |
15954 | ||
15955 | # See if we are running on zsh, and set the options which allow our | |
15956 | # commands through without removal of \ escapes INIT. | |
15957 | if test -n "\${ZSH_VERSION+set}" ; then | |
15958 | setopt NO_GLOB_SUBST | |
15959 | fi | |
15960 | ||
15961 | ||
15962 | PACKAGE='$PACKAGE' | |
15963 | VERSION='$VERSION' | |
15964 | TIMESTAMP='$TIMESTAMP' | |
15965 | RM='$RM' | |
15966 | ofile='$ofile' | |
15967 | ||
15968 | ||
15969 | ||
20e95c23 DJ |
15970 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
15971 | # POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES, CATALOGS. But hide it | |
15972 | # from automake. | |
15973 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' | |
15974 | # Capture the value of LINGUAS because we need it to compute CATALOGS. | |
15975 | LINGUAS="${LINGUAS-%UNSET%}" | |
15976 | ||
5464f5a1 NN |
15977 | |
15978 | ||
15979 | _ACEOF | |
15980 | ||
81ecdfbb | 15981 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5464f5a1 | 15982 | |
81ecdfbb | 15983 | # Handling of arguments. |
5464f5a1 | 15984 | for ac_config_target in $ac_config_targets |
252b5132 | 15985 | do |
81ecdfbb RW |
15986 | case $ac_config_target in |
15987 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
15988 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
15989 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
15990 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
81ecdfbb RW |
15991 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
15992 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
15993 | "bfd-in3.h") CONFIG_FILES="$CONFIG_FILES bfd-in3.h:bfd-in2.h" ;; | |
15994 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in:po/Make-in" ;; | |
15995 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
15996 | ||
d0ac1c44 | 15997 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
252b5132 RH |
15998 | esac |
15999 | done | |
16000 | ||
81ecdfbb | 16001 | |
5464f5a1 NN |
16002 | # If the user did not use the arguments to specify the items to instantiate, |
16003 | # then the envvar interface is used. Set only those that are not. | |
16004 | # We use the long form for the default assignment because of an extremely | |
16005 | # bizarre bug on SunOS 4.1.3. | |
16006 | if $ac_need_defaults; then | |
16007 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
16008 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
16009 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
16010 | fi | |
16011 | ||
16012 | # Have a temporary directory for convenience. Make it in the build tree | |
81ecdfbb | 16013 | # simply because there is no reason against having it here, and in addition, |
5464f5a1 | 16014 | # creating and moving files from /tmp can sometimes cause problems. |
81ecdfbb RW |
16015 | # Hook for its removal unless debugging. |
16016 | # Note that there is a small window in which the directory will not be cleaned: | |
16017 | # after its creation but before its name has been assigned to `$tmp'. | |
5464f5a1 NN |
16018 | $debug || |
16019 | { | |
d0ac1c44 | 16020 | tmp= ac_tmp= |
81ecdfbb | 16021 | trap 'exit_status=$? |
d0ac1c44 SM |
16022 | : "${ac_tmp:=$tmp}" |
16023 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
81ecdfbb RW |
16024 | ' 0 |
16025 | trap 'as_fn_exit 1' 1 2 13 15 | |
5464f5a1 | 16026 | } |
5464f5a1 | 16027 | # Create a (secure) tmp directory for tmp files. |
b3baf5d0 | 16028 | |
5464f5a1 | 16029 | { |
81ecdfbb | 16030 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d0ac1c44 | 16031 | test -d "$tmp" |
5464f5a1 NN |
16032 | } || |
16033 | { | |
81ecdfbb RW |
16034 | tmp=./conf$$-$RANDOM |
16035 | (umask 077 && mkdir "$tmp") | |
d0ac1c44 SM |
16036 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 |
16037 | ac_tmp=$tmp | |
81ecdfbb RW |
16038 | |
16039 | # Set up the scripts for CONFIG_FILES section. | |
16040 | # No need to generate them if there are no CONFIG_FILES. | |
16041 | # This happens for instance with `./config.status config.h'. | |
16042 | if test -n "$CONFIG_FILES"; then | |
16043 | ||
16044 | ||
16045 | ac_cr=`echo X | tr X '\015'` | |
16046 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
16047 | # But we know of no other shell where ac_cr would be empty at this | |
16048 | # point, so we can use a bashism as a fallback. | |
16049 | if test "x$ac_cr" = x; then | |
16050 | eval ac_cr=\$\'\\r\' | |
16051 | fi | |
16052 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
16053 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
d0ac1c44 | 16054 | ac_cs_awk_cr='\\r' |
81ecdfbb RW |
16055 | else |
16056 | ac_cs_awk_cr=$ac_cr | |
16057 | fi | |
16058 | ||
d0ac1c44 | 16059 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && |
81ecdfbb RW |
16060 | _ACEOF |
16061 | ||
16062 | ||
16063 | { | |
16064 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
16065 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
16066 | echo "_ACEOF" | |
16067 | } >conf$$subs.sh || | |
d0ac1c44 SM |
16068 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
16069 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
81ecdfbb RW |
16070 | ac_delim='%!_!# ' |
16071 | for ac_last_try in false false false false false :; do | |
16072 | . ./conf$$subs.sh || | |
d0ac1c44 | 16073 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
16074 | |
16075 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
16076 | if test $ac_delim_n = $ac_delim_num; then | |
16077 | break | |
16078 | elif $ac_last_try; then | |
d0ac1c44 | 16079 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb RW |
16080 | else |
16081 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16082 | fi | |
16083 | done | |
16084 | rm -f conf$$subs.sh | |
16085 | ||
16086 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
d0ac1c44 | 16087 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && |
81ecdfbb RW |
16088 | _ACEOF |
16089 | sed -n ' | |
16090 | h | |
16091 | s/^/S["/; s/!.*/"]=/ | |
16092 | p | |
16093 | g | |
16094 | s/^[^!]*!// | |
16095 | :repl | |
16096 | t repl | |
16097 | s/'"$ac_delim"'$// | |
16098 | t delim | |
16099 | :nl | |
16100 | h | |
d0ac1c44 | 16101 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
16102 | t more1 |
16103 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16104 | p | |
16105 | n | |
16106 | b repl | |
16107 | :more1 | |
16108 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16109 | p | |
16110 | g | |
16111 | s/.\{148\}// | |
16112 | t nl | |
16113 | :delim | |
16114 | h | |
d0ac1c44 | 16115 | s/\(.\{148\}\)..*/\1/ |
81ecdfbb RW |
16116 | t more2 |
16117 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16118 | p | |
16119 | b | |
16120 | :more2 | |
16121 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16122 | p | |
16123 | g | |
16124 | s/.\{148\}// | |
16125 | t delim | |
16126 | ' <conf$$subs.awk | sed ' | |
16127 | /^[^""]/{ | |
16128 | N | |
16129 | s/\n// | |
16130 | } | |
16131 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
16132 | rm -f conf$$subs.awk | |
16133 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16134 | _ACAWK | |
d0ac1c44 | 16135 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && |
81ecdfbb RW |
16136 | for (key in S) S_is_set[key] = 1 |
16137 | FS = "\a" | |
16138 | ||
16139 | } | |
5464f5a1 | 16140 | { |
81ecdfbb RW |
16141 | line = $ 0 |
16142 | nfields = split(line, field, "@") | |
16143 | substed = 0 | |
16144 | len = length(field[1]) | |
16145 | for (i = 2; i < nfields; i++) { | |
16146 | key = field[i] | |
16147 | keylen = length(key) | |
16148 | if (S_is_set[key]) { | |
16149 | value = S[key] | |
16150 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
16151 | len += length(value) + length(field[++i]) | |
16152 | substed = 1 | |
16153 | } else | |
16154 | len += 1 + keylen | |
16155 | } | |
16156 | ||
16157 | print line | |
5464f5a1 NN |
16158 | } |
16159 | ||
81ecdfbb RW |
16160 | _ACAWK |
16161 | _ACEOF | |
16162 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16163 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
16164 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
16165 | else | |
16166 | cat | |
d0ac1c44 SM |
16167 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ |
16168 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
5464f5a1 NN |
16169 | _ACEOF |
16170 | ||
d0ac1c44 SM |
16171 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), |
16172 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
81ecdfbb RW |
16173 | # trailing colons and then remove the whole line if VPATH becomes empty |
16174 | # (actually we leave an empty line to preserve line numbers). | |
16175 | if test "x$srcdir" = x.; then | |
d0ac1c44 SM |
16176 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ |
16177 | h | |
16178 | s/// | |
16179 | s/^/:/ | |
16180 | s/[ ]*$/:/ | |
16181 | s/:\$(srcdir):/:/g | |
16182 | s/:\${srcdir}:/:/g | |
16183 | s/:@srcdir@:/:/g | |
16184 | s/^:*// | |
81ecdfbb | 16185 | s/:*$// |
d0ac1c44 SM |
16186 | x |
16187 | s/\(=[ ]*\).*/\1/ | |
16188 | G | |
16189 | s/\n// | |
81ecdfbb RW |
16190 | s/^[^=]*=[ ]*$// |
16191 | }' | |
16192 | fi | |
b3baf5d0 | 16193 | |
81ecdfbb RW |
16194 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16195 | fi # test -n "$CONFIG_FILES" | |
252b5132 | 16196 | |
81ecdfbb RW |
16197 | # Set up the scripts for CONFIG_HEADERS section. |
16198 | # No need to generate them if there are no CONFIG_HEADERS. | |
16199 | # This happens for instance with `./config.status Makefile'. | |
16200 | if test -n "$CONFIG_HEADERS"; then | |
d0ac1c44 | 16201 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || |
81ecdfbb | 16202 | BEGIN { |
5464f5a1 NN |
16203 | _ACEOF |
16204 | ||
81ecdfbb RW |
16205 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
16206 | # here-document in config.status, that substitutes the proper values into | |
16207 | # config.h.in to produce config.h. | |
16208 | ||
16209 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
16210 | # handling of long lines. | |
16211 | ac_delim='%!_!# ' | |
16212 | for ac_last_try in false false :; do | |
d0ac1c44 SM |
16213 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` |
16214 | if test -z "$ac_tt"; then | |
81ecdfbb RW |
16215 | break |
16216 | elif $ac_last_try; then | |
d0ac1c44 | 16217 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 |
81ecdfbb RW |
16218 | else |
16219 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
252b5132 | 16220 | fi |
81ecdfbb | 16221 | done |
6be7c12c | 16222 | |
81ecdfbb RW |
16223 | # For the awk script, D is an array of macro values keyed by name, |
16224 | # likewise P contains macro parameters if any. Preserve backslash | |
16225 | # newline sequences. | |
16226 | ||
16227 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
16228 | sed -n ' | |
16229 | s/.\{148\}/&'"$ac_delim"'/g | |
16230 | t rset | |
16231 | :rset | |
16232 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
16233 | t def | |
16234 | d | |
16235 | :def | |
16236 | s/\\$// | |
16237 | t bsnl | |
16238 | s/["\\]/\\&/g | |
16239 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16240 | D["\1"]=" \3"/p | |
16241 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
16242 | d | |
16243 | :bsnl | |
16244 | s/["\\]/\\&/g | |
16245 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
16246 | D["\1"]=" \3\\\\\\n"\\/p | |
16247 | t cont | |
16248 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
16249 | t cont | |
16250 | d | |
16251 | :cont | |
16252 | n | |
16253 | s/.\{148\}/&'"$ac_delim"'/g | |
16254 | t clear | |
16255 | :clear | |
16256 | s/\\$// | |
16257 | t bsnlc | |
16258 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
16259 | d | |
16260 | :bsnlc | |
16261 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
16262 | b cont | |
16263 | ' <confdefs.h | sed ' | |
16264 | s/'"$ac_delim"'/"\\\ | |
16265 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
16266 | ||
16267 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16268 | for (key in D) D_is_set[key] = 1 | |
16269 | FS = "\a" | |
16270 | } | |
16271 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
16272 | line = \$ 0 | |
16273 | split(line, arg, " ") | |
16274 | if (arg[1] == "#") { | |
16275 | defundef = arg[2] | |
16276 | mac1 = arg[3] | |
16277 | } else { | |
16278 | defundef = substr(arg[1], 2) | |
16279 | mac1 = arg[2] | |
16280 | } | |
16281 | split(mac1, mac2, "(") #) | |
16282 | macro = mac2[1] | |
16283 | prefix = substr(line, 1, index(line, defundef) - 1) | |
16284 | if (D_is_set[macro]) { | |
16285 | # Preserve the white space surrounding the "#". | |
16286 | print prefix "define", macro P[macro] D[macro] | |
16287 | next | |
16288 | } else { | |
16289 | # Replace #undef with comments. This is necessary, for example, | |
16290 | # in the case of _POSIX_SOURCE, which is predefined and required | |
16291 | # on some systems where configure will not decide to define it. | |
16292 | if (defundef == "undef") { | |
16293 | print "/*", prefix defundef, macro, "*/" | |
16294 | next | |
16295 | } | |
16296 | } | |
16297 | } | |
16298 | { print } | |
16299 | _ACAWK | |
5464f5a1 | 16300 | _ACEOF |
81ecdfbb | 16301 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
d0ac1c44 | 16302 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 |
81ecdfbb RW |
16303 | fi # test -n "$CONFIG_HEADERS" |
16304 | ||
16305 | ||
16306 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
16307 | shift | |
16308 | for ac_tag | |
16309 | do | |
16310 | case $ac_tag in | |
16311 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
16312 | esac | |
16313 | case $ac_mode$ac_tag in | |
16314 | :[FHL]*:*);; | |
d0ac1c44 | 16315 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; |
81ecdfbb RW |
16316 | :[FH]-) ac_tag=-:-;; |
16317 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
16318 | esac | |
16319 | ac_save_IFS=$IFS | |
16320 | IFS=: | |
16321 | set x $ac_tag | |
16322 | IFS=$ac_save_IFS | |
16323 | shift | |
16324 | ac_file=$1 | |
16325 | shift | |
16326 | ||
16327 | case $ac_mode in | |
16328 | :L) ac_source=$1;; | |
16329 | :[FH]) | |
16330 | ac_file_inputs= | |
16331 | for ac_f | |
16332 | do | |
16333 | case $ac_f in | |
d0ac1c44 | 16334 | -) ac_f="$ac_tmp/stdin";; |
81ecdfbb RW |
16335 | *) # Look for the file first in the build tree, then in the source tree |
16336 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
16337 | # because $ac_f cannot contain `:'. | |
16338 | test -f "$ac_f" || | |
16339 | case $ac_f in | |
16340 | [\\/$]*) false;; | |
16341 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
16342 | esac || | |
d0ac1c44 | 16343 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
81ecdfbb RW |
16344 | esac |
16345 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
16346 | as_fn_append ac_file_inputs " '$ac_f'" | |
16347 | done | |
16348 | ||
16349 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
16350 | # use $as_me), people would be surprised to read: | |
16351 | # /* config.h. Generated by config.status. */ | |
16352 | configure_input='Generated from '` | |
16353 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
16354 | `' by configure.' | |
16355 | if test x"$ac_file" != x-; then | |
16356 | configure_input="$ac_file. $configure_input" | |
16357 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
16358 | $as_echo "$as_me: creating $ac_file" >&6;} | |
16359 | fi | |
16360 | # Neutralize special characters interpreted by sed in replacement strings. | |
16361 | case $configure_input in #( | |
16362 | *\&* | *\|* | *\\* ) | |
16363 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
16364 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
16365 | *) ac_sed_conf_input=$configure_input;; | |
16366 | esac | |
16367 | ||
16368 | case $ac_tag in | |
d0ac1c44 SM |
16369 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ |
16370 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
81ecdfbb RW |
16371 | esac |
16372 | ;; | |
252b5132 RH |
16373 | esac |
16374 | ||
81ecdfbb | 16375 | ac_dir=`$as_dirname -- "$ac_file" || |
5464f5a1 NN |
16376 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
16377 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
16378 | X"$ac_file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
16379 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
16380 | $as_echo X"$ac_file" | | |
16381 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16382 | s//\1/ | |
16383 | q | |
16384 | } | |
16385 | /^X\(\/\/\)[^/].*/{ | |
16386 | s//\1/ | |
16387 | q | |
16388 | } | |
16389 | /^X\(\/\/\)$/{ | |
16390 | s//\1/ | |
16391 | q | |
16392 | } | |
16393 | /^X\(\/\).*/{ | |
16394 | s//\1/ | |
16395 | q | |
16396 | } | |
16397 | s/.*/./; q'` | |
16398 | as_dir="$ac_dir"; as_fn_mkdir_p | |
5464f5a1 NN |
16399 | ac_builddir=. |
16400 | ||
81ecdfbb RW |
16401 | case "$ac_dir" in |
16402 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16403 | *) | |
16404 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
16405 | # A ".." for each directory in $ac_dir_suffix. | |
16406 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
16407 | case $ac_top_builddir_sub in | |
16408 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16409 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16410 | esac ;; | |
16411 | esac | |
16412 | ac_abs_top_builddir=$ac_pwd | |
16413 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16414 | # for backward compatibility: | |
16415 | ac_top_builddir=$ac_top_build_prefix | |
252b5132 | 16416 | |
5464f5a1 | 16417 | case $srcdir in |
81ecdfbb | 16418 | .) # We are building in place. |
5464f5a1 | 16419 | ac_srcdir=. |
81ecdfbb RW |
16420 | ac_top_srcdir=$ac_top_builddir_sub |
16421 | ac_abs_top_srcdir=$ac_pwd ;; | |
16422 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
5464f5a1 | 16423 | ac_srcdir=$srcdir$ac_dir_suffix; |
81ecdfbb RW |
16424 | ac_top_srcdir=$srcdir |
16425 | ac_abs_top_srcdir=$srcdir ;; | |
16426 | *) # Relative name. | |
16427 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16428 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16429 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
5464f5a1 | 16430 | esac |
81ecdfbb | 16431 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
252b5132 | 16432 | |
252b5132 | 16433 | |
81ecdfbb RW |
16434 | case $ac_mode in |
16435 | :F) | |
16436 | # | |
16437 | # CONFIG_FILE | |
16438 | # | |
5464f5a1 NN |
16439 | |
16440 | case $INSTALL in | |
16441 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
81ecdfbb RW |
16442 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
16443 | esac | |
16444 | ac_MKDIR_P=$MKDIR_P | |
16445 | case $MKDIR_P in | |
16446 | [\\/$]* | ?:[\\/]* ) ;; | |
16447 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
6be7c12c | 16448 | esac |
81ecdfbb | 16449 | _ACEOF |
252b5132 | 16450 | |
81ecdfbb RW |
16451 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
16452 | # If the template does not know about datarootdir, expand it. | |
16453 | # FIXME: This hack should be removed a few years after 2.60. | |
16454 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
16455 | ac_sed_dataroot=' | |
16456 | /datarootdir/ { | |
16457 | p | |
16458 | q | |
16459 | } | |
16460 | /@datadir@/p | |
16461 | /@docdir@/p | |
16462 | /@infodir@/p | |
16463 | /@localedir@/p | |
16464 | /@mandir@/p' | |
16465 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
16466 | *datarootdir*) ac_datarootdir_seen=yes;; | |
16467 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
16468 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
16469 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
16470 | _ACEOF | |
16471 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16472 | ac_datarootdir_hack=' | |
16473 | s&@datadir@&$datadir&g | |
16474 | s&@docdir@&$docdir&g | |
16475 | s&@infodir@&$infodir&g | |
16476 | s&@localedir@&$localedir&g | |
16477 | s&@mandir@&$mandir&g | |
16478 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
16479 | esac | |
5464f5a1 | 16480 | _ACEOF |
81ecdfbb RW |
16481 | |
16482 | # Neutralize VPATH when `$srcdir' = `.'. | |
16483 | # Shell code in configure.ac might set extrasub. | |
16484 | # FIXME: do we really want to maintain this feature? | |
16485 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16486 | ac_sed_extra="$ac_vpsub | |
5464f5a1 NN |
16487 | $extrasub |
16488 | _ACEOF | |
81ecdfbb | 16489 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
5464f5a1 NN |
16490 | :t |
16491 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
81ecdfbb RW |
16492 | s|@configure_input@|$ac_sed_conf_input|;t t |
16493 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
16494 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
16495 | s&@srcdir@&$ac_srcdir&;t t | |
16496 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16497 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
16498 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16499 | s&@builddir@&$ac_builddir&;t t | |
16500 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
16501 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16502 | s&@INSTALL@&$ac_INSTALL&;t t | |
16503 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
16504 | $ac_datarootdir_hack | |
16505 | " | |
d0ac1c44 SM |
16506 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ |
16507 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
81ecdfbb RW |
16508 | |
16509 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
d0ac1c44 SM |
16510 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && |
16511 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
16512 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
81ecdfbb | 16513 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 16514 | which seems to be undefined. Please make sure it is defined" >&5 |
81ecdfbb | 16515 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
d0ac1c44 | 16516 | which seems to be undefined. Please make sure it is defined" >&2;} |
81ecdfbb | 16517 | |
d0ac1c44 | 16518 | rm -f "$ac_tmp/stdin" |
5464f5a1 | 16519 | case $ac_file in |
d0ac1c44 SM |
16520 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; |
16521 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
81ecdfbb | 16522 | esac \ |
d0ac1c44 | 16523 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 |
81ecdfbb RW |
16524 | ;; |
16525 | :H) | |
16526 | # | |
16527 | # CONFIG_HEADER | |
16528 | # | |
5464f5a1 | 16529 | if test x"$ac_file" != x-; then |
81ecdfbb RW |
16530 | { |
16531 | $as_echo "/* $configure_input */" \ | |
d0ac1c44 SM |
16532 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" |
16533 | } >"$ac_tmp/config.h" \ | |
16534 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
16535 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
81ecdfbb RW |
16536 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
16537 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
5464f5a1 | 16538 | else |
81ecdfbb | 16539 | rm -f "$ac_file" |
d0ac1c44 SM |
16540 | mv "$ac_tmp/config.h" "$ac_file" \ |
16541 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
252b5132 | 16542 | fi |
5464f5a1 | 16543 | else |
81ecdfbb | 16544 | $as_echo "/* $configure_input */" \ |
d0ac1c44 SM |
16545 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ |
16546 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
252b5132 | 16547 | fi |
81ecdfbb RW |
16548 | # Compute "$ac_file"'s index in $config_headers. |
16549 | _am_arg="$ac_file" | |
f5385ebf AM |
16550 | _am_stamp_count=1 |
16551 | for _am_header in $config_headers :; do | |
16552 | case $_am_header in | |
81ecdfbb | 16553 | $_am_arg | $_am_arg:* ) |
f5385ebf AM |
16554 | break ;; |
16555 | * ) | |
16556 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
16557 | esac | |
16558 | done | |
81ecdfbb RW |
16559 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
16560 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16561 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
16562 | X"$_am_arg" : 'X\(//\)$' \| \ | |
16563 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
16564 | $as_echo X"$_am_arg" | | |
16565 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16566 | s//\1/ | |
16567 | q | |
16568 | } | |
16569 | /^X\(\/\/\)[^/].*/{ | |
16570 | s//\1/ | |
16571 | q | |
16572 | } | |
16573 | /^X\(\/\/\)$/{ | |
16574 | s//\1/ | |
16575 | q | |
16576 | } | |
16577 | /^X\(\/\).*/{ | |
16578 | s//\1/ | |
16579 | q | |
16580 | } | |
16581 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
16582 | ;; | |
5464f5a1 | 16583 | |
81ecdfbb RW |
16584 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
16585 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
16586 | ;; | |
16587 | esac | |
5464f5a1 NN |
16588 | |
16589 | ||
81ecdfbb RW |
16590 | case $ac_file$ac_mode in |
16591 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
d0ac1c44 | 16592 | # Older Autoconf quotes --file arguments for eval, but not when files |
81ecdfbb RW |
16593 | # are listed without --file. Let's play safe and only enable the eval |
16594 | # if we detect the quoting. | |
16595 | case $CONFIG_FILES in | |
16596 | *\'*) eval set x "$CONFIG_FILES" ;; | |
16597 | *) set x $CONFIG_FILES ;; | |
16598 | esac | |
16599 | shift | |
16600 | for mf | |
16601 | do | |
16602 | # Strip MF so we end up with the name of the file. | |
16603 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
16604 | # Check whether this is an Automake generated Makefile or not. | |
d0ac1c44 | 16605 | # We used to match only the files named 'Makefile.in', but |
81ecdfbb RW |
16606 | # some people rename them; so instead we look at the file content. |
16607 | # Grep'ing the first line is not enough: some people post-process | |
16608 | # each Makefile.in and add a new line on top of each file to say so. | |
16609 | # Grep'ing the whole file is not good either: AIX grep has a line | |
16610 | # limit of 2048, but all sed's we know have understand at least 4000. | |
16611 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
16612 | dirpart=`$as_dirname -- "$mf" || | |
f5385ebf AM |
16613 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
16614 | X"$mf" : 'X\(//\)[^/]' \| \ | |
16615 | X"$mf" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
16616 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
16617 | $as_echo X"$mf" | | |
16618 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16619 | s//\1/ | |
16620 | q | |
16621 | } | |
16622 | /^X\(\/\/\)[^/].*/{ | |
16623 | s//\1/ | |
16624 | q | |
16625 | } | |
16626 | /^X\(\/\/\)$/{ | |
16627 | s//\1/ | |
16628 | q | |
16629 | } | |
16630 | /^X\(\/\).*/{ | |
16631 | s//\1/ | |
16632 | q | |
16633 | } | |
16634 | s/.*/./; q'` | |
16635 | else | |
16636 | continue | |
16637 | fi | |
16638 | # Extract the definition of DEPDIR, am__include, and am__quote | |
d0ac1c44 | 16639 | # from the Makefile without running 'make'. |
81ecdfbb RW |
16640 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
16641 | test -z "$DEPDIR" && continue | |
16642 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
d0ac1c44 | 16643 | test -z "$am__include" && continue |
81ecdfbb | 16644 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
81ecdfbb RW |
16645 | # Find all dependency output files, they are included files with |
16646 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
16647 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
16648 | # expansion. | |
16649 | for file in `sed -n " | |
16650 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
d0ac1c44 | 16651 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do |
81ecdfbb RW |
16652 | # Make sure the directory exists. |
16653 | test -f "$dirpart/$file" && continue | |
16654 | fdir=`$as_dirname -- "$file" || | |
f5385ebf AM |
16655 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
16656 | X"$file" : 'X\(//\)[^/]' \| \ | |
16657 | X"$file" : 'X\(//\)$' \| \ | |
81ecdfbb RW |
16658 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
16659 | $as_echo X"$file" | | |
16660 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16661 | s//\1/ | |
16662 | q | |
16663 | } | |
16664 | /^X\(\/\/\)[^/].*/{ | |
16665 | s//\1/ | |
16666 | q | |
16667 | } | |
16668 | /^X\(\/\/\)$/{ | |
16669 | s//\1/ | |
16670 | q | |
16671 | } | |
16672 | /^X\(\/\).*/{ | |
16673 | s//\1/ | |
16674 | q | |
16675 | } | |
16676 | s/.*/./; q'` | |
16677 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
16678 | # echo "creating $dirpart/$file" | |
16679 | echo '# dummy' > "$dirpart/$file" | |
f5385ebf | 16680 | done |
f5385ebf | 16681 | done |
81ecdfbb | 16682 | } |
d7040cdb | 16683 | ;; |
81ecdfbb | 16684 | "libtool":C) |
d7040cdb SE |
16685 | |
16686 | # See if we are running on zsh, and set the options which allow our | |
16687 | # commands through without removal of \ escapes. | |
16688 | if test -n "${ZSH_VERSION+set}" ; then | |
16689 | setopt NO_GLOB_SUBST | |
16690 | fi | |
16691 | ||
16692 | cfgfile="${ofile}T" | |
16693 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
16694 | $RM "$cfgfile" | |
16695 | ||
16696 | cat <<_LT_EOF >> "$cfgfile" | |
16697 | #! $SHELL | |
16698 | ||
16699 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
718a6fd8 | 16700 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION |
d7040cdb SE |
16701 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
16702 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
16703 | # | |
718a6fd8 | 16704 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, |
3725885a | 16705 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. |
718a6fd8 | 16706 | # Written by Gordon Matzigkeit, 1996 |
d7040cdb | 16707 | # |
718a6fd8 | 16708 | # This file is part of GNU Libtool. |
d7040cdb | 16709 | # |
718a6fd8 SE |
16710 | # GNU Libtool is free software; you can redistribute it and/or |
16711 | # modify it under the terms of the GNU General Public License as | |
16712 | # published by the Free Software Foundation; either version 2 of | |
16713 | # the License, or (at your option) any later version. | |
d7040cdb | 16714 | # |
718a6fd8 SE |
16715 | # As a special exception to the GNU General Public License, |
16716 | # if you distribute this file as part of a program or library that | |
16717 | # is built using GNU Libtool, you may include this file under the | |
16718 | # same distribution terms that you use for the rest of that program. | |
d7040cdb | 16719 | # |
718a6fd8 SE |
16720 | # GNU Libtool is distributed in the hope that it will be useful, |
16721 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
16722 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16723 | # GNU General Public License for more details. | |
d7040cdb | 16724 | # |
718a6fd8 SE |
16725 | # You should have received a copy of the GNU General Public License |
16726 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
16727 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
16728 | # obtained by writing to the Free Software Foundation, Inc., | |
16729 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
d7040cdb SE |
16730 | |
16731 | ||
16732 | # The names of the tagged configurations supported by this script. | |
16733 | available_tags="" | |
16734 | ||
16735 | # ### BEGIN LIBTOOL CONFIG | |
16736 | ||
16737 | # Whether or not to build shared libraries. | |
16738 | build_libtool_libs=$enable_shared | |
16739 | ||
16740 | # Which release of libtool.m4 was used? | |
16741 | macro_version=$macro_version | |
16742 | macro_revision=$macro_revision | |
16743 | ||
16744 | # Whether or not to build static libraries. | |
16745 | build_old_libs=$enable_static | |
16746 | ||
16747 | # What type of objects to build. | |
16748 | pic_mode=$pic_mode | |
16749 | ||
16750 | # Whether or not to optimize for fast installation. | |
16751 | fast_install=$enable_fast_install | |
16752 | ||
3725885a RW |
16753 | # Shell to use when invoking shell scripts. |
16754 | SHELL=$lt_SHELL | |
16755 | ||
16756 | # An echo program that protects backslashes. | |
16757 | ECHO=$lt_ECHO | |
16758 | ||
d7040cdb SE |
16759 | # The host system. |
16760 | host_alias=$host_alias | |
16761 | host=$host | |
16762 | host_os=$host_os | |
16763 | ||
16764 | # The build system. | |
16765 | build_alias=$build_alias | |
16766 | build=$build | |
16767 | build_os=$build_os | |
16768 | ||
16769 | # A sed program that does not truncate output. | |
16770 | SED=$lt_SED | |
16771 | ||
16772 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
16773 | Xsed="\$SED -e 1s/^X//" | |
16774 | ||
16775 | # A grep program that handles long lines. | |
16776 | GREP=$lt_GREP | |
16777 | ||
16778 | # An ERE matcher. | |
16779 | EGREP=$lt_EGREP | |
16780 | ||
16781 | # A literal string matcher. | |
16782 | FGREP=$lt_FGREP | |
16783 | ||
16784 | # A BSD- or MS-compatible name lister. | |
16785 | NM=$lt_NM | |
16786 | ||
16787 | # Whether we need soft or hard links. | |
16788 | LN_S=$lt_LN_S | |
16789 | ||
16790 | # What is the maximum length of a command? | |
16791 | max_cmd_len=$max_cmd_len | |
16792 | ||
16793 | # Object file suffix (normally "o"). | |
16794 | objext=$ac_objext | |
16795 | ||
16796 | # Executable file suffix (normally ""). | |
16797 | exeext=$exeext | |
16798 | ||
16799 | # whether the shell understands "unset". | |
16800 | lt_unset=$lt_unset | |
16801 | ||
16802 | # turn spaces into newlines. | |
16803 | SP2NL=$lt_lt_SP2NL | |
16804 | ||
16805 | # turn newlines into spaces. | |
16806 | NL2SP=$lt_lt_NL2SP | |
16807 | ||
718a6fd8 SE |
16808 | # An object symbol dumper. |
16809 | OBJDUMP=$lt_OBJDUMP | |
16810 | ||
d7040cdb SE |
16811 | # Method to check whether dependent libraries are shared objects. |
16812 | deplibs_check_method=$lt_deplibs_check_method | |
16813 | ||
16814 | # Command to use when deplibs_check_method == "file_magic". | |
16815 | file_magic_cmd=$lt_file_magic_cmd | |
16816 | ||
16817 | # The archiver. | |
16818 | AR=$lt_AR | |
16819 | AR_FLAGS=$lt_AR_FLAGS | |
16820 | ||
16821 | # A symbol stripping program. | |
16822 | STRIP=$lt_STRIP | |
16823 | ||
16824 | # Commands used to install an old-style archive. | |
16825 | RANLIB=$lt_RANLIB | |
16826 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
16827 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
16828 | ||
3725885a RW |
16829 | # Whether to use a lock for old archive extraction. |
16830 | lock_old_archive_extraction=$lock_old_archive_extraction | |
16831 | ||
d7040cdb SE |
16832 | # A C compiler. |
16833 | LTCC=$lt_CC | |
16834 | ||
16835 | # LTCC compiler flags. | |
16836 | LTCFLAGS=$lt_CFLAGS | |
16837 | ||
16838 | # Take the output of nm and produce a listing of raw symbols and C names. | |
16839 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
16840 | ||
16841 | # Transform the output of nm in a proper C declaration. | |
16842 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
16843 | ||
16844 | # Transform the output of nm in a C name address pair. | |
16845 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
16846 | ||
718a6fd8 SE |
16847 | # Transform the output of nm in a C name address pair when lib prefix is needed. |
16848 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
16849 | ||
d7040cdb SE |
16850 | # The name of the directory that contains temporary libtool files. |
16851 | objdir=$objdir | |
16852 | ||
d7040cdb SE |
16853 | # Used to examine libraries when file_magic_cmd begins with "file". |
16854 | MAGIC_CMD=$MAGIC_CMD | |
16855 | ||
16856 | # Must we lock files when doing compilation? | |
16857 | need_locks=$lt_need_locks | |
16858 | ||
718a6fd8 SE |
16859 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. |
16860 | DSYMUTIL=$lt_DSYMUTIL | |
16861 | ||
16862 | # Tool to change global to local symbols on Mac OS X. | |
16863 | NMEDIT=$lt_NMEDIT | |
16864 | ||
16865 | # Tool to manipulate fat objects and archives on Mac OS X. | |
16866 | LIPO=$lt_LIPO | |
16867 | ||
16868 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
16869 | OTOOL=$lt_OTOOL | |
16870 | ||
16871 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
16872 | OTOOL64=$lt_OTOOL64 | |
16873 | ||
d7040cdb SE |
16874 | # Old archive suffix (normally "a"). |
16875 | libext=$libext | |
16876 | ||
16877 | # Shared library suffix (normally ".so"). | |
16878 | shrext_cmds=$lt_shrext_cmds | |
16879 | ||
16880 | # The commands to extract the exported symbol list from a shared archive. | |
16881 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
16882 | ||
16883 | # Variables whose values should be saved in libtool wrapper scripts and | |
16884 | # restored at link time. | |
16885 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
16886 | ||
16887 | # Do we need the "lib" prefix for modules? | |
16888 | need_lib_prefix=$need_lib_prefix | |
16889 | ||
16890 | # Do we need a version for libraries? | |
16891 | need_version=$need_version | |
16892 | ||
16893 | # Library versioning type. | |
16894 | version_type=$version_type | |
16895 | ||
16896 | # Shared library runtime path variable. | |
16897 | runpath_var=$runpath_var | |
16898 | ||
16899 | # Shared library path variable. | |
16900 | shlibpath_var=$shlibpath_var | |
16901 | ||
16902 | # Is shlibpath searched before the hard-coded library search path? | |
16903 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
16904 | ||
16905 | # Format of library name prefix. | |
16906 | libname_spec=$lt_libname_spec | |
16907 | ||
16908 | # List of archive names. First name is the real one, the rest are links. | |
16909 | # The last name is the one that the linker finds with -lNAME | |
16910 | library_names_spec=$lt_library_names_spec | |
16911 | ||
16912 | # The coded name of the library, if different from the real name. | |
16913 | soname_spec=$lt_soname_spec | |
16914 | ||
3725885a RW |
16915 | # Permission mode override for installation of shared libraries. |
16916 | install_override_mode=$lt_install_override_mode | |
16917 | ||
d7040cdb SE |
16918 | # Command to use after installation of a shared archive. |
16919 | postinstall_cmds=$lt_postinstall_cmds | |
16920 | ||
16921 | # Command to use after uninstallation of a shared archive. | |
16922 | postuninstall_cmds=$lt_postuninstall_cmds | |
16923 | ||
16924 | # Commands used to finish a libtool library installation in a directory. | |
16925 | finish_cmds=$lt_finish_cmds | |
16926 | ||
16927 | # As "finish_cmds", except a single script fragment to be evaled but | |
16928 | # not shown. | |
16929 | finish_eval=$lt_finish_eval | |
16930 | ||
16931 | # Whether we should hardcode library paths into libraries. | |
16932 | hardcode_into_libs=$hardcode_into_libs | |
16933 | ||
16934 | # Compile-time system search path for libraries. | |
16935 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
16936 | ||
16937 | # Run-time system search path for libraries. | |
16938 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
16939 | ||
16940 | # Whether dlopen is supported. | |
16941 | dlopen_support=$enable_dlopen | |
16942 | ||
16943 | # Whether dlopen of programs is supported. | |
16944 | dlopen_self=$enable_dlopen_self | |
16945 | ||
16946 | # Whether dlopen of statically linked programs is supported. | |
16947 | dlopen_self_static=$enable_dlopen_self_static | |
16948 | ||
16949 | # Commands to strip libraries. | |
16950 | old_striplib=$lt_old_striplib | |
16951 | striplib=$lt_striplib | |
16952 | ||
16953 | ||
16954 | # The linker used to build libraries. | |
16955 | LD=$lt_LD | |
16956 | ||
3725885a RW |
16957 | # How to create reloadable object files. |
16958 | reload_flag=$lt_reload_flag | |
16959 | reload_cmds=$lt_reload_cmds | |
16960 | ||
d7040cdb SE |
16961 | # Commands used to build an old-style archive. |
16962 | old_archive_cmds=$lt_old_archive_cmds | |
16963 | ||
16964 | # A language specific compiler. | |
16965 | CC=$lt_compiler | |
16966 | ||
16967 | # Is the compiler the GNU compiler? | |
16968 | with_gcc=$GCC | |
16969 | ||
16970 | # Compiler flag to turn off builtin functions. | |
16971 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
16972 | ||
16973 | # How to pass a linker flag through the compiler. | |
16974 | wl=$lt_lt_prog_compiler_wl | |
16975 | ||
16976 | # Additional compiler flags for building library objects. | |
16977 | pic_flag=$lt_lt_prog_compiler_pic | |
16978 | ||
16979 | # Compiler flag to prevent dynamic linking. | |
16980 | link_static_flag=$lt_lt_prog_compiler_static | |
16981 | ||
16982 | # Does compiler simultaneously support -c and -o options? | |
16983 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
16984 | ||
16985 | # Whether or not to add -lc for building shared libraries. | |
16986 | build_libtool_need_lc=$archive_cmds_need_lc | |
16987 | ||
16988 | # Whether or not to disallow shared libs when runtime libs are static. | |
16989 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
16990 | ||
16991 | # Compiler flag to allow reflexive dlopens. | |
16992 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
16993 | ||
16994 | # Compiler flag to generate shared objects directly from archives. | |
16995 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
16996 | ||
16997 | # Whether the compiler copes with passing no objects directly. | |
16998 | compiler_needs_object=$lt_compiler_needs_object | |
16999 | ||
17000 | # Create an old-style archive from a shared archive. | |
17001 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
17002 | ||
17003 | # Create a temporary old-style archive to link instead of a shared archive. | |
17004 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
17005 | ||
17006 | # Commands used to build a shared archive. | |
17007 | archive_cmds=$lt_archive_cmds | |
17008 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
17009 | ||
17010 | # Commands used to build a loadable module if different from building | |
17011 | # a shared archive. | |
17012 | module_cmds=$lt_module_cmds | |
17013 | module_expsym_cmds=$lt_module_expsym_cmds | |
17014 | ||
17015 | # Whether we are building with GNU ld or not. | |
17016 | with_gnu_ld=$lt_with_gnu_ld | |
17017 | ||
17018 | # Flag that allows shared libraries with undefined symbols to be built. | |
17019 | allow_undefined_flag=$lt_allow_undefined_flag | |
17020 | ||
17021 | # Flag that enforces no undefined symbols. | |
17022 | no_undefined_flag=$lt_no_undefined_flag | |
17023 | ||
17024 | # Flag to hardcode \$libdir into a binary during linking. | |
17025 | # This must work even if \$libdir does not exist | |
17026 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
17027 | ||
17028 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
17029 | # during linking. This must work even if \$libdir does not exist. | |
17030 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
17031 | ||
17032 | # Whether we need a single "-rpath" flag with a separated argument. | |
17033 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
17034 | ||
17035 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
17036 | # DIR into the resulting binary. | |
17037 | hardcode_direct=$hardcode_direct | |
17038 | ||
17039 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
17040 | # DIR into the resulting binary and the resulting library dependency is | |
17041 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
17042 | # library is relocated. | |
17043 | hardcode_direct_absolute=$hardcode_direct_absolute | |
17044 | ||
17045 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
17046 | # into the resulting binary. | |
17047 | hardcode_minus_L=$hardcode_minus_L | |
17048 | ||
17049 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
17050 | # into the resulting binary. | |
17051 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
17052 | ||
17053 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
17054 | # into the library and all subsequent libraries and executables linked | |
17055 | # against it. | |
17056 | hardcode_automatic=$hardcode_automatic | |
17057 | ||
17058 | # Set to yes if linker adds runtime paths of dependent libraries | |
17059 | # to runtime path list. | |
17060 | inherit_rpath=$inherit_rpath | |
17061 | ||
17062 | # Whether libtool must link a program against all its dependency libraries. | |
17063 | link_all_deplibs=$link_all_deplibs | |
17064 | ||
17065 | # Fix the shell variable \$srcfile for the compiler. | |
17066 | fix_srcfile_path=$lt_fix_srcfile_path | |
17067 | ||
17068 | # Set to "yes" if exported symbols are required. | |
17069 | always_export_symbols=$always_export_symbols | |
17070 | ||
17071 | # The commands to list exported symbols. | |
17072 | export_symbols_cmds=$lt_export_symbols_cmds | |
17073 | ||
17074 | # Symbols that should not be listed in the preloaded symbols. | |
17075 | exclude_expsyms=$lt_exclude_expsyms | |
17076 | ||
17077 | # Symbols that must always be exported. | |
17078 | include_expsyms=$lt_include_expsyms | |
17079 | ||
17080 | # Commands necessary for linking programs (against libraries) with templates. | |
17081 | prelink_cmds=$lt_prelink_cmds | |
17082 | ||
17083 | # Specify filename containing input files. | |
17084 | file_list_spec=$lt_file_list_spec | |
17085 | ||
17086 | # How to hardcode a shared library path into an executable. | |
17087 | hardcode_action=$hardcode_action | |
17088 | ||
17089 | # ### END LIBTOOL CONFIG | |
17090 | ||
17091 | _LT_EOF | |
17092 | ||
17093 | case $host_os in | |
17094 | aix3*) | |
17095 | cat <<\_LT_EOF >> "$cfgfile" | |
17096 | # AIX sometimes has problems with the GCC collect2 program. For some | |
17097 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
17098 | # vanish in a puff of smoke. | |
17099 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
17100 | COLLECT_NAMES= | |
17101 | export COLLECT_NAMES | |
17102 | fi | |
17103 | _LT_EOF | |
17104 | ;; | |
17105 | esac | |
17106 | ||
17107 | ||
17108 | ltmain="$ac_aux_dir/ltmain.sh" | |
17109 | ||
17110 | ||
17111 | # We use sed instead of cat because bash on DJGPP gets confused if | |
17112 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
17113 | # text mode, it properly converts lines to CR/LF. This bash problem | |
17114 | # is reportedly fixed, but why not run on old versions too? | |
17115 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
17116 | || (rm -f "$cfgfile"; exit 1) | |
17117 | ||
17118 | case $xsi_shell in | |
17119 | yes) | |
17120 | cat << \_LT_EOF >> "$cfgfile" | |
718a6fd8 | 17121 | |
d7040cdb SE |
17122 | # func_dirname file append nondir_replacement |
17123 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
17124 | # otherwise set result to NONDIR_REPLACEMENT. | |
17125 | func_dirname () | |
17126 | { | |
17127 | case ${1} in | |
17128 | */*) func_dirname_result="${1%/*}${2}" ;; | |
17129 | * ) func_dirname_result="${3}" ;; | |
17130 | esac | |
17131 | } | |
17132 | ||
17133 | # func_basename file | |
17134 | func_basename () | |
17135 | { | |
17136 | func_basename_result="${1##*/}" | |
17137 | } | |
17138 | ||
718a6fd8 SE |
17139 | # func_dirname_and_basename file append nondir_replacement |
17140 | # perform func_basename and func_dirname in a single function | |
17141 | # call: | |
17142 | # dirname: Compute the dirname of FILE. If nonempty, | |
17143 | # add APPEND to the result, otherwise set result | |
17144 | # to NONDIR_REPLACEMENT. | |
17145 | # value returned in "$func_dirname_result" | |
17146 | # basename: Compute filename of FILE. | |
17147 | # value retuned in "$func_basename_result" | |
17148 | # Implementation must be kept synchronized with func_dirname | |
17149 | # and func_basename. For efficiency, we do not delegate to | |
17150 | # those functions but instead duplicate the functionality here. | |
17151 | func_dirname_and_basename () | |
17152 | { | |
17153 | case ${1} in | |
17154 | */*) func_dirname_result="${1%/*}${2}" ;; | |
17155 | * ) func_dirname_result="${3}" ;; | |
17156 | esac | |
17157 | func_basename_result="${1##*/}" | |
17158 | } | |
17159 | ||
d7040cdb SE |
17160 | # func_stripname prefix suffix name |
17161 | # strip PREFIX and SUFFIX off of NAME. | |
17162 | # PREFIX and SUFFIX must not contain globbing or regex special | |
17163 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
17164 | # dot (in which case that matches only a dot). | |
17165 | func_stripname () | |
17166 | { | |
17167 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
17168 | # positional parameters, so assign one to ordinary parameter first. | |
17169 | func_stripname_result=${3} | |
17170 | func_stripname_result=${func_stripname_result#"${1}"} | |
17171 | func_stripname_result=${func_stripname_result%"${2}"} | |
17172 | } | |
17173 | ||
17174 | # func_opt_split | |
17175 | func_opt_split () | |
17176 | { | |
17177 | func_opt_split_opt=${1%%=*} | |
17178 | func_opt_split_arg=${1#*=} | |
17179 | } | |
17180 | ||
17181 | # func_lo2o object | |
17182 | func_lo2o () | |
17183 | { | |
17184 | case ${1} in | |
17185 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
17186 | *) func_lo2o_result=${1} ;; | |
17187 | esac | |
17188 | } | |
718a6fd8 SE |
17189 | |
17190 | # func_xform libobj-or-source | |
17191 | func_xform () | |
17192 | { | |
17193 | func_xform_result=${1%.*}.lo | |
17194 | } | |
17195 | ||
17196 | # func_arith arithmetic-term... | |
17197 | func_arith () | |
17198 | { | |
17199 | func_arith_result=$(( $* )) | |
17200 | } | |
17201 | ||
17202 | # func_len string | |
17203 | # STRING may not start with a hyphen. | |
17204 | func_len () | |
17205 | { | |
17206 | func_len_result=${#1} | |
17207 | } | |
17208 | ||
d7040cdb SE |
17209 | _LT_EOF |
17210 | ;; | |
17211 | *) # Bourne compatible functions. | |
17212 | cat << \_LT_EOF >> "$cfgfile" | |
718a6fd8 | 17213 | |
d7040cdb SE |
17214 | # func_dirname file append nondir_replacement |
17215 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
17216 | # otherwise set result to NONDIR_REPLACEMENT. | |
17217 | func_dirname () | |
17218 | { | |
17219 | # Extract subdirectory from the argument. | |
3725885a | 17220 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` |
d7040cdb SE |
17221 | if test "X$func_dirname_result" = "X${1}"; then |
17222 | func_dirname_result="${3}" | |
17223 | else | |
17224 | func_dirname_result="$func_dirname_result${2}" | |
17225 | fi | |
17226 | } | |
17227 | ||
17228 | # func_basename file | |
17229 | func_basename () | |
17230 | { | |
3725885a | 17231 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` |
d7040cdb SE |
17232 | } |
17233 | ||
718a6fd8 | 17234 | |
d7040cdb SE |
17235 | # func_stripname prefix suffix name |
17236 | # strip PREFIX and SUFFIX off of NAME. | |
17237 | # PREFIX and SUFFIX must not contain globbing or regex special | |
17238 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
17239 | # dot (in which case that matches only a dot). | |
17240 | # func_strip_suffix prefix name | |
17241 | func_stripname () | |
17242 | { | |
17243 | case ${2} in | |
3725885a RW |
17244 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; |
17245 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
d7040cdb SE |
17246 | esac |
17247 | } | |
17248 | ||
17249 | # sed scripts: | |
17250 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
17251 | my_sed_long_arg='1s/^-[^=]*=//' | |
17252 | ||
17253 | # func_opt_split | |
17254 | func_opt_split () | |
17255 | { | |
3725885a RW |
17256 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` |
17257 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
d7040cdb SE |
17258 | } |
17259 | ||
17260 | # func_lo2o object | |
17261 | func_lo2o () | |
17262 | { | |
3725885a | 17263 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` |
d7040cdb | 17264 | } |
718a6fd8 SE |
17265 | |
17266 | # func_xform libobj-or-source | |
17267 | func_xform () | |
17268 | { | |
3725885a | 17269 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` |
718a6fd8 SE |
17270 | } |
17271 | ||
17272 | # func_arith arithmetic-term... | |
17273 | func_arith () | |
17274 | { | |
17275 | func_arith_result=`expr "$@"` | |
17276 | } | |
17277 | ||
17278 | # func_len string | |
17279 | # STRING may not start with a hyphen. | |
17280 | func_len () | |
17281 | { | |
17282 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
17283 | } | |
17284 | ||
d7040cdb SE |
17285 | _LT_EOF |
17286 | esac | |
17287 | ||
17288 | case $lt_shell_append in | |
17289 | yes) | |
17290 | cat << \_LT_EOF >> "$cfgfile" | |
17291 | ||
17292 | # func_append var value | |
17293 | # Append VALUE to the end of shell variable VAR. | |
17294 | func_append () | |
17295 | { | |
17296 | eval "$1+=\$2" | |
17297 | } | |
17298 | _LT_EOF | |
17299 | ;; | |
17300 | *) | |
17301 | cat << \_LT_EOF >> "$cfgfile" | |
17302 | ||
17303 | # func_append var value | |
17304 | # Append VALUE to the end of shell variable VAR. | |
17305 | func_append () | |
17306 | { | |
17307 | eval "$1=\$$1\$2" | |
17308 | } | |
718a6fd8 | 17309 | |
d7040cdb SE |
17310 | _LT_EOF |
17311 | ;; | |
17312 | esac | |
17313 | ||
17314 | ||
17315 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
17316 | || (rm -f "$cfgfile"; exit 1) | |
17317 | ||
17318 | mv -f "$cfgfile" "$ofile" || | |
17319 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
17320 | chmod +x "$ofile" | |
17321 | ||
f5385ebf | 17322 | ;; |
81ecdfbb | 17323 | "default-1":C) |
20e95c23 DJ |
17324 | for ac_file in $CONFIG_FILES; do |
17325 | # Support "outfile[:infile[:infile...]]" | |
17326 | case "$ac_file" in | |
17327 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; | |
17328 | esac | |
17329 | # PO directories have a Makefile.in generated from Makefile.in.in. | |
17330 | case "$ac_file" in */Makefile.in) | |
17331 | # Adjust a relative srcdir. | |
17332 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` | |
3cac54d2 | 17333 | ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` |
20e95c23 DJ |
17334 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
17335 | # In autoconf-2.13 it is called $ac_given_srcdir. | |
17336 | # In autoconf-2.50 it is called $srcdir. | |
17337 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" | |
17338 | case "$ac_given_srcdir" in | |
17339 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; | |
17340 | /*) top_srcdir="$ac_given_srcdir" ;; | |
17341 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; | |
17342 | esac | |
17343 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then | |
17344 | rm -f "$ac_dir/POTFILES" | |
17345 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" | |
17346 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" | |
17347 | POMAKEFILEDEPS="POTFILES.in" | |
17348 | # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend | |
17349 | # on $ac_dir but don't depend on user-specified configuration | |
17350 | # parameters. | |
17351 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then | |
17352 | # The LINGUAS file contains the set of available languages. | |
17353 | if test -n "$OBSOLETE_ALL_LINGUAS"; then | |
37a42ee9 | 17354 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.ac is obsolete" || echo "setting ALL_LINGUAS in configure.ac is obsolete" |
20e95c23 DJ |
17355 | fi |
17356 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` | |
17357 | # Hide the ALL_LINGUAS assigment from automake. | |
17358 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' | |
17359 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" | |
17360 | else | |
37a42ee9 | 17361 | # The set of available languages was given in configure.ac. |
20e95c23 DJ |
17362 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
17363 | fi | |
17364 | case "$ac_given_srcdir" in | |
17365 | .) srcdirpre= ;; | |
17366 | *) srcdirpre='$(srcdir)/' ;; | |
17367 | esac | |
17368 | POFILES= | |
17369 | GMOFILES= | |
17370 | UPDATEPOFILES= | |
17371 | DUMMYPOFILES= | |
17372 | for lang in $ALL_LINGUAS; do | |
17373 | POFILES="$POFILES $srcdirpre$lang.po" | |
17374 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
17375 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" | |
17376 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" | |
17377 | done | |
17378 | # CATALOGS depends on both $ac_dir and the user's LINGUAS | |
17379 | # environment variable. | |
17380 | INST_LINGUAS= | |
17381 | if test -n "$ALL_LINGUAS"; then | |
17382 | for presentlang in $ALL_LINGUAS; do | |
17383 | useit=no | |
17384 | if test "%UNSET%" != "$LINGUAS"; then | |
17385 | desiredlanguages="$LINGUAS" | |
17386 | else | |
17387 | desiredlanguages="$ALL_LINGUAS" | |
17388 | fi | |
17389 | for desiredlang in $desiredlanguages; do | |
17390 | # Use the presentlang catalog if desiredlang is | |
17391 | # a. equal to presentlang, or | |
17392 | # b. a variant of presentlang (because in this case, | |
17393 | # presentlang can be used as a fallback for messages | |
17394 | # which are not translated in the desiredlang catalog). | |
17395 | case "$desiredlang" in | |
17396 | "$presentlang"*) useit=yes;; | |
17397 | esac | |
17398 | done | |
17399 | if test $useit = yes; then | |
17400 | INST_LINGUAS="$INST_LINGUAS $presentlang" | |
17401 | fi | |
17402 | done | |
17403 | fi | |
17404 | CATALOGS= | |
17405 | if test -n "$INST_LINGUAS"; then | |
17406 | for lang in $INST_LINGUAS; do | |
17407 | CATALOGS="$CATALOGS $lang.gmo" | |
17408 | done | |
17409 | fi | |
17410 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" | |
17411 | 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" | |
17412 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do | |
17413 | if test -f "$f"; then | |
17414 | case "$f" in | |
17415 | *.orig | *.bak | *~) ;; | |
17416 | *) cat "$f" >> "$ac_dir/Makefile" ;; | |
17417 | esac | |
17418 | fi | |
17419 | done | |
17420 | fi | |
17421 | ;; | |
17422 | esac | |
17423 | done ;; | |
81ecdfbb | 17424 | "default":C) |
20e95c23 DJ |
17425 | case "$srcdir" in |
17426 | .) srcdirpre= ;; | |
17427 | *) srcdirpre='$(srcdir)/' ;; | |
17428 | esac | |
17429 | POFILES= | |
17430 | GMOFILES= | |
17431 | for lang in dummy $OBSOLETE_ALL_LINGUAS; do | |
17432 | if test $lang != dummy; then | |
17433 | POFILES="$POFILES $srcdirpre$lang.po" | |
17434 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" | |
17435 | fi | |
17436 | done | |
17437 | sed -e '/SRC-POTFILES =/r po/SRC-POTFILES' \ | |
17438 | -e '/BLD-POTFILES =/r po/BLD-POTFILES' \ | |
17439 | -e "s,@POFILES@,$POFILES," \ | |
17440 | -e "s,@GMOFILES@,$GMOFILES," \ | |
17441 | po/Makefile.in > po/Makefile ;; | |
81ecdfbb | 17442 | |
5464f5a1 | 17443 | esac |
81ecdfbb | 17444 | done # for ac_tag |
5464f5a1 | 17445 | |
5464f5a1 | 17446 | |
81ecdfbb | 17447 | as_fn_exit 0 |
5464f5a1 | 17448 | _ACEOF |
5464f5a1 NN |
17449 | ac_clean_files=$ac_clean_files_save |
17450 | ||
81ecdfbb | 17451 | test $ac_write_fail = 0 || |
d0ac1c44 | 17452 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
81ecdfbb | 17453 | |
5464f5a1 NN |
17454 | |
17455 | # configure is writing to config.log, and then calls config.status. | |
17456 | # config.status does its own redirection, appending to config.log. | |
17457 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
17458 | # by configure, so config.status won't be able to write to it; its | |
17459 | # output is simply discarded. So we exec the FD to /dev/null, | |
17460 | # effectively closing config.log, so it can be properly (re)opened and | |
17461 | # appended to by config.status. When coming back to configure, we | |
17462 | # need to make the FD available again. | |
17463 | if test "$no_create" != yes; then | |
17464 | ac_cs_success=: | |
17465 | ac_config_status_args= | |
17466 | test "$silent" = yes && | |
17467 | ac_config_status_args="$ac_config_status_args --quiet" | |
17468 | exec 5>/dev/null | |
17469 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
17470 | exec 5>>config.log | |
17471 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
17472 | # would make configure fail if this is the last instruction. | |
d0ac1c44 | 17473 | $ac_cs_success || as_fn_exit 1 |
81ecdfbb RW |
17474 | fi |
17475 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
17476 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
17477 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
5464f5a1 | 17478 | fi |
252b5132 | 17479 | |
d546b610 L |
17480 | |
17481 | ||
17482 | touch config.status.tmp | |
17483 | if touch --reference=config.status config.status.tmp > /dev/null 2>&1; then | |
17484 | sed '/as_fn_exit 0/i \ | |
17485 | sed -e \"s/^\t\\\(\\\$(AM_V_CCLD)\\\)/\t+ \\\1/\" Makefile > Makefile.tmp \ | |
17486 | touch --reference=Makefile Makefile.tmp \ | |
17487 | mv Makefile.tmp Makefile \ | |
17488 | ' config.status > config.status.tmp | |
17489 | touch --reference=config.status config.status.tmp | |
17490 | mv config.status.tmp config.status | |
17491 | chmod +x config.status | |
17492 | sed -e "s/^\t\(\$(AM_V_CCLD)\)/\t+ \1/" Makefile > Makefile.tmp | |
17493 | touch --reference=Makefile Makefile.tmp | |
17494 | mv Makefile.tmp Makefile | |
17495 | else | |
17496 | rm -f config.status.tmp | |
17497 | fi |