]>
Commit | Line | Data |
---|---|---|
eff02e4f ILT |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.64 for package-unused version-unused. | |
4 | # | |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
6 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software | |
7 | # Foundation, Inc. | |
8 | # | |
9 | # This configure script is free software; the Free Software Foundation | |
10 | # gives unlimited permission to copy, distribute and modify it. | |
11 | ## -------------------- ## | |
12 | ## M4sh Initialization. ## | |
13 | ## -------------------- ## | |
14 | ||
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 : | |
18 | emulate sh | |
19 | NULLCMD=: | |
20 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
21 | # is contrary to our usage. Disable this feature. | |
22 | alias -g '${1+"$@"}'='"$@"' | |
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 | |
31 | fi | |
32 | ||
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 | } | |
79 | fi | |
80 | ||
81 | ||
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. | |
90 | case $0 in #(( | |
91 | *[\\/]* ) as_myself=$0 ;; | |
92 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
93 | for as_dir in $PATH | |
94 | do | |
95 | IFS=$as_save_IFS | |
96 | test -z "$as_dir" && as_dir=. | |
97 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
98 | done | |
99 | IFS=$as_save_IFS | |
100 | ||
101 | ;; | |
102 | esac | |
103 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
104 | # in which case we are not to be found in the path. | |
105 | if test "x$as_myself" = x; then | |
106 | as_myself=$0 | |
107 | fi | |
108 | if test ! -f "$as_myself"; then | |
109 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
110 | exit 1 | |
111 | fi | |
112 | ||
113 | # Unset variables that we do not need and which cause bugs (e.g. in | |
114 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
115 | # suppresses any "Segmentation fault" message there. '((' could | |
116 | # trigger a bug in pdksh 5.2.14. | |
117 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
118 | do eval test x\${$as_var+set} = xset \ | |
119 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
120 | done | |
121 | PS1='$ ' | |
122 | PS2='> ' | |
123 | PS4='+ ' | |
124 | ||
125 | # NLS nuisances. | |
126 | LC_ALL=C | |
127 | export LC_ALL | |
128 | LANGUAGE=C | |
129 | export LANGUAGE | |
130 | ||
131 | # CDPATH. | |
132 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
133 | ||
134 | if test "x$CONFIG_SHELL" = x; then | |
135 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
136 | emulate sh | |
137 | NULLCMD=: | |
138 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
139 | # is contrary to our usage. Disable this feature. | |
140 | alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
141 | setopt NO_GLOB_SUBST | |
142 | else | |
143 | case \`(set -o) 2>/dev/null\` in #( | |
144 | *posix*) : | |
145 | set -o posix ;; #( | |
146 | *) : | |
147 | ;; | |
148 | esac | |
149 | fi | |
150 | " | |
151 | as_required="as_fn_return () { (exit \$1); } | |
152 | as_fn_success () { as_fn_return 0; } | |
153 | as_fn_failure () { as_fn_return 1; } | |
154 | as_fn_ret_success () { return 0; } | |
155 | as_fn_ret_failure () { return 1; } | |
156 | ||
157 | exitcode=0 | |
158 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
159 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
160 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
161 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
162 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
163 | ||
164 | else | |
165 | exitcode=1; echo positional parameters were not saved. | |
166 | fi | |
167 | test x\$exitcode = x0 || exit 1" | |
168 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
169 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
170 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
171 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
d4c059d5 | 172 | test \$(( 1 + 1 )) = 2 || exit 1 |
eff02e4f ILT |
173 | |
174 | test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
175 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
176 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
177 | ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
178 | PATH=/empty FPATH=/empty; export PATH FPATH | |
179 | test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
d4c059d5 | 180 | || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" |
eff02e4f ILT |
181 | if (eval "$as_required") 2>/dev/null; then : |
182 | as_have_required=yes | |
183 | else | |
184 | as_have_required=no | |
185 | fi | |
186 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
187 | ||
188 | else | |
189 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
190 | as_found=false | |
191 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
192 | do | |
193 | IFS=$as_save_IFS | |
194 | test -z "$as_dir" && as_dir=. | |
195 | as_found=: | |
196 | case $as_dir in #( | |
197 | /*) | |
198 | for as_base in sh bash ksh sh5; do | |
199 | # Try only shells that exist, to save several forks. | |
200 | as_shell=$as_dir/$as_base | |
201 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
202 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
203 | CONFIG_SHELL=$as_shell as_have_required=yes | |
204 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
205 | break 2 | |
206 | fi | |
207 | fi | |
208 | done;; | |
209 | esac | |
210 | as_found=false | |
211 | done | |
212 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
213 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
214 | CONFIG_SHELL=$SHELL as_have_required=yes | |
215 | fi; } | |
216 | IFS=$as_save_IFS | |
217 | ||
218 | ||
219 | if test "x$CONFIG_SHELL" != x; then : | |
220 | # We cannot yet assume a decent shell, so we have to provide a | |
221 | # neutralization value for shells without unset; and this also | |
222 | # works around shells that cannot unset nonexistent variables. | |
223 | BASH_ENV=/dev/null | |
224 | ENV=/dev/null | |
225 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
226 | export CONFIG_SHELL | |
227 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
228 | fi | |
229 | ||
230 | if test x$as_have_required = xno; then : | |
231 | $as_echo "$0: This script requires a shell more modern than all" | |
232 | $as_echo "$0: the shells that I found on your system." | |
233 | if test x${ZSH_VERSION+set} = xset ; then | |
234 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
235 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
236 | else | |
237 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
238 | $0: including any error possibly output before this | |
239 | $0: message. Then install a modern shell, or manually run | |
240 | $0: the script under such a shell if you do have one." | |
241 | fi | |
242 | exit 1 | |
243 | fi | |
244 | fi | |
245 | fi | |
246 | SHELL=${CONFIG_SHELL-/bin/sh} | |
247 | export SHELL | |
248 | # Unset more variables known to interfere with behavior of common tools. | |
249 | CLICOLOR_FORCE= GREP_OPTIONS= | |
250 | unset CLICOLOR_FORCE GREP_OPTIONS | |
251 | ||
252 | ## --------------------- ## | |
253 | ## M4sh Shell Functions. ## | |
254 | ## --------------------- ## | |
255 | # as_fn_unset VAR | |
256 | # --------------- | |
257 | # Portably unset VAR. | |
258 | as_fn_unset () | |
259 | { | |
260 | { eval $1=; unset $1;} | |
261 | } | |
262 | as_unset=as_fn_unset | |
263 | ||
264 | # as_fn_set_status STATUS | |
265 | # ----------------------- | |
266 | # Set $? to STATUS, without forking. | |
267 | as_fn_set_status () | |
268 | { | |
269 | return $1 | |
270 | } # as_fn_set_status | |
271 | ||
272 | # as_fn_exit STATUS | |
273 | # ----------------- | |
274 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
275 | as_fn_exit () | |
276 | { | |
277 | set +e | |
278 | as_fn_set_status $1 | |
279 | exit $1 | |
280 | } # as_fn_exit | |
281 | ||
282 | # as_fn_mkdir_p | |
283 | # ------------- | |
284 | # Create "$as_dir" as a directory, including parents if necessary. | |
285 | as_fn_mkdir_p () | |
286 | { | |
287 | ||
288 | case $as_dir in #( | |
289 | -*) as_dir=./$as_dir;; | |
290 | esac | |
291 | test -d "$as_dir" || eval $as_mkdir_p || { | |
292 | as_dirs= | |
293 | while :; do | |
294 | case $as_dir in #( | |
295 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
296 | *) as_qdir=$as_dir;; | |
297 | esac | |
298 | as_dirs="'$as_qdir' $as_dirs" | |
299 | as_dir=`$as_dirname -- "$as_dir" || | |
300 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
301 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
302 | X"$as_dir" : 'X\(//\)$' \| \ | |
303 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
304 | $as_echo X"$as_dir" | | |
305 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
306 | s//\1/ | |
307 | q | |
308 | } | |
309 | /^X\(\/\/\)[^/].*/{ | |
310 | s//\1/ | |
311 | q | |
312 | } | |
313 | /^X\(\/\/\)$/{ | |
314 | s//\1/ | |
315 | q | |
316 | } | |
317 | /^X\(\/\).*/{ | |
318 | s//\1/ | |
319 | q | |
320 | } | |
321 | s/.*/./; q'` | |
322 | test -d "$as_dir" && break | |
323 | done | |
324 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
325 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
326 | ||
327 | ||
328 | } # as_fn_mkdir_p | |
329 | # as_fn_append VAR VALUE | |
330 | # ---------------------- | |
331 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
332 | # advantage of any shell optimizations that allow amortized linear growth over | |
333 | # repeated appends, instead of the typical quadratic growth present in naive | |
334 | # implementations. | |
335 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
336 | eval 'as_fn_append () | |
337 | { | |
338 | eval $1+=\$2 | |
339 | }' | |
340 | else | |
341 | as_fn_append () | |
342 | { | |
343 | eval $1=\$$1\$2 | |
344 | } | |
345 | fi # as_fn_append | |
346 | ||
347 | # as_fn_arith ARG... | |
348 | # ------------------ | |
349 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
350 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
351 | # must be portable across $(()) and expr. | |
352 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
353 | eval 'as_fn_arith () | |
354 | { | |
355 | as_val=$(( $* )) | |
356 | }' | |
357 | else | |
358 | as_fn_arith () | |
359 | { | |
360 | as_val=`expr "$@" || test $? -eq 1` | |
361 | } | |
362 | fi # as_fn_arith | |
363 | ||
364 | ||
365 | # as_fn_error ERROR [LINENO LOG_FD] | |
366 | # --------------------------------- | |
367 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
368 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
369 | # script with status $?, using 1 if that was 0. | |
370 | as_fn_error () | |
371 | { | |
372 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
373 | if test "$3"; then | |
374 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
375 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
376 | fi | |
377 | $as_echo "$as_me: error: $1" >&2 | |
378 | as_fn_exit $as_status | |
379 | } # as_fn_error | |
380 | ||
381 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
382 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
383 | as_expr=expr | |
384 | else | |
385 | as_expr=false | |
386 | fi | |
387 | ||
388 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
389 | as_basename=basename | |
390 | else | |
391 | as_basename=false | |
392 | fi | |
393 | ||
394 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
395 | as_dirname=dirname | |
396 | else | |
397 | as_dirname=false | |
398 | fi | |
399 | ||
400 | as_me=`$as_basename -- "$0" || | |
401 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
402 | X"$0" : 'X\(//\)$' \| \ | |
403 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
404 | $as_echo X/"$0" | | |
405 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
406 | s//\1/ | |
407 | q | |
408 | } | |
409 | /^X\/\(\/\/\)$/{ | |
410 | s//\1/ | |
411 | q | |
412 | } | |
413 | /^X\/\(\/\).*/{ | |
414 | s//\1/ | |
415 | q | |
416 | } | |
417 | s/.*/./; q'` | |
418 | ||
419 | # Avoid depending upon Character Ranges. | |
420 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
421 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
422 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
423 | as_cr_digits='0123456789' | |
424 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
425 | ||
426 | ||
427 | as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
428 | as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
429 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
430 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
431 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
432 | sed -n ' | |
433 | p | |
434 | /[$]LINENO/= | |
435 | ' <$as_myself | | |
436 | sed ' | |
437 | s/[$]LINENO.*/&-/ | |
438 | t lineno | |
439 | b | |
440 | :lineno | |
441 | N | |
442 | :loop | |
443 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
444 | t loop | |
445 | s/-\n.*// | |
446 | ' >$as_me.lineno && | |
447 | chmod +x "$as_me.lineno" || | |
448 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
449 | ||
450 | # Don't try to exec as it changes $[0], causing all sort of problems | |
451 | # (the dirname of $[0] is not the place where we might find the | |
452 | # original and so on. Autoconf is especially sensitive to this). | |
453 | . "./$as_me.lineno" | |
454 | # Exit status is that of the last command. | |
455 | exit | |
456 | } | |
457 | ||
458 | ECHO_C= ECHO_N= ECHO_T= | |
459 | case `echo -n x` in #((((( | |
460 | -n*) | |
461 | case `echo 'xy\c'` in | |
462 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
463 | xy) ECHO_C='\c';; | |
464 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
465 | ECHO_T=' ';; | |
466 | esac;; | |
467 | *) | |
468 | ECHO_N='-n';; | |
469 | esac | |
470 | ||
471 | rm -f conf$$ conf$$.exe conf$$.file | |
472 | if test -d conf$$.dir; then | |
473 | rm -f conf$$.dir/conf$$.file | |
474 | else | |
475 | rm -f conf$$.dir | |
476 | mkdir conf$$.dir 2>/dev/null | |
477 | fi | |
478 | if (echo >conf$$.file) 2>/dev/null; then | |
479 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
480 | as_ln_s='ln -s' | |
481 | # ... but there are two gotchas: | |
482 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
483 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
484 | # In both cases, we have to default to `cp -p'. | |
485 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
486 | as_ln_s='cp -p' | |
487 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
488 | as_ln_s=ln | |
489 | else | |
490 | as_ln_s='cp -p' | |
491 | fi | |
492 | else | |
493 | as_ln_s='cp -p' | |
494 | fi | |
495 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
496 | rmdir conf$$.dir 2>/dev/null | |
497 | ||
498 | if mkdir -p . 2>/dev/null; then | |
499 | as_mkdir_p='mkdir -p "$as_dir"' | |
500 | else | |
501 | test -d ./-p && rmdir ./-p | |
502 | as_mkdir_p=false | |
503 | fi | |
504 | ||
505 | if test -x / >/dev/null 2>&1; then | |
506 | as_test_x='test -x' | |
507 | else | |
508 | if ls -dL / >/dev/null 2>&1; then | |
509 | as_ls_L_option=L | |
510 | else | |
511 | as_ls_L_option= | |
512 | fi | |
513 | as_test_x=' | |
514 | eval sh -c '\'' | |
515 | if test -d "$1"; then | |
516 | test -d "$1/."; | |
517 | else | |
518 | case $1 in #( | |
519 | -*)set "./$1";; | |
520 | esac; | |
521 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
522 | ???[sx]*):;;*)false;;esac;fi | |
523 | '\'' sh | |
524 | ' | |
525 | fi | |
526 | as_executable_p=$as_test_x | |
527 | ||
528 | # Sed expression to map a string onto a valid CPP name. | |
529 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
530 | ||
531 | # Sed expression to map a string onto a valid variable name. | |
532 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
533 | ||
534 | SHELL=${CONFIG_SHELL-/bin/sh} | |
535 | ||
536 | ||
537 | exec 7<&0 </dev/null 6>&1 | |
538 | ||
539 | # Name of the host. | |
540 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
541 | # so uname gets run too. | |
542 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
543 | ||
544 | # | |
545 | # Initializations. | |
546 | # | |
547 | ac_default_prefix=/usr/local | |
548 | ac_clean_files= | |
549 | ac_config_libobj_dir=. | |
550 | LIBOBJS= | |
551 | cross_compiling=no | |
552 | subdirs= | |
553 | MFLAGS= | |
554 | MAKEFLAGS= | |
555 | ||
556 | # Identity of this package. | |
557 | PACKAGE_NAME='package-unused' | |
558 | PACKAGE_TARNAME='libbacktrace' | |
559 | PACKAGE_VERSION='version-unused' | |
560 | PACKAGE_STRING='package-unused version-unused' | |
561 | PACKAGE_BUGREPORT='' | |
562 | PACKAGE_URL='' | |
563 | ||
564 | ac_unique_file="backtrace.h" | |
565 | # Factoring default headers for most tests. | |
566 | ac_includes_default="\ | |
567 | #include <stdio.h> | |
568 | #ifdef HAVE_SYS_TYPES_H | |
569 | # include <sys/types.h> | |
570 | #endif | |
571 | #ifdef HAVE_SYS_STAT_H | |
572 | # include <sys/stat.h> | |
573 | #endif | |
574 | #ifdef STDC_HEADERS | |
575 | # include <stdlib.h> | |
576 | # include <stddef.h> | |
577 | #else | |
578 | # ifdef HAVE_STDLIB_H | |
579 | # include <stdlib.h> | |
580 | # endif | |
581 | #endif | |
582 | #ifdef HAVE_STRING_H | |
583 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
584 | # include <memory.h> | |
585 | # endif | |
586 | # include <string.h> | |
587 | #endif | |
588 | #ifdef HAVE_STRINGS_H | |
589 | # include <strings.h> | |
590 | #endif | |
591 | #ifdef HAVE_INTTYPES_H | |
592 | # include <inttypes.h> | |
593 | #endif | |
594 | #ifdef HAVE_STDINT_H | |
595 | # include <stdint.h> | |
596 | #endif | |
597 | #ifdef HAVE_UNISTD_H | |
598 | # include <unistd.h> | |
599 | #endif" | |
600 | ||
601 | ac_subst_vars='am__EXEEXT_FALSE | |
602 | am__EXEEXT_TRUE | |
603 | LTLIBOBJS | |
604 | LIBOBJS | |
605 | NATIVE_FALSE | |
606 | NATIVE_TRUE | |
607 | BACKTRACE_USES_MALLOC | |
608 | ALLOC_FILE | |
609 | VIEW_FILE | |
610 | BACKTRACE_SUPPORTED | |
611 | FORMAT_FILE | |
612 | BACKTRACE_SUPPORTS_THREADS | |
613 | PIC_FLAG | |
614 | WARN_FLAGS | |
615 | BACKTRACE_FILE | |
616 | multi_basedir | |
eff02e4f ILT |
617 | OTOOL64 |
618 | OTOOL | |
619 | LIPO | |
620 | NMEDIT | |
621 | DSYMUTIL | |
622 | AR | |
623 | OBJDUMP | |
624 | LN_S | |
625 | NM | |
626 | ac_ct_DUMPBIN | |
627 | DUMPBIN | |
628 | LD | |
629 | FGREP | |
eff02e4f ILT |
630 | SED |
631 | LIBTOOL | |
632 | RANLIB | |
d4c059d5 ILT |
633 | MAINT |
634 | MAINTAINER_MODE_FALSE | |
635 | MAINTAINER_MODE_TRUE | |
eff02e4f ILT |
636 | am__fastdepCC_FALSE |
637 | am__fastdepCC_TRUE | |
638 | CCDEPMODE | |
639 | AMDEPBACKSLASH | |
640 | AMDEP_FALSE | |
641 | AMDEP_TRUE | |
642 | am__quote | |
643 | am__include | |
644 | DEPDIR | |
eff02e4f ILT |
645 | am__untar |
646 | am__tar | |
647 | AMTAR | |
648 | am__leading_dot | |
649 | SET_MAKE | |
650 | AWK | |
651 | mkdir_p | |
652 | MKDIR_P | |
653 | INSTALL_STRIP_PROGRAM | |
654 | STRIP | |
655 | install_sh | |
656 | MAKEINFO | |
657 | AUTOHEADER | |
658 | AUTOMAKE | |
659 | AUTOCONF | |
660 | ACLOCAL | |
661 | VERSION | |
662 | PACKAGE | |
663 | CYGPATH_W | |
664 | am__isrc | |
665 | INSTALL_DATA | |
666 | INSTALL_SCRIPT | |
667 | INSTALL_PROGRAM | |
668 | libtool_VERSION | |
d4c059d5 ILT |
669 | EGREP |
670 | GREP | |
671 | CPP | |
672 | OBJEXT | |
673 | EXEEXT | |
674 | ac_ct_CC | |
675 | CPPFLAGS | |
676 | LDFLAGS | |
677 | CFLAGS | |
678 | CC | |
eff02e4f ILT |
679 | target_os |
680 | target_vendor | |
681 | target_cpu | |
682 | target | |
683 | host_os | |
684 | host_vendor | |
685 | host_cpu | |
686 | host | |
687 | build_os | |
688 | build_vendor | |
689 | build_cpu | |
690 | build | |
691 | target_alias | |
692 | host_alias | |
693 | build_alias | |
694 | LIBS | |
695 | ECHO_T | |
696 | ECHO_N | |
697 | ECHO_C | |
698 | DEFS | |
699 | mandir | |
700 | localedir | |
701 | libdir | |
702 | psdir | |
703 | pdfdir | |
704 | dvidir | |
705 | htmldir | |
706 | infodir | |
707 | docdir | |
708 | oldincludedir | |
709 | includedir | |
710 | localstatedir | |
711 | sharedstatedir | |
712 | sysconfdir | |
713 | datadir | |
714 | datarootdir | |
715 | libexecdir | |
716 | sbindir | |
717 | bindir | |
718 | program_transform_name | |
719 | prefix | |
720 | exec_prefix | |
721 | PACKAGE_URL | |
722 | PACKAGE_BUGREPORT | |
723 | PACKAGE_STRING | |
724 | PACKAGE_VERSION | |
725 | PACKAGE_TARNAME | |
726 | PACKAGE_NAME | |
727 | PATH_SEPARATOR | |
728 | SHELL' | |
729 | ac_subst_files='' | |
730 | ac_user_opts=' | |
731 | enable_option_checking | |
d4c059d5 | 732 | enable_dependency_tracking |
eff02e4f ILT |
733 | enable_maintainer_mode |
734 | with_target_subdir | |
eff02e4f ILT |
735 | enable_shared |
736 | enable_static | |
737 | with_pic | |
738 | enable_fast_install | |
739 | with_gnu_ld | |
740 | enable_libtool_lock | |
741 | enable_multilib | |
742 | with_system_libunwind | |
743 | ' | |
744 | ac_precious_vars='build_alias | |
745 | host_alias | |
746 | target_alias | |
d4c059d5 ILT |
747 | CC |
748 | CFLAGS | |
749 | LDFLAGS | |
750 | LIBS | |
751 | CPPFLAGS | |
752 | CPP' | |
eff02e4f ILT |
753 | |
754 | ||
755 | # Initialize some variables set by options. | |
756 | ac_init_help= | |
757 | ac_init_version=false | |
758 | ac_unrecognized_opts= | |
759 | ac_unrecognized_sep= | |
760 | # The variables have the same names as the options, with | |
761 | # dashes changed to underlines. | |
762 | cache_file=/dev/null | |
763 | exec_prefix=NONE | |
764 | no_create= | |
765 | no_recursion= | |
766 | prefix=NONE | |
767 | program_prefix=NONE | |
768 | program_suffix=NONE | |
769 | program_transform_name=s,x,x, | |
770 | silent= | |
771 | site= | |
772 | srcdir= | |
773 | verbose= | |
774 | x_includes=NONE | |
775 | x_libraries=NONE | |
776 | ||
777 | # Installation directory options. | |
778 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
779 | # and all the variables that are supposed to be based on exec_prefix | |
780 | # by default will actually change. | |
781 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
782 | # (The list follows the same order as the GNU Coding Standards.) | |
783 | bindir='${exec_prefix}/bin' | |
784 | sbindir='${exec_prefix}/sbin' | |
785 | libexecdir='${exec_prefix}/libexec' | |
786 | datarootdir='${prefix}/share' | |
787 | datadir='${datarootdir}' | |
788 | sysconfdir='${prefix}/etc' | |
789 | sharedstatedir='${prefix}/com' | |
790 | localstatedir='${prefix}/var' | |
791 | includedir='${prefix}/include' | |
792 | oldincludedir='/usr/include' | |
793 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
794 | infodir='${datarootdir}/info' | |
795 | htmldir='${docdir}' | |
796 | dvidir='${docdir}' | |
797 | pdfdir='${docdir}' | |
798 | psdir='${docdir}' | |
799 | libdir='${exec_prefix}/lib' | |
800 | localedir='${datarootdir}/locale' | |
801 | mandir='${datarootdir}/man' | |
802 | ||
803 | ac_prev= | |
804 | ac_dashdash= | |
805 | for ac_option | |
806 | do | |
807 | # If the previous option needs an argument, assign it. | |
808 | if test -n "$ac_prev"; then | |
809 | eval $ac_prev=\$ac_option | |
810 | ac_prev= | |
811 | continue | |
812 | fi | |
813 | ||
814 | case $ac_option in | |
815 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
816 | *) ac_optarg=yes ;; | |
817 | esac | |
818 | ||
819 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
820 | ||
821 | case $ac_dashdash$ac_option in | |
822 | --) | |
823 | ac_dashdash=yes ;; | |
824 | ||
825 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
826 | ac_prev=bindir ;; | |
827 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
828 | bindir=$ac_optarg ;; | |
829 | ||
830 | -build | --build | --buil | --bui | --bu) | |
831 | ac_prev=build_alias ;; | |
832 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
833 | build_alias=$ac_optarg ;; | |
834 | ||
835 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
836 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
837 | ac_prev=cache_file ;; | |
838 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
839 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
840 | cache_file=$ac_optarg ;; | |
841 | ||
842 | --config-cache | -C) | |
843 | cache_file=config.cache ;; | |
844 | ||
845 | -datadir | --datadir | --datadi | --datad) | |
846 | ac_prev=datadir ;; | |
847 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
848 | datadir=$ac_optarg ;; | |
849 | ||
850 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
851 | | --dataroo | --dataro | --datar) | |
852 | ac_prev=datarootdir ;; | |
853 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
854 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
855 | datarootdir=$ac_optarg ;; | |
856 | ||
857 | -disable-* | --disable-*) | |
858 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
859 | # Reject names that are not valid shell variable names. | |
860 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
861 | as_fn_error "invalid feature name: $ac_useropt" | |
862 | ac_useropt_orig=$ac_useropt | |
863 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
864 | case $ac_user_opts in | |
865 | *" | |
866 | "enable_$ac_useropt" | |
867 | "*) ;; | |
868 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
869 | ac_unrecognized_sep=', ';; | |
870 | esac | |
871 | eval enable_$ac_useropt=no ;; | |
872 | ||
873 | -docdir | --docdir | --docdi | --doc | --do) | |
874 | ac_prev=docdir ;; | |
875 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
876 | docdir=$ac_optarg ;; | |
877 | ||
878 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
879 | ac_prev=dvidir ;; | |
880 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
881 | dvidir=$ac_optarg ;; | |
882 | ||
883 | -enable-* | --enable-*) | |
884 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
885 | # Reject names that are not valid shell variable names. | |
886 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
887 | as_fn_error "invalid feature name: $ac_useropt" | |
888 | ac_useropt_orig=$ac_useropt | |
889 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
890 | case $ac_user_opts in | |
891 | *" | |
892 | "enable_$ac_useropt" | |
893 | "*) ;; | |
894 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
895 | ac_unrecognized_sep=', ';; | |
896 | esac | |
897 | eval enable_$ac_useropt=\$ac_optarg ;; | |
898 | ||
899 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
900 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
901 | | --exec | --exe | --ex) | |
902 | ac_prev=exec_prefix ;; | |
903 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
904 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
905 | | --exec=* | --exe=* | --ex=*) | |
906 | exec_prefix=$ac_optarg ;; | |
907 | ||
908 | -gas | --gas | --ga | --g) | |
909 | # Obsolete; use --with-gas. | |
910 | with_gas=yes ;; | |
911 | ||
912 | -help | --help | --hel | --he | -h) | |
913 | ac_init_help=long ;; | |
914 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
915 | ac_init_help=recursive ;; | |
916 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
917 | ac_init_help=short ;; | |
918 | ||
919 | -host | --host | --hos | --ho) | |
920 | ac_prev=host_alias ;; | |
921 | -host=* | --host=* | --hos=* | --ho=*) | |
922 | host_alias=$ac_optarg ;; | |
923 | ||
924 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
925 | ac_prev=htmldir ;; | |
926 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
927 | | --ht=*) | |
928 | htmldir=$ac_optarg ;; | |
929 | ||
930 | -includedir | --includedir | --includedi | --included | --include \ | |
931 | | --includ | --inclu | --incl | --inc) | |
932 | ac_prev=includedir ;; | |
933 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
934 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
935 | includedir=$ac_optarg ;; | |
936 | ||
937 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
938 | ac_prev=infodir ;; | |
939 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
940 | infodir=$ac_optarg ;; | |
941 | ||
942 | -libdir | --libdir | --libdi | --libd) | |
943 | ac_prev=libdir ;; | |
944 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
945 | libdir=$ac_optarg ;; | |
946 | ||
947 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
948 | | --libexe | --libex | --libe) | |
949 | ac_prev=libexecdir ;; | |
950 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
951 | | --libexe=* | --libex=* | --libe=*) | |
952 | libexecdir=$ac_optarg ;; | |
953 | ||
954 | -localedir | --localedir | --localedi | --localed | --locale) | |
955 | ac_prev=localedir ;; | |
956 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
957 | localedir=$ac_optarg ;; | |
958 | ||
959 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
960 | | --localstate | --localstat | --localsta | --localst | --locals) | |
961 | ac_prev=localstatedir ;; | |
962 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
963 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
964 | localstatedir=$ac_optarg ;; | |
965 | ||
966 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
967 | ac_prev=mandir ;; | |
968 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
969 | mandir=$ac_optarg ;; | |
970 | ||
971 | -nfp | --nfp | --nf) | |
972 | # Obsolete; use --without-fp. | |
973 | with_fp=no ;; | |
974 | ||
975 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
976 | | --no-cr | --no-c | -n) | |
977 | no_create=yes ;; | |
978 | ||
979 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
980 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
981 | no_recursion=yes ;; | |
982 | ||
983 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
984 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
985 | | --oldin | --oldi | --old | --ol | --o) | |
986 | ac_prev=oldincludedir ;; | |
987 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
988 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
989 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
990 | oldincludedir=$ac_optarg ;; | |
991 | ||
992 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
993 | ac_prev=prefix ;; | |
994 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
995 | prefix=$ac_optarg ;; | |
996 | ||
997 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
998 | | --program-pre | --program-pr | --program-p) | |
999 | ac_prev=program_prefix ;; | |
1000 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1001 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1002 | program_prefix=$ac_optarg ;; | |
1003 | ||
1004 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1005 | | --program-suf | --program-su | --program-s) | |
1006 | ac_prev=program_suffix ;; | |
1007 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1008 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1009 | program_suffix=$ac_optarg ;; | |
1010 | ||
1011 | -program-transform-name | --program-transform-name \ | |
1012 | | --program-transform-nam | --program-transform-na \ | |
1013 | | --program-transform-n | --program-transform- \ | |
1014 | | --program-transform | --program-transfor \ | |
1015 | | --program-transfo | --program-transf \ | |
1016 | | --program-trans | --program-tran \ | |
1017 | | --progr-tra | --program-tr | --program-t) | |
1018 | ac_prev=program_transform_name ;; | |
1019 | -program-transform-name=* | --program-transform-name=* \ | |
1020 | | --program-transform-nam=* | --program-transform-na=* \ | |
1021 | | --program-transform-n=* | --program-transform-=* \ | |
1022 | | --program-transform=* | --program-transfor=* \ | |
1023 | | --program-transfo=* | --program-transf=* \ | |
1024 | | --program-trans=* | --program-tran=* \ | |
1025 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1026 | program_transform_name=$ac_optarg ;; | |
1027 | ||
1028 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1029 | ac_prev=pdfdir ;; | |
1030 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1031 | pdfdir=$ac_optarg ;; | |
1032 | ||
1033 | -psdir | --psdir | --psdi | --psd | --ps) | |
1034 | ac_prev=psdir ;; | |
1035 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1036 | psdir=$ac_optarg ;; | |
1037 | ||
1038 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1039 | | -silent | --silent | --silen | --sile | --sil) | |
1040 | silent=yes ;; | |
1041 | ||
1042 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1043 | ac_prev=sbindir ;; | |
1044 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1045 | | --sbi=* | --sb=*) | |
1046 | sbindir=$ac_optarg ;; | |
1047 | ||
1048 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1049 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1050 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1051 | | --sha | --sh) | |
1052 | ac_prev=sharedstatedir ;; | |
1053 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1054 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1055 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1056 | | --sha=* | --sh=*) | |
1057 | sharedstatedir=$ac_optarg ;; | |
1058 | ||
1059 | -site | --site | --sit) | |
1060 | ac_prev=site ;; | |
1061 | -site=* | --site=* | --sit=*) | |
1062 | site=$ac_optarg ;; | |
1063 | ||
1064 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1065 | ac_prev=srcdir ;; | |
1066 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1067 | srcdir=$ac_optarg ;; | |
1068 | ||
1069 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1070 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1071 | ac_prev=sysconfdir ;; | |
1072 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1073 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1074 | sysconfdir=$ac_optarg ;; | |
1075 | ||
1076 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1077 | ac_prev=target_alias ;; | |
1078 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1079 | target_alias=$ac_optarg ;; | |
1080 | ||
1081 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1082 | verbose=yes ;; | |
1083 | ||
1084 | -version | --version | --versio | --versi | --vers | -V) | |
1085 | ac_init_version=: ;; | |
1086 | ||
1087 | -with-* | --with-*) | |
1088 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1089 | # Reject names that are not valid shell variable names. | |
1090 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1091 | as_fn_error "invalid package name: $ac_useropt" | |
1092 | ac_useropt_orig=$ac_useropt | |
1093 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1094 | case $ac_user_opts in | |
1095 | *" | |
1096 | "with_$ac_useropt" | |
1097 | "*) ;; | |
1098 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1099 | ac_unrecognized_sep=', ';; | |
1100 | esac | |
1101 | eval with_$ac_useropt=\$ac_optarg ;; | |
1102 | ||
1103 | -without-* | --without-*) | |
1104 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1105 | # Reject names that are not valid shell variable names. | |
1106 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1107 | as_fn_error "invalid package name: $ac_useropt" | |
1108 | ac_useropt_orig=$ac_useropt | |
1109 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1110 | case $ac_user_opts in | |
1111 | *" | |
1112 | "with_$ac_useropt" | |
1113 | "*) ;; | |
1114 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1115 | ac_unrecognized_sep=', ';; | |
1116 | esac | |
1117 | eval with_$ac_useropt=no ;; | |
1118 | ||
1119 | --x) | |
1120 | # Obsolete; use --with-x. | |
1121 | with_x=yes ;; | |
1122 | ||
1123 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1124 | | --x-incl | --x-inc | --x-in | --x-i) | |
1125 | ac_prev=x_includes ;; | |
1126 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1127 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1128 | x_includes=$ac_optarg ;; | |
1129 | ||
1130 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1131 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1132 | ac_prev=x_libraries ;; | |
1133 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1134 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1135 | x_libraries=$ac_optarg ;; | |
1136 | ||
1137 | -*) as_fn_error "unrecognized option: \`$ac_option' | |
1138 | Try \`$0 --help' for more information." | |
1139 | ;; | |
1140 | ||
1141 | *=*) | |
1142 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1143 | # Reject names that are not valid shell variable names. | |
1144 | case $ac_envvar in #( | |
1145 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1146 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; | |
1147 | esac | |
1148 | eval $ac_envvar=\$ac_optarg | |
1149 | export $ac_envvar ;; | |
1150 | ||
1151 | *) | |
1152 | # FIXME: should be removed in autoconf 3.0. | |
1153 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1154 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1155 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1156 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1157 | ;; | |
1158 | ||
1159 | esac | |
1160 | done | |
1161 | ||
1162 | if test -n "$ac_prev"; then | |
1163 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1164 | as_fn_error "missing argument to $ac_option" | |
1165 | fi | |
1166 | ||
1167 | if test -n "$ac_unrecognized_opts"; then | |
1168 | case $enable_option_checking in | |
1169 | no) ;; | |
1170 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; | |
1171 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1172 | esac | |
1173 | fi | |
1174 | ||
1175 | # Check all directory arguments for consistency. | |
1176 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1177 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1178 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1179 | libdir localedir mandir | |
1180 | do | |
1181 | eval ac_val=\$$ac_var | |
1182 | # Remove trailing slashes. | |
1183 | case $ac_val in | |
1184 | */ ) | |
1185 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1186 | eval $ac_var=\$ac_val;; | |
1187 | esac | |
1188 | # Be sure to have absolute directory names. | |
1189 | case $ac_val in | |
1190 | [\\/$]* | ?:[\\/]* ) continue;; | |
1191 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1192 | esac | |
1193 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" | |
1194 | done | |
1195 | ||
1196 | # There might be people who depend on the old broken behavior: `$host' | |
1197 | # used to hold the argument of --host etc. | |
1198 | # FIXME: To remove some day. | |
1199 | build=$build_alias | |
1200 | host=$host_alias | |
1201 | target=$target_alias | |
1202 | ||
1203 | # FIXME: To remove some day. | |
1204 | if test "x$host_alias" != x; then | |
1205 | if test "x$build_alias" = x; then | |
1206 | cross_compiling=maybe | |
1207 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1208 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1209 | elif test "x$build_alias" != "x$host_alias"; then | |
1210 | cross_compiling=yes | |
1211 | fi | |
1212 | fi | |
1213 | ||
1214 | ac_tool_prefix= | |
1215 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1216 | ||
1217 | test "$silent" = yes && exec 6>/dev/null | |
1218 | ||
1219 | ||
1220 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1221 | ac_ls_di=`ls -di .` && | |
1222 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1223 | as_fn_error "working directory cannot be determined" | |
1224 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1225 | as_fn_error "pwd does not report name of working directory" | |
1226 | ||
1227 | ||
1228 | # Find the source files, if location was not specified. | |
1229 | if test -z "$srcdir"; then | |
1230 | ac_srcdir_defaulted=yes | |
1231 | # Try the directory containing this script, then the parent directory. | |
1232 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1233 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1234 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1235 | X"$as_myself" : 'X\(//\)$' \| \ | |
1236 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1237 | $as_echo X"$as_myself" | | |
1238 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1239 | s//\1/ | |
1240 | q | |
1241 | } | |
1242 | /^X\(\/\/\)[^/].*/{ | |
1243 | s//\1/ | |
1244 | q | |
1245 | } | |
1246 | /^X\(\/\/\)$/{ | |
1247 | s//\1/ | |
1248 | q | |
1249 | } | |
1250 | /^X\(\/\).*/{ | |
1251 | s//\1/ | |
1252 | q | |
1253 | } | |
1254 | s/.*/./; q'` | |
1255 | srcdir=$ac_confdir | |
1256 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1257 | srcdir=.. | |
1258 | fi | |
1259 | else | |
1260 | ac_srcdir_defaulted=no | |
1261 | fi | |
1262 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1263 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1264 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" | |
1265 | fi | |
1266 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1267 | ac_abs_confdir=`( | |
1268 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" | |
1269 | pwd)` | |
1270 | # When building in place, set srcdir=. | |
1271 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1272 | srcdir=. | |
1273 | fi | |
1274 | # Remove unnecessary trailing slashes from srcdir. | |
1275 | # Double slashes in file names in object file debugging info | |
1276 | # mess up M-x gdb in Emacs. | |
1277 | case $srcdir in | |
1278 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1279 | esac | |
1280 | for ac_var in $ac_precious_vars; do | |
1281 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1282 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1283 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1284 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1285 | done | |
1286 | ||
1287 | # | |
1288 | # Report the --help message. | |
1289 | # | |
1290 | if test "$ac_init_help" = "long"; then | |
1291 | # Omit some internal or obsolete options to make the list less imposing. | |
1292 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1293 | cat <<_ACEOF | |
1294 | \`configure' configures package-unused version-unused to adapt to many kinds of systems. | |
1295 | ||
1296 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1297 | ||
1298 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1299 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1300 | ||
1301 | Defaults for the options are specified in brackets. | |
1302 | ||
1303 | Configuration: | |
1304 | -h, --help display this help and exit | |
1305 | --help=short display options specific to this package | |
1306 | --help=recursive display the short help of all the included packages | |
1307 | -V, --version display version information and exit | |
1308 | -q, --quiet, --silent do not print \`checking...' messages | |
1309 | --cache-file=FILE cache test results in FILE [disabled] | |
1310 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1311 | -n, --no-create do not create output files | |
1312 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1313 | ||
1314 | Installation directories: | |
1315 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1316 | [$ac_default_prefix] | |
1317 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1318 | [PREFIX] | |
1319 | ||
1320 | By default, \`make install' will install all the files in | |
1321 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1322 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1323 | for instance \`--prefix=\$HOME'. | |
1324 | ||
1325 | For better control, use the options below. | |
1326 | ||
1327 | Fine tuning of the installation directories: | |
1328 | --bindir=DIR user executables [EPREFIX/bin] | |
1329 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1330 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1331 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1332 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1333 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1334 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1335 | --includedir=DIR C header files [PREFIX/include] | |
1336 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1337 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1338 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1339 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1340 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1341 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1342 | --docdir=DIR documentation root [DATAROOTDIR/doc/libbacktrace] | |
1343 | --htmldir=DIR html documentation [DOCDIR] | |
1344 | --dvidir=DIR dvi documentation [DOCDIR] | |
1345 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1346 | --psdir=DIR ps documentation [DOCDIR] | |
1347 | _ACEOF | |
1348 | ||
1349 | cat <<\_ACEOF | |
1350 | ||
1351 | Program names: | |
1352 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1353 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1354 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1355 | ||
1356 | System types: | |
1357 | --build=BUILD configure for building on BUILD [guessed] | |
1358 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1359 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1360 | _ACEOF | |
1361 | fi | |
1362 | ||
1363 | if test -n "$ac_init_help"; then | |
1364 | case $ac_init_help in | |
1365 | short | recursive ) echo "Configuration of package-unused version-unused:";; | |
1366 | esac | |
1367 | cat <<\_ACEOF | |
1368 | ||
1369 | Optional Features: | |
1370 | --disable-option-checking ignore unrecognized --enable/--with options | |
1371 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1372 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
eff02e4f ILT |
1373 | --disable-dependency-tracking speeds up one-time build |
1374 | --enable-dependency-tracking do not reject slow dependency extractors | |
d4c059d5 ILT |
1375 | --enable-maintainer-mode enable make rules and dependencies not useful |
1376 | (and sometimes confusing) to the casual installer | |
eff02e4f ILT |
1377 | --enable-shared[=PKGS] build shared libraries [default=no] |
1378 | --enable-static[=PKGS] build static libraries [default=yes] | |
1379 | --enable-fast-install[=PKGS] | |
1380 | optimize for fast installation [default=yes] | |
1381 | --disable-libtool-lock avoid locking (might break parallel builds) | |
1382 | --enable-multilib build many library versions (default) | |
1383 | ||
1384 | Optional Packages: | |
1385 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1386 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1387 | --with-target-subdir=SUBDIR Configuring in a subdirectory for target | |
1388 | --with-pic try to use only PIC/non-PIC objects [default=use | |
1389 | both] | |
1390 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1391 | --with-system-libunwind use installed libunwind | |
1392 | ||
1393 | Some influential environment variables: | |
1394 | CC C compiler command | |
1395 | CFLAGS C compiler flags | |
1396 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1397 | nonstandard directory <lib dir> | |
1398 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1399 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1400 | you have headers in a nonstandard directory <include dir> | |
1401 | CPP C preprocessor | |
1402 | ||
1403 | Use these variables to override the choices made by `configure' or to help | |
1404 | it to find libraries and programs with nonstandard names/locations. | |
1405 | ||
1406 | Report bugs to the package provider. | |
1407 | _ACEOF | |
1408 | ac_status=$? | |
1409 | fi | |
1410 | ||
1411 | if test "$ac_init_help" = "recursive"; then | |
1412 | # If there are subdirs, report their specific --help. | |
1413 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1414 | test -d "$ac_dir" || | |
1415 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1416 | continue | |
1417 | ac_builddir=. | |
1418 | ||
1419 | case "$ac_dir" in | |
1420 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1421 | *) | |
1422 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1423 | # A ".." for each directory in $ac_dir_suffix. | |
1424 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1425 | case $ac_top_builddir_sub in | |
1426 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1427 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1428 | esac ;; | |
1429 | esac | |
1430 | ac_abs_top_builddir=$ac_pwd | |
1431 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1432 | # for backward compatibility: | |
1433 | ac_top_builddir=$ac_top_build_prefix | |
1434 | ||
1435 | case $srcdir in | |
1436 | .) # We are building in place. | |
1437 | ac_srcdir=. | |
1438 | ac_top_srcdir=$ac_top_builddir_sub | |
1439 | ac_abs_top_srcdir=$ac_pwd ;; | |
1440 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1441 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1442 | ac_top_srcdir=$srcdir | |
1443 | ac_abs_top_srcdir=$srcdir ;; | |
1444 | *) # Relative name. | |
1445 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1446 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1447 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1448 | esac | |
1449 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1450 | ||
1451 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1452 | # Check for guested configure. | |
1453 | if test -f "$ac_srcdir/configure.gnu"; then | |
1454 | echo && | |
1455 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1456 | elif test -f "$ac_srcdir/configure"; then | |
1457 | echo && | |
1458 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1459 | else | |
1460 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1461 | fi || ac_status=$? | |
1462 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1463 | done | |
1464 | fi | |
1465 | ||
1466 | test -n "$ac_init_help" && exit $ac_status | |
1467 | if $ac_init_version; then | |
1468 | cat <<\_ACEOF | |
1469 | package-unused configure version-unused | |
1470 | generated by GNU Autoconf 2.64 | |
1471 | ||
1472 | Copyright (C) 2009 Free Software Foundation, Inc. | |
1473 | This configure script is free software; the Free Software Foundation | |
1474 | gives unlimited permission to copy, distribute and modify it. | |
1475 | _ACEOF | |
1476 | exit | |
1477 | fi | |
1478 | ||
1479 | ## ------------------------ ## | |
1480 | ## Autoconf initialization. ## | |
1481 | ## ------------------------ ## | |
1482 | ||
1483 | # ac_fn_c_try_compile LINENO | |
1484 | # -------------------------- | |
1485 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1486 | ac_fn_c_try_compile () | |
1487 | { | |
1488 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1489 | rm -f conftest.$ac_objext | |
1490 | if { { ac_try="$ac_compile" | |
1491 | case "(($ac_try" in | |
1492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1493 | *) ac_try_echo=$ac_try;; | |
1494 | esac | |
1495 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1496 | $as_echo "$ac_try_echo"; } >&5 | |
1497 | (eval "$ac_compile") 2>conftest.err | |
1498 | ac_status=$? | |
1499 | if test -s conftest.err; then | |
1500 | grep -v '^ *+' conftest.err >conftest.er1 | |
1501 | cat conftest.er1 >&5 | |
1502 | mv -f conftest.er1 conftest.err | |
1503 | fi | |
1504 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1505 | test $ac_status = 0; } && { | |
1506 | test -z "$ac_c_werror_flag" || | |
1507 | test ! -s conftest.err | |
1508 | } && test -s conftest.$ac_objext; then : | |
1509 | ac_retval=0 | |
1510 | else | |
1511 | $as_echo "$as_me: failed program was:" >&5 | |
1512 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1513 | ||
1514 | ac_retval=1 | |
1515 | fi | |
1516 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1517 | return $ac_retval | |
1518 | ||
1519 | } # ac_fn_c_try_compile | |
1520 | ||
d4c059d5 ILT |
1521 | # ac_fn_c_try_cpp LINENO |
1522 | # ---------------------- | |
1523 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1524 | ac_fn_c_try_cpp () | |
eff02e4f ILT |
1525 | { |
1526 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
d4c059d5 | 1527 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
eff02e4f ILT |
1528 | case "(($ac_try" in |
1529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1530 | *) ac_try_echo=$ac_try;; | |
1531 | esac | |
1532 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1533 | $as_echo "$ac_try_echo"; } >&5 | |
d4c059d5 | 1534 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
eff02e4f ILT |
1535 | ac_status=$? |
1536 | if test -s conftest.err; then | |
1537 | grep -v '^ *+' conftest.err >conftest.er1 | |
1538 | cat conftest.er1 >&5 | |
1539 | mv -f conftest.er1 conftest.err | |
1540 | fi | |
1541 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
d4c059d5 ILT |
1542 | test $ac_status = 0; } >/dev/null && { |
1543 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
eff02e4f | 1544 | test ! -s conftest.err |
eff02e4f ILT |
1545 | }; then : |
1546 | ac_retval=0 | |
1547 | else | |
1548 | $as_echo "$as_me: failed program was:" >&5 | |
1549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1550 | ||
d4c059d5 | 1551 | ac_retval=1 |
eff02e4f | 1552 | fi |
eff02e4f ILT |
1553 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
1554 | return $ac_retval | |
1555 | ||
d4c059d5 | 1556 | } # ac_fn_c_try_cpp |
eff02e4f | 1557 | |
d4c059d5 | 1558 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
eff02e4f | 1559 | # ------------------------------------------------------- |
d4c059d5 ILT |
1560 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
1561 | # the include files in INCLUDES and setting the cache variable VAR | |
1562 | # accordingly. | |
1563 | ac_fn_c_check_header_mongrel () | |
eff02e4f ILT |
1564 | { |
1565 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
d4c059d5 | 1566 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
eff02e4f ILT |
1567 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1568 | $as_echo_n "checking for $2... " >&6; } | |
1569 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1570 | $as_echo_n "(cached) " >&6 | |
d4c059d5 ILT |
1571 | fi |
1572 | eval ac_res=\$$3 | |
1573 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1574 | $as_echo "$ac_res" >&6; } | |
eff02e4f | 1575 | else |
d4c059d5 ILT |
1576 | # Is the header compilable? |
1577 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1578 | $as_echo_n "checking $2 usability... " >&6; } | |
1579 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
eff02e4f ILT |
1580 | /* end confdefs.h. */ |
1581 | $4 | |
1582 | #include <$2> | |
1583 | _ACEOF | |
1584 | if ac_fn_c_try_compile "$LINENO"; then : | |
d4c059d5 | 1585 | ac_header_compiler=yes |
eff02e4f | 1586 | else |
d4c059d5 | 1587 | ac_header_compiler=no |
eff02e4f ILT |
1588 | fi |
1589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
d4c059d5 ILT |
1590 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
1591 | $as_echo "$ac_header_compiler" >&6; } | |
eff02e4f | 1592 | |
d4c059d5 ILT |
1593 | # Is the header present? |
1594 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1595 | $as_echo_n "checking $2 presence... " >&6; } | |
1596 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1597 | /* end confdefs.h. */ | |
1598 | #include <$2> | |
1599 | _ACEOF | |
1600 | if ac_fn_c_try_cpp "$LINENO"; then : | |
1601 | ac_header_preproc=yes | |
1602 | else | |
1603 | ac_header_preproc=no | |
1604 | fi | |
1605 | rm -f conftest.err conftest.$ac_ext | |
1606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1607 | $as_echo "$ac_header_preproc" >&6; } | |
eff02e4f | 1608 | |
d4c059d5 ILT |
1609 | # So? What about this header? |
1610 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( | |
1611 | yes:no: ) | |
1612 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1613 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1614 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1615 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1616 | ;; | |
1617 | no:yes:* ) | |
1618 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1619 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1620 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1621 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1622 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1623 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1624 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1625 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1626 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1627 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1628 | ;; | |
eff02e4f | 1629 | esac |
d4c059d5 ILT |
1630 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
1631 | $as_echo_n "checking for $2... " >&6; } | |
1632 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1633 | $as_echo_n "(cached) " >&6 | |
eff02e4f | 1634 | else |
d4c059d5 ILT |
1635 | eval "$3=\$ac_header_compiler" |
1636 | fi | |
1637 | eval ac_res=\$$3 | |
1638 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1639 | $as_echo "$ac_res" >&6; } | |
eff02e4f ILT |
1640 | fi |
1641 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
eff02e4f | 1642 | |
d4c059d5 | 1643 | } # ac_fn_c_check_header_mongrel |
eff02e4f ILT |
1644 | |
1645 | # ac_fn_c_try_run LINENO | |
1646 | # ---------------------- | |
1647 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1648 | # that executables *can* be run. | |
1649 | ac_fn_c_try_run () | |
1650 | { | |
1651 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1652 | if { { ac_try="$ac_link" | |
1653 | case "(($ac_try" in | |
1654 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1655 | *) ac_try_echo=$ac_try;; | |
1656 | esac | |
1657 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1658 | $as_echo "$ac_try_echo"; } >&5 | |
1659 | (eval "$ac_link") 2>&5 | |
1660 | ac_status=$? | |
1661 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1662 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1663 | { { case "(($ac_try" in | |
1664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1665 | *) ac_try_echo=$ac_try;; | |
1666 | esac | |
1667 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1668 | $as_echo "$ac_try_echo"; } >&5 | |
1669 | (eval "$ac_try") 2>&5 | |
1670 | ac_status=$? | |
1671 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1672 | test $ac_status = 0; }; }; then : | |
1673 | ac_retval=0 | |
1674 | else | |
1675 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1676 | $as_echo "$as_me: failed program was:" >&5 | |
1677 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1678 | ||
1679 | ac_retval=$ac_status | |
1680 | fi | |
1681 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1682 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1683 | return $ac_retval | |
1684 | ||
1685 | } # ac_fn_c_try_run | |
1686 | ||
d4c059d5 ILT |
1687 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
1688 | # ------------------------------------------------------- | |
1689 | # Tests whether HEADER exists and can be compiled using the include files in | |
1690 | # INCLUDES, setting the cache variable VAR accordingly. | |
1691 | ac_fn_c_check_header_compile () | |
1692 | { | |
1693 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1694 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1695 | $as_echo_n "checking for $2... " >&6; } | |
1696 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1697 | $as_echo_n "(cached) " >&6 | |
1698 | else | |
1699 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1700 | /* end confdefs.h. */ | |
1701 | $4 | |
1702 | #include <$2> | |
1703 | _ACEOF | |
1704 | if ac_fn_c_try_compile "$LINENO"; then : | |
1705 | eval "$3=yes" | |
1706 | else | |
1707 | eval "$3=no" | |
1708 | fi | |
1709 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1710 | fi | |
1711 | eval ac_res=\$$3 | |
1712 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1713 | $as_echo "$ac_res" >&6; } | |
1714 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1715 | ||
1716 | } # ac_fn_c_check_header_compile | |
1717 | ||
1718 | # ac_fn_c_try_link LINENO | |
1719 | # ----------------------- | |
1720 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1721 | ac_fn_c_try_link () | |
1722 | { | |
1723 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1724 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1725 | if { { ac_try="$ac_link" | |
1726 | case "(($ac_try" in | |
1727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1728 | *) ac_try_echo=$ac_try;; | |
1729 | esac | |
1730 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1731 | $as_echo "$ac_try_echo"; } >&5 | |
1732 | (eval "$ac_link") 2>conftest.err | |
1733 | ac_status=$? | |
1734 | if test -s conftest.err; then | |
1735 | grep -v '^ *+' conftest.err >conftest.er1 | |
1736 | cat conftest.er1 >&5 | |
1737 | mv -f conftest.er1 conftest.err | |
1738 | fi | |
1739 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1740 | test $ac_status = 0; } && { | |
1741 | test -z "$ac_c_werror_flag" || | |
1742 | test ! -s conftest.err | |
1743 | } && test -s conftest$ac_exeext && { | |
1744 | test "$cross_compiling" = yes || | |
1745 | $as_test_x conftest$ac_exeext | |
1746 | }; then : | |
1747 | ac_retval=0 | |
1748 | else | |
1749 | $as_echo "$as_me: failed program was:" >&5 | |
1750 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1751 | ||
1752 | ac_retval=1 | |
1753 | fi | |
1754 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1755 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1756 | # interfere with the next link command; also delete a directory that is | |
1757 | # left behind by Apple's compiler. We do this before executing the actions. | |
1758 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1759 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1760 | return $ac_retval | |
1761 | ||
1762 | } # ac_fn_c_try_link | |
1763 | ||
eff02e4f ILT |
1764 | # ac_fn_c_check_func LINENO FUNC VAR |
1765 | # ---------------------------------- | |
1766 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1767 | ac_fn_c_check_func () | |
1768 | { | |
1769 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1770 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1771 | $as_echo_n "checking for $2... " >&6; } | |
1772 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1773 | $as_echo_n "(cached) " >&6 | |
1774 | else | |
1775 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1776 | /* end confdefs.h. */ | |
1777 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1778 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1779 | #define $2 innocuous_$2 | |
1780 | ||
1781 | /* System header to define __stub macros and hopefully few prototypes, | |
1782 | which can conflict with char $2 (); below. | |
1783 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1784 | <limits.h> exists even on freestanding compilers. */ | |
1785 | ||
1786 | #ifdef __STDC__ | |
1787 | # include <limits.h> | |
1788 | #else | |
1789 | # include <assert.h> | |
1790 | #endif | |
1791 | ||
1792 | #undef $2 | |
1793 | ||
1794 | /* Override any GCC internal prototype to avoid an error. | |
1795 | Use char because int might match the return type of a GCC | |
1796 | builtin and then its argument prototype would still apply. */ | |
1797 | #ifdef __cplusplus | |
1798 | extern "C" | |
1799 | #endif | |
1800 | char $2 (); | |
1801 | /* The GNU C library defines this for functions which it implements | |
1802 | to always fail with ENOSYS. Some functions are actually named | |
1803 | something starting with __ and the normal name is an alias. */ | |
1804 | #if defined __stub_$2 || defined __stub___$2 | |
1805 | choke me | |
1806 | #endif | |
1807 | ||
1808 | int | |
1809 | main () | |
1810 | { | |
1811 | return $2 (); | |
1812 | ; | |
1813 | return 0; | |
1814 | } | |
1815 | _ACEOF | |
1816 | if ac_fn_c_try_link "$LINENO"; then : | |
1817 | eval "$3=yes" | |
1818 | else | |
1819 | eval "$3=no" | |
1820 | fi | |
1821 | rm -f core conftest.err conftest.$ac_objext \ | |
1822 | conftest$ac_exeext conftest.$ac_ext | |
1823 | fi | |
1824 | eval ac_res=\$$3 | |
1825 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1826 | $as_echo "$ac_res" >&6; } | |
1827 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1828 | ||
1829 | } # ac_fn_c_check_func | |
1830 | ||
772a71a9 ILT |
1831 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
1832 | # ------------------------------------ | |
1833 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. | |
1834 | ac_fn_c_check_decl () | |
1835 | { | |
1836 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1837 | as_decl_name=`echo $2|sed 's/ *(.*//'` | |
1838 | as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` | |
1839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 | |
1840 | $as_echo_n "checking whether $as_decl_name is declared... " >&6; } | |
1841 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : | |
1842 | $as_echo_n "(cached) " >&6 | |
1843 | else | |
1844 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1845 | /* end confdefs.h. */ | |
1846 | $4 | |
1847 | int | |
1848 | main () | |
1849 | { | |
1850 | #ifndef $as_decl_name | |
1851 | #ifdef __cplusplus | |
1852 | (void) $as_decl_use; | |
1853 | #else | |
1854 | (void) $as_decl_name; | |
1855 | #endif | |
1856 | #endif | |
1857 | ||
1858 | ; | |
1859 | return 0; | |
1860 | } | |
1861 | _ACEOF | |
1862 | if ac_fn_c_try_compile "$LINENO"; then : | |
1863 | eval "$3=yes" | |
1864 | else | |
1865 | eval "$3=no" | |
1866 | fi | |
1867 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1868 | fi | |
1869 | eval ac_res=\$$3 | |
1870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1871 | $as_echo "$ac_res" >&6; } | |
1872 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} | |
1873 | ||
1874 | } # ac_fn_c_check_decl | |
eff02e4f ILT |
1875 | cat >config.log <<_ACEOF |
1876 | This file contains any messages produced by compilers while | |
1877 | running configure, to aid debugging if configure makes a mistake. | |
1878 | ||
1879 | It was created by package-unused $as_me version-unused, which was | |
1880 | generated by GNU Autoconf 2.64. Invocation command line was | |
1881 | ||
1882 | $ $0 $@ | |
1883 | ||
1884 | _ACEOF | |
1885 | exec 5>>config.log | |
1886 | { | |
1887 | cat <<_ASUNAME | |
1888 | ## --------- ## | |
1889 | ## Platform. ## | |
1890 | ## --------- ## | |
1891 | ||
1892 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1893 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1894 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1895 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1896 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1897 | ||
1898 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1899 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1900 | ||
1901 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1902 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1903 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1904 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1905 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1906 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1907 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1908 | ||
1909 | _ASUNAME | |
1910 | ||
1911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1912 | for as_dir in $PATH | |
1913 | do | |
1914 | IFS=$as_save_IFS | |
1915 | test -z "$as_dir" && as_dir=. | |
1916 | $as_echo "PATH: $as_dir" | |
1917 | done | |
1918 | IFS=$as_save_IFS | |
1919 | ||
1920 | } >&5 | |
1921 | ||
1922 | cat >&5 <<_ACEOF | |
1923 | ||
1924 | ||
1925 | ## ----------- ## | |
1926 | ## Core tests. ## | |
1927 | ## ----------- ## | |
1928 | ||
1929 | _ACEOF | |
1930 | ||
1931 | ||
1932 | # Keep a trace of the command line. | |
1933 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1934 | # Strip out --silent because we don't want to record it for future runs. | |
1935 | # Also quote any args containing shell meta-characters. | |
1936 | # Make two passes to allow for proper duplicate-argument suppression. | |
1937 | ac_configure_args= | |
1938 | ac_configure_args0= | |
1939 | ac_configure_args1= | |
1940 | ac_must_keep_next=false | |
1941 | for ac_pass in 1 2 | |
1942 | do | |
1943 | for ac_arg | |
1944 | do | |
1945 | case $ac_arg in | |
1946 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1947 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1948 | | -silent | --silent | --silen | --sile | --sil) | |
1949 | continue ;; | |
1950 | *\'*) | |
1951 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1952 | esac | |
1953 | case $ac_pass in | |
1954 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
1955 | 2) | |
1956 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
1957 | if test $ac_must_keep_next = true; then | |
1958 | ac_must_keep_next=false # Got value, back to normal. | |
1959 | else | |
1960 | case $ac_arg in | |
1961 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1962 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1963 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1964 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1965 | case "$ac_configure_args0 " in | |
1966 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1967 | esac | |
1968 | ;; | |
1969 | -* ) ac_must_keep_next=true ;; | |
1970 | esac | |
1971 | fi | |
1972 | as_fn_append ac_configure_args " '$ac_arg'" | |
1973 | ;; | |
1974 | esac | |
1975 | done | |
1976 | done | |
1977 | { ac_configure_args0=; unset ac_configure_args0;} | |
1978 | { ac_configure_args1=; unset ac_configure_args1;} | |
1979 | ||
1980 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1981 | # config.log. We remove comments because anyway the quotes in there | |
1982 | # would cause problems or look ugly. | |
1983 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
1984 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
1985 | trap 'exit_status=$? | |
1986 | # Save into config.log some information that might help in debugging. | |
1987 | { | |
1988 | echo | |
1989 | ||
1990 | cat <<\_ASBOX | |
1991 | ## ---------------- ## | |
1992 | ## Cache variables. ## | |
1993 | ## ---------------- ## | |
1994 | _ASBOX | |
1995 | echo | |
1996 | # The following way of writing the cache mishandles newlines in values, | |
1997 | ( | |
1998 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
1999 | eval ac_val=\$$ac_var | |
2000 | case $ac_val in #( | |
2001 | *${as_nl}*) | |
2002 | case $ac_var in #( | |
2003 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2004 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2005 | esac | |
2006 | case $ac_var in #( | |
2007 | _ | IFS | as_nl) ;; #( | |
2008 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2009 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2010 | esac ;; | |
2011 | esac | |
2012 | done | |
2013 | (set) 2>&1 | | |
2014 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2015 | *${as_nl}ac_space=\ *) | |
2016 | sed -n \ | |
2017 | "s/'\''/'\''\\\\'\'''\''/g; | |
2018 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2019 | ;; #( | |
2020 | *) | |
2021 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2022 | ;; | |
2023 | esac | | |
2024 | sort | |
2025 | ) | |
2026 | echo | |
2027 | ||
2028 | cat <<\_ASBOX | |
2029 | ## ----------------- ## | |
2030 | ## Output variables. ## | |
2031 | ## ----------------- ## | |
2032 | _ASBOX | |
2033 | echo | |
2034 | for ac_var in $ac_subst_vars | |
2035 | do | |
2036 | eval ac_val=\$$ac_var | |
2037 | case $ac_val in | |
2038 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2039 | esac | |
2040 | $as_echo "$ac_var='\''$ac_val'\''" | |
2041 | done | sort | |
2042 | echo | |
2043 | ||
2044 | if test -n "$ac_subst_files"; then | |
2045 | cat <<\_ASBOX | |
2046 | ## ------------------- ## | |
2047 | ## File substitutions. ## | |
2048 | ## ------------------- ## | |
2049 | _ASBOX | |
2050 | echo | |
2051 | for ac_var in $ac_subst_files | |
2052 | do | |
2053 | eval ac_val=\$$ac_var | |
2054 | case $ac_val in | |
2055 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2056 | esac | |
2057 | $as_echo "$ac_var='\''$ac_val'\''" | |
2058 | done | sort | |
2059 | echo | |
2060 | fi | |
2061 | ||
2062 | if test -s confdefs.h; then | |
2063 | cat <<\_ASBOX | |
2064 | ## ----------- ## | |
2065 | ## confdefs.h. ## | |
2066 | ## ----------- ## | |
2067 | _ASBOX | |
2068 | echo | |
2069 | cat confdefs.h | |
2070 | echo | |
2071 | fi | |
2072 | test "$ac_signal" != 0 && | |
2073 | $as_echo "$as_me: caught signal $ac_signal" | |
2074 | $as_echo "$as_me: exit $exit_status" | |
2075 | } >&5 | |
2076 | rm -f core *.core core.conftest.* && | |
2077 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2078 | exit $exit_status | |
2079 | ' 0 | |
2080 | for ac_signal in 1 2 13 15; do | |
2081 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2082 | done | |
2083 | ac_signal=0 | |
2084 | ||
2085 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2086 | rm -f -r conftest* confdefs.h | |
2087 | ||
2088 | $as_echo "/* confdefs.h */" > confdefs.h | |
2089 | ||
2090 | # Predefined preprocessor variables. | |
2091 | ||
2092 | cat >>confdefs.h <<_ACEOF | |
2093 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2094 | _ACEOF | |
2095 | ||
2096 | cat >>confdefs.h <<_ACEOF | |
2097 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2098 | _ACEOF | |
2099 | ||
2100 | cat >>confdefs.h <<_ACEOF | |
2101 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2102 | _ACEOF | |
2103 | ||
2104 | cat >>confdefs.h <<_ACEOF | |
2105 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2106 | _ACEOF | |
2107 | ||
2108 | cat >>confdefs.h <<_ACEOF | |
2109 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2110 | _ACEOF | |
2111 | ||
2112 | cat >>confdefs.h <<_ACEOF | |
2113 | #define PACKAGE_URL "$PACKAGE_URL" | |
2114 | _ACEOF | |
2115 | ||
2116 | ||
2117 | # Let the site file select an alternate cache file if it wants to. | |
2118 | # Prefer an explicitly selected file to automatically selected ones. | |
2119 | ac_site_file1=NONE | |
2120 | ac_site_file2=NONE | |
2121 | if test -n "$CONFIG_SITE"; then | |
2122 | ac_site_file1=$CONFIG_SITE | |
2123 | elif test "x$prefix" != xNONE; then | |
2124 | ac_site_file1=$prefix/share/config.site | |
2125 | ac_site_file2=$prefix/etc/config.site | |
2126 | else | |
2127 | ac_site_file1=$ac_default_prefix/share/config.site | |
2128 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2129 | fi | |
2130 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2131 | do | |
2132 | test "x$ac_site_file" = xNONE && continue | |
2133 | if test -r "$ac_site_file"; then | |
2134 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2135 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2136 | sed 's/^/| /' "$ac_site_file" >&5 | |
2137 | . "$ac_site_file" | |
2138 | fi | |
2139 | done | |
2140 | ||
2141 | if test -r "$cache_file"; then | |
2142 | # Some versions of bash will fail to source /dev/null (special | |
2143 | # files actually), so we avoid doing that. | |
2144 | if test -f "$cache_file"; then | |
2145 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2146 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2147 | case $cache_file in | |
2148 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2149 | *) . "./$cache_file";; | |
2150 | esac | |
2151 | fi | |
2152 | else | |
2153 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2154 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2155 | >$cache_file | |
2156 | fi | |
2157 | ||
2158 | # Check that the precious variables saved in the cache have kept the same | |
2159 | # value. | |
2160 | ac_cache_corrupted=false | |
2161 | for ac_var in $ac_precious_vars; do | |
2162 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2163 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2164 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2165 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2166 | case $ac_old_set,$ac_new_set in | |
2167 | set,) | |
2168 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2169 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2170 | ac_cache_corrupted=: ;; | |
2171 | ,set) | |
2172 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2173 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2174 | ac_cache_corrupted=: ;; | |
2175 | ,);; | |
2176 | *) | |
2177 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2178 | # differences in whitespace do not lead to failure. | |
2179 | ac_old_val_w=`echo x $ac_old_val` | |
2180 | ac_new_val_w=`echo x $ac_new_val` | |
2181 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2182 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2183 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2184 | ac_cache_corrupted=: | |
2185 | else | |
2186 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2187 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2188 | eval $ac_var=\$ac_old_val | |
2189 | fi | |
2190 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2191 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2192 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2193 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2194 | fi;; | |
2195 | esac | |
2196 | # Pass precious variables to config.status. | |
2197 | if test "$ac_new_set" = set; then | |
2198 | case $ac_new_val in | |
2199 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2200 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2201 | esac | |
2202 | case " $ac_configure_args " in | |
2203 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2204 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2205 | esac | |
2206 | fi | |
2207 | done | |
2208 | if $ac_cache_corrupted; then | |
2209 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2210 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2211 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2212 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2213 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2214 | fi | |
2215 | ## -------------------- ## | |
2216 | ## Main body of script. ## | |
2217 | ## -------------------- ## | |
2218 | ||
2219 | ac_ext=c | |
2220 | ac_cpp='$CPP $CPPFLAGS' | |
2221 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2222 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2223 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2224 | ||
2225 | ||
2226 | ||
2227 | ||
2228 | ||
2229 | ||
2230 | ac_config_headers="$ac_config_headers config.h" | |
2231 | ||
2232 | ||
2233 | ac_aux_dir= | |
2234 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2235 | for ac_t in install-sh install.sh shtool; do | |
2236 | if test -f "$ac_dir/$ac_t"; then | |
2237 | ac_aux_dir=$ac_dir | |
2238 | ac_install_sh="$ac_aux_dir/$ac_t -c" | |
2239 | break 2 | |
2240 | fi | |
2241 | done | |
2242 | done | |
2243 | if test -z "$ac_aux_dir"; then | |
2244 | as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2245 | fi | |
2246 | ||
2247 | # These three variables are undocumented and unsupported, | |
2248 | # and are intended to be withdrawn in a future Autoconf release. | |
2249 | # They can cause serious problems if a builder's source tree is in a directory | |
2250 | # whose full name contains unusual characters. | |
2251 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2252 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2253 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2254 | ||
2255 | ||
2256 | # Make sure we can run config.sub. | |
2257 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2258 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
2259 | ||
2260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
2261 | $as_echo_n "checking build system type... " >&6; } | |
2262 | if test "${ac_cv_build+set}" = set; then : | |
2263 | $as_echo_n "(cached) " >&6 | |
2264 | else | |
2265 | ac_build_alias=$build_alias | |
2266 | test "x$ac_build_alias" = x && | |
2267 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2268 | test "x$ac_build_alias" = x && | |
2269 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 | |
2270 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2271 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
2272 | ||
2273 | fi | |
2274 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
2275 | $as_echo "$ac_cv_build" >&6; } | |
2276 | case $ac_cv_build in | |
2277 | *-*-*) ;; | |
2278 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; | |
2279 | esac | |
2280 | build=$ac_cv_build | |
2281 | ac_save_IFS=$IFS; IFS='-' | |
2282 | set x $ac_cv_build | |
2283 | shift | |
2284 | build_cpu=$1 | |
2285 | build_vendor=$2 | |
2286 | shift; shift | |
2287 | # Remember, the first character of IFS is used to create $*, | |
2288 | # except with old shells: | |
2289 | build_os=$* | |
2290 | IFS=$ac_save_IFS | |
2291 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2292 | ||
2293 | ||
2294 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
2295 | $as_echo_n "checking host system type... " >&6; } | |
2296 | if test "${ac_cv_host+set}" = set; then : | |
2297 | $as_echo_n "(cached) " >&6 | |
2298 | else | |
2299 | if test "x$host_alias" = x; then | |
2300 | ac_cv_host=$ac_cv_build | |
2301 | else | |
2302 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2303 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
2304 | fi | |
2305 | ||
2306 | fi | |
2307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
2308 | $as_echo "$ac_cv_host" >&6; } | |
2309 | case $ac_cv_host in | |
2310 | *-*-*) ;; | |
2311 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; | |
2312 | esac | |
2313 | host=$ac_cv_host | |
2314 | ac_save_IFS=$IFS; IFS='-' | |
2315 | set x $ac_cv_host | |
2316 | shift | |
2317 | host_cpu=$1 | |
2318 | host_vendor=$2 | |
2319 | shift; shift | |
2320 | # Remember, the first character of IFS is used to create $*, | |
2321 | # except with old shells: | |
2322 | host_os=$* | |
2323 | IFS=$ac_save_IFS | |
2324 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2325 | ||
2326 | ||
2327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 | |
2328 | $as_echo_n "checking target system type... " >&6; } | |
2329 | if test "${ac_cv_target+set}" = set; then : | |
2330 | $as_echo_n "(cached) " >&6 | |
2331 | else | |
2332 | if test "x$target_alias" = x; then | |
2333 | ac_cv_target=$ac_cv_host | |
2334 | else | |
2335 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2336 | as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 | |
2337 | fi | |
2338 | ||
2339 | fi | |
2340 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 | |
2341 | $as_echo "$ac_cv_target" >&6; } | |
2342 | case $ac_cv_target in | |
2343 | *-*-*) ;; | |
2344 | *) as_fn_error "invalid value of canonical target" "$LINENO" 5;; | |
2345 | esac | |
2346 | target=$ac_cv_target | |
2347 | ac_save_IFS=$IFS; IFS='-' | |
2348 | set x $ac_cv_target | |
2349 | shift | |
2350 | target_cpu=$1 | |
2351 | target_vendor=$2 | |
2352 | shift; shift | |
2353 | # Remember, the first character of IFS is used to create $*, | |
2354 | # except with old shells: | |
2355 | target_os=$* | |
2356 | IFS=$ac_save_IFS | |
2357 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2358 | ||
2359 | ||
2360 | # The aliases save the names the user supplied, while $host etc. | |
2361 | # will get canonicalized. | |
2362 | test -n "$target_alias" && | |
2363 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2364 | NONENONEs,x,x, && | |
2365 | program_prefix=${target_alias}- | |
2366 | ||
2367 | target_alias=${target_alias-$host_alias} | |
2368 | ||
d4c059d5 ILT |
2369 | ac_ext=c |
2370 | ac_cpp='$CPP $CPPFLAGS' | |
2371 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2372 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2373 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2374 | if test -n "$ac_tool_prefix"; then | |
2375 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2376 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2377 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2378 | $as_echo_n "checking for $ac_word... " >&6; } | |
2379 | if test "${ac_cv_prog_CC+set}" = set; then : | |
2380 | $as_echo_n "(cached) " >&6 | |
2381 | else | |
2382 | if test -n "$CC"; then | |
2383 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2384 | else | |
2385 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2386 | for as_dir in $PATH | |
2387 | do | |
2388 | IFS=$as_save_IFS | |
2389 | test -z "$as_dir" && as_dir=. | |
2390 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2391 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2392 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2393 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2394 | break 2 | |
2395 | fi | |
2396 | done | |
2397 | done | |
2398 | IFS=$as_save_IFS | |
eff02e4f | 2399 | |
d4c059d5 ILT |
2400 | fi |
2401 | fi | |
2402 | CC=$ac_cv_prog_CC | |
2403 | if test -n "$CC"; then | |
2404 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2405 | $as_echo "$CC" >&6; } | |
2406 | else | |
2407 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2408 | $as_echo "no" >&6; } | |
2409 | fi | |
eff02e4f | 2410 | |
eff02e4f | 2411 | |
d4c059d5 ILT |
2412 | fi |
2413 | if test -z "$ac_cv_prog_CC"; then | |
2414 | ac_ct_CC=$CC | |
2415 | # Extract the first word of "gcc", so it can be a program name with args. | |
2416 | set dummy gcc; ac_word=$2 | |
2417 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2418 | $as_echo_n "checking for $ac_word... " >&6; } | |
2419 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
eff02e4f ILT |
2420 | $as_echo_n "(cached) " >&6 |
2421 | else | |
d4c059d5 ILT |
2422 | if test -n "$ac_ct_CC"; then |
2423 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2424 | else | |
2425 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
eff02e4f ILT |
2426 | for as_dir in $PATH |
2427 | do | |
2428 | IFS=$as_save_IFS | |
2429 | test -z "$as_dir" && as_dir=. | |
d4c059d5 ILT |
2430 | for ac_exec_ext in '' $ac_executable_extensions; do |
2431 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2432 | ac_cv_prog_ac_ct_CC="gcc" | |
2433 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2434 | break 2 | |
2435 | fi | |
2436 | done | |
eff02e4f ILT |
2437 | done |
2438 | IFS=$as_save_IFS | |
2439 | ||
eff02e4f | 2440 | fi |
d4c059d5 ILT |
2441 | fi |
2442 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2443 | if test -n "$ac_ct_CC"; then | |
2444 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2445 | $as_echo "$ac_ct_CC" >&6; } | |
2446 | else | |
2447 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2448 | $as_echo "no" >&6; } | |
2449 | fi | |
2450 | ||
2451 | if test "x$ac_ct_CC" = x; then | |
2452 | CC="" | |
eff02e4f | 2453 | else |
d4c059d5 ILT |
2454 | case $cross_compiling:$ac_tool_warned in |
2455 | yes:) | |
2456 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2457 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2458 | ac_tool_warned=yes ;; | |
2459 | esac | |
2460 | CC=$ac_ct_CC | |
eff02e4f | 2461 | fi |
d4c059d5 ILT |
2462 | else |
2463 | CC="$ac_cv_prog_CC" | |
eff02e4f | 2464 | fi |
eff02e4f | 2465 | |
d4c059d5 ILT |
2466 | if test -z "$CC"; then |
2467 | if test -n "$ac_tool_prefix"; then | |
2468 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2469 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
eff02e4f ILT |
2470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2471 | $as_echo_n "checking for $ac_word... " >&6; } | |
d4c059d5 | 2472 | if test "${ac_cv_prog_CC+set}" = set; then : |
eff02e4f ILT |
2473 | $as_echo_n "(cached) " >&6 |
2474 | else | |
d4c059d5 ILT |
2475 | if test -n "$CC"; then |
2476 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
eff02e4f ILT |
2477 | else |
2478 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2479 | for as_dir in $PATH | |
2480 | do | |
2481 | IFS=$as_save_IFS | |
2482 | test -z "$as_dir" && as_dir=. | |
2483 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2484 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d4c059d5 | 2485 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
eff02e4f ILT |
2486 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2487 | break 2 | |
2488 | fi | |
2489 | done | |
2490 | done | |
2491 | IFS=$as_save_IFS | |
2492 | ||
2493 | fi | |
2494 | fi | |
d4c059d5 ILT |
2495 | CC=$ac_cv_prog_CC |
2496 | if test -n "$CC"; then | |
2497 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2498 | $as_echo "$CC" >&6; } | |
eff02e4f ILT |
2499 | else |
2500 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2501 | $as_echo "no" >&6; } | |
2502 | fi | |
2503 | ||
2504 | ||
d4c059d5 | 2505 | fi |
eff02e4f | 2506 | fi |
d4c059d5 ILT |
2507 | if test -z "$CC"; then |
2508 | # Extract the first word of "cc", so it can be a program name with args. | |
2509 | set dummy cc; ac_word=$2 | |
eff02e4f ILT |
2510 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
2511 | $as_echo_n "checking for $ac_word... " >&6; } | |
d4c059d5 | 2512 | if test "${ac_cv_prog_CC+set}" = set; then : |
eff02e4f ILT |
2513 | $as_echo_n "(cached) " >&6 |
2514 | else | |
d4c059d5 ILT |
2515 | if test -n "$CC"; then |
2516 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
eff02e4f | 2517 | else |
d4c059d5 | 2518 | ac_prog_rejected=no |
eff02e4f ILT |
2519 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2520 | for as_dir in $PATH | |
2521 | do | |
2522 | IFS=$as_save_IFS | |
2523 | test -z "$as_dir" && as_dir=. | |
2524 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2525 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d4c059d5 ILT |
2526 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2527 | ac_prog_rejected=yes | |
2528 | continue | |
2529 | fi | |
2530 | ac_cv_prog_CC="cc" | |
eff02e4f ILT |
2531 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2532 | break 2 | |
2533 | fi | |
2534 | done | |
2535 | done | |
2536 | IFS=$as_save_IFS | |
2537 | ||
d4c059d5 ILT |
2538 | if test $ac_prog_rejected = yes; then |
2539 | # We found a bogon in the path, so make sure we never use it. | |
2540 | set dummy $ac_cv_prog_CC | |
2541 | shift | |
2542 | if test $# != 0; then | |
2543 | # We chose a different compiler from the bogus one. | |
2544 | # However, it has the same basename, so the bogon will be chosen | |
2545 | # first if we set CC to just the basename; use the full file name. | |
2546 | shift | |
2547 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2548 | fi | |
eff02e4f ILT |
2549 | fi |
2550 | fi | |
d4c059d5 ILT |
2551 | fi |
2552 | CC=$ac_cv_prog_CC | |
2553 | if test -n "$CC"; then | |
2554 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2555 | $as_echo "$CC" >&6; } | |
eff02e4f ILT |
2556 | else |
2557 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2558 | $as_echo "no" >&6; } | |
2559 | fi | |
2560 | ||
eff02e4f ILT |
2561 | |
2562 | fi | |
d4c059d5 ILT |
2563 | if test -z "$CC"; then |
2564 | if test -n "$ac_tool_prefix"; then | |
2565 | for ac_prog in cl.exe | |
2566 | do | |
2567 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2568 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2569 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2570 | $as_echo_n "checking for $ac_word... " >&6; } | |
2571 | if test "${ac_cv_prog_CC+set}" = set; then : | |
eff02e4f ILT |
2572 | $as_echo_n "(cached) " >&6 |
2573 | else | |
d4c059d5 ILT |
2574 | if test -n "$CC"; then |
2575 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2576 | else | |
2577 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2578 | for as_dir in $PATH | |
eff02e4f ILT |
2579 | do |
2580 | IFS=$as_save_IFS | |
2581 | test -z "$as_dir" && as_dir=. | |
d4c059d5 ILT |
2582 | for ac_exec_ext in '' $ac_executable_extensions; do |
2583 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2584 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2585 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2586 | break 2 | |
2587 | fi | |
2588 | done | |
eff02e4f ILT |
2589 | done |
2590 | IFS=$as_save_IFS | |
2591 | ||
2592 | fi | |
eff02e4f | 2593 | fi |
d4c059d5 ILT |
2594 | CC=$ac_cv_prog_CC |
2595 | if test -n "$CC"; then | |
2596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2597 | $as_echo "$CC" >&6; } | |
2598 | else | |
2599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2600 | $as_echo "no" >&6; } | |
2601 | fi | |
eff02e4f | 2602 | |
eff02e4f | 2603 | |
d4c059d5 ILT |
2604 | test -n "$CC" && break |
2605 | done | |
2606 | fi | |
2607 | if test -z "$CC"; then | |
2608 | ac_ct_CC=$CC | |
2609 | for ac_prog in cl.exe | |
eff02e4f ILT |
2610 | do |
2611 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2612 | set dummy $ac_prog; ac_word=$2 | |
2613 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2614 | $as_echo_n "checking for $ac_word... " >&6; } | |
d4c059d5 | 2615 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
eff02e4f ILT |
2616 | $as_echo_n "(cached) " >&6 |
2617 | else | |
d4c059d5 ILT |
2618 | if test -n "$ac_ct_CC"; then |
2619 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
eff02e4f ILT |
2620 | else |
2621 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2622 | for as_dir in $PATH | |
2623 | do | |
2624 | IFS=$as_save_IFS | |
2625 | test -z "$as_dir" && as_dir=. | |
2626 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2627 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d4c059d5 | 2628 | ac_cv_prog_ac_ct_CC="$ac_prog" |
eff02e4f ILT |
2629 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2630 | break 2 | |
2631 | fi | |
2632 | done | |
2633 | done | |
2634 | IFS=$as_save_IFS | |
2635 | ||
2636 | fi | |
2637 | fi | |
d4c059d5 ILT |
2638 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2639 | if test -n "$ac_ct_CC"; then | |
2640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2641 | $as_echo "$ac_ct_CC" >&6; } | |
eff02e4f ILT |
2642 | else |
2643 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2644 | $as_echo "no" >&6; } | |
2645 | fi | |
2646 | ||
2647 | ||
d4c059d5 | 2648 | test -n "$ac_ct_CC" && break |
eff02e4f ILT |
2649 | done |
2650 | ||
d4c059d5 ILT |
2651 | if test "x$ac_ct_CC" = x; then |
2652 | CC="" | |
2653 | else | |
2654 | case $cross_compiling:$ac_tool_warned in | |
2655 | yes:) | |
2656 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2657 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2658 | ac_tool_warned=yes ;; | |
eff02e4f | 2659 | esac |
d4c059d5 | 2660 | CC=$ac_ct_CC |
eff02e4f ILT |
2661 | fi |
2662 | fi | |
2663 | ||
eff02e4f ILT |
2664 | fi |
2665 | ||
2666 | ||
d4c059d5 ILT |
2667 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2668 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2669 | as_fn_error "no acceptable C compiler found in \$PATH | |
2670 | See \`config.log' for more details." "$LINENO" 5; } | |
eff02e4f | 2671 | |
d4c059d5 ILT |
2672 | # Provide some information about the compiler. |
2673 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
2674 | set X $ac_compile | |
2675 | ac_compiler=$2 | |
2676 | for ac_option in --version -v -V -qversion; do | |
2677 | { { ac_try="$ac_compiler $ac_option >&5" | |
2678 | case "(($ac_try" in | |
2679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2680 | *) ac_try_echo=$ac_try;; | |
2681 | esac | |
2682 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2683 | $as_echo "$ac_try_echo"; } >&5 | |
2684 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
2685 | ac_status=$? | |
2686 | if test -s conftest.err; then | |
2687 | sed '10a\ | |
2688 | ... rest of stderr output deleted ... | |
2689 | 10q' conftest.err >conftest.er1 | |
2690 | cat conftest.er1 >&5 | |
2691 | rm -f conftest.er1 conftest.err | |
2692 | fi | |
2693 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2694 | test $ac_status = 0; } | |
2695 | done | |
eff02e4f | 2696 | |
d4c059d5 ILT |
2697 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2698 | /* end confdefs.h. */ | |
eff02e4f | 2699 | |
d4c059d5 ILT |
2700 | int |
2701 | main () | |
2702 | { | |
eff02e4f | 2703 | |
d4c059d5 ILT |
2704 | ; |
2705 | return 0; | |
2706 | } | |
2707 | _ACEOF | |
2708 | ac_clean_files_save=$ac_clean_files | |
2709 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" | |
2710 | # Try to create an executable without -o first, disregard a.out. | |
2711 | # It will help us diagnose broken compilers, and finding out an intuition | |
2712 | # of exeext. | |
2713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
2714 | $as_echo_n "checking for C compiler default output file name... " >&6; } | |
2715 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
eff02e4f | 2716 | |
d4c059d5 ILT |
2717 | # The possible output files: |
2718 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
eff02e4f | 2719 | |
d4c059d5 ILT |
2720 | ac_rmfiles= |
2721 | for ac_file in $ac_files | |
2722 | do | |
2723 | case $ac_file in | |
2724 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2725 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
2726 | esac | |
2727 | done | |
2728 | rm -f $ac_rmfiles | |
eff02e4f | 2729 | |
d4c059d5 ILT |
2730 | if { { ac_try="$ac_link_default" |
2731 | case "(($ac_try" in | |
2732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2733 | *) ac_try_echo=$ac_try;; | |
2734 | esac | |
2735 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2736 | $as_echo "$ac_try_echo"; } >&5 | |
2737 | (eval "$ac_link_default") 2>&5 | |
2738 | ac_status=$? | |
2739 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2740 | test $ac_status = 0; }; then : | |
2741 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
2742 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
2743 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
2744 | # so that the user can short-circuit this test for compilers unknown to | |
2745 | # Autoconf. | |
2746 | for ac_file in $ac_files '' | |
2747 | do | |
2748 | test -f "$ac_file" || continue | |
2749 | case $ac_file in | |
2750 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
2751 | ;; | |
2752 | [ab].out ) | |
2753 | # We found the default executable, but exeext='' is most | |
2754 | # certainly right. | |
2755 | break;; | |
2756 | *.* ) | |
2757 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
2758 | then :; else | |
2759 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2760 | fi | |
2761 | # We set ac_cv_exeext here because the later test for it is not | |
2762 | # safe: cross compilers may not add the suffix if given an `-o' | |
2763 | # argument, so we may need to know it at that point already. | |
2764 | # Even if this section looks crufty: it has the advantage of | |
2765 | # actually working. | |
2766 | break;; | |
2767 | * ) | |
2768 | break;; | |
2769 | esac | |
2770 | done | |
2771 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
eff02e4f | 2772 | |
eff02e4f | 2773 | else |
d4c059d5 | 2774 | ac_file='' |
eff02e4f | 2775 | fi |
d4c059d5 ILT |
2776 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
2777 | $as_echo "$ac_file" >&6; } | |
2778 | if test -z "$ac_file"; then : | |
2779 | $as_echo "$as_me: failed program was:" >&5 | |
2780 | sed 's/^/| /' conftest.$ac_ext >&5 | |
eff02e4f | 2781 | |
d4c059d5 ILT |
2782 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2783 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2784 | { as_fn_set_status 77 | |
2785 | as_fn_error "C compiler cannot create executables | |
2786 | See \`config.log' for more details." "$LINENO" 5; }; } | |
eff02e4f | 2787 | fi |
d4c059d5 | 2788 | ac_exeext=$ac_cv_exeext |
eff02e4f | 2789 | |
d4c059d5 ILT |
2790 | # Check that the compiler produces executables we can run. If not, either |
2791 | # the compiler is broken, or we cross compile. | |
2792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
2793 | $as_echo_n "checking whether the C compiler works... " >&6; } | |
2794 | # If not cross compiling, check that we can run a simple program. | |
2795 | if test "$cross_compiling" != yes; then | |
2796 | if { ac_try='./$ac_file' | |
2797 | { { case "(($ac_try" in | |
2798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2799 | *) ac_try_echo=$ac_try;; | |
2800 | esac | |
2801 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2802 | $as_echo "$ac_try_echo"; } >&5 | |
2803 | (eval "$ac_try") 2>&5 | |
2804 | ac_status=$? | |
2805 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2806 | test $ac_status = 0; }; }; then | |
2807 | cross_compiling=no | |
2808 | else | |
2809 | if test "$cross_compiling" = maybe; then | |
2810 | cross_compiling=yes | |
2811 | else | |
2812 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2813 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2814 | as_fn_error "cannot run C compiled programs. | |
2815 | If you meant to cross compile, use \`--host'. | |
2816 | See \`config.log' for more details." "$LINENO" 5; } | |
2817 | fi | |
2818 | fi | |
eff02e4f | 2819 | fi |
d4c059d5 ILT |
2820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
2821 | $as_echo "yes" >&6; } | |
eff02e4f | 2822 | |
d4c059d5 ILT |
2823 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out |
2824 | ac_clean_files=$ac_clean_files_save | |
2825 | # Check that the compiler produces executables we can run. If not, either | |
2826 | # the compiler is broken, or we cross compile. | |
2827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
2828 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
2829 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
2830 | $as_echo "$cross_compiling" >&6; } | |
eff02e4f | 2831 | |
d4c059d5 ILT |
2832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
2833 | $as_echo_n "checking for suffix of executables... " >&6; } | |
2834 | if { { ac_try="$ac_link" | |
2835 | case "(($ac_try" in | |
2836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2837 | *) ac_try_echo=$ac_try;; | |
2838 | esac | |
2839 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
2840 | $as_echo "$ac_try_echo"; } >&5 | |
2841 | (eval "$ac_link") 2>&5 | |
2842 | ac_status=$? | |
2843 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2844 | test $ac_status = 0; }; then : | |
2845 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2846 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2847 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2848 | # `rm'. | |
2849 | for ac_file in conftest.exe conftest conftest.*; do | |
2850 | test -f "$ac_file" || continue | |
2851 | case $ac_file in | |
2852 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
2853 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2854 | break;; | |
2855 | * ) break;; | |
2856 | esac | |
2857 | done | |
eff02e4f | 2858 | else |
d4c059d5 ILT |
2859 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2860 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2861 | as_fn_error "cannot compute suffix of executables: cannot compile and link | |
2862 | See \`config.log' for more details." "$LINENO" 5; } | |
eff02e4f | 2863 | fi |
d4c059d5 ILT |
2864 | rm -f conftest$ac_cv_exeext |
2865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
2866 | $as_echo "$ac_cv_exeext" >&6; } | |
eff02e4f | 2867 | |
d4c059d5 ILT |
2868 | rm -f conftest.$ac_ext |
2869 | EXEEXT=$ac_cv_exeext | |
2870 | ac_exeext=$EXEEXT | |
2871 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
2872 | $as_echo_n "checking for suffix of object files... " >&6; } | |
2873 | if test "${ac_cv_objext+set}" = set; then : | |
eff02e4f ILT |
2874 | $as_echo_n "(cached) " >&6 |
2875 | else | |
d4c059d5 ILT |
2876 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2877 | /* end confdefs.h. */ | |
eff02e4f | 2878 | |
d4c059d5 ILT |
2879 | int |
2880 | main () | |
2881 | { | |
eff02e4f | 2882 | |
d4c059d5 ILT |
2883 | ; |
2884 | return 0; | |
2885 | } | |
2886 | _ACEOF | |
2887 | rm -f conftest.o conftest.obj | |
2888 | if { { ac_try="$ac_compile" | |
2889 | case "(($ac_try" in | |
2890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
2891 | *) ac_try_echo=$ac_try;; | |
eff02e4f | 2892 | esac |
d4c059d5 ILT |
2893 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
2894 | $as_echo "$ac_try_echo"; } >&5 | |
2895 | (eval "$ac_compile") 2>&5 | |
2896 | ac_status=$? | |
2897 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2898 | test $ac_status = 0; }; then : | |
2899 | for ac_file in conftest.o conftest.obj conftest.*; do | |
2900 | test -f "$ac_file" || continue; | |
2901 | case $ac_file in | |
2902 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
2903 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2904 | break;; | |
2905 | esac | |
2906 | done | |
eff02e4f | 2907 | else |
d4c059d5 ILT |
2908 | $as_echo "$as_me: failed program was:" >&5 |
2909 | sed 's/^/| /' conftest.$ac_ext >&5 | |
eff02e4f | 2910 | |
d4c059d5 ILT |
2911 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
2912 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2913 | as_fn_error "cannot compute suffix of object files: cannot compile | |
2914 | See \`config.log' for more details." "$LINENO" 5; } | |
2915 | fi | |
2916 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2917 | fi | |
2918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
2919 | $as_echo "$ac_cv_objext" >&6; } | |
2920 | OBJEXT=$ac_cv_objext | |
2921 | ac_objext=$OBJEXT | |
2922 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
2923 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
2924 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
eff02e4f ILT |
2925 | $as_echo_n "(cached) " >&6 |
2926 | else | |
d4c059d5 ILT |
2927 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
2928 | /* end confdefs.h. */ | |
eff02e4f | 2929 | |
d4c059d5 ILT |
2930 | int |
2931 | main () | |
2932 | { | |
2933 | #ifndef __GNUC__ | |
2934 | choke me | |
2935 | #endif | |
2936 | ||
2937 | ; | |
2938 | return 0; | |
2939 | } | |
2940 | _ACEOF | |
2941 | if ac_fn_c_try_compile "$LINENO"; then : | |
2942 | ac_compiler_gnu=yes | |
eff02e4f | 2943 | else |
d4c059d5 | 2944 | ac_compiler_gnu=no |
eff02e4f | 2945 | fi |
d4c059d5 ILT |
2946 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
2947 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
eff02e4f | 2948 | |
eff02e4f | 2949 | fi |
d4c059d5 ILT |
2950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
2951 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
2952 | if test $ac_compiler_gnu = yes; then | |
2953 | GCC=yes | |
eff02e4f | 2954 | else |
d4c059d5 ILT |
2955 | GCC= |
2956 | fi | |
2957 | ac_test_CFLAGS=${CFLAGS+set} | |
2958 | ac_save_CFLAGS=$CFLAGS | |
2959 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
2960 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
2961 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
2962 | $as_echo_n "(cached) " >&6 | |
eff02e4f | 2963 | else |
d4c059d5 ILT |
2964 | ac_save_c_werror_flag=$ac_c_werror_flag |
2965 | ac_c_werror_flag=yes | |
2966 | ac_cv_prog_cc_g=no | |
2967 | CFLAGS="-g" | |
2968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2969 | /* end confdefs.h. */ | |
eff02e4f | 2970 | |
d4c059d5 ILT |
2971 | int |
2972 | main () | |
2973 | { | |
2974 | ||
2975 | ; | |
2976 | return 0; | |
2977 | } | |
2978 | _ACEOF | |
2979 | if ac_fn_c_try_compile "$LINENO"; then : | |
2980 | ac_cv_prog_cc_g=yes | |
eff02e4f | 2981 | else |
d4c059d5 ILT |
2982 | CFLAGS="" |
2983 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2984 | /* end confdefs.h. */ | |
eff02e4f | 2985 | |
d4c059d5 ILT |
2986 | int |
2987 | main () | |
2988 | { | |
2989 | ||
2990 | ; | |
2991 | return 0; | |
2992 | } | |
2993 | _ACEOF | |
2994 | if ac_fn_c_try_compile "$LINENO"; then : | |
eff02e4f | 2995 | |
eff02e4f | 2996 | else |
d4c059d5 ILT |
2997 | ac_c_werror_flag=$ac_save_c_werror_flag |
2998 | CFLAGS="-g" | |
2999 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3000 | /* end confdefs.h. */ | |
3001 | ||
3002 | int | |
3003 | main () | |
3004 | { | |
eff02e4f | 3005 | |
d4c059d5 ILT |
3006 | ; |
3007 | return 0; | |
3008 | } | |
3009 | _ACEOF | |
3010 | if ac_fn_c_try_compile "$LINENO"; then : | |
3011 | ac_cv_prog_cc_g=yes | |
eff02e4f | 3012 | fi |
d4c059d5 | 3013 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
eff02e4f | 3014 | fi |
d4c059d5 | 3015 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
eff02e4f | 3016 | fi |
d4c059d5 ILT |
3017 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3018 | ac_c_werror_flag=$ac_save_c_werror_flag | |
eff02e4f | 3019 | fi |
d4c059d5 ILT |
3020 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
3021 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3022 | if test "$ac_test_CFLAGS" = set; then | |
3023 | CFLAGS=$ac_save_CFLAGS | |
3024 | elif test $ac_cv_prog_cc_g = yes; then | |
3025 | if test "$GCC" = yes; then | |
3026 | CFLAGS="-g -O2" | |
3027 | else | |
3028 | CFLAGS="-g" | |
3029 | fi | |
eff02e4f | 3030 | else |
d4c059d5 ILT |
3031 | if test "$GCC" = yes; then |
3032 | CFLAGS="-O2" | |
3033 | else | |
3034 | CFLAGS= | |
eff02e4f | 3035 | fi |
eff02e4f | 3036 | fi |
d4c059d5 ILT |
3037 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
3038 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3039 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
3040 | $as_echo_n "(cached) " >&6 | |
eff02e4f | 3041 | else |
d4c059d5 ILT |
3042 | ac_cv_prog_cc_c89=no |
3043 | ac_save_CC=$CC | |
3044 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3045 | /* end confdefs.h. */ | |
3046 | #include <stdarg.h> | |
3047 | #include <stdio.h> | |
3048 | #include <sys/types.h> | |
3049 | #include <sys/stat.h> | |
3050 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3051 | struct buf { int x; }; | |
3052 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3053 | static char *e (p, i) | |
3054 | char **p; | |
3055 | int i; | |
3056 | { | |
3057 | return p[i]; | |
3058 | } | |
3059 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3060 | { | |
3061 | char *s; | |
3062 | va_list v; | |
3063 | va_start (v,p); | |
3064 | s = g (p, va_arg (v,int)); | |
3065 | va_end (v); | |
3066 | return s; | |
3067 | } | |
eff02e4f | 3068 | |
d4c059d5 ILT |
3069 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3070 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3071 | These don't provoke an error unfortunately, instead are silently treated | |
3072 | as 'x'. The following induces an error, until -std is added to get | |
3073 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3074 | array size at least. It's necessary to write '\x00'==0 to get something | |
3075 | that's true only with -std. */ | |
3076 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
eff02e4f | 3077 | |
d4c059d5 ILT |
3078 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3079 | inside strings and character constants. */ | |
3080 | #define FOO(x) 'x' | |
3081 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
eff02e4f | 3082 | |
d4c059d5 ILT |
3083 | int test (int i, double x); |
3084 | struct s1 {int (*f) (int a);}; | |
3085 | struct s2 {int (*f) (double a);}; | |
3086 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3087 | int argc; | |
3088 | char **argv; | |
3089 | int | |
3090 | main () | |
3091 | { | |
3092 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3093 | ; | |
3094 | return 0; | |
3095 | } | |
3096 | _ACEOF | |
3097 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3098 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3099 | do | |
3100 | CC="$ac_save_CC $ac_arg" | |
3101 | if ac_fn_c_try_compile "$LINENO"; then : | |
3102 | ac_cv_prog_cc_c89=$ac_arg | |
eff02e4f | 3103 | fi |
d4c059d5 ILT |
3104 | rm -f core conftest.err conftest.$ac_objext |
3105 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3106 | done | |
3107 | rm -f conftest.$ac_ext | |
3108 | CC=$ac_save_CC | |
eff02e4f ILT |
3109 | |
3110 | fi | |
d4c059d5 ILT |
3111 | # AC_CACHE_VAL |
3112 | case "x$ac_cv_prog_cc_c89" in | |
3113 | x) | |
3114 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3115 | $as_echo "none needed" >&6; } ;; | |
3116 | xno) | |
3117 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3118 | $as_echo "unsupported" >&6; } ;; | |
3119 | *) | |
3120 | CC="$CC $ac_cv_prog_cc_c89" | |
3121 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3122 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
eff02e4f | 3123 | esac |
d4c059d5 | 3124 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
eff02e4f | 3125 | |
d4c059d5 | 3126 | fi |
eff02e4f | 3127 | |
d4c059d5 ILT |
3128 | ac_ext=c |
3129 | ac_cpp='$CPP $CPPFLAGS' | |
3130 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3131 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3132 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
eff02e4f | 3133 | |
d4c059d5 ILT |
3134 | |
3135 | ac_ext=c | |
3136 | ac_cpp='$CPP $CPPFLAGS' | |
3137 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3138 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3139 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
3141 | $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
3142 | # On Suns, sometimes $CPP names a directory. | |
3143 | if test -n "$CPP" && test -d "$CPP"; then | |
3144 | CPP= | |
3145 | fi | |
3146 | if test -z "$CPP"; then | |
3147 | if test "${ac_cv_prog_CPP+set}" = set; then : | |
3148 | $as_echo_n "(cached) " >&6 | |
3149 | else | |
3150 | # Double quotes because CPP needs to be expanded | |
3151 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3152 | do | |
3153 | ac_preproc_ok=false | |
3154 | for ac_c_preproc_warn_flag in '' yes | |
3155 | do | |
3156 | # Use a header file that comes with gcc, so configuring glibc | |
3157 | # with a fresh cross-compiler works. | |
3158 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3159 | # <limits.h> exists even on freestanding compilers. | |
3160 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3161 | # not just through cpp. "Syntax error" is here to catch this case. | |
3162 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3163 | /* end confdefs.h. */ | |
3164 | #ifdef __STDC__ | |
3165 | # include <limits.h> | |
3166 | #else | |
3167 | # include <assert.h> | |
3168 | #endif | |
3169 | Syntax error | |
eff02e4f | 3170 | _ACEOF |
d4c059d5 | 3171 | if ac_fn_c_try_cpp "$LINENO"; then : |
eff02e4f | 3172 | |
d4c059d5 ILT |
3173 | else |
3174 | # Broken: fails on valid input. | |
3175 | continue | |
3176 | fi | |
3177 | rm -f conftest.err conftest.$ac_ext | |
3178 | ||
3179 | # OK, works on sane cases. Now check whether nonexistent headers | |
3180 | # can be detected and how. | |
3181 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3182 | /* end confdefs.h. */ | |
3183 | #include <ac_nonexistent.h> | |
3184 | _ACEOF | |
3185 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3186 | # Broken: success on invalid input. | |
3187 | continue | |
3188 | else | |
3189 | # Passes both tests. | |
3190 | ac_preproc_ok=: | |
3191 | break | |
3192 | fi | |
3193 | rm -f conftest.err conftest.$ac_ext | |
eff02e4f | 3194 | |
eff02e4f | 3195 | done |
d4c059d5 ILT |
3196 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
3197 | rm -f conftest.err conftest.$ac_ext | |
3198 | if $ac_preproc_ok; then : | |
3199 | break | |
3200 | fi | |
eff02e4f | 3201 | |
d4c059d5 ILT |
3202 | done |
3203 | ac_cv_prog_CPP=$CPP | |
3204 | ||
3205 | fi | |
3206 | CPP=$ac_cv_prog_CPP | |
3207 | else | |
3208 | ac_cv_prog_CPP=$CPP | |
3209 | fi | |
3210 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
3211 | $as_echo "$CPP" >&6; } | |
3212 | ac_preproc_ok=false | |
3213 | for ac_c_preproc_warn_flag in '' yes | |
eff02e4f | 3214 | do |
d4c059d5 ILT |
3215 | # Use a header file that comes with gcc, so configuring glibc |
3216 | # with a fresh cross-compiler works. | |
3217 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3218 | # <limits.h> exists even on freestanding compilers. | |
3219 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3220 | # not just through cpp. "Syntax error" is here to catch this case. | |
3221 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3222 | /* end confdefs.h. */ | |
3223 | #ifdef __STDC__ | |
3224 | # include <limits.h> | |
3225 | #else | |
3226 | # include <assert.h> | |
3227 | #endif | |
3228 | Syntax error | |
3229 | _ACEOF | |
3230 | if ac_fn_c_try_cpp "$LINENO"; then : | |
eff02e4f ILT |
3231 | |
3232 | else | |
d4c059d5 ILT |
3233 | # Broken: fails on valid input. |
3234 | continue | |
eff02e4f | 3235 | fi |
d4c059d5 | 3236 | rm -f conftest.err conftest.$ac_ext |
eff02e4f | 3237 | |
d4c059d5 ILT |
3238 | # OK, works on sane cases. Now check whether nonexistent headers |
3239 | # can be detected and how. | |
3240 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3241 | /* end confdefs.h. */ | |
3242 | #include <ac_nonexistent.h> | |
3243 | _ACEOF | |
3244 | if ac_fn_c_try_cpp "$LINENO"; then : | |
3245 | # Broken: success on invalid input. | |
3246 | continue | |
3247 | else | |
3248 | # Passes both tests. | |
3249 | ac_preproc_ok=: | |
3250 | break | |
3251 | fi | |
3252 | rm -f conftest.err conftest.$ac_ext | |
3253 | ||
3254 | done | |
3255 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3256 | rm -f conftest.err conftest.$ac_ext | |
3257 | if $ac_preproc_ok; then : | |
3258 | ||
3259 | else | |
3260 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
eff02e4f | 3261 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
d4c059d5 ILT |
3262 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
3263 | See \`config.log' for more details." "$LINENO" 5; } | |
eff02e4f | 3264 | fi |
eff02e4f | 3265 | |
d4c059d5 ILT |
3266 | ac_ext=c |
3267 | ac_cpp='$CPP $CPPFLAGS' | |
3268 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3269 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3270 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3271 | ||
3272 | ||
3273 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
3274 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
3275 | if test "${ac_cv_path_GREP+set}" = set; then : | |
3276 | $as_echo_n "(cached) " >&6 | |
3277 | else | |
3278 | if test -z "$GREP"; then | |
3279 | ac_path_GREP_found=false | |
3280 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3282 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3283 | do | |
3284 | IFS=$as_save_IFS | |
3285 | test -z "$as_dir" && as_dir=. | |
3286 | for ac_prog in grep ggrep; do | |
3287 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3288 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
3289 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
3290 | # Check for GNU ac_path_GREP and select it if it is found. | |
3291 | # Check for GNU $ac_path_GREP | |
3292 | case `"$ac_path_GREP" --version 2>&1` in | |
3293 | *GNU*) | |
3294 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
3295 | *) | |
3296 | ac_count=0 | |
3297 | $as_echo_n 0123456789 >"conftest.in" | |
3298 | while : | |
3299 | do | |
3300 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3301 | mv "conftest.tmp" "conftest.in" | |
3302 | cp "conftest.in" "conftest.nl" | |
3303 | $as_echo 'GREP' >> "conftest.nl" | |
3304 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3305 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3306 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3307 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
3308 | # Best one so far, save it but keep looking for a better one | |
3309 | ac_cv_path_GREP="$ac_path_GREP" | |
3310 | ac_path_GREP_max=$ac_count | |
eff02e4f | 3311 | fi |
d4c059d5 ILT |
3312 | # 10*(2^10) chars as input seems more than enough |
3313 | test $ac_count -gt 10 && break | |
3314 | done | |
3315 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
3316 | esac | |
3317 | ||
3318 | $ac_path_GREP_found && break 3 | |
3319 | done | |
3320 | done | |
3321 | done | |
3322 | IFS=$as_save_IFS | |
3323 | if test -z "$ac_cv_path_GREP"; then | |
3324 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
eff02e4f | 3325 | fi |
d4c059d5 ILT |
3326 | else |
3327 | ac_cv_path_GREP=$GREP | |
eff02e4f | 3328 | fi |
eff02e4f | 3329 | |
d4c059d5 ILT |
3330 | fi |
3331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
3332 | $as_echo "$ac_cv_path_GREP" >&6; } | |
3333 | GREP="$ac_cv_path_GREP" | |
eff02e4f | 3334 | |
d4c059d5 ILT |
3335 | |
3336 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
3337 | $as_echo_n "checking for egrep... " >&6; } | |
3338 | if test "${ac_cv_path_EGREP+set}" = set; then : | |
3339 | $as_echo_n "(cached) " >&6 | |
3340 | else | |
3341 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
3342 | then ac_cv_path_EGREP="$GREP -E" | |
3343 | else | |
3344 | if test -z "$EGREP"; then | |
3345 | ac_path_EGREP_found=false | |
3346 | # Loop through the user's path and test for each of PROGNAME-LIST | |
3347 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3348 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
3349 | do | |
3350 | IFS=$as_save_IFS | |
3351 | test -z "$as_dir" && as_dir=. | |
3352 | for ac_prog in egrep; do | |
3353 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3354 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
3355 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
3356 | # Check for GNU ac_path_EGREP and select it if it is found. | |
3357 | # Check for GNU $ac_path_EGREP | |
3358 | case `"$ac_path_EGREP" --version 2>&1` in | |
3359 | *GNU*) | |
3360 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
3361 | *) | |
3362 | ac_count=0 | |
3363 | $as_echo_n 0123456789 >"conftest.in" | |
3364 | while : | |
3365 | do | |
3366 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
3367 | mv "conftest.tmp" "conftest.in" | |
3368 | cp "conftest.in" "conftest.nl" | |
3369 | $as_echo 'EGREP' >> "conftest.nl" | |
3370 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
3371 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
3372 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
3373 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
3374 | # Best one so far, save it but keep looking for a better one | |
3375 | ac_cv_path_EGREP="$ac_path_EGREP" | |
3376 | ac_path_EGREP_max=$ac_count | |
3377 | fi | |
3378 | # 10*(2^10) chars as input seems more than enough | |
3379 | test $ac_count -gt 10 && break | |
3380 | done | |
3381 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
eff02e4f | 3382 | esac |
d4c059d5 ILT |
3383 | |
3384 | $ac_path_EGREP_found && break 3 | |
3385 | done | |
3386 | done | |
3387 | done | |
3388 | IFS=$as_save_IFS | |
3389 | if test -z "$ac_cv_path_EGREP"; then | |
3390 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
3391 | fi | |
eff02e4f | 3392 | else |
d4c059d5 ILT |
3393 | ac_cv_path_EGREP=$EGREP |
3394 | fi | |
3395 | ||
3396 | fi | |
3397 | fi | |
3398 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
3399 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
3400 | EGREP="$ac_cv_path_EGREP" | |
3401 | ||
3402 | ||
3403 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
3404 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
3405 | if test "${ac_cv_header_stdc+set}" = set; then : | |
3406 | $as_echo_n "(cached) " >&6 | |
3407 | else | |
3408 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3409 | /* end confdefs.h. */ | |
3410 | #include <stdlib.h> | |
3411 | #include <stdarg.h> | |
3412 | #include <string.h> | |
3413 | #include <float.h> | |
3414 | ||
3415 | int | |
3416 | main () | |
3417 | { | |
3418 | ||
3419 | ; | |
3420 | return 0; | |
3421 | } | |
3422 | _ACEOF | |
3423 | if ac_fn_c_try_compile "$LINENO"; then : | |
3424 | ac_cv_header_stdc=yes | |
3425 | else | |
3426 | ac_cv_header_stdc=no | |
3427 | fi | |
3428 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3429 | ||
3430 | if test $ac_cv_header_stdc = yes; then | |
3431 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3433 | /* end confdefs.h. */ | |
3434 | #include <string.h> | |
3435 | ||
3436 | _ACEOF | |
3437 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3438 | $EGREP "memchr" >/dev/null 2>&1; then : | |
3439 | ||
3440 | else | |
3441 | ac_cv_header_stdc=no | |
3442 | fi | |
3443 | rm -f conftest* | |
3444 | ||
3445 | fi | |
3446 | ||
3447 | if test $ac_cv_header_stdc = yes; then | |
3448 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3449 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3450 | /* end confdefs.h. */ | |
3451 | #include <stdlib.h> | |
3452 | ||
3453 | _ACEOF | |
3454 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3455 | $EGREP "free" >/dev/null 2>&1; then : | |
3456 | ||
3457 | else | |
3458 | ac_cv_header_stdc=no | |
3459 | fi | |
3460 | rm -f conftest* | |
3461 | ||
3462 | fi | |
3463 | ||
3464 | if test $ac_cv_header_stdc = yes; then | |
3465 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3466 | if test "$cross_compiling" = yes; then : | |
3467 | : | |
3468 | else | |
3469 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3470 | /* end confdefs.h. */ | |
3471 | #include <ctype.h> | |
3472 | #include <stdlib.h> | |
3473 | #if ((' ' & 0x0FF) == 0x020) | |
3474 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3475 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3476 | #else | |
3477 | # define ISLOWER(c) \ | |
3478 | (('a' <= (c) && (c) <= 'i') \ | |
3479 | || ('j' <= (c) && (c) <= 'r') \ | |
3480 | || ('s' <= (c) && (c) <= 'z')) | |
3481 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3482 | #endif | |
3483 | ||
3484 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3485 | int | |
3486 | main () | |
3487 | { | |
3488 | int i; | |
3489 | for (i = 0; i < 256; i++) | |
3490 | if (XOR (islower (i), ISLOWER (i)) | |
3491 | || toupper (i) != TOUPPER (i)) | |
3492 | return 2; | |
3493 | return 0; | |
3494 | } | |
3495 | _ACEOF | |
3496 | if ac_fn_c_try_run "$LINENO"; then : | |
3497 | ||
3498 | else | |
3499 | ac_cv_header_stdc=no | |
3500 | fi | |
3501 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
3502 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
3503 | fi | |
3504 | ||
3505 | fi | |
3506 | fi | |
3507 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
3508 | $as_echo "$ac_cv_header_stdc" >&6; } | |
3509 | if test $ac_cv_header_stdc = yes; then | |
3510 | ||
3511 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
3512 | ||
3513 | fi | |
3514 | ||
3515 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3516 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3517 | inttypes.h stdint.h unistd.h | |
3518 | do : | |
3519 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3520 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
3521 | " | |
3522 | eval as_val=\$$as_ac_Header | |
3523 | if test "x$as_val" = x""yes; then : | |
3524 | cat >>confdefs.h <<_ACEOF | |
3525 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3526 | _ACEOF | |
3527 | ||
3528 | fi | |
3529 | ||
3530 | done | |
3531 | ||
3532 | ||
3533 | ||
3534 | ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" | |
3535 | if test "x$ac_cv_header_minix_config_h" = x""yes; then : | |
3536 | MINIX=yes | |
3537 | else | |
3538 | MINIX= | |
3539 | fi | |
3540 | ||
3541 | ||
3542 | if test "$MINIX" = yes; then | |
3543 | ||
3544 | $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h | |
3545 | ||
3546 | ||
3547 | $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h | |
3548 | ||
3549 | ||
3550 | $as_echo "#define _MINIX 1" >>confdefs.h | |
3551 | ||
3552 | fi | |
3553 | ||
3554 | ||
3555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 | |
3556 | $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } | |
3557 | if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : | |
3558 | $as_echo_n "(cached) " >&6 | |
3559 | else | |
3560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3561 | /* end confdefs.h. */ | |
3562 | ||
3563 | # define __EXTENSIONS__ 1 | |
3564 | $ac_includes_default | |
3565 | int | |
3566 | main () | |
3567 | { | |
3568 | ||
3569 | ; | |
3570 | return 0; | |
3571 | } | |
3572 | _ACEOF | |
3573 | if ac_fn_c_try_compile "$LINENO"; then : | |
3574 | ac_cv_safe_to_define___extensions__=yes | |
3575 | else | |
3576 | ac_cv_safe_to_define___extensions__=no | |
3577 | fi | |
3578 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3579 | fi | |
3580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 | |
3581 | $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } | |
3582 | test $ac_cv_safe_to_define___extensions__ = yes && | |
3583 | $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h | |
3584 | ||
3585 | $as_echo "#define _ALL_SOURCE 1" >>confdefs.h | |
3586 | ||
3587 | $as_echo "#define _GNU_SOURCE 1" >>confdefs.h | |
3588 | ||
3589 | $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h | |
3590 | ||
3591 | $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h | |
3592 | ||
3593 | ||
3594 | ||
3595 | libtool_VERSION=1:0:0 | |
3596 | ||
3597 | ||
3598 | am__api_version='1.11' | |
3599 | ||
3600 | # Find a good install program. We prefer a C program (faster), | |
3601 | # so one script is as good as another. But avoid the broken or | |
3602 | # incompatible versions: | |
3603 | # SysV /etc/install, /usr/sbin/install | |
3604 | # SunOS /usr/etc/install | |
3605 | # IRIX /sbin/install | |
3606 | # AIX /bin/install | |
3607 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
3608 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
3609 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
3610 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
3611 | # OS/2's system install, which has a completely different semantic | |
3612 | # ./install, which can be erroneously created by make from ./install.sh. | |
3613 | # Reject install programs that cannot install multiple files. | |
3614 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
3615 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
3616 | if test -z "$INSTALL"; then | |
3617 | if test "${ac_cv_path_install+set}" = set; then : | |
3618 | $as_echo_n "(cached) " >&6 | |
3619 | else | |
3620 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3621 | for as_dir in $PATH | |
3622 | do | |
3623 | IFS=$as_save_IFS | |
3624 | test -z "$as_dir" && as_dir=. | |
3625 | # Account for people who put trailing slashes in PATH elements. | |
3626 | case $as_dir/ in #(( | |
3627 | ./ | .// | /[cC]/* | \ | |
3628 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
3629 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
3630 | /usr/ucb/* ) ;; | |
3631 | *) | |
3632 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
3633 | # Don't use installbsd from OSF since it installs stuff as root | |
3634 | # by default. | |
3635 | for ac_prog in ginstall scoinst install; do | |
3636 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3637 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
3638 | if test $ac_prog = install && | |
3639 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3640 | # AIX install. It has an incompatible calling convention. | |
3641 | : | |
3642 | elif test $ac_prog = install && | |
3643 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3644 | # program-specific install script used by HP pwplus--don't use. | |
3645 | : | |
3646 | else | |
3647 | rm -rf conftest.one conftest.two conftest.dir | |
3648 | echo one > conftest.one | |
3649 | echo two > conftest.two | |
3650 | mkdir conftest.dir | |
3651 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
3652 | test -s conftest.one && test -s conftest.two && | |
3653 | test -s conftest.dir/conftest.one && | |
3654 | test -s conftest.dir/conftest.two | |
3655 | then | |
3656 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3657 | break 3 | |
3658 | fi | |
3659 | fi | |
3660 | fi | |
3661 | done | |
3662 | done | |
3663 | ;; | |
3664 | esac | |
3665 | ||
3666 | done | |
3667 | IFS=$as_save_IFS | |
3668 | ||
3669 | rm -rf conftest.one conftest.two conftest.dir | |
3670 | ||
3671 | fi | |
3672 | if test "${ac_cv_path_install+set}" = set; then | |
3673 | INSTALL=$ac_cv_path_install | |
3674 | else | |
3675 | # As a last resort, use the slow shell script. Don't cache a | |
3676 | # value for INSTALL within a source directory, because that will | |
3677 | # break other packages using the cache if that directory is | |
3678 | # removed, or if the value is a relative name. | |
3679 | INSTALL=$ac_install_sh | |
3680 | fi | |
3681 | fi | |
3682 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
3683 | $as_echo "$INSTALL" >&6; } | |
3684 | ||
3685 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3686 | # It thinks the first close brace ends the variable substitution. | |
3687 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3688 | ||
3689 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3690 | ||
3691 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3692 | ||
3693 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
3694 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
3695 | # Just in case | |
3696 | sleep 1 | |
3697 | echo timestamp > conftest.file | |
3698 | # Reject unsafe characters in $srcdir or the absolute working directory | |
3699 | # name. Accept space and tab only in the latter. | |
3700 | am_lf=' | |
3701 | ' | |
3702 | case `pwd` in | |
3703 | *[\\\"\#\$\&\'\`$am_lf]*) | |
3704 | as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; | |
3705 | esac | |
3706 | case $srcdir in | |
3707 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
3708 | as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; | |
3709 | esac | |
3710 | ||
3711 | # Do `set' in a subshell so we don't clobber the current shell's | |
3712 | # arguments. Must try -L first in case configure is actually a | |
3713 | # symlink; some systems play weird games with the mod time of symlinks | |
3714 | # (eg FreeBSD returns the mod time of the symlink's containing | |
3715 | # directory). | |
3716 | if ( | |
3717 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
3718 | if test "$*" = "X"; then | |
3719 | # -L didn't work. | |
3720 | set X `ls -t "$srcdir/configure" conftest.file` | |
3721 | fi | |
3722 | rm -f conftest.file | |
3723 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
3724 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
3725 | ||
3726 | # If neither matched, then we have a broken ls. This can happen | |
3727 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
3728 | # broken ls alias from the environment. This has actually | |
3729 | # happened. Such a system could not be considered "sane". | |
3730 | as_fn_error "ls -t appears to fail. Make sure there is not a broken | |
3731 | alias in your environment" "$LINENO" 5 | |
3732 | fi | |
3733 | ||
3734 | test "$2" = conftest.file | |
3735 | ) | |
3736 | then | |
3737 | # Ok. | |
3738 | : | |
3739 | else | |
3740 | as_fn_error "newly created file is older than distributed files! | |
3741 | Check your system clock" "$LINENO" 5 | |
3742 | fi | |
3743 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3744 | $as_echo "yes" >&6; } | |
3745 | test "$program_prefix" != NONE && | |
3746 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
3747 | # Use a double $ so make ignores it. | |
3748 | test "$program_suffix" != NONE && | |
3749 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
3750 | # Double any \ or $. | |
3751 | # By default was `s,x,x', remove it if useless. | |
3752 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
3753 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
3754 | ||
3755 | # expand $ac_aux_dir to an absolute path | |
3756 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
3757 | ||
3758 | if test x"${MISSING+set}" != xset; then | |
3759 | case $am_aux_dir in | |
3760 | *\ * | *\ *) | |
3761 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
3762 | *) | |
3763 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
3764 | esac | |
3765 | fi | |
3766 | # Use eval to expand $SHELL | |
3767 | if eval "$MISSING --run true"; then | |
3768 | am_missing_run="$MISSING --run " | |
3769 | else | |
3770 | am_missing_run= | |
3771 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 | |
3772 | $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
3773 | fi | |
3774 | ||
3775 | if test x"${install_sh}" != xset; then | |
3776 | case $am_aux_dir in | |
3777 | *\ * | *\ *) | |
3778 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
3779 | *) | |
3780 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
3781 | esac | |
3782 | fi | |
3783 | ||
3784 | # Installed binaries are usually stripped using `strip' when the user | |
3785 | # run `make install-strip'. However `strip' might not be the right | |
3786 | # tool to use in cross-compilation environments, therefore Automake | |
3787 | # will honor the `STRIP' environment variable to overrule this program. | |
3788 | if test "$cross_compiling" != no; then | |
3789 | if test -n "$ac_tool_prefix"; then | |
3790 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
3791 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
3792 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3793 | $as_echo_n "checking for $ac_word... " >&6; } | |
3794 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
3795 | $as_echo_n "(cached) " >&6 | |
3796 | else | |
3797 | if test -n "$STRIP"; then | |
3798 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
3799 | else | |
3800 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3801 | for as_dir in $PATH | |
3802 | do | |
3803 | IFS=$as_save_IFS | |
3804 | test -z "$as_dir" && as_dir=. | |
3805 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3806 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3807 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
3808 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3809 | break 2 | |
3810 | fi | |
3811 | done | |
3812 | done | |
3813 | IFS=$as_save_IFS | |
3814 | ||
3815 | fi | |
3816 | fi | |
3817 | STRIP=$ac_cv_prog_STRIP | |
3818 | if test -n "$STRIP"; then | |
3819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
3820 | $as_echo "$STRIP" >&6; } | |
3821 | else | |
3822 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3823 | $as_echo "no" >&6; } | |
3824 | fi | |
3825 | ||
3826 | ||
3827 | fi | |
3828 | if test -z "$ac_cv_prog_STRIP"; then | |
3829 | ac_ct_STRIP=$STRIP | |
3830 | # Extract the first word of "strip", so it can be a program name with args. | |
3831 | set dummy strip; ac_word=$2 | |
3832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3833 | $as_echo_n "checking for $ac_word... " >&6; } | |
3834 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
3835 | $as_echo_n "(cached) " >&6 | |
3836 | else | |
3837 | if test -n "$ac_ct_STRIP"; then | |
3838 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
3839 | else | |
3840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3841 | for as_dir in $PATH | |
3842 | do | |
3843 | IFS=$as_save_IFS | |
3844 | test -z "$as_dir" && as_dir=. | |
3845 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3846 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3847 | ac_cv_prog_ac_ct_STRIP="strip" | |
3848 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3849 | break 2 | |
3850 | fi | |
3851 | done | |
3852 | done | |
3853 | IFS=$as_save_IFS | |
3854 | ||
3855 | fi | |
3856 | fi | |
3857 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
3858 | if test -n "$ac_ct_STRIP"; then | |
3859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
3860 | $as_echo "$ac_ct_STRIP" >&6; } | |
3861 | else | |
3862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3863 | $as_echo "no" >&6; } | |
3864 | fi | |
3865 | ||
3866 | if test "x$ac_ct_STRIP" = x; then | |
3867 | STRIP=":" | |
3868 | else | |
3869 | case $cross_compiling:$ac_tool_warned in | |
3870 | yes:) | |
3871 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3872 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3873 | ac_tool_warned=yes ;; | |
3874 | esac | |
3875 | STRIP=$ac_ct_STRIP | |
3876 | fi | |
3877 | else | |
3878 | STRIP="$ac_cv_prog_STRIP" | |
3879 | fi | |
3880 | ||
3881 | fi | |
3882 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
3883 | ||
3884 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
3885 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
3886 | if test -z "$MKDIR_P"; then | |
3887 | if test "${ac_cv_path_mkdir+set}" = set; then : | |
3888 | $as_echo_n "(cached) " >&6 | |
3889 | else | |
3890 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3891 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
3892 | do | |
3893 | IFS=$as_save_IFS | |
3894 | test -z "$as_dir" && as_dir=. | |
3895 | for ac_prog in mkdir gmkdir; do | |
3896 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3897 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | |
3898 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
3899 | 'mkdir (GNU coreutils) '* | \ | |
3900 | 'mkdir (coreutils) '* | \ | |
3901 | 'mkdir (fileutils) '4.1*) | |
3902 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
3903 | break 3;; | |
3904 | esac | |
3905 | done | |
3906 | done | |
3907 | done | |
3908 | IFS=$as_save_IFS | |
3909 | ||
3910 | fi | |
3911 | ||
3912 | if test "${ac_cv_path_mkdir+set}" = set; then | |
3913 | MKDIR_P="$ac_cv_path_mkdir -p" | |
3914 | else | |
3915 | # As a last resort, use the slow shell script. Don't cache a | |
3916 | # value for MKDIR_P within a source directory, because that will | |
3917 | # break other packages using the cache if that directory is | |
3918 | # removed, or if the value is a relative name. | |
3919 | test -d ./--version && rmdir ./--version | |
3920 | MKDIR_P="$ac_install_sh -d" | |
3921 | fi | |
3922 | fi | |
3923 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
3924 | $as_echo "$MKDIR_P" >&6; } | |
3925 | ||
3926 | mkdir_p="$MKDIR_P" | |
3927 | case $mkdir_p in | |
3928 | [\\/$]* | ?:[\\/]*) ;; | |
3929 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | |
3930 | esac | |
3931 | ||
3932 | for ac_prog in gawk mawk nawk awk | |
3933 | do | |
3934 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3935 | set dummy $ac_prog; ac_word=$2 | |
3936 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3937 | $as_echo_n "checking for $ac_word... " >&6; } | |
3938 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
3939 | $as_echo_n "(cached) " >&6 | |
3940 | else | |
3941 | if test -n "$AWK"; then | |
3942 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
3943 | else | |
3944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3945 | for as_dir in $PATH | |
3946 | do | |
3947 | IFS=$as_save_IFS | |
3948 | test -z "$as_dir" && as_dir=. | |
3949 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3950 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3951 | ac_cv_prog_AWK="$ac_prog" | |
3952 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3953 | break 2 | |
3954 | fi | |
3955 | done | |
3956 | done | |
3957 | IFS=$as_save_IFS | |
3958 | ||
3959 | fi | |
3960 | fi | |
3961 | AWK=$ac_cv_prog_AWK | |
3962 | if test -n "$AWK"; then | |
3963 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
3964 | $as_echo "$AWK" >&6; } | |
3965 | else | |
3966 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3967 | $as_echo "no" >&6; } | |
3968 | fi | |
3969 | ||
3970 | ||
3971 | test -n "$AWK" && break | |
3972 | done | |
3973 | ||
3974 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
3975 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
3976 | set x ${MAKE-make} | |
3977 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
3978 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : | |
3979 | $as_echo_n "(cached) " >&6 | |
3980 | else | |
3981 | cat >conftest.make <<\_ACEOF | |
3982 | SHELL = /bin/sh | |
3983 | all: | |
3984 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
3985 | _ACEOF | |
3986 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
3987 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
3988 | *@@@%%%=?*=@@@%%%*) | |
3989 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
3990 | *) | |
3991 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
3992 | esac | |
3993 | rm -f conftest.make | |
3994 | fi | |
3995 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
3996 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3997 | $as_echo "yes" >&6; } | |
3998 | SET_MAKE= | |
3999 | else | |
4000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4001 | $as_echo "no" >&6; } | |
4002 | SET_MAKE="MAKE=${MAKE-make}" | |
4003 | fi | |
4004 | ||
4005 | rm -rf .tst 2>/dev/null | |
4006 | mkdir .tst 2>/dev/null | |
4007 | if test -d .tst; then | |
4008 | am__leading_dot=. | |
4009 | else | |
4010 | am__leading_dot=_ | |
4011 | fi | |
4012 | rmdir .tst 2>/dev/null | |
4013 | ||
4014 | DEPDIR="${am__leading_dot}deps" | |
4015 | ||
4016 | ac_config_commands="$ac_config_commands depfiles" | |
4017 | ||
4018 | ||
4019 | am_make=${MAKE-make} | |
4020 | cat > confinc << 'END' | |
4021 | am__doit: | |
4022 | @echo this is the am__doit target | |
4023 | .PHONY: am__doit | |
4024 | END | |
4025 | # If we don't find an include directive, just comment out the code. | |
4026 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
4027 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
4028 | am__include="#" | |
4029 | am__quote= | |
4030 | _am_result=none | |
4031 | # First try GNU make style include. | |
4032 | echo "include confinc" > confmf | |
4033 | # Ignore all kinds of additional output from `make'. | |
4034 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4035 | *the\ am__doit\ target*) | |
4036 | am__include=include | |
4037 | am__quote= | |
4038 | _am_result=GNU | |
4039 | ;; | |
4040 | esac | |
4041 | # Now try BSD make style include. | |
4042 | if test "$am__include" = "#"; then | |
4043 | echo '.include "confinc"' > confmf | |
4044 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
4045 | *the\ am__doit\ target*) | |
4046 | am__include=.include | |
4047 | am__quote="\"" | |
4048 | _am_result=BSD | |
4049 | ;; | |
4050 | esac | |
4051 | fi | |
4052 | ||
4053 | ||
4054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
4055 | $as_echo "$_am_result" >&6; } | |
4056 | rm -f confinc confmf | |
4057 | ||
4058 | # Check whether --enable-dependency-tracking was given. | |
4059 | if test "${enable_dependency_tracking+set}" = set; then : | |
4060 | enableval=$enable_dependency_tracking; | |
4061 | fi | |
4062 | ||
4063 | if test "x$enable_dependency_tracking" != xno; then | |
4064 | am_depcomp="$ac_aux_dir/depcomp" | |
4065 | AMDEPBACKSLASH='\' | |
4066 | fi | |
4067 | if test "x$enable_dependency_tracking" != xno; then | |
4068 | AMDEP_TRUE= | |
4069 | AMDEP_FALSE='#' | |
4070 | else | |
4071 | AMDEP_TRUE='#' | |
4072 | AMDEP_FALSE= | |
4073 | fi | |
4074 | ||
4075 | ||
4076 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
4077 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
4078 | # is not polluted with repeated "-I." | |
4079 | am__isrc=' -I$(srcdir)' | |
4080 | # test to see if srcdir already configured | |
4081 | if test -f $srcdir/config.status; then | |
4082 | as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
4083 | fi | |
4084 | fi | |
4085 | ||
4086 | # test whether we have cygpath | |
4087 | if test -z "$CYGPATH_W"; then | |
4088 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
4089 | CYGPATH_W='cygpath -w' | |
4090 | else | |
4091 | CYGPATH_W=echo | |
4092 | fi | |
4093 | fi | |
4094 | ||
4095 | ||
4096 | # Define the identity of the package. | |
4097 | PACKAGE='libbacktrace' | |
4098 | VERSION='version-unused' | |
4099 | ||
4100 | ||
4101 | # Some tools Automake needs. | |
4102 | ||
4103 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
4104 | ||
4105 | ||
4106 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
4107 | ||
4108 | ||
4109 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
4110 | ||
4111 | ||
4112 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
4113 | ||
4114 | ||
4115 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
4116 | ||
4117 | # We need awk for the "check" target. The system "awk" is bad on | |
4118 | # some platforms. | |
4119 | # Always define AMTAR for backward compatibility. | |
4120 | ||
4121 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
4122 | ||
4123 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
4124 | ||
4125 | ||
4126 | ||
4127 | ||
4128 | depcc="$CC" am_compiler_list= | |
4129 | ||
4130 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4131 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4132 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : | |
4133 | $as_echo_n "(cached) " >&6 | |
4134 | else | |
4135 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4136 | # We make a subdir and do the tests there. Otherwise we can end up | |
4137 | # making bogus files that we don't know about and never remove. For | |
4138 | # instance it was reported that on HP-UX the gcc test will end up | |
4139 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4140 | # in D'. | |
4141 | mkdir conftest.dir | |
4142 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4143 | # using a relative directory. | |
4144 | cp "$am_depcomp" conftest.dir | |
4145 | cd conftest.dir | |
4146 | # We will build objects and dependencies in a subdirectory because | |
4147 | # it helps to detect inapplicable dependency modes. For instance | |
4148 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4149 | # side effect of compilation, but ICC will put the dependencies in | |
4150 | # the current directory while Tru64 will put them in the object | |
4151 | # directory. | |
4152 | mkdir sub | |
4153 | ||
4154 | am_cv_CC_dependencies_compiler_type=none | |
4155 | if test "$am_compiler_list" = ""; then | |
4156 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4157 | fi | |
4158 | am__universal=false | |
4159 | case " $depcc " in #( | |
4160 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4161 | esac | |
4162 | ||
4163 | for depmode in $am_compiler_list; do | |
4164 | # Setup a source with many dependencies, because some compilers | |
4165 | # like to wrap large dependency lists on column 80 (with \), and | |
4166 | # we should not choose a depcomp mode which is confused by this. | |
4167 | # | |
4168 | # We need to recreate these files for each test, as the compiler may | |
4169 | # overwrite some of them when testing with obscure command lines. | |
4170 | # This happens at least with the AIX C compiler. | |
4171 | : > sub/conftest.c | |
4172 | for i in 1 2 3 4 5 6; do | |
4173 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4174 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4175 | # Solaris 8's {/usr,}/bin/sh. | |
4176 | touch sub/conftst$i.h | |
4177 | done | |
4178 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4179 | ||
4180 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
4181 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4182 | # handle `-M -o', and we need to detect this. Also, some Intel | |
4183 | # versions had trouble with output in subdirs | |
4184 | am__obj=sub/conftest.${OBJEXT-o} | |
4185 | am__minus_obj="-o $am__obj" | |
4186 | case $depmode in | |
4187 | gcc) | |
4188 | # This depmode causes a compiler race in universal mode. | |
4189 | test "$am__universal" = false || continue | |
4190 | ;; | |
4191 | nosideeffect) | |
4192 | # after this tag, mechanisms are not by side-effect, so they'll | |
4193 | # only be used when explicitly requested | |
4194 | if test "x$enable_dependency_tracking" = xyes; then | |
4195 | continue | |
4196 | else | |
4197 | break | |
4198 | fi | |
4199 | ;; | |
4200 | msvisualcpp | msvcmsys) | |
4201 | # This compiler won't grok `-c -o', but also, the minuso test has | |
4202 | # not run yet. These depmodes are late enough in the game, and | |
4203 | # so weak that their functioning should not be impacted. | |
4204 | am__obj=conftest.${OBJEXT-o} | |
4205 | am__minus_obj= | |
4206 | ;; | |
4207 | none) break ;; | |
4208 | esac | |
4209 | if depmode=$depmode \ | |
4210 | source=sub/conftest.c object=$am__obj \ | |
4211 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4212 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4213 | >/dev/null 2>conftest.err && | |
4214 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4215 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4216 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4217 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4218 | # icc doesn't choke on unknown options, it will just issue warnings | |
4219 | # or remarks (even with -Werror). So we grep stderr for any message | |
4220 | # that says an option was ignored or not supported. | |
4221 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4222 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4223 | # The diagnosis changed in icc 8.0: | |
4224 | # icc: Command line remark: option '-MP' not supported | |
4225 | if (grep 'ignoring option' conftest.err || | |
4226 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4227 | am_cv_CC_dependencies_compiler_type=$depmode | |
4228 | break | |
4229 | fi | |
4230 | fi | |
4231 | done | |
4232 | ||
4233 | cd .. | |
4234 | rm -rf conftest.dir | |
4235 | else | |
4236 | am_cv_CC_dependencies_compiler_type=none | |
4237 | fi | |
4238 | ||
4239 | fi | |
4240 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4241 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4242 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4243 | ||
4244 | if | |
4245 | test "x$enable_dependency_tracking" != xno \ | |
4246 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4247 | am__fastdepCC_TRUE= | |
4248 | am__fastdepCC_FALSE='#' | |
4249 | else | |
4250 | am__fastdepCC_TRUE='#' | |
4251 | am__fastdepCC_FALSE= | |
4252 | fi | |
4253 | ||
4254 | ||
4255 | ||
4256 | ||
4257 | ||
4258 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
4259 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
4260 | # Check whether --enable-maintainer-mode was given. | |
4261 | if test "${enable_maintainer_mode+set}" = set; then : | |
4262 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
4263 | else | |
4264 | USE_MAINTAINER_MODE=no | |
4265 | fi | |
4266 | ||
4267 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
4268 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
4269 | if test $USE_MAINTAINER_MODE = yes; then | |
4270 | MAINTAINER_MODE_TRUE= | |
4271 | MAINTAINER_MODE_FALSE='#' | |
4272 | else | |
4273 | MAINTAINER_MODE_TRUE='#' | |
4274 | MAINTAINER_MODE_FALSE= | |
4275 | fi | |
4276 | ||
4277 | MAINT=$MAINTAINER_MODE_TRUE | |
4278 | ||
4279 | ||
4280 | ||
4281 | ||
4282 | # Check whether --with-target-subdir was given. | |
4283 | if test "${with_target_subdir+set}" = set; then : | |
4284 | withval=$with_target_subdir; | |
eff02e4f | 4285 | fi |
eff02e4f | 4286 | |
eff02e4f | 4287 | |
d4c059d5 ILT |
4288 | # We must force CC to /not/ be precious variables; otherwise |
4289 | # the wrong, non-multilib-adjusted value will be used in multilibs. | |
4290 | # As a side effect, we have to subst CFLAGS ourselves. | |
eff02e4f | 4291 | |
d4c059d5 ILT |
4292 | |
4293 | ac_ext=c | |
4294 | ac_cpp='$CPP $CPPFLAGS' | |
4295 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4296 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4297 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4298 | if test -n "$ac_tool_prefix"; then | |
4299 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
4300 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
4301 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4302 | $as_echo_n "checking for $ac_word... " >&6; } | |
4303 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4304 | $as_echo_n "(cached) " >&6 | |
eff02e4f | 4305 | else |
d4c059d5 ILT |
4306 | if test -n "$CC"; then |
4307 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4308 | else | |
4309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4310 | for as_dir in $PATH | |
4311 | do | |
4312 | IFS=$as_save_IFS | |
4313 | test -z "$as_dir" && as_dir=. | |
4314 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4315 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4316 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
4317 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4318 | break 2 | |
4319 | fi | |
4320 | done | |
4321 | done | |
4322 | IFS=$as_save_IFS | |
eff02e4f | 4323 | |
eff02e4f | 4324 | fi |
eff02e4f | 4325 | fi |
d4c059d5 ILT |
4326 | CC=$ac_cv_prog_CC |
4327 | if test -n "$CC"; then | |
4328 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4329 | $as_echo "$CC" >&6; } | |
eff02e4f | 4330 | else |
d4c059d5 ILT |
4331 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4332 | $as_echo "no" >&6; } | |
4333 | fi | |
eff02e4f | 4334 | |
eff02e4f | 4335 | |
eff02e4f | 4336 | fi |
d4c059d5 ILT |
4337 | if test -z "$ac_cv_prog_CC"; then |
4338 | ac_ct_CC=$CC | |
4339 | # Extract the first word of "gcc", so it can be a program name with args. | |
4340 | set dummy gcc; ac_word=$2 | |
4341 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4342 | $as_echo_n "checking for $ac_word... " >&6; } | |
4343 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4344 | $as_echo_n "(cached) " >&6 | |
4345 | else | |
4346 | if test -n "$ac_ct_CC"; then | |
4347 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4348 | else | |
4349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4350 | for as_dir in $PATH | |
4351 | do | |
4352 | IFS=$as_save_IFS | |
4353 | test -z "$as_dir" && as_dir=. | |
4354 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4355 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4356 | ac_cv_prog_ac_ct_CC="gcc" | |
4357 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4358 | break 2 | |
4359 | fi | |
4360 | done | |
4361 | done | |
4362 | IFS=$as_save_IFS | |
eff02e4f ILT |
4363 | |
4364 | fi | |
eff02e4f | 4365 | fi |
d4c059d5 ILT |
4366 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
4367 | if test -n "$ac_ct_CC"; then | |
4368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4369 | $as_echo "$ac_ct_CC" >&6; } | |
eff02e4f | 4370 | else |
d4c059d5 ILT |
4371 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4372 | $as_echo "no" >&6; } | |
4373 | fi | |
eff02e4f | 4374 | |
d4c059d5 ILT |
4375 | if test "x$ac_ct_CC" = x; then |
4376 | CC="" | |
4377 | else | |
4378 | case $cross_compiling:$ac_tool_warned in | |
4379 | yes:) | |
4380 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4381 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4382 | ac_tool_warned=yes ;; | |
4383 | esac | |
4384 | CC=$ac_ct_CC | |
4385 | fi | |
4386 | else | |
4387 | CC="$ac_cv_prog_CC" | |
4388 | fi | |
eff02e4f | 4389 | |
d4c059d5 ILT |
4390 | if test -z "$CC"; then |
4391 | if test -n "$ac_tool_prefix"; then | |
4392 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
4393 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
4394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4395 | $as_echo_n "checking for $ac_word... " >&6; } | |
4396 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4397 | $as_echo_n "(cached) " >&6 | |
eff02e4f | 4398 | else |
d4c059d5 ILT |
4399 | if test -n "$CC"; then |
4400 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4401 | else | |
4402 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4403 | for as_dir in $PATH | |
4404 | do | |
4405 | IFS=$as_save_IFS | |
4406 | test -z "$as_dir" && as_dir=. | |
4407 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4408 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4409 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
4410 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4411 | break 2 | |
4412 | fi | |
4413 | done | |
4414 | done | |
4415 | IFS=$as_save_IFS | |
eff02e4f | 4416 | |
d4c059d5 ILT |
4417 | fi |
4418 | fi | |
4419 | CC=$ac_cv_prog_CC | |
4420 | if test -n "$CC"; then | |
4421 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4422 | $as_echo "$CC" >&6; } | |
4423 | else | |
4424 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4425 | $as_echo "no" >&6; } | |
4426 | fi | |
eff02e4f | 4427 | |
eff02e4f | 4428 | |
d4c059d5 ILT |
4429 | fi |
4430 | fi | |
4431 | if test -z "$CC"; then | |
4432 | # Extract the first word of "cc", so it can be a program name with args. | |
4433 | set dummy cc; ac_word=$2 | |
4434 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4435 | $as_echo_n "checking for $ac_word... " >&6; } | |
4436 | if test "${ac_cv_prog_CC+set}" = set; then : | |
4437 | $as_echo_n "(cached) " >&6 | |
eff02e4f | 4438 | else |
d4c059d5 ILT |
4439 | if test -n "$CC"; then |
4440 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4441 | else | |
4442 | ac_prog_rejected=no | |
4443 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4444 | for as_dir in $PATH | |
4445 | do | |
4446 | IFS=$as_save_IFS | |
4447 | test -z "$as_dir" && as_dir=. | |
4448 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4449 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4450 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
4451 | ac_prog_rejected=yes | |
4452 | continue | |
4453 | fi | |
4454 | ac_cv_prog_CC="cc" | |
4455 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4456 | break 2 | |
4457 | fi | |
4458 | done | |
4459 | done | |
4460 | IFS=$as_save_IFS | |
eff02e4f | 4461 | |
d4c059d5 ILT |
4462 | if test $ac_prog_rejected = yes; then |
4463 | # We found a bogon in the path, so make sure we never use it. | |
4464 | set dummy $ac_cv_prog_CC | |
4465 | shift | |
4466 | if test $# != 0; then | |
4467 | # We chose a different compiler from the bogus one. | |
4468 | # However, it has the same basename, so the bogon will be chosen | |
4469 | # first if we set CC to just the basename; use the full file name. | |
4470 | shift | |
4471 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4472 | fi | |
eff02e4f | 4473 | fi |
eff02e4f | 4474 | fi |
eff02e4f | 4475 | fi |
d4c059d5 ILT |
4476 | CC=$ac_cv_prog_CC |
4477 | if test -n "$CC"; then | |
4478 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4479 | $as_echo "$CC" >&6; } | |
eff02e4f | 4480 | else |
d4c059d5 ILT |
4481 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
4482 | $as_echo "no" >&6; } | |
eff02e4f | 4483 | fi |
d4c059d5 ILT |
4484 | |
4485 | ||
4486 | fi | |
4487 | if test -z "$CC"; then | |
4488 | if test -n "$ac_tool_prefix"; then | |
4489 | for ac_prog in cl.exe | |
4490 | do | |
4491 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4492 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4493 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4494 | $as_echo_n "checking for $ac_word... " >&6; } | |
4495 | if test "${ac_cv_prog_CC+set}" = set; then : | |
eff02e4f ILT |
4496 | $as_echo_n "(cached) " >&6 |
4497 | else | |
d4c059d5 ILT |
4498 | if test -n "$CC"; then |
4499 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4500 | else | |
4501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4502 | for as_dir in $PATH | |
4503 | do | |
4504 | IFS=$as_save_IFS | |
4505 | test -z "$as_dir" && as_dir=. | |
4506 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4507 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4508 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
4509 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4510 | break 2 | |
4511 | fi | |
4512 | done | |
4513 | done | |
4514 | IFS=$as_save_IFS | |
eff02e4f | 4515 | |
d4c059d5 ILT |
4516 | fi |
4517 | fi | |
4518 | CC=$ac_cv_prog_CC | |
4519 | if test -n "$CC"; then | |
4520 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4521 | $as_echo "$CC" >&6; } | |
4522 | else | |
4523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4524 | $as_echo "no" >&6; } | |
4525 | fi | |
eff02e4f | 4526 | |
eff02e4f | 4527 | |
d4c059d5 ILT |
4528 | test -n "$CC" && break |
4529 | done | |
eff02e4f | 4530 | fi |
d4c059d5 ILT |
4531 | if test -z "$CC"; then |
4532 | ac_ct_CC=$CC | |
4533 | for ac_prog in cl.exe | |
4534 | do | |
4535 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4536 | set dummy $ac_prog; ac_word=$2 | |
4537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4538 | $as_echo_n "checking for $ac_word... " >&6; } | |
4539 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : | |
4540 | $as_echo_n "(cached) " >&6 | |
4541 | else | |
4542 | if test -n "$ac_ct_CC"; then | |
4543 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4544 | else | |
4545 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4546 | for as_dir in $PATH | |
4547 | do | |
4548 | IFS=$as_save_IFS | |
4549 | test -z "$as_dir" && as_dir=. | |
4550 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4551 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4552 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4553 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4554 | break 2 | |
4555 | fi | |
eff02e4f | 4556 | done |
d4c059d5 ILT |
4557 | done |
4558 | IFS=$as_save_IFS | |
eff02e4f ILT |
4559 | |
4560 | fi | |
d4c059d5 ILT |
4561 | fi |
4562 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4563 | if test -n "$ac_ct_CC"; then | |
4564 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4565 | $as_echo "$ac_ct_CC" >&6; } | |
4566 | else | |
4567 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4568 | $as_echo "no" >&6; } | |
eff02e4f ILT |
4569 | fi |
4570 | ||
eff02e4f | 4571 | |
d4c059d5 ILT |
4572 | test -n "$ac_ct_CC" && break |
4573 | done | |
eff02e4f | 4574 | |
d4c059d5 ILT |
4575 | if test "x$ac_ct_CC" = x; then |
4576 | CC="" | |
4577 | else | |
4578 | case $cross_compiling:$ac_tool_warned in | |
4579 | yes:) | |
4580 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4581 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4582 | ac_tool_warned=yes ;; | |
eff02e4f | 4583 | esac |
d4c059d5 ILT |
4584 | CC=$ac_ct_CC |
4585 | fi | |
eff02e4f ILT |
4586 | fi |
4587 | ||
d4c059d5 | 4588 | fi |
eff02e4f | 4589 | |
eff02e4f | 4590 | |
d4c059d5 ILT |
4591 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
4592 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4593 | as_fn_error "no acceptable C compiler found in \$PATH | |
4594 | See \`config.log' for more details." "$LINENO" 5; } | |
4595 | ||
4596 | # Provide some information about the compiler. | |
4597 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4598 | set X $ac_compile | |
4599 | ac_compiler=$2 | |
4600 | for ac_option in --version -v -V -qversion; do | |
4601 | { { ac_try="$ac_compiler $ac_option >&5" | |
4602 | case "(($ac_try" in | |
4603 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4604 | *) ac_try_echo=$ac_try;; | |
4605 | esac | |
4606 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4607 | $as_echo "$ac_try_echo"; } >&5 | |
4608 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4609 | ac_status=$? | |
4610 | if test -s conftest.err; then | |
4611 | sed '10a\ | |
4612 | ... rest of stderr output deleted ... | |
4613 | 10q' conftest.err >conftest.er1 | |
4614 | cat conftest.er1 >&5 | |
4615 | rm -f conftest.er1 conftest.err | |
4616 | fi | |
4617 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4618 | test $ac_status = 0; } | |
4619 | done | |
4620 | ||
4621 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
4622 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4623 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : | |
4624 | $as_echo_n "(cached) " >&6 | |
4625 | else | |
4626 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4627 | /* end confdefs.h. */ | |
4628 | ||
4629 | int | |
4630 | main () | |
4631 | { | |
4632 | #ifndef __GNUC__ | |
4633 | choke me | |
4634 | #endif | |
4635 | ||
4636 | ; | |
4637 | return 0; | |
4638 | } | |
4639 | _ACEOF | |
4640 | if ac_fn_c_try_compile "$LINENO"; then : | |
4641 | ac_compiler_gnu=yes | |
4642 | else | |
4643 | ac_compiler_gnu=no | |
eff02e4f | 4644 | fi |
d4c059d5 ILT |
4645 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4646 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
eff02e4f | 4647 | |
eff02e4f | 4648 | fi |
d4c059d5 ILT |
4649 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
4650 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4651 | if test $ac_compiler_gnu = yes; then | |
4652 | GCC=yes | |
eff02e4f | 4653 | else |
d4c059d5 | 4654 | GCC= |
eff02e4f | 4655 | fi |
d4c059d5 ILT |
4656 | ac_test_CFLAGS=${CFLAGS+set} |
4657 | ac_save_CFLAGS=$CFLAGS | |
4658 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4659 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4660 | if test "${ac_cv_prog_cc_g+set}" = set; then : | |
4661 | $as_echo_n "(cached) " >&6 | |
4662 | else | |
4663 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4664 | ac_c_werror_flag=yes | |
4665 | ac_cv_prog_cc_g=no | |
4666 | CFLAGS="-g" | |
4667 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4668 | /* end confdefs.h. */ | |
eff02e4f | 4669 | |
d4c059d5 ILT |
4670 | int |
4671 | main () | |
4672 | { | |
eff02e4f | 4673 | |
d4c059d5 ILT |
4674 | ; |
4675 | return 0; | |
4676 | } | |
4677 | _ACEOF | |
4678 | if ac_fn_c_try_compile "$LINENO"; then : | |
4679 | ac_cv_prog_cc_g=yes | |
eff02e4f | 4680 | else |
d4c059d5 ILT |
4681 | CFLAGS="" |
4682 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4683 | /* end confdefs.h. */ | |
eff02e4f | 4684 | |
d4c059d5 ILT |
4685 | int |
4686 | main () | |
4687 | { | |
eff02e4f | 4688 | |
d4c059d5 ILT |
4689 | ; |
4690 | return 0; | |
4691 | } | |
4692 | _ACEOF | |
4693 | if ac_fn_c_try_compile "$LINENO"; then : | |
eff02e4f | 4694 | |
d4c059d5 ILT |
4695 | else |
4696 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4697 | CFLAGS="-g" | |
4698 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4699 | /* end confdefs.h. */ | |
eff02e4f | 4700 | |
d4c059d5 ILT |
4701 | int |
4702 | main () | |
4703 | { | |
4704 | ||
4705 | ; | |
4706 | return 0; | |
4707 | } | |
4708 | _ACEOF | |
4709 | if ac_fn_c_try_compile "$LINENO"; then : | |
4710 | ac_cv_prog_cc_g=yes | |
4711 | fi | |
4712 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4713 | fi | |
4714 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4715 | fi | |
4716 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4717 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4718 | fi | |
4719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4720 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4721 | if test "$ac_test_CFLAGS" = set; then | |
4722 | CFLAGS=$ac_save_CFLAGS | |
4723 | elif test $ac_cv_prog_cc_g = yes; then | |
4724 | if test "$GCC" = yes; then | |
4725 | CFLAGS="-g -O2" | |
4726 | else | |
4727 | CFLAGS="-g" | |
4728 | fi | |
eff02e4f | 4729 | else |
d4c059d5 ILT |
4730 | if test "$GCC" = yes; then |
4731 | CFLAGS="-O2" | |
4732 | else | |
4733 | CFLAGS= | |
4734 | fi | |
4735 | fi | |
4736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4737 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4738 | if test "${ac_cv_prog_cc_c89+set}" = set; then : | |
4739 | $as_echo_n "(cached) " >&6 | |
4740 | else | |
4741 | ac_cv_prog_cc_c89=no | |
4742 | ac_save_CC=$CC | |
4743 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4744 | /* end confdefs.h. */ | |
4745 | #include <stdarg.h> | |
4746 | #include <stdio.h> | |
4747 | #include <sys/types.h> | |
4748 | #include <sys/stat.h> | |
4749 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4750 | struct buf { int x; }; | |
4751 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4752 | static char *e (p, i) | |
4753 | char **p; | |
4754 | int i; | |
4755 | { | |
4756 | return p[i]; | |
4757 | } | |
4758 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4759 | { | |
4760 | char *s; | |
4761 | va_list v; | |
4762 | va_start (v,p); | |
4763 | s = g (p, va_arg (v,int)); | |
4764 | va_end (v); | |
4765 | return s; | |
4766 | } | |
4767 | ||
4768 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4769 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4770 | These don't provoke an error unfortunately, instead are silently treated | |
4771 | as 'x'. The following induces an error, until -std is added to get | |
4772 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4773 | array size at least. It's necessary to write '\x00'==0 to get something | |
4774 | that's true only with -std. */ | |
4775 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4776 | ||
4777 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4778 | inside strings and character constants. */ | |
4779 | #define FOO(x) 'x' | |
4780 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4781 | ||
4782 | int test (int i, double x); | |
4783 | struct s1 {int (*f) (int a);}; | |
4784 | struct s2 {int (*f) (double a);}; | |
4785 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4786 | int argc; | |
4787 | char **argv; | |
4788 | int | |
4789 | main () | |
4790 | { | |
4791 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4792 | ; | |
4793 | return 0; | |
4794 | } | |
4795 | _ACEOF | |
4796 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4797 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4798 | do | |
4799 | CC="$ac_save_CC $ac_arg" | |
4800 | if ac_fn_c_try_compile "$LINENO"; then : | |
4801 | ac_cv_prog_cc_c89=$ac_arg | |
eff02e4f | 4802 | fi |
d4c059d5 ILT |
4803 | rm -f core conftest.err conftest.$ac_objext |
4804 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4805 | done | |
4806 | rm -f conftest.$ac_ext | |
4807 | CC=$ac_save_CC | |
eff02e4f ILT |
4808 | |
4809 | fi | |
d4c059d5 ILT |
4810 | # AC_CACHE_VAL |
4811 | case "x$ac_cv_prog_cc_c89" in | |
4812 | x) | |
4813 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4814 | $as_echo "none needed" >&6; } ;; | |
4815 | xno) | |
4816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4817 | $as_echo "unsupported" >&6; } ;; | |
4818 | *) | |
4819 | CC="$CC $ac_cv_prog_cc_c89" | |
4820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4821 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4822 | esac | |
4823 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
eff02e4f | 4824 | |
eff02e4f ILT |
4825 | fi |
4826 | ||
d4c059d5 ILT |
4827 | ac_ext=c |
4828 | ac_cpp='$CPP $CPPFLAGS' | |
4829 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4830 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4831 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
eff02e4f ILT |
4832 | |
4833 | ||
4834 | ||
4835 | ||
4836 | ||
4837 | if test -n "$ac_tool_prefix"; then | |
4838 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4839 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4840 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4841 | $as_echo_n "checking for $ac_word... " >&6; } | |
4842 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
4843 | $as_echo_n "(cached) " >&6 | |
4844 | else | |
4845 | if test -n "$RANLIB"; then | |
4846 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4847 | else | |
4848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4849 | for as_dir in $PATH | |
4850 | do | |
4851 | IFS=$as_save_IFS | |
4852 | test -z "$as_dir" && as_dir=. | |
4853 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4854 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4855 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4856 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4857 | break 2 | |
4858 | fi | |
4859 | done | |
4860 | done | |
4861 | IFS=$as_save_IFS | |
4862 | ||
4863 | fi | |
4864 | fi | |
4865 | RANLIB=$ac_cv_prog_RANLIB | |
4866 | if test -n "$RANLIB"; then | |
4867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
4868 | $as_echo "$RANLIB" >&6; } | |
4869 | else | |
4870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4871 | $as_echo "no" >&6; } | |
4872 | fi | |
4873 | ||
4874 | ||
4875 | fi | |
4876 | if test -z "$ac_cv_prog_RANLIB"; then | |
4877 | ac_ct_RANLIB=$RANLIB | |
4878 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4879 | set dummy ranlib; ac_word=$2 | |
4880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4881 | $as_echo_n "checking for $ac_word... " >&6; } | |
4882 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
4883 | $as_echo_n "(cached) " >&6 | |
4884 | else | |
4885 | if test -n "$ac_ct_RANLIB"; then | |
4886 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4887 | else | |
4888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4889 | for as_dir in $PATH | |
4890 | do | |
4891 | IFS=$as_save_IFS | |
4892 | test -z "$as_dir" && as_dir=. | |
4893 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4894 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4895 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4896 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4897 | break 2 | |
4898 | fi | |
4899 | done | |
4900 | done | |
4901 | IFS=$as_save_IFS | |
4902 | ||
4903 | fi | |
4904 | fi | |
4905 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4906 | if test -n "$ac_ct_RANLIB"; then | |
4907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
4908 | $as_echo "$ac_ct_RANLIB" >&6; } | |
4909 | else | |
4910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4911 | $as_echo "no" >&6; } | |
4912 | fi | |
4913 | ||
4914 | if test "x$ac_ct_RANLIB" = x; then | |
4915 | RANLIB=":" | |
4916 | else | |
4917 | case $cross_compiling:$ac_tool_warned in | |
4918 | yes:) | |
4919 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4920 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4921 | ac_tool_warned=yes ;; | |
4922 | esac | |
4923 | RANLIB=$ac_ct_RANLIB | |
4924 | fi | |
4925 | else | |
4926 | RANLIB="$ac_cv_prog_RANLIB" | |
4927 | fi | |
4928 | ||
4929 | ||
4930 | for ac_prog in gawk mawk nawk awk | |
4931 | do | |
4932 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4933 | set dummy $ac_prog; ac_word=$2 | |
4934 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4935 | $as_echo_n "checking for $ac_word... " >&6; } | |
4936 | if test "${ac_cv_prog_AWK+set}" = set; then : | |
4937 | $as_echo_n "(cached) " >&6 | |
4938 | else | |
4939 | if test -n "$AWK"; then | |
4940 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
4941 | else | |
4942 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4943 | for as_dir in $PATH | |
4944 | do | |
4945 | IFS=$as_save_IFS | |
4946 | test -z "$as_dir" && as_dir=. | |
4947 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4948 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4949 | ac_cv_prog_AWK="$ac_prog" | |
4950 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4951 | break 2 | |
4952 | fi | |
4953 | done | |
4954 | done | |
4955 | IFS=$as_save_IFS | |
4956 | ||
4957 | fi | |
4958 | fi | |
4959 | AWK=$ac_cv_prog_AWK | |
4960 | if test -n "$AWK"; then | |
4961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
4962 | $as_echo "$AWK" >&6; } | |
4963 | else | |
4964 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4965 | $as_echo "no" >&6; } | |
4966 | fi | |
4967 | ||
4968 | ||
4969 | test -n "$AWK" && break | |
4970 | done | |
4971 | ||
4972 | case "$AWK" in | |
4973 | "") as_fn_error "can't build without awk" "$LINENO" 5 ;; | |
4974 | esac | |
4975 | ||
4976 | case `pwd` in | |
4977 | *\ * | *\ *) | |
4978 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
4979 | $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
4980 | esac | |
4981 | ||
4982 | ||
4983 | ||
4984 | macro_version='2.2.7a' | |
4985 | macro_revision='1.3134' | |
4986 | ||
4987 | ||
4988 | ||
4989 | ||
4990 | ||
4991 | ||
4992 | ||
4993 | ||
4994 | ||
4995 | ||
4996 | ||
4997 | ||
4998 | ||
4999 | ltmain="$ac_aux_dir/ltmain.sh" | |
5000 | ||
5001 | # Backslashify metacharacters that are still active within | |
5002 | # double-quoted strings. | |
5003 | sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
5004 | ||
5005 | # Same as above, but do not quote variable references. | |
5006 | double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
5007 | ||
5008 | # Sed substitution to delay expansion of an escaped shell variable in a | |
5009 | # double_quote_subst'ed string. | |
5010 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
5011 | ||
5012 | # Sed substitution to delay expansion of an escaped single quote. | |
5013 | delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
5014 | ||
5015 | # Sed substitution to avoid accidental globbing in evaled expressions | |
5016 | no_glob_subst='s/\*/\\\*/g' | |
5017 | ||
5018 | ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
5019 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
5020 | ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
5021 | ||
5022 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
5023 | $as_echo_n "checking how to print strings... " >&6; } | |
5024 | # Test print first, because it will be a builtin if present. | |
5025 | if test "X`print -r -- -n 2>/dev/null`" = X-n && \ | |
5026 | test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5027 | ECHO='print -r --' | |
5028 | elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
5029 | ECHO='printf %s\n' | |
5030 | else | |
5031 | # Use this function as a fallback that always works. | |
5032 | func_fallback_echo () | |
5033 | { | |
5034 | eval 'cat <<_LTECHO_EOF | |
5035 | $1 | |
5036 | _LTECHO_EOF' | |
5037 | } | |
5038 | ECHO='func_fallback_echo' | |
5039 | fi | |
5040 | ||
5041 | # func_echo_all arg... | |
5042 | # Invoke $ECHO with all args, space-separated. | |
5043 | func_echo_all () | |
5044 | { | |
5045 | $ECHO "" | |
5046 | } | |
5047 | ||
5048 | case "$ECHO" in | |
5049 | printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
5050 | $as_echo "printf" >&6; } ;; | |
5051 | print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
5052 | $as_echo "print -r" >&6; } ;; | |
5053 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
5054 | $as_echo "cat" >&6; } ;; | |
5055 | esac | |
5056 | ||
5057 | ||
5058 | ||
5059 | ||
5060 | ||
5061 | ||
5062 | ||
5063 | ||
5064 | ||
5065 | ||
5066 | ||
5067 | ||
5068 | ||
5069 | ||
5070 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
d4c059d5 ILT |
5071 | $as_echo_n "checking for a sed that does not truncate output... " >&6; } |
5072 | if test "${ac_cv_path_SED+set}" = set; then : | |
eff02e4f ILT |
5073 | $as_echo_n "(cached) " >&6 |
5074 | else | |
d4c059d5 ILT |
5075 | ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ |
5076 | for ac_i in 1 2 3 4 5 6 7; do | |
5077 | ac_script="$ac_script$as_nl$ac_script" | |
5078 | done | |
5079 | echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
5080 | { ac_script=; unset ac_script;} | |
5081 | if test -z "$SED"; then | |
5082 | ac_path_SED_found=false | |
eff02e4f ILT |
5083 | # Loop through the user's path and test for each of PROGNAME-LIST |
5084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
d4c059d5 | 5085 | for as_dir in $PATH |
eff02e4f ILT |
5086 | do |
5087 | IFS=$as_save_IFS | |
5088 | test -z "$as_dir" && as_dir=. | |
d4c059d5 | 5089 | for ac_prog in sed gsed; do |
eff02e4f | 5090 | for ac_exec_ext in '' $ac_executable_extensions; do |
d4c059d5 ILT |
5091 | ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" |
5092 | { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue | |
5093 | # Check for GNU ac_path_SED and select it if it is found. | |
5094 | # Check for GNU $ac_path_SED | |
5095 | case `"$ac_path_SED" --version 2>&1` in | |
eff02e4f | 5096 | *GNU*) |
d4c059d5 | 5097 | ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; |
eff02e4f ILT |
5098 | *) |
5099 | ac_count=0 | |
5100 | $as_echo_n 0123456789 >"conftest.in" | |
5101 | while : | |
5102 | do | |
5103 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5104 | mv "conftest.tmp" "conftest.in" | |
5105 | cp "conftest.in" "conftest.nl" | |
d4c059d5 ILT |
5106 | $as_echo '' >> "conftest.nl" |
5107 | "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
eff02e4f ILT |
5108 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
5109 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
d4c059d5 | 5110 | if test $ac_count -gt ${ac_path_SED_max-0}; then |
eff02e4f | 5111 | # Best one so far, save it but keep looking for a better one |
d4c059d5 ILT |
5112 | ac_cv_path_SED="$ac_path_SED" |
5113 | ac_path_SED_max=$ac_count | |
eff02e4f ILT |
5114 | fi |
5115 | # 10*(2^10) chars as input seems more than enough | |
5116 | test $ac_count -gt 10 && break | |
5117 | done | |
5118 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5119 | esac | |
5120 | ||
d4c059d5 | 5121 | $ac_path_SED_found && break 3 |
eff02e4f ILT |
5122 | done |
5123 | done | |
5124 | done | |
5125 | IFS=$as_save_IFS | |
d4c059d5 ILT |
5126 | if test -z "$ac_cv_path_SED"; then |
5127 | as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
eff02e4f ILT |
5128 | fi |
5129 | else | |
d4c059d5 | 5130 | ac_cv_path_SED=$SED |
eff02e4f ILT |
5131 | fi |
5132 | ||
eff02e4f | 5133 | fi |
d4c059d5 ILT |
5134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 |
5135 | $as_echo "$ac_cv_path_SED" >&6; } | |
5136 | SED="$ac_cv_path_SED" | |
5137 | rm -f conftest.sed | |
5138 | ||
5139 | test -z "$SED" && SED=sed | |
5140 | Xsed="$SED -e 1s/^X//" | |
5141 | ||
5142 | ||
5143 | ||
5144 | ||
5145 | ||
5146 | ||
5147 | ||
5148 | ||
5149 | ||
eff02e4f ILT |
5150 | |
5151 | ||
5152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
5153 | $as_echo_n "checking for fgrep... " >&6; } | |
5154 | if test "${ac_cv_path_FGREP+set}" = set; then : | |
5155 | $as_echo_n "(cached) " >&6 | |
5156 | else | |
5157 | if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
5158 | then ac_cv_path_FGREP="$GREP -F" | |
5159 | else | |
5160 | if test -z "$FGREP"; then | |
5161 | ac_path_FGREP_found=false | |
5162 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5164 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5165 | do | |
5166 | IFS=$as_save_IFS | |
5167 | test -z "$as_dir" && as_dir=. | |
5168 | for ac_prog in fgrep; do | |
5169 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5170 | ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5171 | { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue | |
5172 | # Check for GNU ac_path_FGREP and select it if it is found. | |
5173 | # Check for GNU $ac_path_FGREP | |
5174 | case `"$ac_path_FGREP" --version 2>&1` in | |
5175 | *GNU*) | |
5176 | ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5177 | *) | |
5178 | ac_count=0 | |
5179 | $as_echo_n 0123456789 >"conftest.in" | |
5180 | while : | |
5181 | do | |
5182 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5183 | mv "conftest.tmp" "conftest.in" | |
5184 | cp "conftest.in" "conftest.nl" | |
5185 | $as_echo 'FGREP' >> "conftest.nl" | |
5186 | "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5187 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5188 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5189 | if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5190 | # Best one so far, save it but keep looking for a better one | |
5191 | ac_cv_path_FGREP="$ac_path_FGREP" | |
5192 | ac_path_FGREP_max=$ac_count | |
5193 | fi | |
5194 | # 10*(2^10) chars as input seems more than enough | |
5195 | test $ac_count -gt 10 && break | |
5196 | done | |
5197 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5198 | esac | |
5199 | ||
5200 | $ac_path_FGREP_found && break 3 | |
5201 | done | |
5202 | done | |
5203 | done | |
5204 | IFS=$as_save_IFS | |
5205 | if test -z "$ac_cv_path_FGREP"; then | |
5206 | as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5207 | fi | |
5208 | else | |
5209 | ac_cv_path_FGREP=$FGREP | |
5210 | fi | |
5211 | ||
5212 | fi | |
5213 | fi | |
5214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5215 | $as_echo "$ac_cv_path_FGREP" >&6; } | |
5216 | FGREP="$ac_cv_path_FGREP" | |
5217 | ||
5218 | ||
5219 | test -z "$GREP" && GREP=grep | |
5220 | ||
5221 | ||
5222 | ||
5223 | ||
5224 | ||
5225 | ||
5226 | ||
5227 | ||
5228 | ||
5229 | ||
5230 | ||
5231 | ||
5232 | ||
5233 | ||
5234 | ||
5235 | ||
5236 | ||
5237 | ||
5238 | ||
5239 | # Check whether --with-gnu-ld was given. | |
5240 | if test "${with_gnu_ld+set}" = set; then : | |
5241 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5242 | else | |
5243 | with_gnu_ld=no | |
5244 | fi | |
5245 | ||
5246 | ac_prog=ld | |
5247 | if test "$GCC" = yes; then | |
5248 | # Check if gcc -print-prog-name=ld gives a path. | |
5249 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5250 | $as_echo_n "checking for ld used by $CC... " >&6; } | |
5251 | case $host in | |
5252 | *-*-mingw*) | |
5253 | # gcc leaves a trailing carriage return which upsets mingw | |
5254 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5255 | *) | |
5256 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5257 | esac | |
5258 | case $ac_prog in | |
5259 | # Accept absolute paths. | |
5260 | [\\/]* | ?:[\\/]*) | |
5261 | re_direlt='/[^/][^/]*/\.\./' | |
5262 | # Canonicalize the pathname of ld | |
5263 | ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5264 | while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5265 | ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5266 | done | |
5267 | test -z "$LD" && LD="$ac_prog" | |
5268 | ;; | |
5269 | "") | |
5270 | # If it fails, then pretend we aren't using GCC. | |
5271 | ac_prog=ld | |
5272 | ;; | |
5273 | *) | |
5274 | # If it is relative, then search for the first ld in PATH. | |
5275 | with_gnu_ld=unknown | |
5276 | ;; | |
5277 | esac | |
5278 | elif test "$with_gnu_ld" = yes; then | |
5279 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5280 | $as_echo_n "checking for GNU ld... " >&6; } | |
5281 | else | |
5282 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5283 | $as_echo_n "checking for non-GNU ld... " >&6; } | |
5284 | fi | |
5285 | if test "${lt_cv_path_LD+set}" = set; then : | |
5286 | $as_echo_n "(cached) " >&6 | |
5287 | else | |
5288 | if test -z "$LD"; then | |
5289 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5290 | for ac_dir in $PATH; do | |
5291 | IFS="$lt_save_ifs" | |
5292 | test -z "$ac_dir" && ac_dir=. | |
5293 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5294 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
5295 | # Check to see if the program is GNU ld. I'd rather use --version, | |
5296 | # but apparently some variants of GNU ld only accept -v. | |
5297 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
5298 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5299 | *GNU* | *'with BFD'*) | |
5300 | test "$with_gnu_ld" != no && break | |
5301 | ;; | |
5302 | *) | |
5303 | test "$with_gnu_ld" != yes && break | |
5304 | ;; | |
5305 | esac | |
5306 | fi | |
5307 | done | |
5308 | IFS="$lt_save_ifs" | |
5309 | else | |
5310 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5311 | fi | |
5312 | fi | |
5313 | ||
5314 | LD="$lt_cv_path_LD" | |
5315 | if test -n "$LD"; then | |
5316 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5317 | $as_echo "$LD" >&6; } | |
5318 | else | |
5319 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5320 | $as_echo "no" >&6; } | |
5321 | fi | |
5322 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5324 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5325 | if test "${lt_cv_prog_gnu_ld+set}" = set; then : | |
5326 | $as_echo_n "(cached) " >&6 | |
5327 | else | |
5328 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5329 | case `$LD -v 2>&1 </dev/null` in | |
5330 | *GNU* | *'with BFD'*) | |
5331 | lt_cv_prog_gnu_ld=yes | |
5332 | ;; | |
5333 | *) | |
5334 | lt_cv_prog_gnu_ld=no | |
5335 | ;; | |
5336 | esac | |
5337 | fi | |
5338 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5339 | $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5340 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
5341 | ||
5342 | ||
5343 | ||
5344 | ||
5345 | ||
5346 | ||
5347 | ||
5348 | ||
5349 | ||
5350 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
5351 | $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5352 | if test "${lt_cv_path_NM+set}" = set; then : | |
5353 | $as_echo_n "(cached) " >&6 | |
5354 | else | |
5355 | if test -n "$NM"; then | |
5356 | # Let the user override the test. | |
5357 | lt_cv_path_NM="$NM" | |
5358 | else | |
5359 | lt_nm_to_check="${ac_tool_prefix}nm" | |
5360 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5361 | lt_nm_to_check="$lt_nm_to_check nm" | |
5362 | fi | |
5363 | for lt_tmp_nm in $lt_nm_to_check; do | |
5364 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5365 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5366 | IFS="$lt_save_ifs" | |
5367 | test -z "$ac_dir" && ac_dir=. | |
5368 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
5369 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5370 | # Check to see if the nm accepts a BSD-compat flag. | |
5371 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5372 | # nm: unknown option "B" ignored | |
5373 | # Tru64's nm complains that /dev/null is an invalid object file | |
5374 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5375 | */dev/null* | *'Invalid file or object type'*) | |
5376 | lt_cv_path_NM="$tmp_nm -B" | |
5377 | break | |
5378 | ;; | |
5379 | *) | |
5380 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5381 | */dev/null*) | |
5382 | lt_cv_path_NM="$tmp_nm -p" | |
5383 | break | |
5384 | ;; | |
5385 | *) | |
5386 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5387 | continue # so that we can try to find one that supports BSD flags | |
5388 | ;; | |
5389 | esac | |
5390 | ;; | |
5391 | esac | |
5392 | fi | |
5393 | done | |
5394 | IFS="$lt_save_ifs" | |
5395 | done | |
5396 | : ${lt_cv_path_NM=no} | |
5397 | fi | |
5398 | fi | |
5399 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
5400 | $as_echo "$lt_cv_path_NM" >&6; } | |
5401 | if test "$lt_cv_path_NM" != "no"; then | |
5402 | NM="$lt_cv_path_NM" | |
5403 | else | |
5404 | # Didn't find any BSD compatible name lister, look for dumpbin. | |
5405 | if test -n "$DUMPBIN"; then : | |
5406 | # Let the user override the test. | |
5407 | else | |
5408 | if test -n "$ac_tool_prefix"; then | |
5409 | for ac_prog in dumpbin "link -dump" | |
5410 | do | |
5411 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5412 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5413 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5414 | $as_echo_n "checking for $ac_word... " >&6; } | |
5415 | if test "${ac_cv_prog_DUMPBIN+set}" = set; then : | |
5416 | $as_echo_n "(cached) " >&6 | |
5417 | else | |
5418 | if test -n "$DUMPBIN"; then | |
5419 | ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5420 | else | |
5421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5422 | for as_dir in $PATH | |
5423 | do | |
5424 | IFS=$as_save_IFS | |
5425 | test -z "$as_dir" && as_dir=. | |
5426 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5427 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5428 | ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
5429 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5430 | break 2 | |
5431 | fi | |
5432 | done | |
5433 | done | |
5434 | IFS=$as_save_IFS | |
5435 | ||
5436 | fi | |
5437 | fi | |
5438 | DUMPBIN=$ac_cv_prog_DUMPBIN | |
5439 | if test -n "$DUMPBIN"; then | |
5440 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
5441 | $as_echo "$DUMPBIN" >&6; } | |
5442 | else | |
5443 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5444 | $as_echo "no" >&6; } | |
5445 | fi | |
5446 | ||
5447 | ||
5448 | test -n "$DUMPBIN" && break | |
5449 | done | |
5450 | fi | |
5451 | if test -z "$DUMPBIN"; then | |
5452 | ac_ct_DUMPBIN=$DUMPBIN | |
5453 | for ac_prog in dumpbin "link -dump" | |
5454 | do | |
5455 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5456 | set dummy $ac_prog; ac_word=$2 | |
5457 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5458 | $as_echo_n "checking for $ac_word... " >&6; } | |
5459 | if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : | |
5460 | $as_echo_n "(cached) " >&6 | |
5461 | else | |
5462 | if test -n "$ac_ct_DUMPBIN"; then | |
5463 | ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5464 | else | |
5465 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5466 | for as_dir in $PATH | |
5467 | do | |
5468 | IFS=$as_save_IFS | |
5469 | test -z "$as_dir" && as_dir=. | |
5470 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5471 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5472 | ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
5473 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5474 | break 2 | |
5475 | fi | |
5476 | done | |
5477 | done | |
5478 | IFS=$as_save_IFS | |
5479 | ||
5480 | fi | |
5481 | fi | |
5482 | ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5483 | if test -n "$ac_ct_DUMPBIN"; then | |
5484 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
5485 | $as_echo "$ac_ct_DUMPBIN" >&6; } | |
5486 | else | |
5487 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5488 | $as_echo "no" >&6; } | |
5489 | fi | |
5490 | ||
5491 | ||
5492 | test -n "$ac_ct_DUMPBIN" && break | |
5493 | done | |
5494 | ||
5495 | if test "x$ac_ct_DUMPBIN" = x; then | |
5496 | DUMPBIN=":" | |
5497 | else | |
5498 | case $cross_compiling:$ac_tool_warned in | |
5499 | yes:) | |
5500 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5501 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5502 | ac_tool_warned=yes ;; | |
5503 | esac | |
5504 | DUMPBIN=$ac_ct_DUMPBIN | |
5505 | fi | |
5506 | fi | |
5507 | ||
5508 | case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
5509 | *COFF*) | |
5510 | DUMPBIN="$DUMPBIN -symbols" | |
5511 | ;; | |
5512 | *) | |
5513 | DUMPBIN=: | |
5514 | ;; | |
5515 | esac | |
5516 | fi | |
5517 | ||
5518 | if test "$DUMPBIN" != ":"; then | |
5519 | NM="$DUMPBIN" | |
5520 | fi | |
5521 | fi | |
5522 | test -z "$NM" && NM=nm | |
5523 | ||
5524 | ||
5525 | ||
5526 | ||
5527 | ||
5528 | ||
5529 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
5530 | $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5531 | if test "${lt_cv_nm_interface+set}" = set; then : | |
5532 | $as_echo_n "(cached) " >&6 | |
5533 | else | |
5534 | lt_cv_nm_interface="BSD nm" | |
5535 | echo "int some_variable = 0;" > conftest.$ac_ext | |
5536 | (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5537 | (eval "$ac_compile" 2>conftest.err) | |
5538 | cat conftest.err >&5 | |
5539 | (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5540 | (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5541 | cat conftest.err >&5 | |
5542 | (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5543 | cat conftest.out >&5 | |
5544 | if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5545 | lt_cv_nm_interface="MS dumpbin" | |
5546 | fi | |
5547 | rm -f conftest* | |
5548 | fi | |
5549 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
5550 | $as_echo "$lt_cv_nm_interface" >&6; } | |
5551 | ||
5552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5553 | $as_echo_n "checking whether ln -s works... " >&6; } | |
5554 | LN_S=$as_ln_s | |
5555 | if test "$LN_S" = "ln -s"; then | |
5556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5557 | $as_echo "yes" >&6; } | |
5558 | else | |
5559 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5560 | $as_echo "no, using $LN_S" >&6; } | |
5561 | fi | |
5562 | ||
5563 | # find the maximum length of command line arguments | |
5564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5565 | $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5566 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then : | |
5567 | $as_echo_n "(cached) " >&6 | |
5568 | else | |
5569 | i=0 | |
5570 | teststring="ABCD" | |
5571 | ||
5572 | case $build_os in | |
5573 | msdosdjgpp*) | |
5574 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5575 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5576 | # during glob expansion). Even if it were fixed, the result of this | |
5577 | # check would be larger than it should be. | |
5578 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5579 | ;; | |
5580 | ||
5581 | gnu*) | |
5582 | # Under GNU Hurd, this test is not required because there is | |
5583 | # no limit to the length of command line arguments. | |
5584 | # Libtool will interpret -1 as no limit whatsoever | |
5585 | lt_cv_sys_max_cmd_len=-1; | |
5586 | ;; | |
5587 | ||
5588 | cygwin* | mingw* | cegcc*) | |
5589 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5590 | # about 5 minutes as the teststring grows exponentially. | |
5591 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
5592 | # you end up with a "frozen" computer, even though with patience | |
5593 | # the test eventually succeeds (with a max line length of 256k). | |
5594 | # Instead, let's just punt: use the minimum linelength reported by | |
5595 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
5596 | lt_cv_sys_max_cmd_len=8192; | |
5597 | ;; | |
5598 | ||
5599 | mint*) | |
5600 | # On MiNT this can take a long time and run out of memory. | |
5601 | lt_cv_sys_max_cmd_len=8192; | |
5602 | ;; | |
5603 | ||
5604 | amigaos*) | |
5605 | # On AmigaOS with pdksh, this test takes hours, literally. | |
5606 | # So we just punt and use a minimum line length of 8192. | |
5607 | lt_cv_sys_max_cmd_len=8192; | |
5608 | ;; | |
5609 | ||
5610 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5611 | # This has been around since 386BSD, at least. Likely further. | |
5612 | if test -x /sbin/sysctl; then | |
5613 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5614 | elif test -x /usr/sbin/sysctl; then | |
5615 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5616 | else | |
5617 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5618 | fi | |
5619 | # And add a safety zone | |
5620 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5621 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5622 | ;; | |
5623 | ||
5624 | interix*) | |
5625 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5626 | lt_cv_sys_max_cmd_len=196608 | |
5627 | ;; | |
5628 | ||
5629 | osf*) | |
5630 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5631 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5632 | # nice to cause kernel panics so lets avoid the loop below. | |
5633 | # First set a reasonable default. | |
5634 | lt_cv_sys_max_cmd_len=16384 | |
5635 | # | |
5636 | if test -x /sbin/sysconfig; then | |
5637 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5638 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5639 | esac | |
5640 | fi | |
5641 | ;; | |
5642 | sco3.2v5*) | |
5643 | lt_cv_sys_max_cmd_len=102400 | |
5644 | ;; | |
5645 | sysv5* | sco5v6* | sysv4.2uw2*) | |
5646 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5647 | if test -n "$kargmax"; then | |
5648 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5649 | else | |
5650 | lt_cv_sys_max_cmd_len=32768 | |
5651 | fi | |
5652 | ;; | |
5653 | *) | |
5654 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
5655 | if test -n "$lt_cv_sys_max_cmd_len"; then | |
5656 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5657 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5658 | else | |
5659 | # Make teststring a little bigger before we do anything with it. | |
5660 | # a 1K string should be a reasonable start. | |
5661 | for i in 1 2 3 4 5 6 7 8 ; do | |
5662 | teststring=$teststring$teststring | |
5663 | done | |
5664 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5665 | # If test is not a shell built-in, we'll probably end up computing a | |
5666 | # maximum length that is only half of the actual maximum length, but | |
5667 | # we can't tell. | |
5668 | while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ | |
5669 | = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
5670 | test $i != 17 # 1/2 MB should be enough | |
5671 | do | |
5672 | i=`expr $i + 1` | |
5673 | teststring=$teststring$teststring | |
5674 | done | |
5675 | # Only check the string length outside the loop. | |
5676 | lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5677 | teststring= | |
5678 | # Add a significant safety factor because C++ compilers can tack on | |
5679 | # massive amounts of additional arguments before passing them to the | |
5680 | # linker. It appears as though 1/2 is a usable value. | |
5681 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5682 | fi | |
5683 | ;; | |
5684 | esac | |
5685 | ||
5686 | fi | |
5687 | ||
5688 | if test -n $lt_cv_sys_max_cmd_len ; then | |
5689 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
5690 | $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
5691 | else | |
5692 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
5693 | $as_echo "none" >&6; } | |
5694 | fi | |
5695 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
5696 | ||
5697 | ||
5698 | ||
5699 | ||
5700 | ||
5701 | ||
5702 | : ${CP="cp -f"} | |
5703 | : ${MV="mv -f"} | |
5704 | : ${RM="rm -f"} | |
5705 | ||
5706 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
5707 | $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
5708 | # Try some XSI features | |
5709 | xsi_shell=no | |
5710 | ( _lt_dummy="a/b/c" | |
5711 | test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ | |
5712 | = c,a/b,, \ | |
5713 | && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5714 | && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
5715 | && xsi_shell=yes | |
5716 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
5717 | $as_echo "$xsi_shell" >&6; } | |
5718 | ||
5719 | ||
5720 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
5721 | $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
5722 | lt_shell_append=no | |
5723 | ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5724 | >/dev/null 2>&1 \ | |
5725 | && lt_shell_append=yes | |
5726 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
5727 | $as_echo "$lt_shell_append" >&6; } | |
5728 | ||
5729 | ||
5730 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5731 | lt_unset=unset | |
5732 | else | |
5733 | lt_unset=false | |
5734 | fi | |
5735 | ||
5736 | ||
5737 | ||
5738 | ||
5739 | ||
5740 | # test EBCDIC or ASCII | |
5741 | case `echo X|tr X '\101'` in | |
5742 | A) # ASCII based system | |
5743 | # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5744 | lt_SP2NL='tr \040 \012' | |
5745 | lt_NL2SP='tr \015\012 \040\040' | |
5746 | ;; | |
5747 | *) # EBCDIC based system | |
5748 | lt_SP2NL='tr \100 \n' | |
5749 | lt_NL2SP='tr \r\n \100\100' | |
5750 | ;; | |
5751 | esac | |
5752 | ||
5753 | ||
5754 | ||
5755 | ||
5756 | ||
5757 | ||
5758 | ||
5759 | ||
5760 | ||
5761 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
5762 | $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5763 | if test "${lt_cv_ld_reload_flag+set}" = set; then : | |
5764 | $as_echo_n "(cached) " >&6 | |
5765 | else | |
5766 | lt_cv_ld_reload_flag='-r' | |
5767 | fi | |
5768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
5769 | $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
5770 | reload_flag=$lt_cv_ld_reload_flag | |
5771 | case $reload_flag in | |
5772 | "" | " "*) ;; | |
5773 | *) reload_flag=" $reload_flag" ;; | |
5774 | esac | |
5775 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5776 | case $host_os in | |
5777 | darwin*) | |
5778 | if test "$GCC" = yes; then | |
5779 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5780 | else | |
5781 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5782 | fi | |
5783 | ;; | |
5784 | esac | |
5785 | ||
5786 | ||
5787 | ||
5788 | ||
5789 | ||
5790 | ||
5791 | ||
5792 | ||
5793 | ||
5794 | if test -n "$ac_tool_prefix"; then | |
5795 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5796 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5798 | $as_echo_n "checking for $ac_word... " >&6; } | |
5799 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then : | |
5800 | $as_echo_n "(cached) " >&6 | |
5801 | else | |
5802 | if test -n "$OBJDUMP"; then | |
5803 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5804 | else | |
5805 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5806 | for as_dir in $PATH | |
5807 | do | |
5808 | IFS=$as_save_IFS | |
5809 | test -z "$as_dir" && as_dir=. | |
5810 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5811 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5812 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
5813 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5814 | break 2 | |
5815 | fi | |
5816 | done | |
5817 | done | |
5818 | IFS=$as_save_IFS | |
5819 | ||
5820 | fi | |
5821 | fi | |
5822 | OBJDUMP=$ac_cv_prog_OBJDUMP | |
5823 | if test -n "$OBJDUMP"; then | |
5824 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
5825 | $as_echo "$OBJDUMP" >&6; } | |
5826 | else | |
5827 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5828 | $as_echo "no" >&6; } | |
5829 | fi | |
5830 | ||
5831 | ||
5832 | fi | |
5833 | if test -z "$ac_cv_prog_OBJDUMP"; then | |
5834 | ac_ct_OBJDUMP=$OBJDUMP | |
5835 | # Extract the first word of "objdump", so it can be a program name with args. | |
5836 | set dummy objdump; ac_word=$2 | |
5837 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5838 | $as_echo_n "checking for $ac_word... " >&6; } | |
5839 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : | |
5840 | $as_echo_n "(cached) " >&6 | |
5841 | else | |
5842 | if test -n "$ac_ct_OBJDUMP"; then | |
5843 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5844 | else | |
5845 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5846 | for as_dir in $PATH | |
5847 | do | |
5848 | IFS=$as_save_IFS | |
5849 | test -z "$as_dir" && as_dir=. | |
5850 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5851 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
5852 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
5853 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5854 | break 2 | |
5855 | fi | |
5856 | done | |
5857 | done | |
5858 | IFS=$as_save_IFS | |
5859 | ||
5860 | fi | |
5861 | fi | |
5862 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5863 | if test -n "$ac_ct_OBJDUMP"; then | |
5864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
5865 | $as_echo "$ac_ct_OBJDUMP" >&6; } | |
5866 | else | |
5867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5868 | $as_echo "no" >&6; } | |
5869 | fi | |
5870 | ||
5871 | if test "x$ac_ct_OBJDUMP" = x; then | |
5872 | OBJDUMP="false" | |
5873 | else | |
5874 | case $cross_compiling:$ac_tool_warned in | |
5875 | yes:) | |
5876 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5877 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5878 | ac_tool_warned=yes ;; | |
5879 | esac | |
5880 | OBJDUMP=$ac_ct_OBJDUMP | |
5881 | fi | |
5882 | else | |
5883 | OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5884 | fi | |
5885 | ||
5886 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
5887 | ||
5888 | ||
5889 | ||
5890 | ||
5891 | ||
5892 | ||
5893 | ||
5894 | ||
5895 | ||
5896 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
5897 | $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
5898 | if test "${lt_cv_deplibs_check_method+set}" = set; then : | |
5899 | $as_echo_n "(cached) " >&6 | |
5900 | else | |
5901 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5902 | lt_cv_file_magic_test_file= | |
5903 | lt_cv_deplibs_check_method='unknown' | |
5904 | # Need to set the preceding variable on all platforms that support | |
5905 | # interlibrary dependencies. | |
5906 | # 'none' -- dependencies not supported. | |
5907 | # `unknown' -- same as none, but documents that we really don't know. | |
5908 | # 'pass_all' -- all dependencies passed with no checks. | |
5909 | # 'test_compile' -- check by making test program. | |
5910 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
5911 | # which responds to the $file_magic_cmd with a given extended regex. | |
5912 | # If you have `file' or equivalent on your system and you're not sure | |
5913 | # whether `pass_all' will *always* work, you probably want this one. | |
5914 | ||
5915 | case $host_os in | |
5916 | aix[4-9]*) | |
5917 | lt_cv_deplibs_check_method=pass_all | |
5918 | ;; | |
5919 | ||
5920 | beos*) | |
5921 | lt_cv_deplibs_check_method=pass_all | |
5922 | ;; | |
5923 | ||
5924 | bsdi[45]*) | |
5925 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5926 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5927 | lt_cv_file_magic_test_file=/shlib/libc.so | |
5928 | ;; | |
5929 | ||
5930 | cygwin*) | |
5931 | # func_win32_libid is a shell function defined in ltmain.sh | |
5932 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5933 | lt_cv_file_magic_cmd='func_win32_libid' | |
5934 | ;; | |
5935 | ||
5936 | mingw* | pw32*) | |
5937 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
5938 | # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5939 | # unless we find 'file', for example because we are cross-compiling. | |
5940 | # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
5941 | if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
5942 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5943 | lt_cv_file_magic_cmd='func_win32_libid' | |
5944 | else | |
5945 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
5946 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5947 | fi | |
5948 | ;; | |
5949 | ||
5950 | cegcc*) | |
5951 | # use the weaker test based on 'objdump'. See mingw*. | |
5952 | lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5953 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5954 | ;; | |
5955 | ||
5956 | darwin* | rhapsody*) | |
5957 | lt_cv_deplibs_check_method=pass_all | |
5958 | ;; | |
5959 | ||
5960 | freebsd* | dragonfly*) | |
5961 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5962 | case $host_cpu in | |
5963 | i*86 ) | |
5964 | # Not sure whether the presence of OpenBSD here was a mistake. | |
5965 | # Let's accept both of them until this is cleared up. | |
5966 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5967 | lt_cv_file_magic_cmd=/usr/bin/file | |
5968 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5969 | ;; | |
5970 | esac | |
5971 | else | |
5972 | lt_cv_deplibs_check_method=pass_all | |
5973 | fi | |
5974 | ;; | |
5975 | ||
5976 | gnu*) | |
5977 | lt_cv_deplibs_check_method=pass_all | |
5978 | ;; | |
5979 | ||
5980 | haiku*) | |
5981 | lt_cv_deplibs_check_method=pass_all | |
5982 | ;; | |
5983 | ||
5984 | hpux10.20* | hpux11*) | |
5985 | lt_cv_file_magic_cmd=/usr/bin/file | |
5986 | case $host_cpu in | |
5987 | ia64*) | |
5988 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5989 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5990 | ;; | |
5991 | hppa*64*) | |
5992 | 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]' | |
5993 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5994 | ;; | |
5995 | *) | |
5996 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
5997 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5998 | ;; | |
5999 | esac | |
6000 | ;; | |
6001 | ||
6002 | interix[3-9]*) | |
6003 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6004 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6005 | ;; | |
6006 | ||
6007 | irix5* | irix6* | nonstopux*) | |
6008 | case $LD in | |
6009 | *-32|*"-32 ") libmagic=32-bit;; | |
6010 | *-n32|*"-n32 ") libmagic=N32;; | |
6011 | *-64|*"-64 ") libmagic=64-bit;; | |
6012 | *) libmagic=never-match;; | |
6013 | esac | |
6014 | lt_cv_deplibs_check_method=pass_all | |
6015 | ;; | |
6016 | ||
6017 | # This must be Linux ELF. | |
6018 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
6019 | lt_cv_deplibs_check_method=pass_all | |
6020 | ;; | |
6021 | ||
6022 | netbsd*) | |
6023 | if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
6024 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6025 | else | |
6026 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6027 | fi | |
6028 | ;; | |
6029 | ||
6030 | newos6*) | |
6031 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6032 | lt_cv_file_magic_cmd=/usr/bin/file | |
6033 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6034 | ;; | |
6035 | ||
6036 | *nto* | *qnx*) | |
6037 | lt_cv_deplibs_check_method=pass_all | |
6038 | ;; | |
6039 | ||
6040 | openbsd*) | |
6041 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6042 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6043 | else | |
6044 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6045 | fi | |
6046 | ;; | |
6047 | ||
6048 | osf3* | osf4* | osf5*) | |
6049 | lt_cv_deplibs_check_method=pass_all | |
6050 | ;; | |
6051 | ||
6052 | rdos*) | |
6053 | lt_cv_deplibs_check_method=pass_all | |
6054 | ;; | |
6055 | ||
6056 | solaris*) | |
6057 | lt_cv_deplibs_check_method=pass_all | |
6058 | ;; | |
6059 | ||
6060 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6061 | lt_cv_deplibs_check_method=pass_all | |
6062 | ;; | |
6063 | ||
6064 | sysv4 | sysv4.3*) | |
6065 | case $host_vendor in | |
6066 | motorola) | |
6067 | 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]' | |
6068 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6069 | ;; | |
6070 | ncr) | |
6071 | lt_cv_deplibs_check_method=pass_all | |
6072 | ;; | |
6073 | sequent) | |
6074 | lt_cv_file_magic_cmd='/bin/file' | |
6075 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6076 | ;; | |
6077 | sni) | |
6078 | lt_cv_file_magic_cmd='/bin/file' | |
6079 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6080 | lt_cv_file_magic_test_file=/lib/libc.so | |
6081 | ;; | |
6082 | siemens) | |
6083 | lt_cv_deplibs_check_method=pass_all | |
6084 | ;; | |
6085 | pc) | |
6086 | lt_cv_deplibs_check_method=pass_all | |
6087 | ;; | |
6088 | esac | |
6089 | ;; | |
6090 | ||
6091 | tpf*) | |
6092 | lt_cv_deplibs_check_method=pass_all | |
6093 | ;; | |
6094 | esac | |
6095 | ||
6096 | fi | |
6097 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6098 | $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
6099 | file_magic_cmd=$lt_cv_file_magic_cmd | |
6100 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6101 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6102 | ||
6103 | ||
6104 | ||
6105 | ||
6106 | ||
6107 | ||
6108 | ||
6109 | ||
6110 | ||
6111 | ||
6112 | ||
6113 | ||
6114 | if test -n "$ac_tool_prefix"; then | |
6115 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
6116 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
6117 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6118 | $as_echo_n "checking for $ac_word... " >&6; } | |
6119 | if test "${ac_cv_prog_AR+set}" = set; then : | |
6120 | $as_echo_n "(cached) " >&6 | |
6121 | else | |
6122 | if test -n "$AR"; then | |
6123 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
6124 | else | |
6125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6126 | for as_dir in $PATH | |
6127 | do | |
6128 | IFS=$as_save_IFS | |
6129 | test -z "$as_dir" && as_dir=. | |
6130 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6131 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6132 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
6133 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6134 | break 2 | |
6135 | fi | |
6136 | done | |
6137 | done | |
6138 | IFS=$as_save_IFS | |
6139 | ||
6140 | fi | |
6141 | fi | |
6142 | AR=$ac_cv_prog_AR | |
6143 | if test -n "$AR"; then | |
6144 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6145 | $as_echo "$AR" >&6; } | |
6146 | else | |
6147 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6148 | $as_echo "no" >&6; } | |
6149 | fi | |
6150 | ||
6151 | ||
6152 | fi | |
6153 | if test -z "$ac_cv_prog_AR"; then | |
6154 | ac_ct_AR=$AR | |
6155 | # Extract the first word of "ar", so it can be a program name with args. | |
6156 | set dummy ar; ac_word=$2 | |
6157 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6158 | $as_echo_n "checking for $ac_word... " >&6; } | |
6159 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : | |
6160 | $as_echo_n "(cached) " >&6 | |
6161 | else | |
6162 | if test -n "$ac_ct_AR"; then | |
6163 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
6164 | else | |
6165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6166 | for as_dir in $PATH | |
6167 | do | |
6168 | IFS=$as_save_IFS | |
6169 | test -z "$as_dir" && as_dir=. | |
6170 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6171 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6172 | ac_cv_prog_ac_ct_AR="ar" | |
6173 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6174 | break 2 | |
6175 | fi | |
6176 | done | |
6177 | done | |
6178 | IFS=$as_save_IFS | |
6179 | ||
6180 | fi | |
6181 | fi | |
6182 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
6183 | if test -n "$ac_ct_AR"; then | |
6184 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6185 | $as_echo "$ac_ct_AR" >&6; } | |
6186 | else | |
6187 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6188 | $as_echo "no" >&6; } | |
6189 | fi | |
6190 | ||
6191 | if test "x$ac_ct_AR" = x; then | |
6192 | AR="false" | |
6193 | else | |
6194 | case $cross_compiling:$ac_tool_warned in | |
6195 | yes:) | |
6196 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6197 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6198 | ac_tool_warned=yes ;; | |
6199 | esac | |
6200 | AR=$ac_ct_AR | |
6201 | fi | |
6202 | else | |
6203 | AR="$ac_cv_prog_AR" | |
6204 | fi | |
6205 | ||
6206 | test -z "$AR" && AR=ar | |
6207 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
6208 | ||
6209 | ||
6210 | ||
6211 | ||
6212 | ||
6213 | ||
6214 | ||
6215 | ||
6216 | ||
6217 | ||
6218 | ||
6219 | if test -n "$ac_tool_prefix"; then | |
6220 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6221 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6222 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6223 | $as_echo_n "checking for $ac_word... " >&6; } | |
6224 | if test "${ac_cv_prog_STRIP+set}" = set; then : | |
6225 | $as_echo_n "(cached) " >&6 | |
6226 | else | |
6227 | if test -n "$STRIP"; then | |
6228 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6229 | else | |
6230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6231 | for as_dir in $PATH | |
6232 | do | |
6233 | IFS=$as_save_IFS | |
6234 | test -z "$as_dir" && as_dir=. | |
6235 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6236 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6237 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6238 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6239 | break 2 | |
6240 | fi | |
6241 | done | |
6242 | done | |
6243 | IFS=$as_save_IFS | |
6244 | ||
6245 | fi | |
6246 | fi | |
6247 | STRIP=$ac_cv_prog_STRIP | |
6248 | if test -n "$STRIP"; then | |
6249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6250 | $as_echo "$STRIP" >&6; } | |
6251 | else | |
6252 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6253 | $as_echo "no" >&6; } | |
6254 | fi | |
6255 | ||
6256 | ||
6257 | fi | |
6258 | if test -z "$ac_cv_prog_STRIP"; then | |
6259 | ac_ct_STRIP=$STRIP | |
6260 | # Extract the first word of "strip", so it can be a program name with args. | |
6261 | set dummy strip; ac_word=$2 | |
6262 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6263 | $as_echo_n "checking for $ac_word... " >&6; } | |
6264 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : | |
6265 | $as_echo_n "(cached) " >&6 | |
6266 | else | |
6267 | if test -n "$ac_ct_STRIP"; then | |
6268 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6269 | else | |
6270 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6271 | for as_dir in $PATH | |
6272 | do | |
6273 | IFS=$as_save_IFS | |
6274 | test -z "$as_dir" && as_dir=. | |
6275 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6276 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6277 | ac_cv_prog_ac_ct_STRIP="strip" | |
6278 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6279 | break 2 | |
6280 | fi | |
6281 | done | |
6282 | done | |
6283 | IFS=$as_save_IFS | |
6284 | ||
6285 | fi | |
6286 | fi | |
6287 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6288 | if test -n "$ac_ct_STRIP"; then | |
6289 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6290 | $as_echo "$ac_ct_STRIP" >&6; } | |
6291 | else | |
6292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6293 | $as_echo "no" >&6; } | |
6294 | fi | |
6295 | ||
6296 | if test "x$ac_ct_STRIP" = x; then | |
6297 | STRIP=":" | |
6298 | else | |
6299 | case $cross_compiling:$ac_tool_warned in | |
6300 | yes:) | |
6301 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6302 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6303 | ac_tool_warned=yes ;; | |
6304 | esac | |
6305 | STRIP=$ac_ct_STRIP | |
6306 | fi | |
6307 | else | |
6308 | STRIP="$ac_cv_prog_STRIP" | |
6309 | fi | |
6310 | ||
6311 | test -z "$STRIP" && STRIP=: | |
6312 | ||
6313 | ||
6314 | ||
6315 | ||
6316 | ||
6317 | ||
6318 | if test -n "$ac_tool_prefix"; then | |
6319 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6320 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6321 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6322 | $as_echo_n "checking for $ac_word... " >&6; } | |
6323 | if test "${ac_cv_prog_RANLIB+set}" = set; then : | |
6324 | $as_echo_n "(cached) " >&6 | |
6325 | else | |
6326 | if test -n "$RANLIB"; then | |
6327 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6328 | else | |
6329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6330 | for as_dir in $PATH | |
6331 | do | |
6332 | IFS=$as_save_IFS | |
6333 | test -z "$as_dir" && as_dir=. | |
6334 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6335 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6336 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6337 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6338 | break 2 | |
6339 | fi | |
6340 | done | |
6341 | done | |
6342 | IFS=$as_save_IFS | |
6343 | ||
6344 | fi | |
6345 | fi | |
6346 | RANLIB=$ac_cv_prog_RANLIB | |
6347 | if test -n "$RANLIB"; then | |
6348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6349 | $as_echo "$RANLIB" >&6; } | |
6350 | else | |
6351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6352 | $as_echo "no" >&6; } | |
6353 | fi | |
6354 | ||
6355 | ||
6356 | fi | |
6357 | if test -z "$ac_cv_prog_RANLIB"; then | |
6358 | ac_ct_RANLIB=$RANLIB | |
6359 | # Extract the first word of "ranlib", so it can be a program name with args. | |
6360 | set dummy ranlib; ac_word=$2 | |
6361 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6362 | $as_echo_n "checking for $ac_word... " >&6; } | |
6363 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : | |
6364 | $as_echo_n "(cached) " >&6 | |
6365 | else | |
6366 | if test -n "$ac_ct_RANLIB"; then | |
6367 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6368 | else | |
6369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6370 | for as_dir in $PATH | |
6371 | do | |
6372 | IFS=$as_save_IFS | |
6373 | test -z "$as_dir" && as_dir=. | |
6374 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6375 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6376 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6377 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6378 | break 2 | |
6379 | fi | |
6380 | done | |
6381 | done | |
6382 | IFS=$as_save_IFS | |
6383 | ||
6384 | fi | |
6385 | fi | |
6386 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6387 | if test -n "$ac_ct_RANLIB"; then | |
6388 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6389 | $as_echo "$ac_ct_RANLIB" >&6; } | |
6390 | else | |
6391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6392 | $as_echo "no" >&6; } | |
6393 | fi | |
6394 | ||
6395 | if test "x$ac_ct_RANLIB" = x; then | |
6396 | RANLIB=":" | |
6397 | else | |
6398 | case $cross_compiling:$ac_tool_warned in | |
6399 | yes:) | |
6400 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6401 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6402 | ac_tool_warned=yes ;; | |
6403 | esac | |
6404 | RANLIB=$ac_ct_RANLIB | |
6405 | fi | |
6406 | else | |
6407 | RANLIB="$ac_cv_prog_RANLIB" | |
6408 | fi | |
6409 | ||
6410 | test -z "$RANLIB" && RANLIB=: | |
6411 | ||
6412 | ||
6413 | ||
6414 | ||
6415 | ||
6416 | ||
6417 | # Determine commands to create old-style static archives. | |
6418 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6419 | old_postinstall_cmds='chmod 644 $oldlib' | |
6420 | old_postuninstall_cmds= | |
6421 | ||
6422 | if test -n "$RANLIB"; then | |
6423 | case $host_os in | |
6424 | openbsd*) | |
6425 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
6426 | ;; | |
6427 | *) | |
6428 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
6429 | ;; | |
6430 | esac | |
6431 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
6432 | fi | |
6433 | ||
6434 | case $host_os in | |
6435 | darwin*) | |
6436 | lock_old_archive_extraction=yes ;; | |
6437 | *) | |
6438 | lock_old_archive_extraction=no ;; | |
6439 | esac | |
6440 | ||
6441 | ||
6442 | ||
6443 | ||
6444 | ||
6445 | ||
6446 | ||
6447 | ||
6448 | ||
6449 | ||
6450 | ||
6451 | ||
6452 | ||
6453 | ||
6454 | ||
6455 | ||
6456 | ||
6457 | ||
6458 | ||
6459 | ||
6460 | ||
6461 | ||
6462 | ||
6463 | ||
6464 | ||
6465 | ||
6466 | ||
6467 | ||
6468 | ||
6469 | ||
6470 | ||
6471 | ||
6472 | ||
6473 | ||
6474 | ||
6475 | ||
6476 | ||
6477 | ||
6478 | ||
6479 | # If no C compiler was specified, use CC. | |
6480 | LTCC=${LTCC-"$CC"} | |
6481 | ||
6482 | # If no C compiler flags were specified, use CFLAGS. | |
6483 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6484 | ||
6485 | # Allow CC to be a program name with arguments. | |
6486 | compiler=$CC | |
6487 | ||
6488 | ||
6489 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
6490 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
6491 | $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
6492 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : | |
6493 | $as_echo_n "(cached) " >&6 | |
6494 | else | |
6495 | ||
6496 | # These are sane defaults that work on at least a few old systems. | |
6497 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6498 | ||
6499 | # Character class describing NM global symbol codes. | |
6500 | symcode='[BCDEGRST]' | |
6501 | ||
6502 | # Regexp to match symbols that can be accessed directly from C. | |
6503 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6504 | ||
6505 | # Define system-specific variables. | |
6506 | case $host_os in | |
6507 | aix*) | |
6508 | symcode='[BCDT]' | |
6509 | ;; | |
6510 | cygwin* | mingw* | pw32* | cegcc*) | |
6511 | symcode='[ABCDGISTW]' | |
6512 | ;; | |
6513 | hpux*) | |
6514 | if test "$host_cpu" = ia64; then | |
6515 | symcode='[ABCDEGRST]' | |
6516 | fi | |
6517 | ;; | |
6518 | irix* | nonstopux*) | |
6519 | symcode='[BCDEGRST]' | |
6520 | ;; | |
6521 | osf*) | |
6522 | symcode='[BCDEGQRST]' | |
6523 | ;; | |
6524 | solaris*) | |
6525 | symcode='[BDRT]' | |
6526 | ;; | |
6527 | sco3.2v5*) | |
6528 | symcode='[DT]' | |
6529 | ;; | |
6530 | sysv4.2uw2*) | |
6531 | symcode='[DT]' | |
6532 | ;; | |
6533 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6534 | symcode='[ABDT]' | |
6535 | ;; | |
6536 | sysv4) | |
6537 | symcode='[DFNSTU]' | |
6538 | ;; | |
6539 | esac | |
6540 | ||
6541 | # If we're using GNU nm, then use its standard symbol codes. | |
6542 | case `$NM -V 2>&1` in | |
6543 | *GNU* | *'with BFD'*) | |
6544 | symcode='[ABCDGIRSTW]' ;; | |
6545 | esac | |
6546 | ||
6547 | # Transform an extracted symbol line into a proper C declaration. | |
6548 | # Some systems (esp. on ia64) link data and code symbols differently, | |
6549 | # so use this general approach. | |
6550 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6551 | ||
6552 | # Transform an extracted symbol line into symbol name and symbol address | |
6553 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
6554 | 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'" | |
6555 | ||
6556 | # Handle CRLF in mingw tool chain | |
6557 | opt_cr= | |
6558 | case $build_os in | |
6559 | mingw*) | |
6560 | opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6561 | ;; | |
6562 | esac | |
6563 | ||
6564 | # Try without a prefix underscore, then with it. | |
6565 | for ac_symprfx in "" "_"; do | |
6566 | ||
6567 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6568 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6569 | ||
6570 | # Write the raw and C identifiers. | |
6571 | if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6572 | # Fake it for dumpbin and say T for any non-static function | |
6573 | # and D for any global variable. | |
6574 | # Also find C++ and __fastcall symbols from MSVC++, | |
6575 | # which start with @ or ?. | |
6576 | lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6577 | " {last_section=section; section=\$ 3};"\ | |
6578 | " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6579 | " \$ 0!~/External *\|/{next};"\ | |
6580 | " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6581 | " {if(hide[section]) next};"\ | |
6582 | " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6583 | " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6584 | " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6585 | " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6586 | " ' prfx=^$ac_symprfx" | |
6587 | else | |
6588 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6589 | fi | |
6590 | ||
6591 | # Check to see that the pipe works correctly. | |
6592 | pipe_works=no | |
6593 | ||
6594 | rm -f conftest* | |
6595 | cat > conftest.$ac_ext <<_LT_EOF | |
6596 | #ifdef __cplusplus | |
6597 | extern "C" { | |
6598 | #endif | |
6599 | char nm_test_var; | |
6600 | void nm_test_func(void); | |
6601 | void nm_test_func(void){} | |
6602 | #ifdef __cplusplus | |
6603 | } | |
6604 | #endif | |
6605 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
6606 | _LT_EOF | |
6607 | ||
6608 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6609 | (eval $ac_compile) 2>&5 | |
6610 | ac_status=$? | |
6611 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6612 | test $ac_status = 0; }; then | |
6613 | # Now try to grab the symbols. | |
6614 | nlist=conftest.nm | |
6615 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
6616 | (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
6617 | ac_status=$? | |
6618 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6619 | test $ac_status = 0; } && test -s "$nlist"; then | |
6620 | # Try sorting and uniquifying the output. | |
6621 | if sort "$nlist" | uniq > "$nlist"T; then | |
6622 | mv -f "$nlist"T "$nlist" | |
6623 | else | |
6624 | rm -f "$nlist"T | |
6625 | fi | |
6626 | ||
6627 | # Make sure that we snagged all the symbols we need. | |
6628 | if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6629 | if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6630 | cat <<_LT_EOF > conftest.$ac_ext | |
6631 | #ifdef __cplusplus | |
6632 | extern "C" { | |
6633 | #endif | |
6634 | ||
6635 | _LT_EOF | |
6636 | # Now generate the symbol file. | |
6637 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
6638 | ||
6639 | cat <<_LT_EOF >> conftest.$ac_ext | |
6640 | ||
6641 | /* The mapping between symbol names and symbols. */ | |
6642 | const struct { | |
6643 | const char *name; | |
6644 | void *address; | |
6645 | } | |
6646 | lt__PROGRAM__LTX_preloaded_symbols[] = | |
6647 | { | |
6648 | { "@PROGRAM@", (void *) 0 }, | |
6649 | _LT_EOF | |
6650 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6651 | cat <<\_LT_EOF >> conftest.$ac_ext | |
6652 | {0, (void *) 0} | |
6653 | }; | |
6654 | ||
6655 | /* This works around a problem in FreeBSD linker */ | |
6656 | #ifdef FREEBSD_WORKAROUND | |
6657 | static const void *lt_preloaded_setup() { | |
6658 | return lt__PROGRAM__LTX_preloaded_symbols; | |
6659 | } | |
6660 | #endif | |
6661 | ||
6662 | #ifdef __cplusplus | |
6663 | } | |
6664 | #endif | |
6665 | _LT_EOF | |
6666 | # Now try linking the two files. | |
6667 | mv conftest.$ac_objext conftstm.$ac_objext | |
6668 | lt_save_LIBS="$LIBS" | |
6669 | lt_save_CFLAGS="$CFLAGS" | |
6670 | LIBS="conftstm.$ac_objext" | |
6671 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6672 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
6673 | (eval $ac_link) 2>&5 | |
6674 | ac_status=$? | |
6675 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6676 | test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
6677 | pipe_works=yes | |
6678 | fi | |
6679 | LIBS="$lt_save_LIBS" | |
6680 | CFLAGS="$lt_save_CFLAGS" | |
6681 | else | |
6682 | echo "cannot find nm_test_func in $nlist" >&5 | |
6683 | fi | |
6684 | else | |
6685 | echo "cannot find nm_test_var in $nlist" >&5 | |
6686 | fi | |
6687 | else | |
6688 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6689 | fi | |
6690 | else | |
6691 | echo "$progname: failed program was:" >&5 | |
6692 | cat conftest.$ac_ext >&5 | |
6693 | fi | |
6694 | rm -rf conftest* conftst* | |
6695 | ||
6696 | # Do not use the global_symbol_pipe unless it works. | |
6697 | if test "$pipe_works" = yes; then | |
6698 | break | |
6699 | else | |
6700 | lt_cv_sys_global_symbol_pipe= | |
6701 | fi | |
6702 | done | |
6703 | ||
6704 | fi | |
6705 | ||
6706 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6707 | lt_cv_sys_global_symbol_to_cdecl= | |
6708 | fi | |
6709 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
6710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
6711 | $as_echo "failed" >&6; } | |
6712 | else | |
6713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
6714 | $as_echo "ok" >&6; } | |
6715 | fi | |
6716 | ||
6717 | ||
6718 | ||
6719 | ||
6720 | ||
6721 | ||
6722 | ||
6723 | ||
6724 | ||
6725 | ||
6726 | ||
6727 | ||
6728 | ||
6729 | ||
6730 | ||
6731 | ||
6732 | ||
6733 | ||
6734 | ||
6735 | ||
eff02e4f ILT |
6736 | |
6737 | ||
6738 | # Check whether --enable-libtool-lock was given. | |
6739 | if test "${enable_libtool_lock+set}" = set; then : | |
6740 | enableval=$enable_libtool_lock; | |
6741 | fi | |
6742 | ||
6743 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
6744 | ||
6745 | # Some flags need to be propagated to the compiler or linker for good | |
6746 | # libtool support. | |
6747 | case $host in | |
6748 | ia64-*-hpux*) | |
6749 | # Find out which ABI we are using. | |
6750 | echo 'int i;' > conftest.$ac_ext | |
6751 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6752 | (eval $ac_compile) 2>&5 | |
6753 | ac_status=$? | |
6754 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6755 | test $ac_status = 0; }; then | |
6756 | case `/usr/bin/file conftest.$ac_objext` in | |
6757 | *ELF-32*) | |
6758 | HPUX_IA64_MODE="32" | |
6759 | ;; | |
6760 | *ELF-64*) | |
6761 | HPUX_IA64_MODE="64" | |
6762 | ;; | |
6763 | esac | |
6764 | fi | |
6765 | rm -rf conftest* | |
6766 | ;; | |
6767 | *-*-irix6*) | |
6768 | # Find out which ABI we are using. | |
6769 | echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6770 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6771 | (eval $ac_compile) 2>&5 | |
6772 | ac_status=$? | |
6773 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6774 | test $ac_status = 0; }; then | |
6775 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
6776 | case `/usr/bin/file conftest.$ac_objext` in | |
6777 | *32-bit*) | |
6778 | LD="${LD-ld} -melf32bsmip" | |
6779 | ;; | |
6780 | *N32*) | |
6781 | LD="${LD-ld} -melf32bmipn32" | |
6782 | ;; | |
6783 | *64-bit*) | |
6784 | LD="${LD-ld} -melf64bmip" | |
6785 | ;; | |
6786 | esac | |
6787 | else | |
6788 | case `/usr/bin/file conftest.$ac_objext` in | |
6789 | *32-bit*) | |
6790 | LD="${LD-ld} -32" | |
6791 | ;; | |
6792 | *N32*) | |
6793 | LD="${LD-ld} -n32" | |
6794 | ;; | |
6795 | *64-bit*) | |
6796 | LD="${LD-ld} -64" | |
6797 | ;; | |
6798 | esac | |
6799 | fi | |
6800 | fi | |
6801 | rm -rf conftest* | |
6802 | ;; | |
6803 | ||
6804 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ | |
6805 | s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
6806 | # Find out which ABI we are using. | |
6807 | echo 'int i;' > conftest.$ac_ext | |
6808 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6809 | (eval $ac_compile) 2>&5 | |
6810 | ac_status=$? | |
6811 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6812 | test $ac_status = 0; }; then | |
6813 | case `/usr/bin/file conftest.o` in | |
6814 | *32-bit*) | |
6815 | case $host in | |
6816 | x86_64-*kfreebsd*-gnu) | |
6817 | LD="${LD-ld} -m elf_i386_fbsd" | |
6818 | ;; | |
6819 | x86_64-*linux*) | |
6820 | case `/usr/bin/file conftest.o` in | |
6821 | *x86-64*) | |
6822 | LD="${LD-ld} -m elf32_x86_64" | |
6823 | ;; | |
6824 | *) | |
6825 | LD="${LD-ld} -m elf_i386" | |
6826 | ;; | |
6827 | esac | |
6828 | ;; | |
6829 | ppc64-*linux*|powerpc64-*linux*) | |
6830 | LD="${LD-ld} -m elf32ppclinux" | |
6831 | ;; | |
6832 | s390x-*linux*) | |
6833 | LD="${LD-ld} -m elf_s390" | |
6834 | ;; | |
6835 | sparc64-*linux*) | |
6836 | LD="${LD-ld} -m elf32_sparc" | |
6837 | ;; | |
6838 | esac | |
6839 | ;; | |
6840 | *64-bit*) | |
6841 | case $host in | |
6842 | x86_64-*kfreebsd*-gnu) | |
6843 | LD="${LD-ld} -m elf_x86_64_fbsd" | |
6844 | ;; | |
6845 | x86_64-*linux*) | |
6846 | LD="${LD-ld} -m elf_x86_64" | |
6847 | ;; | |
6848 | ppc*-*linux*|powerpc*-*linux*) | |
6849 | LD="${LD-ld} -m elf64ppc" | |
6850 | ;; | |
6851 | s390*-*linux*|s390*-*tpf*) | |
6852 | LD="${LD-ld} -m elf64_s390" | |
6853 | ;; | |
6854 | sparc*-*linux*) | |
6855 | LD="${LD-ld} -m elf64_sparc" | |
6856 | ;; | |
6857 | esac | |
6858 | ;; | |
6859 | esac | |
6860 | fi | |
6861 | rm -rf conftest* | |
6862 | ;; | |
6863 | ||
6864 | *-*-sco3.2v5*) | |
6865 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6866 | SAVE_CFLAGS="$CFLAGS" | |
6867 | CFLAGS="$CFLAGS -belf" | |
6868 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
6869 | $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
6870 | if test "${lt_cv_cc_needs_belf+set}" = set; then : | |
6871 | $as_echo_n "(cached) " >&6 | |
6872 | else | |
6873 | ac_ext=c | |
6874 | ac_cpp='$CPP $CPPFLAGS' | |
6875 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6876 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6877 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6878 | ||
6879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6880 | /* end confdefs.h. */ | |
6881 | ||
6882 | int | |
6883 | main () | |
6884 | { | |
6885 | ||
6886 | ; | |
6887 | return 0; | |
6888 | } | |
6889 | _ACEOF | |
6890 | if ac_fn_c_try_link "$LINENO"; then : | |
6891 | lt_cv_cc_needs_belf=yes | |
6892 | else | |
6893 | lt_cv_cc_needs_belf=no | |
6894 | fi | |
6895 | rm -f core conftest.err conftest.$ac_objext \ | |
6896 | conftest$ac_exeext conftest.$ac_ext | |
6897 | ac_ext=c | |
6898 | ac_cpp='$CPP $CPPFLAGS' | |
6899 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6900 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6901 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6902 | ||
6903 | fi | |
6904 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
6905 | $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
6906 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
6907 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
6908 | CFLAGS="$SAVE_CFLAGS" | |
6909 | fi | |
6910 | ;; | |
6911 | sparc*-*solaris*) | |
6912 | # Find out which ABI we are using. | |
6913 | echo 'int i;' > conftest.$ac_ext | |
6914 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6915 | (eval $ac_compile) 2>&5 | |
6916 | ac_status=$? | |
6917 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6918 | test $ac_status = 0; }; then | |
6919 | case `/usr/bin/file conftest.o` in | |
6920 | *64-bit*) | |
6921 | case $lt_cv_prog_gnu_ld in | |
6922 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
6923 | *) | |
6924 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
6925 | LD="${LD-ld} -64" | |
6926 | fi | |
6927 | ;; | |
6928 | esac | |
6929 | ;; | |
6930 | esac | |
6931 | fi | |
6932 | rm -rf conftest* | |
6933 | ;; | |
6934 | esac | |
6935 | ||
6936 | need_locks="$enable_libtool_lock" | |
6937 | ||
6938 | ||
6939 | case $host_os in | |
6940 | rhapsody* | darwin*) | |
6941 | if test -n "$ac_tool_prefix"; then | |
6942 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
6943 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
6944 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6945 | $as_echo_n "checking for $ac_word... " >&6; } | |
6946 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : | |
6947 | $as_echo_n "(cached) " >&6 | |
6948 | else | |
6949 | if test -n "$DSYMUTIL"; then | |
6950 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
6951 | else | |
6952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6953 | for as_dir in $PATH | |
6954 | do | |
6955 | IFS=$as_save_IFS | |
6956 | test -z "$as_dir" && as_dir=. | |
6957 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6958 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
6959 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
6960 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6961 | break 2 | |
6962 | fi | |
6963 | done | |
6964 | done | |
6965 | IFS=$as_save_IFS | |
6966 | ||
6967 | fi | |
6968 | fi | |
6969 | DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
6970 | if test -n "$DSYMUTIL"; then | |
6971 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
6972 | $as_echo "$DSYMUTIL" >&6; } | |
6973 | else | |
6974 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6975 | $as_echo "no" >&6; } | |
6976 | fi | |
6977 | ||
6978 | ||
6979 | fi | |
6980 | if test -z "$ac_cv_prog_DSYMUTIL"; then | |
6981 | ac_ct_DSYMUTIL=$DSYMUTIL | |
6982 | # Extract the first word of "dsymutil", so it can be a program name with args. | |
6983 | set dummy dsymutil; ac_word=$2 | |
6984 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6985 | $as_echo_n "checking for $ac_word... " >&6; } | |
6986 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : | |
6987 | $as_echo_n "(cached) " >&6 | |
6988 | else | |
d4c059d5 ILT |
6989 | if test -n "$ac_ct_DSYMUTIL"; then |
6990 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
eff02e4f ILT |
6991 | else |
6992 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6993 | for as_dir in $PATH | |
6994 | do | |
6995 | IFS=$as_save_IFS | |
6996 | test -z "$as_dir" && as_dir=. | |
6997 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6998 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d4c059d5 | 6999 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
eff02e4f ILT |
7000 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7001 | break 2 | |
7002 | fi | |
7003 | done | |
7004 | done | |
7005 | IFS=$as_save_IFS | |
7006 | ||
7007 | fi | |
7008 | fi | |
d4c059d5 ILT |
7009 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
7010 | if test -n "$ac_ct_DSYMUTIL"; then | |
7011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7012 | $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
eff02e4f ILT |
7013 | else |
7014 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7015 | $as_echo "no" >&6; } | |
7016 | fi | |
7017 | ||
d4c059d5 ILT |
7018 | if test "x$ac_ct_DSYMUTIL" = x; then |
7019 | DSYMUTIL=":" | |
eff02e4f ILT |
7020 | else |
7021 | case $cross_compiling:$ac_tool_warned in | |
7022 | yes:) | |
7023 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7024 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7025 | ac_tool_warned=yes ;; | |
7026 | esac | |
d4c059d5 | 7027 | DSYMUTIL=$ac_ct_DSYMUTIL |
eff02e4f ILT |
7028 | fi |
7029 | else | |
d4c059d5 | 7030 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
eff02e4f ILT |
7031 | fi |
7032 | ||
7033 | if test -n "$ac_tool_prefix"; then | |
d4c059d5 ILT |
7034 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
7035 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
eff02e4f ILT |
7036 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7037 | $as_echo_n "checking for $ac_word... " >&6; } | |
d4c059d5 | 7038 | if test "${ac_cv_prog_NMEDIT+set}" = set; then : |
eff02e4f ILT |
7039 | $as_echo_n "(cached) " >&6 |
7040 | else | |
d4c059d5 ILT |
7041 | if test -n "$NMEDIT"; then |
7042 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
eff02e4f ILT |
7043 | else |
7044 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7045 | for as_dir in $PATH | |
7046 | do | |
7047 | IFS=$as_save_IFS | |
7048 | test -z "$as_dir" && as_dir=. | |
7049 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7050 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d4c059d5 | 7051 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
eff02e4f ILT |
7052 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7053 | break 2 | |
7054 | fi | |
7055 | done | |
7056 | done | |
7057 | IFS=$as_save_IFS | |
7058 | ||
7059 | fi | |
7060 | fi | |
d4c059d5 ILT |
7061 | NMEDIT=$ac_cv_prog_NMEDIT |
7062 | if test -n "$NMEDIT"; then | |
7063 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7064 | $as_echo "$NMEDIT" >&6; } | |
eff02e4f ILT |
7065 | else |
7066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7067 | $as_echo "no" >&6; } | |
7068 | fi | |
7069 | ||
7070 | ||
7071 | fi | |
d4c059d5 ILT |
7072 | if test -z "$ac_cv_prog_NMEDIT"; then |
7073 | ac_ct_NMEDIT=$NMEDIT | |
7074 | # Extract the first word of "nmedit", so it can be a program name with args. | |
7075 | set dummy nmedit; ac_word=$2 | |
eff02e4f ILT |
7076 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7077 | $as_echo_n "checking for $ac_word... " >&6; } | |
d4c059d5 | 7078 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : |
eff02e4f ILT |
7079 | $as_echo_n "(cached) " >&6 |
7080 | else | |
d4c059d5 ILT |
7081 | if test -n "$ac_ct_NMEDIT"; then |
7082 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
eff02e4f ILT |
7083 | else |
7084 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7085 | for as_dir in $PATH | |
7086 | do | |
7087 | IFS=$as_save_IFS | |
7088 | test -z "$as_dir" && as_dir=. | |
7089 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7090 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d4c059d5 | 7091 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
eff02e4f ILT |
7092 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7093 | break 2 | |
7094 | fi | |
7095 | done | |
7096 | done | |
7097 | IFS=$as_save_IFS | |
7098 | ||
7099 | fi | |
7100 | fi | |
d4c059d5 ILT |
7101 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
7102 | if test -n "$ac_ct_NMEDIT"; then | |
7103 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7104 | $as_echo "$ac_ct_NMEDIT" >&6; } | |
eff02e4f ILT |
7105 | else |
7106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7107 | $as_echo "no" >&6; } | |
7108 | fi | |
7109 | ||
d4c059d5 ILT |
7110 | if test "x$ac_ct_NMEDIT" = x; then |
7111 | NMEDIT=":" | |
eff02e4f ILT |
7112 | else |
7113 | case $cross_compiling:$ac_tool_warned in | |
7114 | yes:) | |
7115 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7116 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7117 | ac_tool_warned=yes ;; | |
7118 | esac | |
d4c059d5 | 7119 | NMEDIT=$ac_ct_NMEDIT |
eff02e4f ILT |
7120 | fi |
7121 | else | |
d4c059d5 | 7122 | NMEDIT="$ac_cv_prog_NMEDIT" |
eff02e4f ILT |
7123 | fi |
7124 | ||
7125 | if test -n "$ac_tool_prefix"; then | |
d4c059d5 ILT |
7126 | # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. |
7127 | set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
eff02e4f ILT |
7128 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7129 | $as_echo_n "checking for $ac_word... " >&6; } | |
d4c059d5 | 7130 | if test "${ac_cv_prog_LIPO+set}" = set; then : |
eff02e4f ILT |
7131 | $as_echo_n "(cached) " >&6 |
7132 | else | |
d4c059d5 ILT |
7133 | if test -n "$LIPO"; then |
7134 | ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
eff02e4f ILT |
7135 | else |
7136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7137 | for as_dir in $PATH | |
7138 | do | |
7139 | IFS=$as_save_IFS | |
7140 | test -z "$as_dir" && as_dir=. | |
7141 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7142 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d4c059d5 | 7143 | ac_cv_prog_LIPO="${ac_tool_prefix}lipo" |
eff02e4f ILT |
7144 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7145 | break 2 | |
7146 | fi | |
7147 | done | |
7148 | done | |
7149 | IFS=$as_save_IFS | |
7150 | ||
7151 | fi | |
7152 | fi | |
d4c059d5 ILT |
7153 | LIPO=$ac_cv_prog_LIPO |
7154 | if test -n "$LIPO"; then | |
7155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7156 | $as_echo "$LIPO" >&6; } | |
eff02e4f ILT |
7157 | else |
7158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7159 | $as_echo "no" >&6; } | |
7160 | fi | |
7161 | ||
7162 | ||
7163 | fi | |
d4c059d5 ILT |
7164 | if test -z "$ac_cv_prog_LIPO"; then |
7165 | ac_ct_LIPO=$LIPO | |
7166 | # Extract the first word of "lipo", so it can be a program name with args. | |
7167 | set dummy lipo; ac_word=$2 | |
eff02e4f ILT |
7168 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
7169 | $as_echo_n "checking for $ac_word... " >&6; } | |
d4c059d5 | 7170 | if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : |
eff02e4f ILT |
7171 | $as_echo_n "(cached) " >&6 |
7172 | else | |
d4c059d5 ILT |
7173 | if test -n "$ac_ct_LIPO"; then |
7174 | ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
eff02e4f ILT |
7175 | else |
7176 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7177 | for as_dir in $PATH | |
7178 | do | |
7179 | IFS=$as_save_IFS | |
7180 | test -z "$as_dir" && as_dir=. | |
7181 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7182 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
d4c059d5 | 7183 | ac_cv_prog_ac_ct_LIPO="lipo" |
eff02e4f ILT |
7184 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7185 | break 2 | |
7186 | fi | |
7187 | done | |
7188 | done | |
7189 | IFS=$as_save_IFS | |
7190 | ||
7191 | fi | |
7192 | fi | |
d4c059d5 ILT |
7193 | ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO |
7194 | if test -n "$ac_ct_LIPO"; then | |
7195 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7196 | $as_echo "$ac_ct_LIPO" >&6; } | |
eff02e4f ILT |
7197 | else |
7198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7199 | $as_echo "no" >&6; } | |
7200 | fi | |
7201 | ||
d4c059d5 ILT |
7202 | if test "x$ac_ct_LIPO" = x; then |
7203 | LIPO=":" | |
eff02e4f ILT |
7204 | else |
7205 | case $cross_compiling:$ac_tool_warned in | |
7206 | yes:) | |
7207 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7208 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7209 | ac_tool_warned=yes ;; | |
7210 | esac | |
d4c059d5 | 7211 | LIPO=$ac_ct_LIPO |
eff02e4f ILT |
7212 | fi |
7213 | else | |
d4c059d5 | 7214 | LIPO="$ac_cv_prog_LIPO" |
eff02e4f ILT |
7215 | fi |
7216 | ||
d4c059d5 ILT |
7217 | if test -n "$ac_tool_prefix"; then |
7218 | # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7219 | set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7220 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7221 | $as_echo_n "checking for $ac_word... " >&6; } | |
7222 | if test "${ac_cv_prog_OTOOL+set}" = set; then : | |
eff02e4f ILT |
7223 | $as_echo_n "(cached) " >&6 |
7224 | else | |
d4c059d5 ILT |
7225 | if test -n "$OTOOL"; then |
7226 | ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
eff02e4f | 7227 | else |
d4c059d5 ILT |
7228 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7229 | for as_dir in $PATH | |
7230 | do | |
7231 | IFS=$as_save_IFS | |
7232 | test -z "$as_dir" && as_dir=. | |
7233 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7234 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7235 | ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
7236 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7237 | break 2 | |
7238 | fi | |
7239 | done | |
7240 | done | |
7241 | IFS=$as_save_IFS | |
eff02e4f | 7242 | |
eff02e4f | 7243 | fi |
eff02e4f | 7244 | fi |
d4c059d5 ILT |
7245 | OTOOL=$ac_cv_prog_OTOOL |
7246 | if test -n "$OTOOL"; then | |
7247 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7248 | $as_echo "$OTOOL" >&6; } | |
7249 | else | |
7250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7251 | $as_echo "no" >&6; } | |
eff02e4f | 7252 | fi |
eff02e4f | 7253 | |
d4c059d5 | 7254 | |
eff02e4f | 7255 | fi |
d4c059d5 ILT |
7256 | if test -z "$ac_cv_prog_OTOOL"; then |
7257 | ac_ct_OTOOL=$OTOOL | |
7258 | # Extract the first word of "otool", so it can be a program name with args. | |
7259 | set dummy otool; ac_word=$2 | |
7260 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7261 | $as_echo_n "checking for $ac_word... " >&6; } | |
7262 | if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : | |
eff02e4f ILT |
7263 | $as_echo_n "(cached) " >&6 |
7264 | else | |
d4c059d5 ILT |
7265 | if test -n "$ac_ct_OTOOL"; then |
7266 | ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7267 | else | |
7268 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7269 | for as_dir in $PATH | |
eff02e4f | 7270 | do |
d4c059d5 ILT |
7271 | IFS=$as_save_IFS |
7272 | test -z "$as_dir" && as_dir=. | |
7273 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7274 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7275 | ac_cv_prog_ac_ct_OTOOL="otool" | |
7276 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7277 | break 2 | |
7278 | fi | |
7279 | done | |
7280 | done | |
7281 | IFS=$as_save_IFS | |
eff02e4f | 7282 | |
d4c059d5 ILT |
7283 | fi |
7284 | fi | |
7285 | ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7286 | if test -n "$ac_ct_OTOOL"; then | |
7287 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
7288 | $as_echo "$ac_ct_OTOOL" >&6; } | |
eff02e4f | 7289 | else |
d4c059d5 ILT |
7290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7291 | $as_echo "no" >&6; } | |
eff02e4f | 7292 | fi |
eff02e4f | 7293 | |
d4c059d5 ILT |
7294 | if test "x$ac_ct_OTOOL" = x; then |
7295 | OTOOL=":" | |
7296 | else | |
7297 | case $cross_compiling:$ac_tool_warned in | |
7298 | yes:) | |
7299 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7300 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7301 | ac_tool_warned=yes ;; | |
7302 | esac | |
7303 | OTOOL=$ac_ct_OTOOL | |
7304 | fi | |
eff02e4f | 7305 | else |
d4c059d5 | 7306 | OTOOL="$ac_cv_prog_OTOOL" |
eff02e4f | 7307 | fi |
eff02e4f | 7308 | |
d4c059d5 ILT |
7309 | if test -n "$ac_tool_prefix"; then |
7310 | # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7311 | set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
7312 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7313 | $as_echo_n "checking for $ac_word... " >&6; } | |
7314 | if test "${ac_cv_prog_OTOOL64+set}" = set; then : | |
7315 | $as_echo_n "(cached) " >&6 | |
7316 | else | |
7317 | if test -n "$OTOOL64"; then | |
7318 | ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7319 | else | |
7320 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7321 | for as_dir in $PATH | |
7322 | do | |
7323 | IFS=$as_save_IFS | |
7324 | test -z "$as_dir" && as_dir=. | |
7325 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7326 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7327 | ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
7328 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7329 | break 2 | |
7330 | fi | |
eff02e4f | 7331 | done |
d4c059d5 ILT |
7332 | done |
7333 | IFS=$as_save_IFS | |
7334 | ||
7335 | fi | |
7336 | fi | |
7337 | OTOOL64=$ac_cv_prog_OTOOL64 | |
7338 | if test -n "$OTOOL64"; then | |
7339 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
7340 | $as_echo "$OTOOL64" >&6; } | |
7341 | else | |
7342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7343 | $as_echo "no" >&6; } | |
eff02e4f ILT |
7344 | fi |
7345 | ||
eff02e4f ILT |
7346 | |
7347 | fi | |
d4c059d5 ILT |
7348 | if test -z "$ac_cv_prog_OTOOL64"; then |
7349 | ac_ct_OTOOL64=$OTOOL64 | |
7350 | # Extract the first word of "otool64", so it can be a program name with args. | |
7351 | set dummy otool64; ac_word=$2 | |
7352 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7353 | $as_echo_n "checking for $ac_word... " >&6; } | |
7354 | if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : | |
7355 | $as_echo_n "(cached) " >&6 | |
eff02e4f | 7356 | else |
d4c059d5 ILT |
7357 | if test -n "$ac_ct_OTOOL64"; then |
7358 | ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7359 | else | |
7360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7361 | for as_dir in $PATH | |
eff02e4f | 7362 | do |
d4c059d5 ILT |
7363 | IFS=$as_save_IFS |
7364 | test -z "$as_dir" && as_dir=. | |
7365 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7366 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7367 | ac_cv_prog_ac_ct_OTOOL64="otool64" | |
7368 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7369 | break 2 | |
7370 | fi | |
7371 | done | |
7372 | done | |
7373 | IFS=$as_save_IFS | |
eff02e4f | 7374 | |
d4c059d5 ILT |
7375 | fi |
7376 | fi | |
7377 | ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7378 | if test -n "$ac_ct_OTOOL64"; then | |
7379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
7380 | $as_echo "$ac_ct_OTOOL64" >&6; } | |
eff02e4f | 7381 | else |
d4c059d5 ILT |
7382 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
7383 | $as_echo "no" >&6; } | |
eff02e4f | 7384 | fi |
eff02e4f | 7385 | |
d4c059d5 ILT |
7386 | if test "x$ac_ct_OTOOL64" = x; then |
7387 | OTOOL64=":" | |
7388 | else | |
7389 | case $cross_compiling:$ac_tool_warned in | |
7390 | yes:) | |
7391 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7392 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7393 | ac_tool_warned=yes ;; | |
7394 | esac | |
7395 | OTOOL64=$ac_ct_OTOOL64 | |
7396 | fi | |
eff02e4f | 7397 | else |
d4c059d5 | 7398 | OTOOL64="$ac_cv_prog_OTOOL64" |
eff02e4f | 7399 | fi |
eff02e4f | 7400 | |
eff02e4f | 7401 | |
eff02e4f | 7402 | |
eff02e4f ILT |
7403 | |
7404 | ||
eff02e4f | 7405 | |
eff02e4f | 7406 | |
eff02e4f | 7407 | |
eff02e4f | 7408 | |
eff02e4f | 7409 | |
eff02e4f | 7410 | |
eff02e4f | 7411 | |
eff02e4f | 7412 | |
eff02e4f | 7413 | |
eff02e4f | 7414 | |
eff02e4f | 7415 | |
d4c059d5 ILT |
7416 | |
7417 | ||
7418 | ||
7419 | ||
7420 | ||
7421 | ||
7422 | ||
7423 | ||
7424 | ||
7425 | ||
7426 | ||
7427 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
7428 | $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7429 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then : | |
7430 | $as_echo_n "(cached) " >&6 | |
eff02e4f | 7431 | else |
d4c059d5 ILT |
7432 | lt_cv_apple_cc_single_mod=no |
7433 | if test -z "${LT_MULTI_MODULE}"; then | |
7434 | # By default we will add the -single_module flag. You can override | |
7435 | # by either setting the environment variable LT_MULTI_MODULE | |
7436 | # non-empty at configure time, or by adding -multi_module to the | |
7437 | # link flags. | |
7438 | rm -rf libconftest.dylib* | |
7439 | echo "int foo(void){return 1;}" > conftest.c | |
7440 | echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7441 | -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7442 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7443 | -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7444 | _lt_result=$? | |
7445 | if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then | |
7446 | lt_cv_apple_cc_single_mod=yes | |
7447 | else | |
7448 | cat conftest.err >&5 | |
7449 | fi | |
7450 | rm -rf libconftest.dylib* | |
7451 | rm -f conftest.* | |
7452 | fi | |
7453 | fi | |
7454 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
7455 | $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7456 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7457 | $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7458 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : | |
7459 | $as_echo_n "(cached) " >&6 | |
7460 | else | |
7461 | lt_cv_ld_exported_symbols_list=no | |
7462 | save_LDFLAGS=$LDFLAGS | |
7463 | echo "_main" > conftest.sym | |
7464 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
7465 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
eff02e4f | 7466 | /* end confdefs.h. */ |
eff02e4f | 7467 | |
eff02e4f ILT |
7468 | int |
7469 | main () | |
7470 | { | |
d4c059d5 ILT |
7471 | |
7472 | ; | |
eff02e4f ILT |
7473 | return 0; |
7474 | } | |
7475 | _ACEOF | |
d4c059d5 ILT |
7476 | if ac_fn_c_try_link "$LINENO"; then : |
7477 | lt_cv_ld_exported_symbols_list=yes | |
eff02e4f | 7478 | else |
d4c059d5 | 7479 | lt_cv_ld_exported_symbols_list=no |
eff02e4f | 7480 | fi |
d4c059d5 ILT |
7481 | rm -f core conftest.err conftest.$ac_objext \ |
7482 | conftest$ac_exeext conftest.$ac_ext | |
7483 | LDFLAGS="$save_LDFLAGS" | |
eff02e4f ILT |
7484 | |
7485 | fi | |
d4c059d5 ILT |
7486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 |
7487 | $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
7488 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7489 | $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7490 | if test "${lt_cv_ld_force_load+set}" = set; then : | |
7491 | $as_echo_n "(cached) " >&6 | |
7492 | else | |
7493 | lt_cv_ld_force_load=no | |
7494 | cat > conftest.c << _LT_EOF | |
7495 | int forced_loaded() { return 2;} | |
7496 | _LT_EOF | |
7497 | echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7498 | $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7499 | echo "$AR cru libconftest.a conftest.o" >&5 | |
7500 | $AR cru libconftest.a conftest.o 2>&5 | |
7501 | cat > conftest.c << _LT_EOF | |
7502 | int main() { return 0;} | |
7503 | _LT_EOF | |
7504 | echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7505 | $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7506 | _lt_result=$? | |
7507 | if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then | |
7508 | lt_cv_ld_force_load=yes | |
7509 | else | |
7510 | cat conftest.err >&5 | |
7511 | fi | |
7512 | rm -f conftest.err libconftest.a conftest conftest.c | |
7513 | rm -rf conftest.dSYM | |
eff02e4f ILT |
7514 | |
7515 | fi | |
d4c059d5 ILT |
7516 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 |
7517 | $as_echo "$lt_cv_ld_force_load" >&6; } | |
7518 | case $host_os in | |
7519 | rhapsody* | darwin1.[012]) | |
7520 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7521 | darwin1.*) | |
7522 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7523 | darwin*) # darwin 5.x on | |
7524 | # if running on 10.5 or later, the deployment target defaults | |
7525 | # to the OS version, if on x86, and 10.4, the deployment | |
7526 | # target defaults to 10.4. Don't you love it? | |
7527 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7528 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7529 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7530 | 10.[012]*) | |
7531 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7532 | 10.*) | |
7533 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7534 | esac | |
7535 | ;; | |
7536 | esac | |
7537 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7538 | _lt_dar_single_mod='$single_module' | |
7539 | fi | |
7540 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7541 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7542 | else | |
7543 | _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7544 | fi | |
7545 | if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
7546 | _lt_dsymutil='~$DSYMUTIL $lib || :' | |
7547 | else | |
7548 | _lt_dsymutil= | |
7549 | fi | |
7550 | ;; | |
7551 | esac | |
eff02e4f ILT |
7552 | |
7553 | for ac_header in dlfcn.h | |
7554 | do : | |
7555 | ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
7556 | " | |
7557 | if test "x$ac_cv_header_dlfcn_h" = x""yes; then : | |
7558 | cat >>confdefs.h <<_ACEOF | |
7559 | #define HAVE_DLFCN_H 1 | |
7560 | _ACEOF | |
7561 | ||
7562 | fi | |
7563 | ||
7564 | done | |
7565 | ||
7566 | ||
7567 | ||
7568 | ||
7569 | ||
7570 | # Set options | |
7571 | # Check whether --enable-shared was given. | |
7572 | if test "${enable_shared+set}" = set; then : | |
7573 | enableval=$enable_shared; p=${PACKAGE-default} | |
7574 | case $enableval in | |
7575 | yes) enable_shared=yes ;; | |
7576 | no) enable_shared=no ;; | |
7577 | *) | |
7578 | enable_shared=no | |
7579 | # Look at the argument we got. We use all the common list separators. | |
7580 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7581 | for pkg in $enableval; do | |
7582 | IFS="$lt_save_ifs" | |
7583 | if test "X$pkg" = "X$p"; then | |
7584 | enable_shared=yes | |
7585 | fi | |
7586 | done | |
7587 | IFS="$lt_save_ifs" | |
7588 | ;; | |
7589 | esac | |
7590 | else | |
7591 | enable_shared=no | |
7592 | fi | |
7593 | ||
7594 | ||
7595 | ||
7596 | ||
7597 | ||
7598 | ||
7599 | ||
7600 | ||
7601 | ||
7602 | ||
7603 | enable_dlopen=no | |
7604 | ||
7605 | ||
7606 | enable_win32_dll=no | |
7607 | ||
7608 | ||
7609 | ||
7610 | # Check whether --enable-static was given. | |
7611 | if test "${enable_static+set}" = set; then : | |
7612 | enableval=$enable_static; p=${PACKAGE-default} | |
7613 | case $enableval in | |
7614 | yes) enable_static=yes ;; | |
7615 | no) enable_static=no ;; | |
7616 | *) | |
7617 | enable_static=no | |
7618 | # Look at the argument we got. We use all the common list separators. | |
7619 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7620 | for pkg in $enableval; do | |
7621 | IFS="$lt_save_ifs" | |
7622 | if test "X$pkg" = "X$p"; then | |
7623 | enable_static=yes | |
7624 | fi | |
7625 | done | |
7626 | IFS="$lt_save_ifs" | |
7627 | ;; | |
7628 | esac | |
7629 | else | |
7630 | enable_static=yes | |
7631 | fi | |
7632 | ||
7633 | ||
7634 | ||
7635 | ||
7636 | ||
7637 | ||
7638 | ||
7639 | ||
7640 | ||
7641 | ||
7642 | # Check whether --with-pic was given. | |
7643 | if test "${with_pic+set}" = set; then : | |
7644 | withval=$with_pic; pic_mode="$withval" | |
7645 | else | |
7646 | pic_mode=default | |
7647 | fi | |
7648 | ||
7649 | ||
7650 | test -z "$pic_mode" && pic_mode=default | |
7651 | ||
7652 | ||
7653 | ||
7654 | ||
7655 | ||
7656 | ||
7657 | ||
7658 | # Check whether --enable-fast-install was given. | |
7659 | if test "${enable_fast_install+set}" = set; then : | |
7660 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
7661 | case $enableval in | |
7662 | yes) enable_fast_install=yes ;; | |
7663 | no) enable_fast_install=no ;; | |
7664 | *) | |
7665 | enable_fast_install=no | |
7666 | # Look at the argument we got. We use all the common list separators. | |
7667 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
7668 | for pkg in $enableval; do | |
7669 | IFS="$lt_save_ifs" | |
7670 | if test "X$pkg" = "X$p"; then | |
7671 | enable_fast_install=yes | |
7672 | fi | |
7673 | done | |
7674 | IFS="$lt_save_ifs" | |
7675 | ;; | |
7676 | esac | |
7677 | else | |
7678 | enable_fast_install=yes | |
7679 | fi | |
7680 | ||
7681 | ||
7682 | ||
7683 | ||
7684 | ||
7685 | ||
7686 | ||
7687 | ||
7688 | ||
7689 | ||
7690 | ||
7691 | # This can be used to rebuild libtool when needed | |
7692 | LIBTOOL_DEPS="$ltmain" | |
7693 | ||
7694 | # Always use our own libtool. | |
7695 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
7696 | ||
7697 | ||
7698 | ||
7699 | ||
7700 | ||
7701 | ||
7702 | ||
7703 | ||
7704 | ||
7705 | ||
7706 | ||
7707 | ||
7708 | ||
7709 | ||
7710 | ||
7711 | ||
7712 | ||
7713 | ||
7714 | ||
7715 | ||
7716 | ||
7717 | ||
7718 | ||
7719 | ||
7720 | ||
7721 | ||
7722 | test -z "$LN_S" && LN_S="ln -s" | |
7723 | ||
7724 | ||
7725 | ||
7726 | ||
7727 | ||
7728 | ||
7729 | ||
7730 | ||
7731 | ||
7732 | ||
7733 | ||
7734 | ||
7735 | ||
7736 | ||
7737 | if test -n "${ZSH_VERSION+set}" ; then | |
7738 | setopt NO_GLOB_SUBST | |
7739 | fi | |
7740 | ||
7741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
7742 | $as_echo_n "checking for objdir... " >&6; } | |
7743 | if test "${lt_cv_objdir+set}" = set; then : | |
7744 | $as_echo_n "(cached) " >&6 | |
7745 | else | |
7746 | rm -f .libs 2>/dev/null | |
7747 | mkdir .libs 2>/dev/null | |
7748 | if test -d .libs; then | |
7749 | lt_cv_objdir=.libs | |
7750 | else | |
7751 | # MS-DOS does not allow filenames that begin with a dot. | |
7752 | lt_cv_objdir=_libs | |
7753 | fi | |
7754 | rmdir .libs 2>/dev/null | |
7755 | fi | |
7756 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
7757 | $as_echo "$lt_cv_objdir" >&6; } | |
7758 | objdir=$lt_cv_objdir | |
7759 | ||
7760 | ||
7761 | ||
7762 | ||
7763 | ||
7764 | cat >>confdefs.h <<_ACEOF | |
7765 | #define LT_OBJDIR "$lt_cv_objdir/" | |
7766 | _ACEOF | |
7767 | ||
7768 | ||
7769 | ||
7770 | ||
7771 | case $host_os in | |
7772 | aix3*) | |
7773 | # AIX sometimes has problems with the GCC collect2 program. For some | |
7774 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
7775 | # vanish in a puff of smoke. | |
7776 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
7777 | COLLECT_NAMES= | |
7778 | export COLLECT_NAMES | |
7779 | fi | |
7780 | ;; | |
7781 | esac | |
7782 | ||
7783 | # Global variables: | |
7784 | ofile=libtool | |
7785 | can_build_shared=yes | |
7786 | ||
7787 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
7788 | # which needs '.lib'). | |
7789 | libext=a | |
7790 | ||
7791 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
7792 | ||
7793 | old_CC="$CC" | |
7794 | old_CFLAGS="$CFLAGS" | |
7795 | ||
7796 | # Set sane defaults for various variables | |
7797 | test -z "$CC" && CC=cc | |
7798 | test -z "$LTCC" && LTCC=$CC | |
7799 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
7800 | test -z "$LD" && LD=ld | |
7801 | test -z "$ac_objext" && ac_objext=o | |
7802 | ||
7803 | for cc_temp in $compiler""; do | |
7804 | case $cc_temp in | |
7805 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
7806 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
7807 | \-*) ;; | |
7808 | *) break;; | |
7809 | esac | |
7810 | done | |
7811 | cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
7812 | ||
7813 | ||
7814 | # Only perform the check for file, if the check method requires it | |
7815 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
7816 | case $deplibs_check_method in | |
7817 | file_magic*) | |
7818 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
7819 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
7820 | $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
7821 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
7822 | $as_echo_n "(cached) " >&6 | |
7823 | else | |
7824 | case $MAGIC_CMD in | |
7825 | [\\/*] | ?:[\\/]*) | |
7826 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7827 | ;; | |
7828 | *) | |
7829 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7830 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7831 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7832 | for ac_dir in $ac_dummy; do | |
7833 | IFS="$lt_save_ifs" | |
7834 | test -z "$ac_dir" && ac_dir=. | |
7835 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
7836 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
7837 | if test -n "$file_magic_test_file"; then | |
7838 | case $deplibs_check_method in | |
7839 | "file_magic "*) | |
7840 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7841 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7842 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7843 | $EGREP "$file_magic_regex" > /dev/null; then | |
7844 | : | |
7845 | else | |
7846 | cat <<_LT_EOF 1>&2 | |
7847 | ||
7848 | *** Warning: the command libtool uses to detect shared libraries, | |
7849 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7850 | *** The result is that libtool may fail to recognize shared libraries | |
7851 | *** as such. This will affect the creation of libtool libraries that | |
7852 | *** depend on shared libraries, but programs linked with such libtool | |
7853 | *** libraries will work regardless of this problem. Nevertheless, you | |
7854 | *** may want to report the problem to your system manager and/or to | |
7855 | *** bug-libtool@gnu.org | |
7856 | ||
7857 | _LT_EOF | |
7858 | fi ;; | |
7859 | esac | |
7860 | fi | |
7861 | break | |
7862 | fi | |
7863 | done | |
7864 | IFS="$lt_save_ifs" | |
7865 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7866 | ;; | |
7867 | esac | |
7868 | fi | |
7869 | ||
7870 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7871 | if test -n "$MAGIC_CMD"; then | |
7872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
7873 | $as_echo "$MAGIC_CMD" >&6; } | |
7874 | else | |
7875 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7876 | $as_echo "no" >&6; } | |
7877 | fi | |
7878 | ||
7879 | ||
7880 | ||
7881 | ||
7882 | ||
7883 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
7884 | if test -n "$ac_tool_prefix"; then | |
7885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
7886 | $as_echo_n "checking for file... " >&6; } | |
7887 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : | |
7888 | $as_echo_n "(cached) " >&6 | |
7889 | else | |
7890 | case $MAGIC_CMD in | |
7891 | [\\/*] | ?:[\\/]*) | |
7892 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
7893 | ;; | |
7894 | *) | |
7895 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
7896 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
7897 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
7898 | for ac_dir in $ac_dummy; do | |
7899 | IFS="$lt_save_ifs" | |
7900 | test -z "$ac_dir" && ac_dir=. | |
7901 | if test -f $ac_dir/file; then | |
7902 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
7903 | if test -n "$file_magic_test_file"; then | |
7904 | case $deplibs_check_method in | |
7905 | "file_magic "*) | |
7906 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
7907 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7908 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
7909 | $EGREP "$file_magic_regex" > /dev/null; then | |
7910 | : | |
7911 | else | |
7912 | cat <<_LT_EOF 1>&2 | |
7913 | ||
7914 | *** Warning: the command libtool uses to detect shared libraries, | |
7915 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
7916 | *** The result is that libtool may fail to recognize shared libraries | |
7917 | *** as such. This will affect the creation of libtool libraries that | |
7918 | *** depend on shared libraries, but programs linked with such libtool | |
7919 | *** libraries will work regardless of this problem. Nevertheless, you | |
7920 | *** may want to report the problem to your system manager and/or to | |
7921 | *** bug-libtool@gnu.org | |
7922 | ||
7923 | _LT_EOF | |
7924 | fi ;; | |
7925 | esac | |
7926 | fi | |
7927 | break | |
7928 | fi | |
7929 | done | |
7930 | IFS="$lt_save_ifs" | |
7931 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
7932 | ;; | |
7933 | esac | |
7934 | fi | |
7935 | ||
7936 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
7937 | if test -n "$MAGIC_CMD"; then | |
7938 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
7939 | $as_echo "$MAGIC_CMD" >&6; } | |
7940 | else | |
7941 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7942 | $as_echo "no" >&6; } | |
7943 | fi | |
7944 | ||
7945 | ||
7946 | else | |
7947 | MAGIC_CMD=: | |
7948 | fi | |
7949 | fi | |
7950 | ||
7951 | fi | |
7952 | ;; | |
7953 | esac | |
7954 | ||
7955 | # Use C for the default configuration in the libtool script | |
7956 | ||
7957 | lt_save_CC="$CC" | |
7958 | ac_ext=c | |
7959 | ac_cpp='$CPP $CPPFLAGS' | |
7960 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7961 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7962 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7963 | ||
7964 | ||
7965 | # Source file extension for C test sources. | |
7966 | ac_ext=c | |
7967 | ||
7968 | # Object file extension for compiled C test sources. | |
7969 | objext=o | |
7970 | objext=$objext | |
7971 | ||
7972 | # Code to be used in simple compile tests | |
7973 | lt_simple_compile_test_code="int some_variable = 0;" | |
7974 | ||
7975 | # Code to be used in simple link tests | |
7976 | lt_simple_link_test_code='int main(){return(0);}' | |
7977 | ||
7978 | ||
7979 | ||
7980 | ||
7981 | ||
7982 | ||
7983 | ||
7984 | # If no C compiler was specified, use CC. | |
7985 | LTCC=${LTCC-"$CC"} | |
7986 | ||
7987 | # If no C compiler flags were specified, use CFLAGS. | |
7988 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
7989 | ||
7990 | # Allow CC to be a program name with arguments. | |
7991 | compiler=$CC | |
7992 | ||
7993 | # Save the default compiler, since it gets overwritten when the other | |
7994 | # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
7995 | compiler_DEFAULT=$CC | |
7996 | ||
7997 | # save warnings/boilerplate of simple test code | |
7998 | ac_outfile=conftest.$ac_objext | |
7999 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8000 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8001 | _lt_compiler_boilerplate=`cat conftest.err` | |
8002 | $RM conftest* | |
8003 | ||
8004 | ac_outfile=conftest.$ac_objext | |
8005 | echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8006 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8007 | _lt_linker_boilerplate=`cat conftest.err` | |
8008 | $RM -r conftest* | |
8009 | ||
8010 | ||
8011 | ## CAVEAT EMPTOR: | |
8012 | ## There is no encapsulation within the following macros, do not change | |
8013 | ## the running order or otherwise move them around unless you know exactly | |
8014 | ## what you are doing... | |
8015 | if test -n "$compiler"; then | |
8016 | ||
8017 | lt_prog_compiler_no_builtin_flag= | |
8018 | ||
8019 | if test "$GCC" = yes; then | |
8020 | case $cc_basename in | |
8021 | nvcc*) | |
8022 | lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8023 | *) | |
8024 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8025 | esac | |
8026 | ||
8027 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
8028 | $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8029 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : | |
8030 | $as_echo_n "(cached) " >&6 | |
8031 | else | |
8032 | lt_cv_prog_compiler_rtti_exceptions=no | |
8033 | ac_outfile=conftest.$ac_objext | |
8034 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8035 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8036 | # Insert the option either (1) after the last *FLAGS variable, or | |
8037 | # (2) before a word containing "conftest.", or (3) at the end. | |
8038 | # Note that $ac_compile itself does not contain backslashes and begins | |
8039 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8040 | # The option is referenced via a variable to avoid confusing sed. | |
8041 | lt_compile=`echo "$ac_compile" | $SED \ | |
8042 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8043 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8044 | -e 's:$: $lt_compiler_flag:'` | |
8045 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8046 | (eval "$lt_compile" 2>conftest.err) | |
8047 | ac_status=$? | |
8048 | cat conftest.err >&5 | |
8049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8050 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8051 | # The compiler can only warn and ignore the option if not recognized | |
8052 | # So say no if there are warnings other than the usual output. | |
8053 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8054 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8055 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8056 | lt_cv_prog_compiler_rtti_exceptions=yes | |
8057 | fi | |
8058 | fi | |
8059 | $RM conftest* | |
8060 | ||
8061 | fi | |
8062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8063 | $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
8064 | ||
8065 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8066 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8067 | else | |
8068 | : | |
8069 | fi | |
8070 | ||
8071 | fi | |
8072 | ||
8073 | ||
8074 | ||
8075 | ||
8076 | ||
8077 | ||
8078 | lt_prog_compiler_wl= | |
8079 | lt_prog_compiler_pic= | |
8080 | lt_prog_compiler_static= | |
8081 | ||
8082 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
8083 | $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
8084 | ||
8085 | if test "$GCC" = yes; then | |
8086 | lt_prog_compiler_wl='-Wl,' | |
8087 | lt_prog_compiler_static='-static' | |
8088 | ||
8089 | case $host_os in | |
8090 | aix*) | |
8091 | # All AIX code is PIC. | |
8092 | if test "$host_cpu" = ia64; then | |
8093 | # AIX 5 now supports IA64 processor | |
8094 | lt_prog_compiler_static='-Bstatic' | |
8095 | fi | |
772a71a9 | 8096 | lt_prog_compiler_pic='-fPIC' |
eff02e4f ILT |
8097 | ;; |
8098 | ||
8099 | amigaos*) | |
8100 | case $host_cpu in | |
8101 | powerpc) | |
8102 | # see comment about AmigaOS4 .so support | |
8103 | lt_prog_compiler_pic='-fPIC' | |
8104 | ;; | |
8105 | m68k) | |
8106 | # FIXME: we need at least 68020 code to build shared libraries, but | |
8107 | # adding the `-m68020' flag to GCC prevents building anything better, | |
8108 | # like `-m68040'. | |
8109 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8110 | ;; | |
8111 | esac | |
8112 | ;; | |
8113 | ||
8114 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8115 | # PIC is the default for these OSes. | |
8116 | ;; | |
8117 | ||
8118 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8119 | # This hack is so that the source file can tell whether it is being | |
8120 | # built for inclusion in a dll (and should export symbols for example). | |
8121 | # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8122 | # (--disable-auto-import) libraries | |
8123 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8124 | ;; | |
8125 | ||
8126 | darwin* | rhapsody*) | |
8127 | # PIC is the default on this platform | |
8128 | # Common symbols not allowed in MH_DYLIB files | |
8129 | lt_prog_compiler_pic='-fno-common' | |
8130 | ;; | |
8131 | ||
8132 | haiku*) | |
8133 | # PIC is the default for Haiku. | |
8134 | # The "-static" flag exists, but is broken. | |
8135 | lt_prog_compiler_static= | |
8136 | ;; | |
8137 | ||
8138 | hpux*) | |
8139 | # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8140 | # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8141 | # sets the default TLS model and affects inlining. | |
8142 | case $host_cpu in | |
8143 | hppa*64*) | |
8144 | # +Z the default | |
8145 | ;; | |
8146 | *) | |
8147 | lt_prog_compiler_pic='-fPIC' | |
8148 | ;; | |
8149 | esac | |
8150 | ;; | |
8151 | ||
8152 | interix[3-9]*) | |
8153 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8154 | # Instead, we relocate shared libraries at runtime. | |
8155 | ;; | |
8156 | ||
8157 | msdosdjgpp*) | |
8158 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8159 | # on systems that don't support them. | |
8160 | lt_prog_compiler_can_build_shared=no | |
8161 | enable_shared=no | |
8162 | ;; | |
8163 | ||
8164 | *nto* | *qnx*) | |
8165 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8166 | # it will coredump. | |
8167 | lt_prog_compiler_pic='-fPIC -shared' | |
8168 | ;; | |
8169 | ||
8170 | sysv4*MP*) | |
8171 | if test -d /usr/nec; then | |
8172 | lt_prog_compiler_pic=-Kconform_pic | |
8173 | fi | |
8174 | ;; | |
8175 | ||
8176 | *) | |
8177 | lt_prog_compiler_pic='-fPIC' | |
8178 | ;; | |
8179 | esac | |
8180 | ||
8181 | case $cc_basename in | |
8182 | nvcc*) # Cuda Compiler Driver 2.2 | |
8183 | lt_prog_compiler_wl='-Xlinker ' | |
8184 | lt_prog_compiler_pic='-Xcompiler -fPIC' | |
8185 | ;; | |
8186 | esac | |
8187 | else | |
8188 | # PORTME Check for flag to pass linker flags through the system compiler. | |
8189 | case $host_os in | |
8190 | aix*) | |
8191 | lt_prog_compiler_wl='-Wl,' | |
8192 | if test "$host_cpu" = ia64; then | |
8193 | # AIX 5 now supports IA64 processor | |
8194 | lt_prog_compiler_static='-Bstatic' | |
8195 | else | |
8196 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8197 | fi | |
8198 | ;; | |
8199 | ||
8200 | mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8201 | # This hack is so that the source file can tell whether it is being | |
8202 | # built for inclusion in a dll (and should export symbols for example). | |
8203 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
8204 | ;; | |
8205 | ||
8206 | hpux9* | hpux10* | hpux11*) | |
8207 | lt_prog_compiler_wl='-Wl,' | |
8208 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8209 | # not for PA HP-UX. | |
8210 | case $host_cpu in | |
8211 | hppa*64*|ia64*) | |
8212 | # +Z the default | |
8213 | ;; | |
8214 | *) | |
8215 | lt_prog_compiler_pic='+Z' | |
8216 | ;; | |
8217 | esac | |
8218 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8219 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8220 | ;; | |
8221 | ||
8222 | irix5* | irix6* | nonstopux*) | |
8223 | lt_prog_compiler_wl='-Wl,' | |
8224 | # PIC (with -KPIC) is the default. | |
8225 | lt_prog_compiler_static='-non_shared' | |
8226 | ;; | |
8227 | ||
8228 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
8229 | case $cc_basename in | |
8230 | # old Intel for x86_64 which still supported -KPIC. | |
8231 | ecc*) | |
8232 | lt_prog_compiler_wl='-Wl,' | |
8233 | lt_prog_compiler_pic='-KPIC' | |
8234 | lt_prog_compiler_static='-static' | |
8235 | ;; | |
8236 | # icc used to be incompatible with GCC. | |
8237 | # ICC 10 doesn't accept -KPIC any more. | |
8238 | icc* | ifort*) | |
8239 | lt_prog_compiler_wl='-Wl,' | |
8240 | lt_prog_compiler_pic='-fPIC' | |
8241 | lt_prog_compiler_static='-static' | |
8242 | ;; | |
8243 | # Lahey Fortran 8.1. | |
8244 | lf95*) | |
8245 | lt_prog_compiler_wl='-Wl,' | |
8246 | lt_prog_compiler_pic='--shared' | |
8247 | lt_prog_compiler_static='--static' | |
8248 | ;; | |
8249 | pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
8250 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
8251 | # which looks to be a dead project) | |
8252 | lt_prog_compiler_wl='-Wl,' | |
8253 | lt_prog_compiler_pic='-fpic' | |
8254 | lt_prog_compiler_static='-Bstatic' | |
8255 | ;; | |
8256 | ccc*) | |
8257 | lt_prog_compiler_wl='-Wl,' | |
8258 | # All Alpha code is PIC. | |
8259 | lt_prog_compiler_static='-non_shared' | |
8260 | ;; | |
8261 | xl* | bgxl* | bgf* | mpixl*) | |
8262 | # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8263 | lt_prog_compiler_wl='-Wl,' | |
8264 | lt_prog_compiler_pic='-qpic' | |
8265 | lt_prog_compiler_static='-qstaticlink' | |
8266 | ;; | |
8267 | *) | |
8268 | case `$CC -V 2>&1 | sed 5q` in | |
8269 | *Sun\ F* | *Sun*Fortran*) | |
8270 | # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8271 | lt_prog_compiler_pic='-KPIC' | |
8272 | lt_prog_compiler_static='-Bstatic' | |
8273 | lt_prog_compiler_wl='' | |
8274 | ;; | |
8275 | *Sun\ C*) | |
8276 | # Sun C 5.9 | |
8277 | lt_prog_compiler_pic='-KPIC' | |
8278 | lt_prog_compiler_static='-Bstatic' | |
8279 | lt_prog_compiler_wl='-Wl,' | |
8280 | ;; | |
8281 | esac | |
8282 | ;; | |
8283 | esac | |
8284 | ;; | |
8285 | ||
8286 | newsos6) | |
8287 | lt_prog_compiler_pic='-KPIC' | |
8288 | lt_prog_compiler_static='-Bstatic' | |
8289 | ;; | |
8290 | ||
8291 | *nto* | *qnx*) | |
8292 | # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8293 | # it will coredump. | |
8294 | lt_prog_compiler_pic='-fPIC -shared' | |
8295 | ;; | |
8296 | ||
8297 | osf3* | osf4* | osf5*) | |
8298 | lt_prog_compiler_wl='-Wl,' | |
8299 | # All OSF/1 code is PIC. | |
8300 | lt_prog_compiler_static='-non_shared' | |
8301 | ;; | |
8302 | ||
8303 | rdos*) | |
8304 | lt_prog_compiler_static='-non_shared' | |
8305 | ;; | |
8306 | ||
8307 | solaris*) | |
8308 | lt_prog_compiler_pic='-KPIC' | |
8309 | lt_prog_compiler_static='-Bstatic' | |
8310 | case $cc_basename in | |
8311 | f77* | f90* | f95*) | |
8312 | lt_prog_compiler_wl='-Qoption ld ';; | |
8313 | *) | |
8314 | lt_prog_compiler_wl='-Wl,';; | |
8315 | esac | |
8316 | ;; | |
8317 | ||
8318 | sunos4*) | |
8319 | lt_prog_compiler_wl='-Qoption ld ' | |
8320 | lt_prog_compiler_pic='-PIC' | |
8321 | lt_prog_compiler_static='-Bstatic' | |
8322 | ;; | |
8323 | ||
8324 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
8325 | lt_prog_compiler_wl='-Wl,' | |
8326 | lt_prog_compiler_pic='-KPIC' | |
8327 | lt_prog_compiler_static='-Bstatic' | |
8328 | ;; | |
8329 | ||
8330 | sysv4*MP*) | |
8331 | if test -d /usr/nec ;then | |
8332 | lt_prog_compiler_pic='-Kconform_pic' | |
8333 | lt_prog_compiler_static='-Bstatic' | |
8334 | fi | |
8335 | ;; | |
8336 | ||
8337 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
8338 | lt_prog_compiler_wl='-Wl,' | |
8339 | lt_prog_compiler_pic='-KPIC' | |
8340 | lt_prog_compiler_static='-Bstatic' | |
8341 | ;; | |
8342 | ||
8343 | unicos*) | |
8344 | lt_prog_compiler_wl='-Wl,' | |
8345 | lt_prog_compiler_can_build_shared=no | |
8346 | ;; | |
8347 | ||
8348 | uts4*) | |
8349 | lt_prog_compiler_pic='-pic' | |
8350 | lt_prog_compiler_static='-Bstatic' | |
8351 | ;; | |
8352 | ||
8353 | *) | |
8354 | lt_prog_compiler_can_build_shared=no | |
8355 | ;; | |
8356 | esac | |
8357 | fi | |
8358 | ||
8359 | case $host_os in | |
8360 | # For platforms which do not support PIC, -DPIC is meaningless: | |
8361 | *djgpp*) | |
8362 | lt_prog_compiler_pic= | |
8363 | ;; | |
8364 | *) | |
8365 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
8366 | ;; | |
8367 | esac | |
8368 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 | |
8369 | $as_echo "$lt_prog_compiler_pic" >&6; } | |
8370 | ||
8371 | ||
8372 | ||
8373 | ||
8374 | ||
8375 | ||
8376 | # | |
8377 | # Check to make sure the PIC flag actually works. | |
8378 | # | |
8379 | if test -n "$lt_prog_compiler_pic"; then | |
8380 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
8381 | $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
8382 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : | |
8383 | $as_echo_n "(cached) " >&6 | |
8384 | else | |
8385 | lt_cv_prog_compiler_pic_works=no | |
8386 | ac_outfile=conftest.$ac_objext | |
8387 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8388 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
8389 | # Insert the option either (1) after the last *FLAGS variable, or | |
8390 | # (2) before a word containing "conftest.", or (3) at the end. | |
8391 | # Note that $ac_compile itself does not contain backslashes and begins | |
8392 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8393 | # The option is referenced via a variable to avoid confusing sed. | |
8394 | lt_compile=`echo "$ac_compile" | $SED \ | |
8395 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8396 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8397 | -e 's:$: $lt_compiler_flag:'` | |
8398 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8399 | (eval "$lt_compile" 2>conftest.err) | |
8400 | ac_status=$? | |
8401 | cat conftest.err >&5 | |
8402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8403 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
8404 | # The compiler can only warn and ignore the option if not recognized | |
8405 | # So say no if there are warnings other than the usual output. | |
8406 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8407 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8408 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8409 | lt_cv_prog_compiler_pic_works=yes | |
8410 | fi | |
8411 | fi | |
8412 | $RM conftest* | |
8413 | ||
8414 | fi | |
8415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
8416 | $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
8417 | ||
8418 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
8419 | case $lt_prog_compiler_pic in | |
8420 | "" | " "*) ;; | |
8421 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
8422 | esac | |
8423 | else | |
8424 | lt_prog_compiler_pic= | |
8425 | lt_prog_compiler_can_build_shared=no | |
8426 | fi | |
8427 | ||
8428 | fi | |
8429 | ||
8430 | ||
8431 | ||
8432 | ||
8433 | ||
8434 | ||
8435 | # | |
8436 | # Check to make sure the static flag actually works. | |
8437 | # | |
8438 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
8439 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
8440 | $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
8441 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then : | |
8442 | $as_echo_n "(cached) " >&6 | |
8443 | else | |
8444 | lt_cv_prog_compiler_static_works=no | |
8445 | save_LDFLAGS="$LDFLAGS" | |
8446 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
8447 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
8448 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
8449 | # The linker can only warn and ignore the option if not recognized | |
8450 | # So say no if there are warnings | |
8451 | if test -s conftest.err; then | |
8452 | # Append any errors to the config.log. | |
8453 | cat conftest.err 1>&5 | |
8454 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
8455 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8456 | if diff conftest.exp conftest.er2 >/dev/null; then | |
8457 | lt_cv_prog_compiler_static_works=yes | |
8458 | fi | |
8459 | else | |
8460 | lt_cv_prog_compiler_static_works=yes | |
8461 | fi | |
8462 | fi | |
8463 | $RM -r conftest* | |
8464 | LDFLAGS="$save_LDFLAGS" | |
8465 | ||
8466 | fi | |
8467 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
8468 | $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
8469 | ||
8470 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
8471 | : | |
8472 | else | |
8473 | lt_prog_compiler_static= | |
8474 | fi | |
8475 | ||
8476 | ||
8477 | ||
8478 | ||
8479 | ||
8480 | ||
8481 | ||
8482 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8483 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8484 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
8485 | $as_echo_n "(cached) " >&6 | |
8486 | else | |
8487 | lt_cv_prog_compiler_c_o=no | |
8488 | $RM -r conftest 2>/dev/null | |
8489 | mkdir conftest | |
8490 | cd conftest | |
8491 | mkdir out | |
8492 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8493 | ||
8494 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8495 | # Insert the option either (1) after the last *FLAGS variable, or | |
8496 | # (2) before a word containing "conftest.", or (3) at the end. | |
8497 | # Note that $ac_compile itself does not contain backslashes and begins | |
8498 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8499 | lt_compile=`echo "$ac_compile" | $SED \ | |
8500 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8501 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8502 | -e 's:$: $lt_compiler_flag:'` | |
8503 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8504 | (eval "$lt_compile" 2>out/conftest.err) | |
8505 | ac_status=$? | |
8506 | cat out/conftest.err >&5 | |
8507 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8508 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8509 | then | |
8510 | # The compiler can only warn and ignore the option if not recognized | |
8511 | # So say no if there are warnings | |
8512 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
8513 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8514 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8515 | lt_cv_prog_compiler_c_o=yes | |
8516 | fi | |
8517 | fi | |
8518 | chmod u+w . 2>&5 | |
8519 | $RM conftest* | |
8520 | # SGI C++ compiler will create directory out/ii_files/ for | |
8521 | # template instantiation | |
8522 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8523 | $RM out/* && rmdir out | |
8524 | cd .. | |
8525 | $RM -r conftest | |
8526 | $RM conftest* | |
8527 | ||
8528 | fi | |
8529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
8530 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8531 | ||
8532 | ||
8533 | ||
8534 | ||
8535 | ||
8536 | ||
8537 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
8538 | $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
8539 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then : | |
8540 | $as_echo_n "(cached) " >&6 | |
8541 | else | |
8542 | lt_cv_prog_compiler_c_o=no | |
8543 | $RM -r conftest 2>/dev/null | |
8544 | mkdir conftest | |
8545 | cd conftest | |
8546 | mkdir out | |
8547 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8548 | ||
8549 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
8550 | # Insert the option either (1) after the last *FLAGS variable, or | |
8551 | # (2) before a word containing "conftest.", or (3) at the end. | |
8552 | # Note that $ac_compile itself does not contain backslashes and begins | |
8553 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8554 | lt_compile=`echo "$ac_compile" | $SED \ | |
8555 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8556 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8557 | -e 's:$: $lt_compiler_flag:'` | |
8558 | (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8559 | (eval "$lt_compile" 2>out/conftest.err) | |
8560 | ac_status=$? | |
8561 | cat out/conftest.err >&5 | |
8562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8563 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
8564 | then | |
8565 | # The compiler can only warn and ignore the option if not recognized | |
8566 | # So say no if there are warnings | |
8567 | $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
8568 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
8569 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
8570 | lt_cv_prog_compiler_c_o=yes | |
8571 | fi | |
8572 | fi | |
8573 | chmod u+w . 2>&5 | |
8574 | $RM conftest* | |
8575 | # SGI C++ compiler will create directory out/ii_files/ for | |
8576 | # template instantiation | |
8577 | test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
8578 | $RM out/* && rmdir out | |
8579 | cd .. | |
8580 | $RM -r conftest | |
8581 | $RM conftest* | |
8582 | ||
8583 | fi | |
8584 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
8585 | $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
8586 | ||
8587 | ||
8588 | ||
8589 | ||
8590 | hard_links="nottested" | |
8591 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
8592 | # do not overwrite the value of need_locks provided by the user | |
8593 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
8594 | $as_echo_n "checking if we can lock with hard links... " >&6; } | |
8595 | hard_links=yes | |
8596 | $RM conftest* | |
8597 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8598 | touch conftest.a | |
8599 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
8600 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
8601 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
8602 | $as_echo "$hard_links" >&6; } | |
8603 | if test "$hard_links" = no; then | |
8604 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
8605 | $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
8606 | need_locks=warn | |
8607 | fi | |
8608 | else | |
8609 | need_locks=no | |
8610 | fi | |
8611 | ||
8612 | ||
8613 | ||
8614 | ||
8615 | ||
8616 | ||
8617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
8618 | $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
8619 | ||
8620 | runpath_var= | |
8621 | allow_undefined_flag= | |
8622 | always_export_symbols=no | |
8623 | archive_cmds= | |
8624 | archive_expsym_cmds= | |
8625 | compiler_needs_object=no | |
8626 | enable_shared_with_static_runtimes=no | |
8627 | export_dynamic_flag_spec= | |
8628 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
8629 | hardcode_automatic=no | |
8630 | hardcode_direct=no | |
8631 | hardcode_direct_absolute=no | |
8632 | hardcode_libdir_flag_spec= | |
8633 | hardcode_libdir_flag_spec_ld= | |
8634 | hardcode_libdir_separator= | |
8635 | hardcode_minus_L=no | |
8636 | hardcode_shlibpath_var=unsupported | |
8637 | inherit_rpath=no | |
8638 | link_all_deplibs=unknown | |
8639 | module_cmds= | |
8640 | module_expsym_cmds= | |
8641 | old_archive_from_new_cmds= | |
8642 | old_archive_from_expsyms_cmds= | |
8643 | thread_safe_flag_spec= | |
8644 | whole_archive_flag_spec= | |
8645 | # include_expsyms should be a list of space-separated symbols to be *always* | |
8646 | # included in the symbol list | |
8647 | include_expsyms= | |
8648 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
8649 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
8650 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
8651 | # as well as any symbol that contains `d'. | |
8652 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
8653 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
8654 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
8655 | # the symbol is explicitly referenced. Since portable code cannot | |
8656 | # rely on this symbol name, it's probably fine to never include it in | |
8657 | # preloaded symbol tables. | |
8658 | # Exclude shared library initialization/finalization symbols. | |
8659 | extract_expsyms_cmds= | |
8660 | ||
8661 | case $host_os in | |
8662 | cygwin* | mingw* | pw32* | cegcc*) | |
8663 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
8664 | # When not using gcc, we currently assume that we are using | |
8665 | # Microsoft Visual C++. | |
8666 | if test "$GCC" != yes; then | |
8667 | with_gnu_ld=no | |
8668 | fi | |
8669 | ;; | |
8670 | interix*) | |
8671 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
8672 | with_gnu_ld=yes | |
8673 | ;; | |
8674 | openbsd*) | |
8675 | with_gnu_ld=no | |
8676 | ;; | |
8677 | esac | |
8678 | ||
8679 | ld_shlibs=yes | |
8680 | ||
8681 | # On some targets, GNU ld is compatible enough with the native linker | |
8682 | # that we're better off using the native interface for both. | |
8683 | lt_use_gnu_ld_interface=no | |
8684 | if test "$with_gnu_ld" = yes; then | |
8685 | case $host_os in | |
8686 | aix*) | |
8687 | # The AIX port of GNU ld has always aspired to compatibility | |
8688 | # with the native linker. However, as the warning in the GNU ld | |
8689 | # block says, versions before 2.19.5* couldn't really create working | |
8690 | # shared libraries, regardless of the interface used. | |
8691 | case `$LD -v 2>&1` in | |
8692 | *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
8693 | *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
8694 | *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
8695 | *) | |
8696 | lt_use_gnu_ld_interface=yes | |
8697 | ;; | |
8698 | esac | |
8699 | ;; | |
8700 | *) | |
8701 | lt_use_gnu_ld_interface=yes | |
8702 | ;; | |
8703 | esac | |
8704 | fi | |
8705 | ||
8706 | if test "$lt_use_gnu_ld_interface" = yes; then | |
8707 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
8708 | wlarc='${wl}' | |
8709 | ||
8710 | # Set some defaults for GNU ld with shared library support. These | |
8711 | # are reset later if shared libraries are not supported. Putting them | |
8712 | # here allows them to be overridden if necessary. | |
8713 | runpath_var=LD_RUN_PATH | |
8714 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8715 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
8716 | # ancient GNU ld didn't support --whole-archive et. al. | |
8717 | if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
8718 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
8719 | else | |
8720 | whole_archive_flag_spec= | |
8721 | fi | |
8722 | supports_anon_versioning=no | |
8723 | case `$LD -v 2>&1` in | |
8724 | *GNU\ gold*) supports_anon_versioning=yes ;; | |
8725 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
8726 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
8727 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
8728 | *\ 2.11.*) ;; # other 2.11 versions | |
8729 | *) supports_anon_versioning=yes ;; | |
8730 | esac | |
8731 | ||
8732 | # See if GNU ld supports shared libraries. | |
8733 | case $host_os in | |
8734 | aix[3-9]*) | |
8735 | # On AIX/PPC, the GNU linker is very broken | |
8736 | if test "$host_cpu" != ia64; then | |
8737 | ld_shlibs=no | |
8738 | cat <<_LT_EOF 1>&2 | |
8739 | ||
8740 | *** Warning: the GNU linker, at least up to release 2.19, is reported | |
8741 | *** to be unable to reliably create shared libraries on AIX. | |
8742 | *** Therefore, libtool is disabling shared libraries support. If you | |
8743 | *** really care for shared libraries, you may want to install binutils | |
8744 | *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
8745 | *** You will then need to restart the configuration process. | |
8746 | ||
8747 | _LT_EOF | |
8748 | fi | |
8749 | ;; | |
8750 | ||
8751 | amigaos*) | |
8752 | case $host_cpu in | |
8753 | powerpc) | |
8754 | # see comment about AmigaOS4 .so support | |
8755 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8756 | archive_expsym_cmds='' | |
8757 | ;; | |
8758 | m68k) | |
8759 | 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)' | |
8760 | hardcode_libdir_flag_spec='-L$libdir' | |
8761 | hardcode_minus_L=yes | |
8762 | ;; | |
8763 | esac | |
8764 | ;; | |
8765 | ||
8766 | beos*) | |
8767 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8768 | allow_undefined_flag=unsupported | |
8769 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
8770 | # support --undefined. This deserves some investigation. FIXME | |
8771 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8772 | else | |
8773 | ld_shlibs=no | |
8774 | fi | |
8775 | ;; | |
8776 | ||
8777 | cygwin* | mingw* | pw32* | cegcc*) | |
8778 | # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
8779 | # as there is no search path for DLLs. | |
8780 | hardcode_libdir_flag_spec='-L$libdir' | |
8781 | export_dynamic_flag_spec='${wl}--export-all-symbols' | |
8782 | allow_undefined_flag=unsupported | |
8783 | always_export_symbols=no | |
8784 | enable_shared_with_static_runtimes=yes | |
8785 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
8786 | ||
8787 | if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
8788 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8789 | # If the export-symbols file already is a .def file (1st line | |
8790 | # is EXPORTS), use it as is; otherwise, prepend... | |
8791 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
8792 | cp $export_symbols $output_objdir/$soname.def; | |
8793 | else | |
8794 | echo EXPORTS > $output_objdir/$soname.def; | |
8795 | cat $export_symbols >> $output_objdir/$soname.def; | |
8796 | fi~ | |
8797 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
8798 | else | |
8799 | ld_shlibs=no | |
8800 | fi | |
8801 | ;; | |
8802 | ||
8803 | haiku*) | |
8804 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8805 | link_all_deplibs=yes | |
8806 | ;; | |
8807 | ||
8808 | interix[3-9]*) | |
8809 | hardcode_direct=no | |
8810 | hardcode_shlibpath_var=no | |
8811 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
8812 | export_dynamic_flag_spec='${wl}-E' | |
8813 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
8814 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
8815 | # default) and relocated if they conflict, which is a slow very memory | |
8816 | # consuming and fragmenting process. To avoid this, we pick a random, | |
8817 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
8818 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
8819 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
8820 | 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' | |
8821 | ;; | |
8822 | ||
8823 | gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
8824 | tmp_diet=no | |
8825 | if test "$host_os" = linux-dietlibc; then | |
8826 | case $cc_basename in | |
8827 | diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
8828 | esac | |
8829 | fi | |
8830 | if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
8831 | && test "$tmp_diet" = no | |
8832 | then | |
8833 | tmp_addflag= | |
8834 | tmp_sharedflag='-shared' | |
8835 | case $cc_basename,$host_cpu in | |
8836 | pgcc*) # Portland Group C compiler | |
8837 | 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' | |
8838 | tmp_addflag=' $pic_flag' | |
8839 | ;; | |
8840 | pgf77* | pgf90* | pgf95* | pgfortran*) | |
8841 | # Portland Group f77 and f90 compilers | |
8842 | 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' | |
8843 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
8844 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
8845 | tmp_addflag=' -i_dynamic' ;; | |
8846 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
8847 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
8848 | ifc* | ifort*) # Intel Fortran compiler | |
8849 | tmp_addflag=' -nofor_main' ;; | |
8850 | lf95*) # Lahey Fortran 8.1 | |
8851 | whole_archive_flag_spec= | |
8852 | tmp_sharedflag='--shared' ;; | |
8853 | xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
8854 | tmp_sharedflag='-qmkshrobj' | |
8855 | tmp_addflag= ;; | |
8856 | nvcc*) # Cuda Compiler Driver 2.2 | |
8857 | 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' | |
8858 | compiler_needs_object=yes | |
8859 | ;; | |
8860 | esac | |
8861 | case `$CC -V 2>&1 | sed 5q` in | |
8862 | *Sun\ C*) # Sun C 5.9 | |
8863 | 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' | |
8864 | compiler_needs_object=yes | |
8865 | tmp_sharedflag='-G' ;; | |
8866 | *Sun\ F*) # Sun Fortran 8.3 | |
8867 | tmp_sharedflag='-G' ;; | |
8868 | esac | |
8869 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8870 | ||
8871 | if test "x$supports_anon_versioning" = xyes; then | |
8872 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8873 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8874 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8875 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
8876 | fi | |
8877 | ||
8878 | case $cc_basename in | |
8879 | xlf* | bgf* | bgxlf* | mpixlf*) | |
8880 | # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
8881 | whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
8882 | hardcode_libdir_flag_spec= | |
8883 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
8884 | archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' | |
8885 | if test "x$supports_anon_versioning" = xyes; then | |
8886 | archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
8887 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
8888 | echo "local: *; };" >> $output_objdir/$libname.ver~ | |
8889 | $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
8890 | fi | |
8891 | ;; | |
8892 | esac | |
8893 | else | |
8894 | ld_shlibs=no | |
8895 | fi | |
8896 | ;; | |
8897 | ||
8898 | netbsd*) | |
8899 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
8900 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
8901 | wlarc= | |
8902 | else | |
8903 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8904 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8905 | fi | |
8906 | ;; | |
8907 | ||
8908 | solaris*) | |
8909 | if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
8910 | ld_shlibs=no | |
8911 | cat <<_LT_EOF 1>&2 | |
8912 | ||
8913 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
8914 | *** create shared libraries on Solaris systems. Therefore, libtool | |
8915 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8916 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
8917 | *** your PATH or compiler configuration so that the native linker is | |
8918 | *** used, and then restart. | |
8919 | ||
8920 | _LT_EOF | |
8921 | elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8922 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8923 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8924 | else | |
8925 | ld_shlibs=no | |
8926 | fi | |
8927 | ;; | |
8928 | ||
8929 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
8930 | case `$LD -v 2>&1` in | |
8931 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
8932 | ld_shlibs=no | |
8933 | cat <<_LT_EOF 1>&2 | |
8934 | ||
8935 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
8936 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
8937 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
8938 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
8939 | *** your PATH or compiler configuration so that the native linker is | |
8940 | *** used, and then restart. | |
8941 | ||
8942 | _LT_EOF | |
8943 | ;; | |
8944 | *) | |
8945 | # For security reasons, it is highly recommended that you always | |
8946 | # use absolute paths for naming shared libraries, and exclude the | |
8947 | # DT_RUNPATH tag from executables and libraries. But doing so | |
8948 | # requires that you compile everything twice, which is a pain. | |
8949 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8950 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
8951 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8952 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8953 | else | |
8954 | ld_shlibs=no | |
8955 | fi | |
8956 | ;; | |
8957 | esac | |
8958 | ;; | |
8959 | ||
8960 | sunos4*) | |
8961 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
8962 | wlarc= | |
8963 | hardcode_direct=yes | |
8964 | hardcode_shlibpath_var=no | |
8965 | ;; | |
8966 | ||
8967 | *) | |
8968 | if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
8969 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
8970 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
8971 | else | |
8972 | ld_shlibs=no | |
8973 | fi | |
8974 | ;; | |
8975 | esac | |
8976 | ||
8977 | if test "$ld_shlibs" = no; then | |
8978 | runpath_var= | |
8979 | hardcode_libdir_flag_spec= | |
8980 | export_dynamic_flag_spec= | |
8981 | whole_archive_flag_spec= | |
8982 | fi | |
8983 | else | |
8984 | # PORTME fill in a description of your system's linker (not GNU ld) | |
8985 | case $host_os in | |
8986 | aix3*) | |
8987 | allow_undefined_flag=unsupported | |
8988 | always_export_symbols=yes | |
8989 | 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' | |
8990 | # Note: this linker hardcodes the directories in LIBPATH if there | |
8991 | # are no directories specified by -L. | |
8992 | hardcode_minus_L=yes | |
8993 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
8994 | # Neither direct hardcoding nor static linking is supported with a | |
8995 | # broken collect2. | |
8996 | hardcode_direct=unsupported | |
8997 | fi | |
8998 | ;; | |
8999 | ||
9000 | aix[4-9]*) | |
9001 | if test "$host_cpu" = ia64; then | |
9002 | # On IA64, the linker does run time linking by default, so we don't | |
9003 | # have to do anything special. | |
9004 | aix_use_runtimelinking=no | |
9005 | exp_sym_flag='-Bexport' | |
9006 | no_entry_flag="" | |
9007 | else | |
9008 | # If we're using GNU nm, then we don't want the "-C" option. | |
9009 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9010 | # Also, AIX nm treats weak defined symbols like other global | |
9011 | # defined symbols, whereas GNU nm marks them as "W". | |
9012 | if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9013 | 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' | |
9014 | else | |
9015 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
9016 | fi | |
9017 | aix_use_runtimelinking=no | |
9018 | ||
9019 | # Test if we are trying to use run time linking or normal | |
9020 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9021 | # need to do runtime linking. | |
9022 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9023 | for ld_flag in $LDFLAGS; do | |
9024 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9025 | aix_use_runtimelinking=yes | |
9026 | break | |
9027 | fi | |
9028 | done | |
9029 | ;; | |
9030 | esac | |
9031 | ||
9032 | exp_sym_flag='-bexport' | |
9033 | no_entry_flag='-bnoentry' | |
9034 | fi | |
9035 | ||
9036 | # When large executables or shared objects are built, AIX ld can | |
9037 | # have problems creating the table of contents. If linking a library | |
9038 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9039 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9040 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9041 | ||
9042 | archive_cmds='' | |
9043 | hardcode_direct=yes | |
9044 | hardcode_direct_absolute=yes | |
9045 | hardcode_libdir_separator=':' | |
9046 | link_all_deplibs=yes | |
9047 | file_list_spec='${wl}-f,' | |
9048 | ||
9049 | if test "$GCC" = yes; then | |
9050 | case $host_os in aix4.[012]|aix4.[012].*) | |
9051 | # We only want to do this on AIX 4.2 and lower, the check | |
9052 | # below for broken collect2 doesn't work under 4.3+ | |
9053 | collect2name=`${CC} -print-prog-name=collect2` | |
9054 | if test -f "$collect2name" && | |
9055 | strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9056 | then | |
9057 | # We have reworked collect2 | |
9058 | : | |
9059 | else | |
9060 | # We have old collect2 | |
9061 | hardcode_direct=unsupported | |
9062 | # It fails to find uninstalled libraries when the uninstalled | |
9063 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9064 | # to unsupported forces relinking | |
9065 | hardcode_minus_L=yes | |
9066 | hardcode_libdir_flag_spec='-L$libdir' | |
9067 | hardcode_libdir_separator= | |
9068 | fi | |
9069 | ;; | |
9070 | esac | |
9071 | shared_flag='-shared' | |
9072 | if test "$aix_use_runtimelinking" = yes; then | |
9073 | shared_flag="$shared_flag "'${wl}-G' | |
9074 | fi | |
9075 | else | |
9076 | # not using gcc | |
9077 | if test "$host_cpu" = ia64; then | |
9078 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9079 | # chokes on -Wl,-G. The following line is correct: | |
9080 | shared_flag='-G' | |
9081 | else | |
9082 | if test "$aix_use_runtimelinking" = yes; then | |
9083 | shared_flag='${wl}-G' | |
9084 | else | |
9085 | shared_flag='${wl}-bM:SRE' | |
9086 | fi | |
9087 | fi | |
9088 | fi | |
9089 | ||
9090 | export_dynamic_flag_spec='${wl}-bexpall' | |
9091 | # It seems that -bexpall does not export symbols beginning with | |
9092 | # underscore (_), so it is better to generate a list of symbols to export. | |
9093 | always_export_symbols=yes | |
9094 | if test "$aix_use_runtimelinking" = yes; then | |
9095 | # Warning - without using the other runtime loading flags (-brtl), | |
9096 | # -berok will link without error, but may produce a broken library. | |
9097 | allow_undefined_flag='-berok' | |
9098 | # Determine the default libpath from the value encoded in an | |
9099 | # empty executable. | |
9100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9101 | /* end confdefs.h. */ | |
9102 | ||
9103 | int | |
9104 | main () | |
9105 | { | |
9106 | ||
9107 | ; | |
9108 | return 0; | |
9109 | } | |
9110 | _ACEOF | |
9111 | if ac_fn_c_try_link "$LINENO"; then : | |
9112 | ||
9113 | lt_aix_libpath_sed=' | |
9114 | /Import File Strings/,/^$/ { | |
9115 | /^0/ { | |
9116 | s/^0 *\(.*\)$/\1/ | |
9117 | p | |
9118 | } | |
9119 | }' | |
9120 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9121 | # Check for a 64-bit object if we didn't find anything. | |
9122 | if test -z "$aix_libpath"; then | |
9123 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9124 | fi | |
9125 | fi | |
9126 | rm -f core conftest.err conftest.$ac_objext \ | |
9127 | conftest$ac_exeext conftest.$ac_ext | |
9128 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9129 | ||
9130 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9131 | 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" | |
9132 | else | |
9133 | if test "$host_cpu" = ia64; then | |
9134 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9135 | allow_undefined_flag="-z nodefs" | |
9136 | 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" | |
9137 | else | |
9138 | # Determine the default libpath from the value encoded in an | |
9139 | # empty executable. | |
9140 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9141 | /* end confdefs.h. */ | |
9142 | ||
9143 | int | |
9144 | main () | |
9145 | { | |
9146 | ||
9147 | ; | |
9148 | return 0; | |
9149 | } | |
9150 | _ACEOF | |
9151 | if ac_fn_c_try_link "$LINENO"; then : | |
9152 | ||
9153 | lt_aix_libpath_sed=' | |
9154 | /Import File Strings/,/^$/ { | |
9155 | /^0/ { | |
9156 | s/^0 *\(.*\)$/\1/ | |
9157 | p | |
9158 | } | |
9159 | }' | |
9160 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9161 | # Check for a 64-bit object if we didn't find anything. | |
9162 | if test -z "$aix_libpath"; then | |
9163 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9164 | fi | |
9165 | fi | |
9166 | rm -f core conftest.err conftest.$ac_objext \ | |
9167 | conftest$ac_exeext conftest.$ac_ext | |
9168 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9169 | ||
9170 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9171 | # Warning - without using the other run time loading flags, | |
9172 | # -berok will link without error, but may produce a broken library. | |
9173 | no_undefined_flag=' ${wl}-bernotok' | |
9174 | allow_undefined_flag=' ${wl}-berok' | |
9175 | if test "$with_gnu_ld" = yes; then | |
9176 | # We only use this code for GNU lds that support --whole-archive. | |
9177 | whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9178 | else | |
9179 | # Exported symbols can be pulled into shared objects from archives | |
9180 | whole_archive_flag_spec='$convenience' | |
9181 | fi | |
9182 | archive_cmds_need_lc=yes | |
9183 | # This is similar to how AIX traditionally builds its shared libraries. | |
9184 | 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' | |
9185 | fi | |
9186 | fi | |
9187 | ;; | |
9188 | ||
9189 | amigaos*) | |
9190 | case $host_cpu in | |
9191 | powerpc) | |
9192 | # see comment about AmigaOS4 .so support | |
9193 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9194 | archive_expsym_cmds='' | |
9195 | ;; | |
9196 | m68k) | |
9197 | 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)' | |
9198 | hardcode_libdir_flag_spec='-L$libdir' | |
9199 | hardcode_minus_L=yes | |
9200 | ;; | |
9201 | esac | |
9202 | ;; | |
9203 | ||
9204 | bsdi[45]*) | |
9205 | export_dynamic_flag_spec=-rdynamic | |
9206 | ;; | |
9207 | ||
9208 | cygwin* | mingw* | pw32* | cegcc*) | |
9209 | # When not using gcc, we currently assume that we are using | |
9210 | # Microsoft Visual C++. | |
9211 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9212 | # no search path for DLLs. | |
9213 | hardcode_libdir_flag_spec=' ' | |
9214 | allow_undefined_flag=unsupported | |
9215 | # Tell ltmain to make .lib files, not .a files. | |
9216 | libext=lib | |
9217 | # Tell ltmain to make .dll files, not .so files. | |
9218 | shrext_cmds=".dll" | |
9219 | # FIXME: Setting linknames here is a bad hack. | |
9220 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9221 | # The linker will automatically build a .lib file if we build a DLL. | |
9222 | old_archive_from_new_cmds='true' | |
9223 | # FIXME: Should let the user specify the lib program. | |
9224 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9225 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
9226 | enable_shared_with_static_runtimes=yes | |
9227 | ;; | |
9228 | ||
9229 | darwin* | rhapsody*) | |
9230 | ||
9231 | ||
9232 | archive_cmds_need_lc=no | |
9233 | hardcode_direct=no | |
9234 | hardcode_automatic=yes | |
9235 | hardcode_shlibpath_var=unsupported | |
9236 | if test "$lt_cv_ld_force_load" = "yes"; then | |
9237 | 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\"`' | |
9238 | else | |
9239 | whole_archive_flag_spec='' | |
9240 | fi | |
9241 | link_all_deplibs=yes | |
9242 | allow_undefined_flag="$_lt_dar_allow_undefined" | |
9243 | case $cc_basename in | |
9244 | ifort*) _lt_dar_can_shared=yes ;; | |
9245 | *) _lt_dar_can_shared=$GCC ;; | |
9246 | esac | |
9247 | if test "$_lt_dar_can_shared" = "yes"; then | |
9248 | output_verbose_link_cmd=func_echo_all | |
9249 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
9250 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
9251 | 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}" | |
9252 | 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}" | |
9253 | ||
9254 | else | |
9255 | ld_shlibs=no | |
9256 | fi | |
9257 | ||
9258 | ;; | |
9259 | ||
9260 | dgux*) | |
9261 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9262 | hardcode_libdir_flag_spec='-L$libdir' | |
9263 | hardcode_shlibpath_var=no | |
9264 | ;; | |
9265 | ||
9266 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
9267 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
9268 | # does not break anything, and helps significantly (at the cost of a little | |
9269 | # extra space). | |
9270 | freebsd2.2*) | |
9271 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
9272 | hardcode_libdir_flag_spec='-R$libdir' | |
9273 | hardcode_direct=yes | |
9274 | hardcode_shlibpath_var=no | |
9275 | ;; | |
9276 | ||
9277 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
9278 | freebsd2.*) | |
9279 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9280 | hardcode_direct=yes | |
9281 | hardcode_minus_L=yes | |
9282 | hardcode_shlibpath_var=no | |
9283 | ;; | |
9284 | ||
9285 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
9286 | freebsd* | dragonfly*) | |
9287 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
9288 | hardcode_libdir_flag_spec='-R$libdir' | |
9289 | hardcode_direct=yes | |
9290 | hardcode_shlibpath_var=no | |
9291 | ;; | |
9292 | ||
9293 | hpux9*) | |
9294 | if test "$GCC" = yes; then | |
9295 | 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' | |
9296 | else | |
9297 | 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' | |
9298 | fi | |
9299 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9300 | hardcode_libdir_separator=: | |
9301 | hardcode_direct=yes | |
9302 | ||
9303 | # hardcode_minus_L: Not really in the search PATH, | |
9304 | # but as the default location of the library. | |
9305 | hardcode_minus_L=yes | |
9306 | export_dynamic_flag_spec='${wl}-E' | |
9307 | ;; | |
9308 | ||
9309 | hpux10*) | |
9310 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9311 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9312 | else | |
9313 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9314 | fi | |
9315 | if test "$with_gnu_ld" = no; then | |
9316 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9317 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
9318 | hardcode_libdir_separator=: | |
9319 | hardcode_direct=yes | |
9320 | hardcode_direct_absolute=yes | |
9321 | export_dynamic_flag_spec='${wl}-E' | |
9322 | # hardcode_minus_L: Not really in the search PATH, | |
9323 | # but as the default location of the library. | |
9324 | hardcode_minus_L=yes | |
9325 | fi | |
9326 | ;; | |
9327 | ||
9328 | hpux11*) | |
9329 | if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
9330 | case $host_cpu in | |
9331 | hppa*64*) | |
9332 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9333 | ;; | |
9334 | ia64*) | |
9335 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9336 | ;; | |
9337 | *) | |
9338 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9339 | ;; | |
9340 | esac | |
9341 | else | |
9342 | case $host_cpu in | |
9343 | hppa*64*) | |
9344 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9345 | ;; | |
9346 | ia64*) | |
9347 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
9348 | ;; | |
9349 | *) | |
9350 | ||
9351 | # Older versions of the 11.00 compiler do not understand -b yet | |
9352 | # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
9353 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
9354 | $as_echo_n "checking if $CC understands -b... " >&6; } | |
9355 | if test "${lt_cv_prog_compiler__b+set}" = set; then : | |
9356 | $as_echo_n "(cached) " >&6 | |
9357 | else | |
9358 | lt_cv_prog_compiler__b=no | |
9359 | save_LDFLAGS="$LDFLAGS" | |
9360 | LDFLAGS="$LDFLAGS -b" | |
9361 | echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9362 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9363 | # The linker can only warn and ignore the option if not recognized | |
9364 | # So say no if there are warnings | |
9365 | if test -s conftest.err; then | |
9366 | # Append any errors to the config.log. | |
9367 | cat conftest.err 1>&5 | |
9368 | $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9369 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9370 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9371 | lt_cv_prog_compiler__b=yes | |
9372 | fi | |
9373 | else | |
9374 | lt_cv_prog_compiler__b=yes | |
9375 | fi | |
9376 | fi | |
9377 | $RM -r conftest* | |
9378 | LDFLAGS="$save_LDFLAGS" | |
9379 | ||
9380 | fi | |
9381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
9382 | $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
9383 | ||
9384 | if test x"$lt_cv_prog_compiler__b" = xyes; then | |
9385 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
9386 | else | |
9387 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
9388 | fi | |
9389 | ||
9390 | ;; | |
9391 | esac | |
9392 | fi | |
9393 | if test "$with_gnu_ld" = no; then | |
9394 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
9395 | hardcode_libdir_separator=: | |
9396 | ||
9397 | case $host_cpu in | |
9398 | hppa*64*|ia64*) | |
9399 | hardcode_direct=no | |
9400 | hardcode_shlibpath_var=no | |
9401 | ;; | |
9402 | *) | |
9403 | hardcode_direct=yes | |
9404 | hardcode_direct_absolute=yes | |
9405 | export_dynamic_flag_spec='${wl}-E' | |
9406 | ||
9407 | # hardcode_minus_L: Not really in the search PATH, | |
9408 | # but as the default location of the library. | |
9409 | hardcode_minus_L=yes | |
9410 | ;; | |
9411 | esac | |
9412 | fi | |
9413 | ;; | |
9414 | ||
9415 | irix5* | irix6* | nonstopux*) | |
9416 | if test "$GCC" = yes; then | |
9417 | 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' | |
9418 | # Try to use the -exported_symbol ld option, if it does not | |
9419 | # work, assume that -exports_file does not work either and | |
9420 | # implicitly export all symbols. | |
9421 | save_LDFLAGS="$LDFLAGS" | |
9422 | LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
9423 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9424 | /* end confdefs.h. */ | |
9425 | int foo(void) {} | |
9426 | _ACEOF | |
9427 | if ac_fn_c_try_link "$LINENO"; then : | |
9428 | 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' | |
9429 | ||
9430 | fi | |
9431 | rm -f core conftest.err conftest.$ac_objext \ | |
9432 | conftest$ac_exeext conftest.$ac_ext | |
9433 | LDFLAGS="$save_LDFLAGS" | |
9434 | else | |
9435 | 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' | |
9436 | 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' | |
9437 | fi | |
9438 | archive_cmds_need_lc='no' | |
9439 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9440 | hardcode_libdir_separator=: | |
9441 | inherit_rpath=yes | |
9442 | link_all_deplibs=yes | |
9443 | ;; | |
9444 | ||
9445 | netbsd*) | |
9446 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9447 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
9448 | else | |
9449 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
9450 | fi | |
9451 | hardcode_libdir_flag_spec='-R$libdir' | |
9452 | hardcode_direct=yes | |
9453 | hardcode_shlibpath_var=no | |
9454 | ;; | |
9455 | ||
9456 | newsos6) | |
9457 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9458 | hardcode_direct=yes | |
9459 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9460 | hardcode_libdir_separator=: | |
9461 | hardcode_shlibpath_var=no | |
9462 | ;; | |
9463 | ||
9464 | *nto* | *qnx*) | |
9465 | ;; | |
9466 | ||
9467 | openbsd*) | |
9468 | if test -f /usr/libexec/ld.so; then | |
9469 | hardcode_direct=yes | |
9470 | hardcode_shlibpath_var=no | |
9471 | hardcode_direct_absolute=yes | |
9472 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
9473 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9474 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
9475 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9476 | export_dynamic_flag_spec='${wl}-E' | |
9477 | else | |
9478 | case $host_os in | |
9479 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
9480 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9481 | hardcode_libdir_flag_spec='-R$libdir' | |
9482 | ;; | |
9483 | *) | |
9484 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
9485 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9486 | ;; | |
9487 | esac | |
9488 | fi | |
9489 | else | |
9490 | ld_shlibs=no | |
9491 | fi | |
9492 | ;; | |
9493 | ||
9494 | os2*) | |
9495 | hardcode_libdir_flag_spec='-L$libdir' | |
9496 | hardcode_minus_L=yes | |
9497 | allow_undefined_flag=unsupported | |
9498 | 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' | |
9499 | old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
9500 | ;; | |
9501 | ||
9502 | osf3*) | |
9503 | if test "$GCC" = yes; then | |
9504 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9505 | 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' | |
9506 | else | |
9507 | allow_undefined_flag=' -expect_unresolved \*' | |
9508 | 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' | |
9509 | fi | |
9510 | archive_cmds_need_lc='no' | |
9511 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9512 | hardcode_libdir_separator=: | |
9513 | ;; | |
9514 | ||
9515 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
9516 | if test "$GCC" = yes; then | |
9517 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
9518 | 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' | |
9519 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9520 | else | |
9521 | allow_undefined_flag=' -expect_unresolved \*' | |
9522 | 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' | |
9523 | 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~ | |
9524 | $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' | |
9525 | ||
9526 | # Both c and cxx compiler support -rpath directly | |
9527 | hardcode_libdir_flag_spec='-rpath $libdir' | |
9528 | fi | |
9529 | archive_cmds_need_lc='no' | |
9530 | hardcode_libdir_separator=: | |
9531 | ;; | |
9532 | ||
9533 | solaris*) | |
9534 | no_undefined_flag=' -z defs' | |
9535 | if test "$GCC" = yes; then | |
9536 | wlarc='${wl}' | |
9537 | archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9538 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9539 | $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9540 | else | |
9541 | case `$CC -V 2>&1` in | |
9542 | *"Compilers 5.0"*) | |
9543 | wlarc='' | |
9544 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9545 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9546 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
9547 | ;; | |
9548 | *) | |
9549 | wlarc='${wl}' | |
9550 | archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9551 | archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
9552 | $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
9553 | ;; | |
9554 | esac | |
9555 | fi | |
9556 | hardcode_libdir_flag_spec='-R$libdir' | |
9557 | hardcode_shlibpath_var=no | |
9558 | case $host_os in | |
9559 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
9560 | *) | |
9561 | # The compiler driver will combine and reorder linker options, | |
9562 | # but understands `-z linker_flag'. GCC discards it without `$wl', | |
9563 | # but is careful enough not to reorder. | |
9564 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
9565 | if test "$GCC" = yes; then | |
9566 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
9567 | else | |
9568 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
9569 | fi | |
9570 | ;; | |
9571 | esac | |
9572 | link_all_deplibs=yes | |
9573 | ;; | |
9574 | ||
9575 | sunos4*) | |
9576 | if test "x$host_vendor" = xsequent; then | |
9577 | # Use $CC to link under sequent, because it throws in some extra .o | |
9578 | # files that make .init and .fini sections work. | |
9579 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
9580 | else | |
9581 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
9582 | fi | |
9583 | hardcode_libdir_flag_spec='-L$libdir' | |
9584 | hardcode_direct=yes | |
9585 | hardcode_minus_L=yes | |
9586 | hardcode_shlibpath_var=no | |
9587 | ;; | |
9588 | ||
9589 | sysv4) | |
9590 | case $host_vendor in | |
9591 | sni) | |
9592 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9593 | hardcode_direct=yes # is this really true??? | |
9594 | ;; | |
9595 | siemens) | |
9596 | ## LD is ld it makes a PLAMLIB | |
9597 | ## CC just makes a GrossModule. | |
9598 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
9599 | reload_cmds='$CC -r -o $output$reload_objs' | |
9600 | hardcode_direct=no | |
9601 | ;; | |
9602 | motorola) | |
9603 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9604 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
9605 | ;; | |
9606 | esac | |
9607 | runpath_var='LD_RUN_PATH' | |
9608 | hardcode_shlibpath_var=no | |
9609 | ;; | |
9610 | ||
9611 | sysv4.3*) | |
9612 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9613 | hardcode_shlibpath_var=no | |
9614 | export_dynamic_flag_spec='-Bexport' | |
9615 | ;; | |
9616 | ||
9617 | sysv4*MP*) | |
9618 | if test -d /usr/nec; then | |
9619 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9620 | hardcode_shlibpath_var=no | |
9621 | runpath_var=LD_RUN_PATH | |
9622 | hardcode_runpath_var=yes | |
9623 | ld_shlibs=yes | |
9624 | fi | |
9625 | ;; | |
9626 | ||
9627 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
9628 | no_undefined_flag='${wl}-z,text' | |
9629 | archive_cmds_need_lc=no | |
9630 | hardcode_shlibpath_var=no | |
9631 | runpath_var='LD_RUN_PATH' | |
9632 | ||
9633 | if test "$GCC" = yes; then | |
9634 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9635 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9636 | else | |
9637 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9638 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9639 | fi | |
9640 | ;; | |
9641 | ||
9642 | sysv5* | sco3.2v5* | sco5v6*) | |
9643 | # Note: We can NOT use -z defs as we might desire, because we do not | |
9644 | # link with -lc, and that would cause any symbols used from libc to | |
9645 | # always be unresolved, which means just about no library would | |
9646 | # ever link correctly. If we're not using GNU ld we use -z text | |
9647 | # though, which does catch some bad symbols but isn't as heavy-handed | |
9648 | # as -z defs. | |
9649 | no_undefined_flag='${wl}-z,text' | |
9650 | allow_undefined_flag='${wl}-z,nodefs' | |
9651 | archive_cmds_need_lc=no | |
9652 | hardcode_shlibpath_var=no | |
9653 | hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
9654 | hardcode_libdir_separator=':' | |
9655 | link_all_deplibs=yes | |
9656 | export_dynamic_flag_spec='${wl}-Bexport' | |
9657 | runpath_var='LD_RUN_PATH' | |
9658 | ||
9659 | if test "$GCC" = yes; then | |
9660 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9661 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9662 | else | |
9663 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9664 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
9665 | fi | |
9666 | ;; | |
9667 | ||
9668 | uts4*) | |
9669 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
9670 | hardcode_libdir_flag_spec='-L$libdir' | |
9671 | hardcode_shlibpath_var=no | |
9672 | ;; | |
9673 | ||
9674 | *) | |
9675 | ld_shlibs=no | |
9676 | ;; | |
9677 | esac | |
9678 | ||
9679 | if test x$host_vendor = xsni; then | |
9680 | case $host in | |
9681 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
9682 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
9683 | ;; | |
9684 | esac | |
9685 | fi | |
9686 | fi | |
9687 | ||
9688 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
9689 | $as_echo "$ld_shlibs" >&6; } | |
9690 | test "$ld_shlibs" = no && can_build_shared=no | |
9691 | ||
9692 | with_gnu_ld=$with_gnu_ld | |
9693 | ||
9694 | ||
9695 | ||
9696 | ||
9697 | ||
9698 | ||
9699 | ||
9700 | ||
9701 | ||
9702 | ||
9703 | ||
9704 | ||
9705 | ||
9706 | ||
9707 | ||
9708 | # | |
9709 | # Do we need to explicitly link libc? | |
9710 | # | |
9711 | case "x$archive_cmds_need_lc" in | |
9712 | x|xyes) | |
9713 | # Assume -lc should be added | |
9714 | archive_cmds_need_lc=yes | |
9715 | ||
9716 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
9717 | case $archive_cmds in | |
9718 | *'~'*) | |
9719 | # FIXME: we may have to deal with multi-command sequences. | |
9720 | ;; | |
9721 | '$CC '*) | |
9722 | # Test whether the compiler implicitly links with -lc since on some | |
9723 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
9724 | # to ld, don't add -lc before -lgcc. | |
9725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
9726 | $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
9727 | if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : | |
9728 | $as_echo_n "(cached) " >&6 | |
9729 | else | |
9730 | $RM conftest* | |
9731 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9732 | ||
9733 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
9734 | (eval $ac_compile) 2>&5 | |
9735 | ac_status=$? | |
9736 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9737 | test $ac_status = 0; } 2>conftest.err; then | |
9738 | soname=conftest | |
9739 | lib=conftest | |
9740 | libobjs=conftest.$ac_objext | |
9741 | deplibs= | |
9742 | wl=$lt_prog_compiler_wl | |
9743 | pic_flag=$lt_prog_compiler_pic | |
9744 | compiler_flags=-v | |
9745 | linker_flags=-v | |
9746 | verstring= | |
9747 | output_objdir=. | |
9748 | libname=conftest | |
9749 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
9750 | allow_undefined_flag= | |
9751 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
9752 | (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
9753 | ac_status=$? | |
9754 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
9755 | test $ac_status = 0; } | |
9756 | then | |
9757 | lt_cv_archive_cmds_need_lc=no | |
9758 | else | |
9759 | lt_cv_archive_cmds_need_lc=yes | |
9760 | fi | |
9761 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
9762 | else | |
9763 | cat conftest.err 1>&5 | |
9764 | fi | |
9765 | $RM conftest* | |
9766 | ||
9767 | fi | |
9768 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
9769 | $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
9770 | archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
9771 | ;; | |
9772 | esac | |
9773 | fi | |
9774 | ;; | |
9775 | esac | |
9776 | ||
9777 | ||
9778 | ||
9779 | ||
9780 | ||
9781 | ||
9782 | ||
9783 | ||
9784 | ||
9785 | ||
9786 | ||
9787 | ||
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 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
9934 | $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
9935 | ||
9936 | if test "$GCC" = yes; then | |
9937 | case $host_os in | |
9938 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
9939 | *) lt_awk_arg="/^libraries:/" ;; | |
9940 | esac | |
9941 | case $host_os in | |
9942 | mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
9943 | *) lt_sed_strip_eq="s,=/,/,g" ;; | |
9944 | esac | |
9945 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
9946 | case $lt_search_path_spec in | |
9947 | *\;*) | |
9948 | # if the path contains ";" then we assume it to be the separator | |
9949 | # otherwise default to the standard path separator (i.e. ":") - it is | |
9950 | # assumed that no part of a normal pathname contains ";" but that should | |
9951 | # okay in the real world where ";" in dirpaths is itself problematic. | |
9952 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
9953 | ;; | |
9954 | *) | |
9955 | lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
9956 | ;; | |
9957 | esac | |
9958 | # Ok, now we have the path, separated by spaces, we can step through it | |
9959 | # and add multilib dir if necessary. | |
9960 | lt_tmp_lt_search_path_spec= | |
9961 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
9962 | for lt_sys_path in $lt_search_path_spec; do | |
9963 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
9964 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
9965 | else | |
9966 | test -d "$lt_sys_path" && \ | |
9967 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
9968 | fi | |
9969 | done | |
9970 | lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
9971 | BEGIN {RS=" "; FS="/|\n";} { | |
9972 | lt_foo=""; | |
9973 | lt_count=0; | |
9974 | for (lt_i = NF; lt_i > 0; lt_i--) { | |
9975 | if ($lt_i != "" && $lt_i != ".") { | |
9976 | if ($lt_i == "..") { | |
9977 | lt_count++; | |
9978 | } else { | |
9979 | if (lt_count == 0) { | |
9980 | lt_foo="/" $lt_i lt_foo; | |
9981 | } else { | |
9982 | lt_count--; | |
9983 | } | |
9984 | } | |
9985 | } | |
9986 | } | |
9987 | if (lt_foo != "") { lt_freq[lt_foo]++; } | |
9988 | if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
9989 | }'` | |
9990 | # AWK program above erroneously prepends '/' to C:/dos/paths | |
9991 | # for these hosts. | |
9992 | case $host_os in | |
9993 | mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
9994 | $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
9995 | esac | |
9996 | sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
9997 | else | |
9998 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
9999 | fi | |
10000 | library_names_spec= | |
10001 | libname_spec='lib$name' | |
10002 | soname_spec= | |
10003 | shrext_cmds=".so" | |
10004 | postinstall_cmds= | |
10005 | postuninstall_cmds= | |
10006 | finish_cmds= | |
10007 | finish_eval= | |
10008 | shlibpath_var= | |
10009 | shlibpath_overrides_runpath=unknown | |
10010 | version_type=none | |
10011 | dynamic_linker="$host_os ld.so" | |
10012 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10013 | need_lib_prefix=unknown | |
10014 | hardcode_into_libs=no | |
10015 | ||
10016 | # when you set need_version to no, make sure it does not cause -set_version | |
10017 | # flags to be left without arguments | |
10018 | need_version=unknown | |
10019 | ||
10020 | case $host_os in | |
10021 | aix3*) | |
10022 | version_type=linux | |
10023 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10024 | shlibpath_var=LIBPATH | |
10025 | ||
10026 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10027 | soname_spec='${libname}${release}${shared_ext}$major' | |
10028 | ;; | |
10029 | ||
10030 | aix[4-9]*) | |
10031 | version_type=linux | |
10032 | need_lib_prefix=no | |
10033 | need_version=no | |
10034 | hardcode_into_libs=yes | |
10035 | if test "$host_cpu" = ia64; then | |
10036 | # AIX 5 supports IA64 | |
10037 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10038 | shlibpath_var=LD_LIBRARY_PATH | |
10039 | else | |
10040 | # With GCC up to 2.95.x, collect2 would create an import file | |
10041 | # for dependence libraries. The import file would start with | |
10042 | # the line `#! .'. This would cause the generated library to | |
10043 | # depend on `.', always an invalid library. This was fixed in | |
10044 | # development snapshots of GCC prior to 3.0. | |
10045 | case $host_os in | |
10046 | aix4 | aix4.[01] | aix4.[01].*) | |
10047 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10048 | echo ' yes ' | |
10049 | echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10050 | : | |
10051 | else | |
10052 | can_build_shared=no | |
10053 | fi | |
10054 | ;; | |
10055 | esac | |
10056 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10057 | # soname into executable. Probably we can add versioning support to | |
10058 | # collect2, so additional links can be useful in future. | |
10059 | if test "$aix_use_runtimelinking" = yes; then | |
10060 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10061 | # instead of lib<name>.a to let people know that these are not | |
10062 | # typical AIX shared libraries. | |
10063 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10064 | else | |
10065 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10066 | # and later when we are not doing run time linking. | |
10067 | library_names_spec='${libname}${release}.a $libname.a' | |
10068 | soname_spec='${libname}${release}${shared_ext}$major' | |
10069 | fi | |
10070 | shlibpath_var=LIBPATH | |
10071 | fi | |
10072 | ;; | |
10073 | ||
10074 | amigaos*) | |
10075 | case $host_cpu in | |
10076 | powerpc) | |
10077 | # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10078 | # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10079 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10080 | ;; | |
10081 | m68k) | |
10082 | library_names_spec='$libname.ixlibrary $libname.a' | |
10083 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10084 | 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' | |
10085 | ;; | |
10086 | esac | |
10087 | ;; | |
10088 | ||
10089 | beos*) | |
10090 | library_names_spec='${libname}${shared_ext}' | |
10091 | dynamic_linker="$host_os ld.so" | |
10092 | shlibpath_var=LIBRARY_PATH | |
10093 | ;; | |
10094 | ||
10095 | bsdi[45]*) | |
10096 | version_type=linux | |
10097 | need_version=no | |
10098 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10099 | soname_spec='${libname}${release}${shared_ext}$major' | |
10100 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10101 | shlibpath_var=LD_LIBRARY_PATH | |
10102 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10103 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10104 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10105 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10106 | # libtool to hard-code these into programs | |
10107 | ;; | |
10108 | ||
10109 | cygwin* | mingw* | pw32* | cegcc*) | |
10110 | version_type=windows | |
10111 | shrext_cmds=".dll" | |
10112 | need_version=no | |
10113 | need_lib_prefix=no | |
10114 | ||
10115 | case $GCC,$host_os in | |
10116 | yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) | |
10117 | library_names_spec='$libname.dll.a' | |
10118 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10119 | postinstall_cmds='base_file=`basename \${file}`~ | |
10120 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10121 | dldir=$destdir/`dirname \$dlpath`~ | |
10122 | test -d \$dldir || mkdir -p \$dldir~ | |
10123 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10124 | chmod a+x \$dldir/$dlname~ | |
10125 | if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10126 | eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10127 | fi' | |
10128 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10129 | dlpath=$dir/\$dldll~ | |
10130 | $RM \$dlpath' | |
10131 | shlibpath_overrides_runpath=yes | |
10132 | ||
10133 | case $host_os in | |
10134 | cygwin*) | |
10135 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10136 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10137 | ||
10138 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
10139 | ;; | |
10140 | mingw* | cegcc*) | |
10141 | # MinGW DLLs use traditional 'lib' prefix | |
10142 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10143 | ;; | |
10144 | pw32*) | |
10145 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10146 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10147 | ;; | |
10148 | esac | |
10149 | ;; | |
10150 | ||
10151 | *) | |
10152 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10153 | ;; | |
10154 | esac | |
10155 | dynamic_linker='Win32 ld.exe' | |
10156 | # FIXME: first we should search . and the directory the executable is in | |
10157 | shlibpath_var=PATH | |
10158 | ;; | |
10159 | ||
10160 | darwin* | rhapsody*) | |
10161 | dynamic_linker="$host_os dyld" | |
10162 | version_type=darwin | |
10163 | need_lib_prefix=no | |
10164 | need_version=no | |
10165 | library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10166 | soname_spec='${libname}${release}${major}$shared_ext' | |
10167 | shlibpath_overrides_runpath=yes | |
10168 | shlibpath_var=DYLD_LIBRARY_PATH | |
10169 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10170 | ||
10171 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
10172 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10173 | ;; | |
10174 | ||
10175 | dgux*) | |
10176 | version_type=linux | |
10177 | need_lib_prefix=no | |
10178 | need_version=no | |
10179 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10180 | soname_spec='${libname}${release}${shared_ext}$major' | |
10181 | shlibpath_var=LD_LIBRARY_PATH | |
10182 | ;; | |
10183 | ||
10184 | freebsd* | dragonfly*) | |
10185 | # DragonFly does not have aout. When/if they implement a new | |
10186 | # versioning mechanism, adjust this. | |
10187 | if test -x /usr/bin/objformat; then | |
10188 | objformat=`/usr/bin/objformat` | |
10189 | else | |
10190 | case $host_os in | |
10191 | freebsd[23].*) objformat=aout ;; | |
10192 | *) objformat=elf ;; | |
10193 | esac | |
10194 | fi | |
10195 | version_type=freebsd-$objformat | |
10196 | case $version_type in | |
10197 | freebsd-elf*) | |
10198 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10199 | need_version=no | |
10200 | need_lib_prefix=no | |
10201 | ;; | |
10202 | freebsd-*) | |
10203 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10204 | need_version=yes | |
10205 | ;; | |
10206 | esac | |
10207 | shlibpath_var=LD_LIBRARY_PATH | |
10208 | case $host_os in | |
10209 | freebsd2.*) | |
10210 | shlibpath_overrides_runpath=yes | |
10211 | ;; | |
10212 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10213 | shlibpath_overrides_runpath=yes | |
10214 | hardcode_into_libs=yes | |
10215 | ;; | |
10216 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10217 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10218 | shlibpath_overrides_runpath=no | |
10219 | hardcode_into_libs=yes | |
10220 | ;; | |
10221 | *) # from 4.6 on, and DragonFly | |
10222 | shlibpath_overrides_runpath=yes | |
10223 | hardcode_into_libs=yes | |
10224 | ;; | |
10225 | esac | |
10226 | ;; | |
10227 | ||
10228 | gnu*) | |
10229 | version_type=linux | |
10230 | need_lib_prefix=no | |
10231 | need_version=no | |
10232 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10233 | soname_spec='${libname}${release}${shared_ext}$major' | |
10234 | shlibpath_var=LD_LIBRARY_PATH | |
10235 | hardcode_into_libs=yes | |
10236 | ;; | |
10237 | ||
10238 | haiku*) | |
10239 | version_type=linux | |
10240 | need_lib_prefix=no | |
10241 | need_version=no | |
10242 | dynamic_linker="$host_os runtime_loader" | |
10243 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10244 | soname_spec='${libname}${release}${shared_ext}$major' | |
10245 | shlibpath_var=LIBRARY_PATH | |
10246 | shlibpath_overrides_runpath=yes | |
10247 | sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' | |
10248 | hardcode_into_libs=yes | |
10249 | ;; | |
10250 | ||
10251 | hpux9* | hpux10* | hpux11*) | |
10252 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10253 | # link against other versions. | |
10254 | version_type=sunos | |
10255 | need_lib_prefix=no | |
10256 | need_version=no | |
10257 | case $host_cpu in | |
10258 | ia64*) | |
10259 | shrext_cmds='.so' | |
10260 | hardcode_into_libs=yes | |
10261 | dynamic_linker="$host_os dld.so" | |
10262 | shlibpath_var=LD_LIBRARY_PATH | |
10263 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10264 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10265 | soname_spec='${libname}${release}${shared_ext}$major' | |
10266 | if test "X$HPUX_IA64_MODE" = X32; then | |
10267 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10268 | else | |
10269 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10270 | fi | |
10271 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10272 | ;; | |
10273 | hppa*64*) | |
10274 | shrext_cmds='.sl' | |
10275 | hardcode_into_libs=yes | |
10276 | dynamic_linker="$host_os dld.sl" | |
10277 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10278 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10279 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10280 | soname_spec='${libname}${release}${shared_ext}$major' | |
10281 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10282 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10283 | ;; | |
10284 | *) | |
10285 | shrext_cmds='.sl' | |
10286 | dynamic_linker="$host_os dld.sl" | |
10287 | shlibpath_var=SHLIB_PATH | |
10288 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10289 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10290 | soname_spec='${libname}${release}${shared_ext}$major' | |
10291 | ;; | |
10292 | esac | |
10293 | # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
10294 | postinstall_cmds='chmod 555 $lib' | |
10295 | # or fails outright, so override atomically: | |
10296 | install_override_mode=555 | |
10297 | ;; | |
10298 | ||
10299 | interix[3-9]*) | |
10300 | version_type=linux | |
10301 | need_lib_prefix=no | |
10302 | need_version=no | |
10303 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10304 | soname_spec='${libname}${release}${shared_ext}$major' | |
10305 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10306 | shlibpath_var=LD_LIBRARY_PATH | |
10307 | shlibpath_overrides_runpath=no | |
10308 | hardcode_into_libs=yes | |
10309 | ;; | |
10310 | ||
10311 | irix5* | irix6* | nonstopux*) | |
10312 | case $host_os in | |
10313 | nonstopux*) version_type=nonstopux ;; | |
10314 | *) | |
10315 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10316 | version_type=linux | |
10317 | else | |
10318 | version_type=irix | |
10319 | fi ;; | |
10320 | esac | |
10321 | need_lib_prefix=no | |
10322 | need_version=no | |
10323 | soname_spec='${libname}${release}${shared_ext}$major' | |
10324 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10325 | case $host_os in | |
10326 | irix5* | nonstopux*) | |
10327 | libsuff= shlibsuff= | |
10328 | ;; | |
10329 | *) | |
10330 | case $LD in # libtool.m4 will add one of these switches to LD | |
10331 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10332 | libsuff= shlibsuff= libmagic=32-bit;; | |
10333 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10334 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10335 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10336 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10337 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10338 | esac | |
10339 | ;; | |
10340 | esac | |
10341 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10342 | shlibpath_overrides_runpath=no | |
10343 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10344 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10345 | hardcode_into_libs=yes | |
10346 | ;; | |
10347 | ||
10348 | # No shared lib support for Linux oldld, aout, or coff. | |
10349 | linux*oldld* | linux*aout* | linux*coff*) | |
10350 | dynamic_linker=no | |
10351 | ;; | |
10352 | ||
10353 | # This must be Linux ELF. | |
10354 | linux* | k*bsd*-gnu | kopensolaris*-gnu) | |
10355 | version_type=linux | |
10356 | need_lib_prefix=no | |
10357 | need_version=no | |
10358 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10359 | soname_spec='${libname}${release}${shared_ext}$major' | |
10360 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10361 | shlibpath_var=LD_LIBRARY_PATH | |
10362 | shlibpath_overrides_runpath=no | |
10363 | ||
10364 | # Some binutils ld are patched to set DT_RUNPATH | |
10365 | if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : | |
10366 | $as_echo_n "(cached) " >&6 | |
10367 | else | |
10368 | lt_cv_shlibpath_overrides_runpath=no | |
10369 | save_LDFLAGS=$LDFLAGS | |
10370 | save_libdir=$libdir | |
10371 | eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
10372 | LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
10373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10374 | /* end confdefs.h. */ | |
10375 | ||
10376 | int | |
10377 | main () | |
10378 | { | |
10379 | ||
10380 | ; | |
10381 | return 0; | |
10382 | } | |
10383 | _ACEOF | |
10384 | if ac_fn_c_try_link "$LINENO"; then : | |
10385 | if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
10386 | lt_cv_shlibpath_overrides_runpath=yes | |
10387 | fi | |
10388 | fi | |
10389 | rm -f core conftest.err conftest.$ac_objext \ | |
10390 | conftest$ac_exeext conftest.$ac_ext | |
10391 | LDFLAGS=$save_LDFLAGS | |
10392 | libdir=$save_libdir | |
10393 | ||
10394 | fi | |
10395 | ||
10396 | shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
10397 | ||
10398 | # This implies no fast_install, which is unacceptable. | |
10399 | # Some rework will be needed to allow for fast_install | |
10400 | # before this can be enabled. | |
10401 | hardcode_into_libs=yes | |
10402 | ||
10403 | # Append ld.so.conf contents to the search path | |
10404 | if test -f /etc/ld.so.conf; then | |
10405 | 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' ' '` | |
10406 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
10407 | fi | |
10408 | ||
10409 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10410 | # powerpc, because MkLinux only supported shared libraries with the | |
10411 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10412 | # most powerpc-linux boxes support dynamic linking these days and | |
10413 | # people can always --disable-shared, the test was removed, and we | |
10414 | # assume the GNU/Linux dynamic linker is in use. | |
10415 | dynamic_linker='GNU/Linux ld.so' | |
10416 | ;; | |
10417 | ||
10418 | netbsd*) | |
10419 | version_type=sunos | |
10420 | need_lib_prefix=no | |
10421 | need_version=no | |
10422 | if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10423 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10424 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10425 | dynamic_linker='NetBSD (a.out) ld.so' | |
10426 | else | |
10427 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10428 | soname_spec='${libname}${release}${shared_ext}$major' | |
10429 | dynamic_linker='NetBSD ld.elf_so' | |
10430 | fi | |
10431 | shlibpath_var=LD_LIBRARY_PATH | |
10432 | shlibpath_overrides_runpath=yes | |
10433 | hardcode_into_libs=yes | |
10434 | ;; | |
10435 | ||
10436 | newsos6) | |
10437 | version_type=linux | |
10438 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10439 | shlibpath_var=LD_LIBRARY_PATH | |
10440 | shlibpath_overrides_runpath=yes | |
10441 | ;; | |
10442 | ||
10443 | *nto* | *qnx*) | |
10444 | version_type=qnx | |
10445 | need_lib_prefix=no | |
10446 | need_version=no | |
10447 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10448 | soname_spec='${libname}${release}${shared_ext}$major' | |
10449 | shlibpath_var=LD_LIBRARY_PATH | |
10450 | shlibpath_overrides_runpath=no | |
10451 | hardcode_into_libs=yes | |
10452 | dynamic_linker='ldqnx.so' | |
10453 | ;; | |
10454 | ||
10455 | openbsd*) | |
10456 | version_type=sunos | |
10457 | sys_lib_dlsearch_path_spec="/usr/lib" | |
10458 | need_lib_prefix=no | |
10459 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
10460 | case $host_os in | |
10461 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
10462 | *) need_version=no ;; | |
10463 | esac | |
10464 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10465 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10466 | shlibpath_var=LD_LIBRARY_PATH | |
10467 | if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10468 | case $host_os in | |
10469 | openbsd2.[89] | openbsd2.[89].*) | |
10470 | shlibpath_overrides_runpath=no | |
10471 | ;; | |
10472 | *) | |
10473 | shlibpath_overrides_runpath=yes | |
10474 | ;; | |
10475 | esac | |
10476 | else | |
10477 | shlibpath_overrides_runpath=yes | |
10478 | fi | |
10479 | ;; | |
10480 | ||
10481 | os2*) | |
10482 | libname_spec='$name' | |
10483 | shrext_cmds=".dll" | |
10484 | need_lib_prefix=no | |
10485 | library_names_spec='$libname${shared_ext} $libname.a' | |
10486 | dynamic_linker='OS/2 ld.exe' | |
10487 | shlibpath_var=LIBPATH | |
10488 | ;; | |
10489 | ||
10490 | osf3* | osf4* | osf5*) | |
10491 | version_type=osf | |
10492 | need_lib_prefix=no | |
10493 | need_version=no | |
10494 | soname_spec='${libname}${release}${shared_ext}$major' | |
10495 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10496 | shlibpath_var=LD_LIBRARY_PATH | |
10497 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
10498 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
10499 | ;; | |
10500 | ||
10501 | rdos*) | |
10502 | dynamic_linker=no | |
10503 | ;; | |
10504 | ||
10505 | solaris*) | |
10506 | version_type=linux | |
10507 | need_lib_prefix=no | |
10508 | need_version=no | |
10509 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10510 | soname_spec='${libname}${release}${shared_ext}$major' | |
10511 | shlibpath_var=LD_LIBRARY_PATH | |
10512 | shlibpath_overrides_runpath=yes | |
10513 | hardcode_into_libs=yes | |
10514 | # ldd complains unless libraries are executable | |
10515 | postinstall_cmds='chmod +x $lib' | |
10516 | ;; | |
10517 | ||
10518 | sunos4*) | |
10519 | version_type=sunos | |
10520 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10521 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
10522 | shlibpath_var=LD_LIBRARY_PATH | |
10523 | shlibpath_overrides_runpath=yes | |
10524 | if test "$with_gnu_ld" = yes; then | |
10525 | need_lib_prefix=no | |
10526 | fi | |
10527 | need_version=yes | |
10528 | ;; | |
10529 | ||
10530 | sysv4 | sysv4.3*) | |
10531 | version_type=linux | |
10532 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10533 | soname_spec='${libname}${release}${shared_ext}$major' | |
10534 | shlibpath_var=LD_LIBRARY_PATH | |
10535 | case $host_vendor in | |
10536 | sni) | |
10537 | shlibpath_overrides_runpath=no | |
10538 | need_lib_prefix=no | |
10539 | runpath_var=LD_RUN_PATH | |
10540 | ;; | |
10541 | siemens) | |
10542 | need_lib_prefix=no | |
10543 | ;; | |
10544 | motorola) | |
10545 | need_lib_prefix=no | |
10546 | need_version=no | |
10547 | shlibpath_overrides_runpath=no | |
10548 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
10549 | ;; | |
10550 | esac | |
10551 | ;; | |
10552 | ||
10553 | sysv4*MP*) | |
10554 | if test -d /usr/nec ;then | |
10555 | version_type=linux | |
10556 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
10557 | soname_spec='$libname${shared_ext}.$major' | |
10558 | shlibpath_var=LD_LIBRARY_PATH | |
10559 | fi | |
10560 | ;; | |
10561 | ||
10562 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
10563 | version_type=freebsd-elf | |
10564 | need_lib_prefix=no | |
10565 | need_version=no | |
10566 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10567 | soname_spec='${libname}${release}${shared_ext}$major' | |
10568 | shlibpath_var=LD_LIBRARY_PATH | |
10569 | shlibpath_overrides_runpath=yes | |
10570 | hardcode_into_libs=yes | |
10571 | if test "$with_gnu_ld" = yes; then | |
10572 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
10573 | else | |
10574 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
10575 | case $host_os in | |
10576 | sco3.2v5*) | |
10577 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
10578 | ;; | |
10579 | esac | |
10580 | fi | |
10581 | sys_lib_dlsearch_path_spec='/usr/lib' | |
10582 | ;; | |
10583 | ||
10584 | tpf*) | |
10585 | # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
10586 | version_type=linux | |
10587 | need_lib_prefix=no | |
10588 | need_version=no | |
10589 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10590 | shlibpath_var=LD_LIBRARY_PATH | |
10591 | shlibpath_overrides_runpath=no | |
10592 | hardcode_into_libs=yes | |
10593 | ;; | |
10594 | ||
10595 | uts4*) | |
10596 | version_type=linux | |
10597 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10598 | soname_spec='${libname}${release}${shared_ext}$major' | |
10599 | shlibpath_var=LD_LIBRARY_PATH | |
10600 | ;; | |
10601 | ||
10602 | *) | |
10603 | dynamic_linker=no | |
10604 | ;; | |
10605 | esac | |
10606 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
10607 | $as_echo "$dynamic_linker" >&6; } | |
10608 | test "$dynamic_linker" = no && can_build_shared=no | |
10609 | ||
10610 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
10611 | if test "$GCC" = yes; then | |
10612 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
10613 | fi | |
10614 | ||
10615 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
10616 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
10617 | fi | |
10618 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
10619 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
10620 | fi | |
10621 | ||
10622 | ||
10623 | ||
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 | ||
10704 | ||
10705 | ||
10706 | ||
10707 | ||
10708 | ||
10709 | ||
10710 | ||
10711 | ||
10712 | ||
10713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
10714 | $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
10715 | hardcode_action= | |
10716 | if test -n "$hardcode_libdir_flag_spec" || | |
10717 | test -n "$runpath_var" || | |
10718 | test "X$hardcode_automatic" = "Xyes" ; then | |
10719 | ||
10720 | # We can hardcode non-existent directories. | |
10721 | if test "$hardcode_direct" != no && | |
10722 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
10723 | # have to relink, otherwise we might link with an installed library | |
10724 | # when we should be linking with a yet-to-be-installed one | |
10725 | ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
10726 | test "$hardcode_minus_L" != no; then | |
10727 | # Linking always hardcodes the temporary library directory. | |
10728 | hardcode_action=relink | |
10729 | else | |
10730 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
10731 | hardcode_action=immediate | |
10732 | fi | |
10733 | else | |
10734 | # We cannot hardcode anything, or else we can only hardcode existing | |
10735 | # directories. | |
10736 | hardcode_action=unsupported | |
10737 | fi | |
10738 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
10739 | $as_echo "$hardcode_action" >&6; } | |
10740 | ||
10741 | if test "$hardcode_action" = relink || | |
10742 | test "$inherit_rpath" = yes; then | |
10743 | # Fast installation is not supported | |
10744 | enable_fast_install=no | |
10745 | elif test "$shlibpath_overrides_runpath" = yes || | |
10746 | test "$enable_shared" = no; then | |
10747 | # Fast installation is not necessary | |
10748 | enable_fast_install=needless | |
10749 | fi | |
10750 | ||
10751 | ||
10752 | ||
10753 | ||
10754 | ||
10755 | ||
10756 | if test "x$enable_dlopen" != xyes; then | |
10757 | enable_dlopen=unknown | |
10758 | enable_dlopen_self=unknown | |
10759 | enable_dlopen_self_static=unknown | |
10760 | else | |
10761 | lt_cv_dlopen=no | |
10762 | lt_cv_dlopen_libs= | |
10763 | ||
10764 | case $host_os in | |
10765 | beos*) | |
10766 | lt_cv_dlopen="load_add_on" | |
10767 | lt_cv_dlopen_libs= | |
10768 | lt_cv_dlopen_self=yes | |
10769 | ;; | |
10770 | ||
10771 | mingw* | pw32* | cegcc*) | |
10772 | lt_cv_dlopen="LoadLibrary" | |
10773 | lt_cv_dlopen_libs= | |
10774 | ;; | |
10775 | ||
10776 | cygwin*) | |
10777 | lt_cv_dlopen="dlopen" | |
10778 | lt_cv_dlopen_libs= | |
10779 | ;; | |
10780 | ||
10781 | darwin*) | |
10782 | # if libdl is installed we need to link against it | |
10783 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
10784 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10785 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
10786 | $as_echo_n "(cached) " >&6 | |
10787 | else | |
10788 | ac_check_lib_save_LIBS=$LIBS | |
10789 | LIBS="-ldl $LIBS" | |
10790 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10791 | /* end confdefs.h. */ | |
10792 | ||
10793 | /* Override any GCC internal prototype to avoid an error. | |
10794 | Use char because int might match the return type of a GCC | |
10795 | builtin and then its argument prototype would still apply. */ | |
10796 | #ifdef __cplusplus | |
10797 | extern "C" | |
10798 | #endif | |
10799 | char dlopen (); | |
10800 | int | |
10801 | main () | |
10802 | { | |
10803 | return dlopen (); | |
10804 | ; | |
10805 | return 0; | |
10806 | } | |
10807 | _ACEOF | |
10808 | if ac_fn_c_try_link "$LINENO"; then : | |
10809 | ac_cv_lib_dl_dlopen=yes | |
10810 | else | |
10811 | ac_cv_lib_dl_dlopen=no | |
10812 | fi | |
10813 | rm -f core conftest.err conftest.$ac_objext \ | |
10814 | conftest$ac_exeext conftest.$ac_ext | |
10815 | LIBS=$ac_check_lib_save_LIBS | |
10816 | fi | |
10817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
10818 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10819 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
10820 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10821 | else | |
10822 | ||
10823 | lt_cv_dlopen="dyld" | |
10824 | lt_cv_dlopen_libs= | |
10825 | lt_cv_dlopen_self=yes | |
10826 | ||
10827 | fi | |
10828 | ||
10829 | ;; | |
10830 | ||
10831 | *) | |
10832 | ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
10833 | if test "x$ac_cv_func_shl_load" = x""yes; then : | |
10834 | lt_cv_dlopen="shl_load" | |
10835 | else | |
10836 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
10837 | $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
10838 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then : | |
10839 | $as_echo_n "(cached) " >&6 | |
10840 | else | |
10841 | ac_check_lib_save_LIBS=$LIBS | |
10842 | LIBS="-ldld $LIBS" | |
10843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10844 | /* end confdefs.h. */ | |
10845 | ||
10846 | /* Override any GCC internal prototype to avoid an error. | |
10847 | Use char because int might match the return type of a GCC | |
10848 | builtin and then its argument prototype would still apply. */ | |
10849 | #ifdef __cplusplus | |
10850 | extern "C" | |
10851 | #endif | |
10852 | char shl_load (); | |
10853 | int | |
10854 | main () | |
10855 | { | |
10856 | return shl_load (); | |
10857 | ; | |
10858 | return 0; | |
10859 | } | |
10860 | _ACEOF | |
10861 | if ac_fn_c_try_link "$LINENO"; then : | |
10862 | ac_cv_lib_dld_shl_load=yes | |
10863 | else | |
10864 | ac_cv_lib_dld_shl_load=no | |
10865 | fi | |
10866 | rm -f core conftest.err conftest.$ac_objext \ | |
10867 | conftest$ac_exeext conftest.$ac_ext | |
10868 | LIBS=$ac_check_lib_save_LIBS | |
10869 | fi | |
10870 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
10871 | $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
10872 | if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : | |
10873 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
10874 | else | |
10875 | ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
10876 | if test "x$ac_cv_func_dlopen" = x""yes; then : | |
10877 | lt_cv_dlopen="dlopen" | |
10878 | else | |
10879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
10880 | $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
10881 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : | |
10882 | $as_echo_n "(cached) " >&6 | |
10883 | else | |
10884 | ac_check_lib_save_LIBS=$LIBS | |
10885 | LIBS="-ldl $LIBS" | |
10886 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10887 | /* end confdefs.h. */ | |
10888 | ||
10889 | /* Override any GCC internal prototype to avoid an error. | |
10890 | Use char because int might match the return type of a GCC | |
10891 | builtin and then its argument prototype would still apply. */ | |
10892 | #ifdef __cplusplus | |
10893 | extern "C" | |
10894 | #endif | |
10895 | char dlopen (); | |
10896 | int | |
10897 | main () | |
10898 | { | |
10899 | return dlopen (); | |
10900 | ; | |
10901 | return 0; | |
10902 | } | |
10903 | _ACEOF | |
10904 | if ac_fn_c_try_link "$LINENO"; then : | |
10905 | ac_cv_lib_dl_dlopen=yes | |
10906 | else | |
10907 | ac_cv_lib_dl_dlopen=no | |
10908 | fi | |
10909 | rm -f core conftest.err conftest.$ac_objext \ | |
10910 | conftest$ac_exeext conftest.$ac_ext | |
10911 | LIBS=$ac_check_lib_save_LIBS | |
10912 | fi | |
10913 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
10914 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
10915 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : | |
10916 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
10917 | else | |
10918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
10919 | $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
10920 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then : | |
10921 | $as_echo_n "(cached) " >&6 | |
10922 | else | |
10923 | ac_check_lib_save_LIBS=$LIBS | |
10924 | LIBS="-lsvld $LIBS" | |
10925 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10926 | /* end confdefs.h. */ | |
10927 | ||
10928 | /* Override any GCC internal prototype to avoid an error. | |
10929 | Use char because int might match the return type of a GCC | |
10930 | builtin and then its argument prototype would still apply. */ | |
10931 | #ifdef __cplusplus | |
10932 | extern "C" | |
10933 | #endif | |
10934 | char dlopen (); | |
10935 | int | |
10936 | main () | |
10937 | { | |
10938 | return dlopen (); | |
10939 | ; | |
10940 | return 0; | |
10941 | } | |
10942 | _ACEOF | |
10943 | if ac_fn_c_try_link "$LINENO"; then : | |
10944 | ac_cv_lib_svld_dlopen=yes | |
10945 | else | |
10946 | ac_cv_lib_svld_dlopen=no | |
10947 | fi | |
10948 | rm -f core conftest.err conftest.$ac_objext \ | |
10949 | conftest$ac_exeext conftest.$ac_ext | |
10950 | LIBS=$ac_check_lib_save_LIBS | |
10951 | fi | |
10952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
10953 | $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
10954 | if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : | |
10955 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
10956 | else | |
10957 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
10958 | $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
10959 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then : | |
10960 | $as_echo_n "(cached) " >&6 | |
10961 | else | |
10962 | ac_check_lib_save_LIBS=$LIBS | |
10963 | LIBS="-ldld $LIBS" | |
10964 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10965 | /* end confdefs.h. */ | |
10966 | ||
10967 | /* Override any GCC internal prototype to avoid an error. | |
10968 | Use char because int might match the return type of a GCC | |
10969 | builtin and then its argument prototype would still apply. */ | |
10970 | #ifdef __cplusplus | |
10971 | extern "C" | |
10972 | #endif | |
10973 | char dld_link (); | |
10974 | int | |
10975 | main () | |
10976 | { | |
10977 | return dld_link (); | |
10978 | ; | |
10979 | return 0; | |
10980 | } | |
10981 | _ACEOF | |
10982 | if ac_fn_c_try_link "$LINENO"; then : | |
10983 | ac_cv_lib_dld_dld_link=yes | |
10984 | else | |
10985 | ac_cv_lib_dld_dld_link=no | |
10986 | fi | |
10987 | rm -f core conftest.err conftest.$ac_objext \ | |
10988 | conftest$ac_exeext conftest.$ac_ext | |
10989 | LIBS=$ac_check_lib_save_LIBS | |
10990 | fi | |
10991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
10992 | $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
10993 | if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : | |
10994 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
10995 | fi | |
10996 | ||
10997 | ||
10998 | fi | |
10999 | ||
11000 | ||
11001 | fi | |
11002 | ||
11003 | ||
11004 | fi | |
11005 | ||
11006 | ||
11007 | fi | |
11008 | ||
11009 | ||
11010 | fi | |
11011 | ||
11012 | ;; | |
11013 | esac | |
11014 | ||
11015 | if test "x$lt_cv_dlopen" != xno; then | |
11016 | enable_dlopen=yes | |
11017 | else | |
11018 | enable_dlopen=no | |
11019 | fi | |
11020 | ||
11021 | case $lt_cv_dlopen in | |
11022 | dlopen) | |
11023 | save_CPPFLAGS="$CPPFLAGS" | |
11024 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11025 | ||
11026 | save_LDFLAGS="$LDFLAGS" | |
11027 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11028 | ||
11029 | save_LIBS="$LIBS" | |
11030 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11031 | ||
11032 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
11033 | $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11034 | if test "${lt_cv_dlopen_self+set}" = set; then : | |
11035 | $as_echo_n "(cached) " >&6 | |
11036 | else | |
11037 | if test "$cross_compiling" = yes; then : | |
11038 | lt_cv_dlopen_self=cross | |
11039 | else | |
11040 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11041 | lt_status=$lt_dlunknown | |
11042 | cat > conftest.$ac_ext <<_LT_EOF | |
d4c059d5 | 11043 | #line 11043 "configure" |
eff02e4f ILT |
11044 | #include "confdefs.h" |
11045 | ||
11046 | #if HAVE_DLFCN_H | |
11047 | #include <dlfcn.h> | |
11048 | #endif | |
11049 | ||
11050 | #include <stdio.h> | |
11051 | ||
11052 | #ifdef RTLD_GLOBAL | |
11053 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11054 | #else | |
11055 | # ifdef DL_GLOBAL | |
11056 | # define LT_DLGLOBAL DL_GLOBAL | |
11057 | # else | |
11058 | # define LT_DLGLOBAL 0 | |
11059 | # endif | |
11060 | #endif | |
11061 | ||
11062 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11063 | find out it does not work in some platform. */ | |
11064 | #ifndef LT_DLLAZY_OR_NOW | |
11065 | # ifdef RTLD_LAZY | |
11066 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11067 | # else | |
11068 | # ifdef DL_LAZY | |
11069 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11070 | # else | |
11071 | # ifdef RTLD_NOW | |
11072 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11073 | # else | |
11074 | # ifdef DL_NOW | |
11075 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11076 | # else | |
11077 | # define LT_DLLAZY_OR_NOW 0 | |
11078 | # endif | |
11079 | # endif | |
11080 | # endif | |
11081 | # endif | |
11082 | #endif | |
11083 | ||
11084 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
11085 | correspondingly for the symbols needed. */ | |
11086 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11087 | void fnord () __attribute__((visibility("default"))); | |
11088 | #endif | |
11089 | ||
11090 | void fnord () { int i=42; } | |
11091 | int main () | |
11092 | { | |
11093 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11094 | int status = $lt_dlunknown; | |
11095 | ||
11096 | if (self) | |
11097 | { | |
11098 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11099 | else | |
11100 | { | |
11101 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11102 | else puts (dlerror ()); | |
11103 | } | |
11104 | /* dlclose (self); */ | |
11105 | } | |
11106 | else | |
11107 | puts (dlerror ()); | |
11108 | ||
11109 | return status; | |
11110 | } | |
11111 | _LT_EOF | |
11112 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11113 | (eval $ac_link) 2>&5 | |
11114 | ac_status=$? | |
11115 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11116 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11117 | (./conftest; exit; ) >&5 2>/dev/null | |
11118 | lt_status=$? | |
11119 | case x$lt_status in | |
11120 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11121 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11122 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11123 | esac | |
11124 | else : | |
11125 | # compilation failed | |
11126 | lt_cv_dlopen_self=no | |
11127 | fi | |
11128 | fi | |
11129 | rm -fr conftest* | |
11130 | ||
11131 | ||
11132 | fi | |
11133 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
11134 | $as_echo "$lt_cv_dlopen_self" >&6; } | |
11135 | ||
11136 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11137 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11138 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
11139 | $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11140 | if test "${lt_cv_dlopen_self_static+set}" = set; then : | |
11141 | $as_echo_n "(cached) " >&6 | |
11142 | else | |
11143 | if test "$cross_compiling" = yes; then : | |
11144 | lt_cv_dlopen_self_static=cross | |
11145 | else | |
11146 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11147 | lt_status=$lt_dlunknown | |
11148 | cat > conftest.$ac_ext <<_LT_EOF | |
d4c059d5 | 11149 | #line 11149 "configure" |
eff02e4f ILT |
11150 | #include "confdefs.h" |
11151 | ||
11152 | #if HAVE_DLFCN_H | |
11153 | #include <dlfcn.h> | |
11154 | #endif | |
11155 | ||
11156 | #include <stdio.h> | |
11157 | ||
11158 | #ifdef RTLD_GLOBAL | |
11159 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11160 | #else | |
11161 | # ifdef DL_GLOBAL | |
11162 | # define LT_DLGLOBAL DL_GLOBAL | |
11163 | # else | |
11164 | # define LT_DLGLOBAL 0 | |
11165 | # endif | |
11166 | #endif | |
11167 | ||
11168 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11169 | find out it does not work in some platform. */ | |
11170 | #ifndef LT_DLLAZY_OR_NOW | |
11171 | # ifdef RTLD_LAZY | |
11172 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11173 | # else | |
11174 | # ifdef DL_LAZY | |
11175 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11176 | # else | |
11177 | # ifdef RTLD_NOW | |
11178 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11179 | # else | |
11180 | # ifdef DL_NOW | |
11181 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11182 | # else | |
11183 | # define LT_DLLAZY_OR_NOW 0 | |
11184 | # endif | |
11185 | # endif | |
11186 | # endif | |
11187 | # endif | |
11188 | #endif | |
11189 | ||
11190 | /* When -fvisbility=hidden is used, assume the code has been annotated | |
11191 | correspondingly for the symbols needed. */ | |
11192 | #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11193 | void fnord () __attribute__((visibility("default"))); | |
11194 | #endif | |
11195 | ||
11196 | void fnord () { int i=42; } | |
11197 | int main () | |
11198 | { | |
11199 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11200 | int status = $lt_dlunknown; | |
11201 | ||
11202 | if (self) | |
11203 | { | |
11204 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11205 | else | |
11206 | { | |
11207 | if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11208 | else puts (dlerror ()); | |
11209 | } | |
11210 | /* dlclose (self); */ | |
11211 | } | |
11212 | else | |
11213 | puts (dlerror ()); | |
11214 | ||
11215 | return status; | |
11216 | } | |
11217 | _LT_EOF | |
11218 | if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11219 | (eval $ac_link) 2>&5 | |
11220 | ac_status=$? | |
11221 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11222 | test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11223 | (./conftest; exit; ) >&5 2>/dev/null | |
11224 | lt_status=$? | |
11225 | case x$lt_status in | |
11226 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11227 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11228 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11229 | esac | |
11230 | else : | |
11231 | # compilation failed | |
11232 | lt_cv_dlopen_self_static=no | |
11233 | fi | |
11234 | fi | |
11235 | rm -fr conftest* | |
11236 | ||
11237 | ||
11238 | fi | |
11239 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
11240 | $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
11241 | fi | |
11242 | ||
11243 | CPPFLAGS="$save_CPPFLAGS" | |
11244 | LDFLAGS="$save_LDFLAGS" | |
11245 | LIBS="$save_LIBS" | |
11246 | ;; | |
11247 | esac | |
11248 | ||
11249 | case $lt_cv_dlopen_self in | |
11250 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11251 | *) enable_dlopen_self=unknown ;; | |
11252 | esac | |
11253 | ||
11254 | case $lt_cv_dlopen_self_static in | |
11255 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
11256 | *) enable_dlopen_self_static=unknown ;; | |
11257 | esac | |
11258 | fi | |
11259 | ||
11260 | ||
11261 | ||
11262 | ||
11263 | ||
11264 | ||
11265 | ||
11266 | ||
11267 | ||
11268 | ||
11269 | ||
11270 | ||
11271 | ||
11272 | ||
11273 | ||
11274 | ||
11275 | ||
11276 | striplib= | |
11277 | old_striplib= | |
11278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
11279 | $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
11280 | if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
11281 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11282 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11284 | $as_echo "yes" >&6; } | |
11285 | else | |
11286 | # FIXME - insert some real tests, host_os isn't really good enough | |
11287 | case $host_os in | |
11288 | darwin*) | |
11289 | if test -n "$STRIP" ; then | |
11290 | striplib="$STRIP -x" | |
11291 | old_striplib="$STRIP -S" | |
11292 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
11293 | $as_echo "yes" >&6; } | |
11294 | else | |
11295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11296 | $as_echo "no" >&6; } | |
11297 | fi | |
11298 | ;; | |
11299 | *) | |
11300 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
11301 | $as_echo "no" >&6; } | |
11302 | ;; | |
11303 | esac | |
11304 | fi | |
11305 | ||
11306 | ||
11307 | ||
11308 | ||
11309 | ||
11310 | ||
11311 | ||
11312 | ||
11313 | ||
11314 | ||
11315 | ||
11316 | ||
11317 | # Report which library types will actually be built | |
11318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
11319 | $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
11320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
11321 | $as_echo "$can_build_shared" >&6; } | |
11322 | ||
11323 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
11324 | $as_echo_n "checking whether to build shared libraries... " >&6; } | |
11325 | test "$can_build_shared" = "no" && enable_shared=no | |
11326 | ||
11327 | # On AIX, shared libraries and static libraries use the same namespace, and | |
11328 | # are all built from PIC. | |
11329 | case $host_os in | |
11330 | aix3*) | |
11331 | test "$enable_shared" = yes && enable_static=no | |
11332 | if test -n "$RANLIB"; then | |
11333 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
11334 | postinstall_cmds='$RANLIB $lib' | |
11335 | fi | |
11336 | ;; | |
11337 | ||
11338 | aix[4-9]*) | |
11339 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
11340 | test "$enable_shared" = yes && enable_static=no | |
11341 | fi | |
11342 | ;; | |
11343 | esac | |
11344 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
11345 | $as_echo "$enable_shared" >&6; } | |
11346 | ||
11347 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
11348 | $as_echo_n "checking whether to build static libraries... " >&6; } | |
11349 | # Make sure either enable_shared or enable_static is yes. | |
11350 | test "$enable_shared" = yes || enable_static=yes | |
11351 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
11352 | $as_echo "$enable_static" >&6; } | |
11353 | ||
11354 | ||
11355 | ||
11356 | ||
11357 | fi | |
11358 | ac_ext=c | |
11359 | ac_cpp='$CPP $CPPFLAGS' | |
11360 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
11361 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
11362 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
11363 | ||
11364 | CC="$lt_save_CC" | |
11365 | ||
11366 | ||
11367 | ||
11368 | ||
11369 | ||
11370 | ||
11371 | ||
11372 | ||
11373 | ||
11374 | ||
11375 | ||
11376 | ||
11377 | ||
11378 | ac_config_commands="$ac_config_commands libtool" | |
11379 | ||
11380 | ||
11381 | ||
11382 | ||
11383 | # Only expand once: | |
11384 | ||
11385 | ||
11386 | ||
11387 | ||
11388 | backtrace_supported=yes | |
11389 | ||
11390 | if test -n "${with_target_subdir}"; then | |
11391 | # We are compiling a GCC library. We can assume that the unwind | |
11392 | # library exists. | |
11393 | # Default to --enable-multilib | |
11394 | # Check whether --enable-multilib was given. | |
11395 | if test "${enable_multilib+set}" = set; then : | |
11396 | enableval=$enable_multilib; case "$enableval" in | |
11397 | yes) multilib=yes ;; | |
11398 | no) multilib=no ;; | |
11399 | *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;; | |
11400 | esac | |
11401 | else | |
11402 | multilib=yes | |
11403 | fi | |
11404 | ||
11405 | ||
11406 | # We may get other options which we leave undocumented: | |
11407 | # --with-target-subdir, --with-multisrctop, --with-multisubdir | |
11408 | # See config-ml.in if you want the gory details. | |
11409 | ||
11410 | if test "$srcdir" = "."; then | |
11411 | if test "$with_target_subdir" != "."; then | |
11412 | multi_basedir="$srcdir/$with_multisrctop../.." | |
11413 | else | |
11414 | multi_basedir="$srcdir/$with_multisrctop.." | |
11415 | fi | |
11416 | else | |
11417 | multi_basedir="$srcdir/.." | |
11418 | fi | |
11419 | ||
11420 | ||
11421 | # Even if the default multilib is not a cross compilation, | |
11422 | # it may be that some of the other multilibs are. | |
11423 | if test $cross_compiling = no && test $multilib = yes \ | |
11424 | && test "x${with_multisubdir}" != x ; then | |
11425 | cross_compiling=maybe | |
11426 | fi | |
11427 | ||
11428 | ac_config_commands="$ac_config_commands default-1" | |
11429 | ||
11430 | BACKTRACE_FILE="backtrace.lo simple.lo" | |
11431 | else | |
11432 | ac_fn_c_check_header_mongrel "$LINENO" "unwind.h" "ac_cv_header_unwind_h" "$ac_includes_default" | |
11433 | if test "x$ac_cv_header_unwind_h" = x""yes; then : | |
11434 | ac_fn_c_check_func "$LINENO" "_Unwind_Backtrace" "ac_cv_func__Unwind_Backtrace" | |
11435 | if test "x$ac_cv_func__Unwind_Backtrace" = x""yes; then : | |
11436 | BACKTRACE_FILE="backtrace.lo simple.lo" | |
11437 | else | |
11438 | BACKTRACE_FILE="nounwind.lo" | |
11439 | backtrace_supported=no | |
11440 | fi | |
11441 | ||
11442 | else | |
11443 | BACKTRACE_FILE="nounwind.lo" | |
11444 | backtrace_supported=no | |
11445 | fi | |
11446 | ||
11447 | ||
11448 | fi | |
11449 | ||
11450 | ||
11451 | WARN_FLAGS= | |
11452 | save_CFLAGS="$CFLAGS" | |
11453 | for real_option in -W -Wall -Wwrite-strings -Wstrict-prototypes \ | |
11454 | -Wmissing-prototypes -Wold-style-definition \ | |
11455 | -Wmissing-format-attribute -Wcast-qual; do | |
11456 | # Do the check with the no- prefix removed since gcc silently | |
11457 | # accepts any -Wno-* option on purpose | |
11458 | case $real_option in | |
11459 | -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;; | |
11460 | *) option=$real_option ;; | |
11461 | esac | |
11462 | as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh` | |
11463 | ||
11464 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5 | |
11465 | $as_echo_n "checking whether $CC supports $option... " >&6; } | |
11466 | if { as_var=$as_acx_Woption; eval "test \"\${$as_var+set}\" = set"; }; then : | |
11467 | $as_echo_n "(cached) " >&6 | |
11468 | else | |
11469 | CFLAGS="$option" | |
11470 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11471 | /* end confdefs.h. */ | |
11472 | ||
11473 | int | |
11474 | main () | |
11475 | { | |
11476 | ||
11477 | ; | |
11478 | return 0; | |
11479 | } | |
11480 | _ACEOF | |
11481 | if ac_fn_c_try_compile "$LINENO"; then : | |
11482 | eval "$as_acx_Woption=yes" | |
11483 | else | |
11484 | eval "$as_acx_Woption=no" | |
11485 | fi | |
11486 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11487 | ||
11488 | fi | |
11489 | eval ac_res=\$$as_acx_Woption | |
11490 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
11491 | $as_echo "$ac_res" >&6; } | |
11492 | if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then : | |
11493 | WARN_FLAGS="$WARN_FLAGS${WARN_FLAGS:+ }$real_option" | |
11494 | fi | |
11495 | done | |
11496 | CFLAGS="$save_CFLAGS" | |
11497 | ||
11498 | ||
11499 | if test "x$GCC" = "xyes"; then | |
11500 | WARN_FLAGS="$WARN_FLAGS -Werror" | |
11501 | fi | |
11502 | ||
11503 | ||
11504 | ||
11505 | ||
11506 | ||
11507 | # Check whether --with-system-libunwind was given. | |
11508 | if test "${with_system_libunwind+set}" = set; then : | |
11509 | withval=$with_system_libunwind; | |
11510 | fi | |
11511 | ||
11512 | # If system-libunwind was not specifically set, pick a default setting. | |
11513 | if test x$with_system_libunwind = x; then | |
11514 | case ${target} in | |
11515 | ia64-*-hpux*) with_system_libunwind=yes ;; | |
11516 | *) with_system_libunwind=no ;; | |
11517 | esac | |
11518 | fi | |
11519 | # Based on system-libunwind and target, do we have ipinfo? | |
11520 | if test x$with_system_libunwind = xyes; then | |
11521 | case ${target} in | |
11522 | ia64-*-*) have_unwind_getipinfo=no ;; | |
11523 | *) have_unwind_getipinfo=yes ;; | |
11524 | esac | |
11525 | else | |
11526 | # Darwin before version 9 does not have _Unwind_GetIPInfo. | |
11527 | ||
11528 | case ${target} in | |
11529 | *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;; | |
11530 | *) have_unwind_getipinfo=yes ;; | |
11531 | esac | |
11532 | ||
11533 | fi | |
11534 | ||
11535 | if test x$have_unwind_getipinfo = xyes; then | |
11536 | ||
11537 | $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h | |
11538 | ||
11539 | fi | |
11540 | ||
11541 | ||
11542 | # When building as a target library, shared libraries may want to link | |
11543 | # this in. We don't want to provide another shared library to | |
11544 | # complicate dependencies. Instead, we just compile with -fPIC. | |
11545 | PIC_FLAG= | |
11546 | if test -n "${with_target_subdir}"; then | |
11547 | PIC_FLAG=-fPIC | |
11548 | fi | |
11549 | ||
11550 | ||
11551 | # Test for __sync support. | |
11552 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking __sync extensions" >&5 | |
11553 | $as_echo_n "checking __sync extensions... " >&6; } | |
11554 | if test "${libbacktrace_cv_sys_sync+set}" = set; then : | |
11555 | $as_echo_n "(cached) " >&6 | |
11556 | else | |
11557 | if test -n "${with_target_subdir}"; then | |
11558 | libbacktrace_cv_sys_sync=yes | |
11559 | else | |
11560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11561 | /* end confdefs.h. */ | |
11562 | int i; | |
11563 | int | |
11564 | main () | |
11565 | { | |
11566 | __sync_bool_compare_and_swap (&i, i, i); | |
11567 | __sync_lock_test_and_set (&i, 1); | |
11568 | __sync_lock_release (&i); | |
11569 | ; | |
11570 | return 0; | |
11571 | } | |
11572 | _ACEOF | |
11573 | if ac_fn_c_try_link "$LINENO"; then : | |
11574 | libbacktrace_cv_sys_sync=yes | |
11575 | else | |
11576 | libbacktrace_cv_sys_sync=no | |
11577 | fi | |
11578 | rm -f core conftest.err conftest.$ac_objext \ | |
11579 | conftest$ac_exeext conftest.$ac_ext | |
11580 | fi | |
11581 | fi | |
11582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_sync" >&5 | |
11583 | $as_echo "$libbacktrace_cv_sys_sync" >&6; } | |
11584 | BACKTRACE_SUPPORTS_THREADS=0 | |
11585 | if test "$libbacktrace_cv_sys_sync" = "yes"; then | |
11586 | BACKTRACE_SUPPORTS_THREADS=1 | |
11587 | ||
11588 | $as_echo "#define HAVE_SYNC_FUNCTIONS 1" >>confdefs.h | |
11589 | ||
11590 | fi | |
11591 | ||
11592 | ||
11593 | # The library needs to be able to read the executable itself. Compile | |
11594 | # a file to determine the executable format. The awk script | |
11595 | # filetype.awk prints out the file type. | |
11596 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking output filetype" >&5 | |
11597 | $as_echo_n "checking output filetype... " >&6; } | |
11598 | if test "${libbacktrace_cv_sys_filetype+set}" = set; then : | |
11599 | $as_echo_n "(cached) " >&6 | |
11600 | else | |
11601 | filetype= | |
11602 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11603 | /* end confdefs.h. */ | |
11604 | int i; | |
11605 | int | |
11606 | main () | |
11607 | { | |
11608 | int j; | |
11609 | ; | |
11610 | return 0; | |
11611 | } | |
11612 | _ACEOF | |
11613 | if ac_fn_c_try_compile "$LINENO"; then : | |
11614 | filetype=`${AWK} -f $srcdir/filetype.awk conftest.$ac_objext` | |
11615 | else | |
11616 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
11617 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
11618 | as_fn_error "compiler failed | |
11619 | See \`config.log' for more details." "$LINENO" 5; } | |
11620 | fi | |
11621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
11622 | libbacktrace_cv_sys_filetype=$filetype | |
11623 | fi | |
11624 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_filetype" >&5 | |
11625 | $as_echo "$libbacktrace_cv_sys_filetype" >&6; } | |
11626 | ||
11627 | # Match the file type to decide what files to compile. | |
11628 | FORMAT_FILE= | |
11629 | case "$libbacktrace_cv_sys_filetype" in | |
11630 | elf*) FORMAT_FILE="elf.lo" ;; | |
11631 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not determine output file type" >&5 | |
11632 | $as_echo "$as_me: WARNING: could not determine output file type" >&2;} | |
11633 | FORMAT_FILE="unknown.lo" | |
11634 | backtrace_supported=no | |
11635 | ;; | |
11636 | esac | |
11637 | ||
11638 | ||
11639 | # ELF defines. | |
11640 | elfsize= | |
11641 | case "$libbacktrace_cv_sys_filetype" in | |
11642 | elf32) elfsize=32 ;; | |
11643 | elf64) elfsize=64 ;; | |
11644 | esac | |
11645 | ||
11646 | cat >>confdefs.h <<_ACEOF | |
11647 | #define BACKTRACE_ELF_SIZE $elfsize | |
11648 | _ACEOF | |
11649 | ||
11650 | ||
11651 | BACKTRACE_SUPPORTED=0 | |
11652 | if test "$backtrace_supported" = "yes"; then | |
11653 | BACKTRACE_SUPPORTED=1 | |
11654 | fi | |
11655 | ||
11656 | ||
11657 | for ac_header in sys/mman.h | |
11658 | do : | |
11659 | ac_fn_c_check_header_mongrel "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default" | |
11660 | if test "x$ac_cv_header_sys_mman_h" = x""yes; then : | |
11661 | cat >>confdefs.h <<_ACEOF | |
11662 | #define HAVE_SYS_MMAN_H 1 | |
11663 | _ACEOF | |
11664 | ||
11665 | fi | |
11666 | ||
11667 | done | |
11668 | ||
11669 | if test "$ac_cv_header_sys_mman_h" = "no"; then | |
11670 | have_mmap=no | |
11671 | else | |
11672 | if test -n "${with_target_subdir}"; then | |
11673 | # When built as a GCC target library, we can't do a link test. We | |
11674 | # simply assume that if we have mman.h, we have mmap. | |
11675 | have_mmap=yes | |
11676 | else | |
11677 | ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap" | |
11678 | if test "x$ac_cv_func_mmap" = x""yes; then : | |
11679 | have_mmap=yes | |
11680 | else | |
11681 | have_mmap=no | |
11682 | fi | |
11683 | ||
11684 | fi | |
11685 | fi | |
11686 | if test "$have_mmap" = "no"; then | |
11687 | VIEW_FILE=read.lo | |
11688 | ALLOC_FILE=alloc.lo | |
11689 | else | |
11690 | VIEW_FILE=mmapio.lo | |
11691 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11692 | /* end confdefs.h. */ | |
11693 | ||
11694 | #include <sys/mman.h> | |
11695 | #if !defined(MAP_ANONYMOUS) && !defined(MAP_ANON) | |
11696 | #error no MAP_ANONYMOUS | |
11697 | #endif | |
11698 | ||
11699 | _ACEOF | |
11700 | if ac_fn_c_try_cpp "$LINENO"; then : | |
11701 | ALLOC_FILE=mmap.lo | |
11702 | else | |
11703 | ALLOC_FILE=alloc.lo | |
11704 | fi | |
11705 | rm -f conftest.err conftest.$ac_ext | |
11706 | fi | |
11707 | ||
11708 | ||
11709 | ||
11710 | BACKTRACE_USES_MALLOC=0 | |
11711 | if test "$ALLOC_FILE" = "alloc.lo"; then | |
11712 | BACKTRACE_USES_MALLOC=1 | |
11713 | fi | |
11714 | ||
11715 | ||
3319ef17 ILT |
11716 | # Check for the fcntl function. |
11717 | if test -n "${with_target_subdir}"; then | |
11718 | case "${host}" in | |
11719 | *-*-mingw*) have_fcntl=no ;; | |
11720 | *) have_fcntl=yes ;; | |
11721 | esac | |
11722 | else | |
11723 | ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl" | |
11724 | if test "x$ac_cv_func_fcntl" = x""yes; then : | |
11725 | have_fcntl=yes | |
11726 | else | |
11727 | have_fcntl=no | |
11728 | fi | |
11729 | ||
11730 | fi | |
11731 | if test "$have_fcntl" = "yes"; then | |
11732 | ||
11733 | $as_echo "#define HAVE_FCNTL 1" >>confdefs.h | |
11734 | ||
11735 | fi | |
11736 | ||
772a71a9 ILT |
11737 | ac_fn_c_check_decl "$LINENO" "strnlen" "ac_cv_have_decl_strnlen" "$ac_includes_default" |
11738 | if test "x$ac_cv_have_decl_strnlen" = x""yes; then : | |
11739 | ac_have_decl=1 | |
11740 | else | |
11741 | ac_have_decl=0 | |
11742 | fi | |
11743 | ||
11744 | cat >>confdefs.h <<_ACEOF | |
11745 | #define HAVE_DECL_STRNLEN $ac_have_decl | |
11746 | _ACEOF | |
11747 | ||
11748 | ||
eff02e4f ILT |
11749 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether tests can run" >&5 |
11750 | $as_echo_n "checking whether tests can run... " >&6; } | |
11751 | if test "${libbacktrace_cv_sys_native+set}" = set; then : | |
11752 | $as_echo_n "(cached) " >&6 | |
11753 | else | |
11754 | if test "$cross_compiling" = yes; then : | |
11755 | libbacktrace_cv_sys_native=no | |
11756 | else | |
11757 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11758 | /* end confdefs.h. */ | |
11759 | ||
11760 | int | |
11761 | main () | |
11762 | { | |
11763 | return 0; | |
11764 | ; | |
11765 | return 0; | |
11766 | } | |
11767 | _ACEOF | |
11768 | if ac_fn_c_try_run "$LINENO"; then : | |
11769 | libbacktrace_cv_sys_native=yes | |
11770 | else | |
11771 | libbacktrace_cv_sys_native=no | |
11772 | fi | |
11773 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
11774 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
11775 | fi | |
11776 | ||
11777 | fi | |
11778 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libbacktrace_cv_sys_native" >&5 | |
11779 | $as_echo "$libbacktrace_cv_sys_native" >&6; } | |
11780 | if test "$libbacktrace_cv_sys_native" = "yes"; then | |
11781 | NATIVE_TRUE= | |
11782 | NATIVE_FALSE='#' | |
11783 | else | |
11784 | NATIVE_TRUE='#' | |
11785 | NATIVE_FALSE= | |
11786 | fi | |
11787 | ||
11788 | ||
11789 | if test "${multilib}" = "yes"; then | |
11790 | multilib_arg="--enable-multilib" | |
11791 | else | |
11792 | multilib_arg= | |
11793 | fi | |
11794 | ||
11795 | ac_config_files="$ac_config_files Makefile backtrace-supported.h" | |
11796 | ||
11797 | ||
11798 | # We need multilib support, but only if configuring for the target. | |
11799 | ac_config_commands="$ac_config_commands default" | |
11800 | ||
11801 | ||
11802 | cat >confcache <<\_ACEOF | |
11803 | # This file is a shell script that caches the results of configure | |
11804 | # tests run on this system so they can be shared between configure | |
11805 | # scripts and configure runs, see configure's option --config-cache. | |
11806 | # It is not useful on other systems. If it contains results you don't | |
11807 | # want to keep, you may remove or edit it. | |
11808 | # | |
11809 | # config.status only pays attention to the cache file if you give it | |
11810 | # the --recheck option to rerun configure. | |
11811 | # | |
11812 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
11813 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
11814 | # following values. | |
11815 | ||
11816 | _ACEOF | |
11817 | ||
11818 | # The following way of writing the cache mishandles newlines in values, | |
11819 | # but we know of no workaround that is simple, portable, and efficient. | |
11820 | # So, we kill variables containing newlines. | |
11821 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
11822 | # and sets the high bit in the cache file unless we assign to the vars. | |
11823 | ( | |
11824 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
11825 | eval ac_val=\$$ac_var | |
11826 | case $ac_val in #( | |
11827 | *${as_nl}*) | |
11828 | case $ac_var in #( | |
11829 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
11830 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
11831 | esac | |
11832 | case $ac_var in #( | |
11833 | _ | IFS | as_nl) ;; #( | |
11834 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
11835 | *) { eval $ac_var=; unset $ac_var;} ;; | |
11836 | esac ;; | |
11837 | esac | |
11838 | done | |
11839 | ||
11840 | (set) 2>&1 | | |
11841 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
11842 | *${as_nl}ac_space=\ *) | |
11843 | # `set' does not quote correctly, so add quotes: double-quote | |
11844 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
11845 | sed -n \ | |
11846 | "s/'/'\\\\''/g; | |
11847 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
11848 | ;; #( | |
11849 | *) | |
11850 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
11851 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
11852 | ;; | |
11853 | esac | | |
11854 | sort | |
11855 | ) | | |
11856 | sed ' | |
11857 | /^ac_cv_env_/b end | |
11858 | t clear | |
11859 | :clear | |
11860 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
11861 | t end | |
11862 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
11863 | :end' >>confcache | |
11864 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
11865 | if test -w "$cache_file"; then | |
11866 | test "x$cache_file" != "x/dev/null" && | |
11867 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
11868 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
11869 | cat confcache >$cache_file | |
11870 | else | |
11871 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
11872 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
11873 | fi | |
11874 | fi | |
11875 | rm -f confcache | |
11876 | ||
11877 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
11878 | # Let make expand exec_prefix. | |
11879 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
11880 | ||
11881 | DEFS=-DHAVE_CONFIG_H | |
11882 | ||
11883 | ac_libobjs= | |
11884 | ac_ltlibobjs= | |
11885 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
11886 | # 1. Remove the extension, and $U if already installed. | |
11887 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
11888 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
11889 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
11890 | # will be set to the directory where LIBOBJS objects are built. | |
11891 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
11892 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
11893 | done | |
11894 | LIBOBJS=$ac_libobjs | |
11895 | ||
11896 | LTLIBOBJS=$ac_ltlibobjs | |
11897 | ||
11898 | ||
d4c059d5 ILT |
11899 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
11900 | as_fn_error "conditional \"AMDEP\" was never defined. | |
11901 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
11902 | fi | |
11903 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
11904 | as_fn_error "conditional \"am__fastdepCC\" was never defined. | |
11905 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
11906 | fi | |
eff02e4f ILT |
11907 | if test -n "$EXEEXT"; then |
11908 | am__EXEEXT_TRUE= | |
11909 | am__EXEEXT_FALSE='#' | |
11910 | else | |
11911 | am__EXEEXT_TRUE='#' | |
11912 | am__EXEEXT_FALSE= | |
11913 | fi | |
11914 | ||
11915 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
11916 | as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. | |
11917 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
11918 | fi | |
eff02e4f ILT |
11919 | if test -z "${NATIVE_TRUE}" && test -z "${NATIVE_FALSE}"; then |
11920 | as_fn_error "conditional \"NATIVE\" was never defined. | |
11921 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
11922 | fi | |
11923 | ||
11924 | : ${CONFIG_STATUS=./config.status} | |
11925 | ac_write_fail=0 | |
11926 | ac_clean_files_save=$ac_clean_files | |
11927 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
11928 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
11929 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
11930 | as_write_fail=0 | |
11931 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
11932 | #! $SHELL | |
11933 | # Generated by $as_me. | |
11934 | # Run this file to recreate the current configuration. | |
11935 | # Compiler output produced by configure, useful for debugging | |
11936 | # configure, is in config.log if it exists. | |
11937 | ||
11938 | debug=false | |
11939 | ac_cs_recheck=false | |
11940 | ac_cs_silent=false | |
11941 | ||
11942 | SHELL=\${CONFIG_SHELL-$SHELL} | |
11943 | export SHELL | |
11944 | _ASEOF | |
11945 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
11946 | ## -------------------- ## | |
11947 | ## M4sh Initialization. ## | |
11948 | ## -------------------- ## | |
11949 | ||
11950 | # Be more Bourne compatible | |
11951 | DUALCASE=1; export DUALCASE # for MKS sh | |
11952 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
11953 | emulate sh | |
11954 | NULLCMD=: | |
11955 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
11956 | # is contrary to our usage. Disable this feature. | |
11957 | alias -g '${1+"$@"}'='"$@"' | |
11958 | setopt NO_GLOB_SUBST | |
11959 | else | |
11960 | case `(set -o) 2>/dev/null` in #( | |
11961 | *posix*) : | |
11962 | set -o posix ;; #( | |
11963 | *) : | |
11964 | ;; | |
11965 | esac | |
11966 | fi | |
11967 | ||
11968 | ||
11969 | as_nl=' | |
11970 | ' | |
11971 | export as_nl | |
11972 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
11973 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
11974 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
11975 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
11976 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
11977 | # but without wasting forks for bash or zsh. | |
11978 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
11979 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
11980 | as_echo='print -r --' | |
11981 | as_echo_n='print -rn --' | |
11982 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
11983 | as_echo='printf %s\n' | |
11984 | as_echo_n='printf %s' | |
11985 | else | |
11986 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
11987 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
11988 | as_echo_n='/usr/ucb/echo -n' | |
11989 | else | |
11990 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
11991 | as_echo_n_body='eval | |
11992 | arg=$1; | |
11993 | case $arg in #( | |
11994 | *"$as_nl"*) | |
11995 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
11996 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
11997 | esac; | |
11998 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
11999 | ' | |
12000 | export as_echo_n_body | |
12001 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
12002 | fi | |
12003 | export as_echo_body | |
12004 | as_echo='sh -c $as_echo_body as_echo' | |
12005 | fi | |
12006 | ||
12007 | # The user is always right. | |
12008 | if test "${PATH_SEPARATOR+set}" != set; then | |
12009 | PATH_SEPARATOR=: | |
12010 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
12011 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
12012 | PATH_SEPARATOR=';' | |
12013 | } | |
12014 | fi | |
12015 | ||
12016 | ||
12017 | # IFS | |
12018 | # We need space, tab and new line, in precisely that order. Quoting is | |
12019 | # there to prevent editors from complaining about space-tab. | |
12020 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
12021 | # splitting by setting IFS to empty value.) | |
12022 | IFS=" "" $as_nl" | |
12023 | ||
12024 | # Find who we are. Look in the path if we contain no directory separator. | |
12025 | case $0 in #(( | |
12026 | *[\\/]* ) as_myself=$0 ;; | |
12027 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
12028 | for as_dir in $PATH | |
12029 | do | |
12030 | IFS=$as_save_IFS | |
12031 | test -z "$as_dir" && as_dir=. | |
12032 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
12033 | done | |
12034 | IFS=$as_save_IFS | |
12035 | ||
12036 | ;; | |
12037 | esac | |
12038 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
12039 | # in which case we are not to be found in the path. | |
12040 | if test "x$as_myself" = x; then | |
12041 | as_myself=$0 | |
12042 | fi | |
12043 | if test ! -f "$as_myself"; then | |
12044 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
12045 | exit 1 | |
12046 | fi | |
12047 | ||
12048 | # Unset variables that we do not need and which cause bugs (e.g. in | |
12049 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
12050 | # suppresses any "Segmentation fault" message there. '((' could | |
12051 | # trigger a bug in pdksh 5.2.14. | |
12052 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
12053 | do eval test x\${$as_var+set} = xset \ | |
12054 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
12055 | done | |
12056 | PS1='$ ' | |
12057 | PS2='> ' | |
12058 | PS4='+ ' | |
12059 | ||
12060 | # NLS nuisances. | |
12061 | LC_ALL=C | |
12062 | export LC_ALL | |
12063 | LANGUAGE=C | |
12064 | export LANGUAGE | |
12065 | ||
12066 | # CDPATH. | |
12067 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
12068 | ||
12069 | ||
12070 | # as_fn_error ERROR [LINENO LOG_FD] | |
12071 | # --------------------------------- | |
12072 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
12073 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
12074 | # script with status $?, using 1 if that was 0. | |
12075 | as_fn_error () | |
12076 | { | |
12077 | as_status=$?; test $as_status -eq 0 && as_status=1 | |
12078 | if test "$3"; then | |
12079 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
12080 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 | |
12081 | fi | |
12082 | $as_echo "$as_me: error: $1" >&2 | |
12083 | as_fn_exit $as_status | |
12084 | } # as_fn_error | |
12085 | ||
12086 | ||
12087 | # as_fn_set_status STATUS | |
12088 | # ----------------------- | |
12089 | # Set $? to STATUS, without forking. | |
12090 | as_fn_set_status () | |
12091 | { | |
12092 | return $1 | |
12093 | } # as_fn_set_status | |
12094 | ||
12095 | # as_fn_exit STATUS | |
12096 | # ----------------- | |
12097 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
12098 | as_fn_exit () | |
12099 | { | |
12100 | set +e | |
12101 | as_fn_set_status $1 | |
12102 | exit $1 | |
12103 | } # as_fn_exit | |
12104 | ||
12105 | # as_fn_unset VAR | |
12106 | # --------------- | |
12107 | # Portably unset VAR. | |
12108 | as_fn_unset () | |
12109 | { | |
12110 | { eval $1=; unset $1;} | |
12111 | } | |
12112 | as_unset=as_fn_unset | |
12113 | # as_fn_append VAR VALUE | |
12114 | # ---------------------- | |
12115 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
12116 | # advantage of any shell optimizations that allow amortized linear growth over | |
12117 | # repeated appends, instead of the typical quadratic growth present in naive | |
12118 | # implementations. | |
12119 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
12120 | eval 'as_fn_append () | |
12121 | { | |
12122 | eval $1+=\$2 | |
12123 | }' | |
12124 | else | |
12125 | as_fn_append () | |
12126 | { | |
12127 | eval $1=\$$1\$2 | |
12128 | } | |
12129 | fi # as_fn_append | |
12130 | ||
12131 | # as_fn_arith ARG... | |
12132 | # ------------------ | |
12133 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
12134 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
12135 | # must be portable across $(()) and expr. | |
12136 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
12137 | eval 'as_fn_arith () | |
12138 | { | |
12139 | as_val=$(( $* )) | |
12140 | }' | |
12141 | else | |
12142 | as_fn_arith () | |
12143 | { | |
12144 | as_val=`expr "$@" || test $? -eq 1` | |
12145 | } | |
12146 | fi # as_fn_arith | |
12147 | ||
12148 | ||
12149 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
12150 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
12151 | as_expr=expr | |
12152 | else | |
12153 | as_expr=false | |
12154 | fi | |
12155 | ||
12156 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
12157 | as_basename=basename | |
12158 | else | |
12159 | as_basename=false | |
12160 | fi | |
12161 | ||
12162 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
12163 | as_dirname=dirname | |
12164 | else | |
12165 | as_dirname=false | |
12166 | fi | |
12167 | ||
12168 | as_me=`$as_basename -- "$0" || | |
12169 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
12170 | X"$0" : 'X\(//\)$' \| \ | |
12171 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
12172 | $as_echo X/"$0" | | |
12173 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
12174 | s//\1/ | |
12175 | q | |
12176 | } | |
12177 | /^X\/\(\/\/\)$/{ | |
12178 | s//\1/ | |
12179 | q | |
12180 | } | |
12181 | /^X\/\(\/\).*/{ | |
12182 | s//\1/ | |
12183 | q | |
12184 | } | |
12185 | s/.*/./; q'` | |
12186 | ||
12187 | # Avoid depending upon Character Ranges. | |
12188 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
12189 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
12190 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
12191 | as_cr_digits='0123456789' | |
12192 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
12193 | ||
12194 | ECHO_C= ECHO_N= ECHO_T= | |
12195 | case `echo -n x` in #((((( | |
12196 | -n*) | |
12197 | case `echo 'xy\c'` in | |
12198 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
12199 | xy) ECHO_C='\c';; | |
12200 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
12201 | ECHO_T=' ';; | |
12202 | esac;; | |
12203 | *) | |
12204 | ECHO_N='-n';; | |
12205 | esac | |
12206 | ||
12207 | rm -f conf$$ conf$$.exe conf$$.file | |
12208 | if test -d conf$$.dir; then | |
12209 | rm -f conf$$.dir/conf$$.file | |
12210 | else | |
12211 | rm -f conf$$.dir | |
12212 | mkdir conf$$.dir 2>/dev/null | |
12213 | fi | |
12214 | if (echo >conf$$.file) 2>/dev/null; then | |
12215 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
12216 | as_ln_s='ln -s' | |
12217 | # ... but there are two gotchas: | |
12218 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
12219 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
12220 | # In both cases, we have to default to `cp -p'. | |
12221 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
12222 | as_ln_s='cp -p' | |
12223 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
12224 | as_ln_s=ln | |
12225 | else | |
12226 | as_ln_s='cp -p' | |
12227 | fi | |
12228 | else | |
12229 | as_ln_s='cp -p' | |
12230 | fi | |
12231 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
12232 | rmdir conf$$.dir 2>/dev/null | |
12233 | ||
12234 | ||
12235 | # as_fn_mkdir_p | |
12236 | # ------------- | |
12237 | # Create "$as_dir" as a directory, including parents if necessary. | |
12238 | as_fn_mkdir_p () | |
12239 | { | |
12240 | ||
12241 | case $as_dir in #( | |
12242 | -*) as_dir=./$as_dir;; | |
12243 | esac | |
12244 | test -d "$as_dir" || eval $as_mkdir_p || { | |
12245 | as_dirs= | |
12246 | while :; do | |
12247 | case $as_dir in #( | |
12248 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
12249 | *) as_qdir=$as_dir;; | |
12250 | esac | |
12251 | as_dirs="'$as_qdir' $as_dirs" | |
12252 | as_dir=`$as_dirname -- "$as_dir" || | |
12253 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
12254 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
12255 | X"$as_dir" : 'X\(//\)$' \| \ | |
12256 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
12257 | $as_echo X"$as_dir" | | |
12258 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
12259 | s//\1/ | |
12260 | q | |
12261 | } | |
12262 | /^X\(\/\/\)[^/].*/{ | |
12263 | s//\1/ | |
12264 | q | |
12265 | } | |
12266 | /^X\(\/\/\)$/{ | |
12267 | s//\1/ | |
12268 | q | |
12269 | } | |
12270 | /^X\(\/\).*/{ | |
12271 | s//\1/ | |
12272 | q | |
12273 | } | |
12274 | s/.*/./; q'` | |
12275 | test -d "$as_dir" && break | |
12276 | done | |
12277 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
12278 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" | |
12279 | ||
12280 | ||
12281 | } # as_fn_mkdir_p | |
12282 | if mkdir -p . 2>/dev/null; then | |
12283 | as_mkdir_p='mkdir -p "$as_dir"' | |
12284 | else | |
12285 | test -d ./-p && rmdir ./-p | |
12286 | as_mkdir_p=false | |
12287 | fi | |
12288 | ||
12289 | if test -x / >/dev/null 2>&1; then | |
12290 | as_test_x='test -x' | |
12291 | else | |
12292 | if ls -dL / >/dev/null 2>&1; then | |
12293 | as_ls_L_option=L | |
12294 | else | |
12295 | as_ls_L_option= | |
12296 | fi | |
12297 | as_test_x=' | |
12298 | eval sh -c '\'' | |
12299 | if test -d "$1"; then | |
12300 | test -d "$1/."; | |
12301 | else | |
12302 | case $1 in #( | |
12303 | -*)set "./$1";; | |
12304 | esac; | |
12305 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( | |
12306 | ???[sx]*):;;*)false;;esac;fi | |
12307 | '\'' sh | |
12308 | ' | |
12309 | fi | |
12310 | as_executable_p=$as_test_x | |
12311 | ||
12312 | # Sed expression to map a string onto a valid CPP name. | |
12313 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
12314 | ||
12315 | # Sed expression to map a string onto a valid variable name. | |
12316 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
12317 | ||
12318 | ||
12319 | exec 6>&1 | |
12320 | ## ----------------------------------- ## | |
12321 | ## Main body of $CONFIG_STATUS script. ## | |
12322 | ## ----------------------------------- ## | |
12323 | _ASEOF | |
12324 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
12325 | ||
12326 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12327 | # Save the log message, to keep $0 and so on meaningful, and to | |
12328 | # report actual input values of CONFIG_FILES etc. instead of their | |
12329 | # values after options handling. | |
12330 | ac_log=" | |
12331 | This file was extended by package-unused $as_me version-unused, which was | |
12332 | generated by GNU Autoconf 2.64. Invocation command line was | |
12333 | ||
12334 | CONFIG_FILES = $CONFIG_FILES | |
12335 | CONFIG_HEADERS = $CONFIG_HEADERS | |
12336 | CONFIG_LINKS = $CONFIG_LINKS | |
12337 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
12338 | $ $0 $@ | |
12339 | ||
12340 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
12341 | " | |
12342 | ||
12343 | _ACEOF | |
12344 | ||
12345 | case $ac_config_files in *" | |
12346 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
12347 | esac | |
12348 | ||
12349 | case $ac_config_headers in *" | |
12350 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
12351 | esac | |
12352 | ||
12353 | ||
12354 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12355 | # Files that config.status was made for. | |
12356 | config_files="$ac_config_files" | |
12357 | config_headers="$ac_config_headers" | |
12358 | config_commands="$ac_config_commands" | |
12359 | ||
12360 | _ACEOF | |
12361 | ||
12362 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12363 | ac_cs_usage="\ | |
12364 | \`$as_me' instantiates files and other configuration actions | |
12365 | from templates according to the current configuration. Unless the files | |
12366 | and actions are specified as TAGs, all are instantiated by default. | |
12367 | ||
12368 | Usage: $0 [OPTION]... [TAG]... | |
12369 | ||
12370 | -h, --help print this help, then exit | |
12371 | -V, --version print version number and configuration settings, then exit | |
12372 | -q, --quiet, --silent | |
12373 | do not print progress messages | |
12374 | -d, --debug don't remove temporary files | |
12375 | --recheck update $as_me by reconfiguring in the same conditions | |
12376 | --file=FILE[:TEMPLATE] | |
12377 | instantiate the configuration file FILE | |
12378 | --header=FILE[:TEMPLATE] | |
12379 | instantiate the configuration header FILE | |
12380 | ||
12381 | Configuration files: | |
12382 | $config_files | |
12383 | ||
12384 | Configuration headers: | |
12385 | $config_headers | |
12386 | ||
12387 | Configuration commands: | |
12388 | $config_commands | |
12389 | ||
12390 | Report bugs to the package provider." | |
12391 | ||
12392 | _ACEOF | |
12393 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12394 | ac_cs_version="\\ | |
12395 | package-unused config.status version-unused | |
12396 | configured by $0, generated by GNU Autoconf 2.64, | |
12397 | with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
12398 | ||
12399 | Copyright (C) 2009 Free Software Foundation, Inc. | |
12400 | This config.status script is free software; the Free Software Foundation | |
12401 | gives unlimited permission to copy, distribute and modify it." | |
12402 | ||
12403 | ac_pwd='$ac_pwd' | |
12404 | srcdir='$srcdir' | |
12405 | INSTALL='$INSTALL' | |
12406 | MKDIR_P='$MKDIR_P' | |
12407 | AWK='$AWK' | |
12408 | test -n "\$AWK" || AWK=awk | |
12409 | _ACEOF | |
12410 | ||
12411 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12412 | # The default lists apply if the user does not specify any file. | |
12413 | ac_need_defaults=: | |
12414 | while test $# != 0 | |
12415 | do | |
12416 | case $1 in | |
12417 | --*=*) | |
12418 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
12419 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
12420 | ac_shift=: | |
12421 | ;; | |
12422 | *) | |
12423 | ac_option=$1 | |
12424 | ac_optarg=$2 | |
12425 | ac_shift=shift | |
12426 | ;; | |
12427 | esac | |
12428 | ||
12429 | case $ac_option in | |
12430 | # Handling of the options. | |
12431 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
12432 | ac_cs_recheck=: ;; | |
12433 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
12434 | $as_echo "$ac_cs_version"; exit ;; | |
12435 | --debug | --debu | --deb | --de | --d | -d ) | |
12436 | debug=: ;; | |
12437 | --file | --fil | --fi | --f ) | |
12438 | $ac_shift | |
12439 | case $ac_optarg in | |
12440 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12441 | esac | |
12442 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
12443 | ac_need_defaults=false;; | |
12444 | --header | --heade | --head | --hea ) | |
12445 | $ac_shift | |
12446 | case $ac_optarg in | |
12447 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
12448 | esac | |
12449 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
12450 | ac_need_defaults=false;; | |
12451 | --he | --h) | |
12452 | # Conflict between --help and --header | |
12453 | as_fn_error "ambiguous option: \`$1' | |
12454 | Try \`$0 --help' for more information.";; | |
12455 | --help | --hel | -h ) | |
12456 | $as_echo "$ac_cs_usage"; exit ;; | |
12457 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
12458 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
12459 | ac_cs_silent=: ;; | |
12460 | ||
12461 | # This is an error. | |
12462 | -*) as_fn_error "unrecognized option: \`$1' | |
12463 | Try \`$0 --help' for more information." ;; | |
12464 | ||
12465 | *) as_fn_append ac_config_targets " $1" | |
12466 | ac_need_defaults=false ;; | |
12467 | ||
12468 | esac | |
12469 | shift | |
12470 | done | |
12471 | ||
12472 | ac_configure_extra_args= | |
12473 | ||
12474 | if $ac_cs_silent; then | |
12475 | exec 6>/dev/null | |
12476 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
12477 | fi | |
12478 | ||
12479 | _ACEOF | |
12480 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12481 | if \$ac_cs_recheck; then | |
12482 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
12483 | shift | |
12484 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
12485 | CONFIG_SHELL='$SHELL' | |
12486 | export CONFIG_SHELL | |
12487 | exec "\$@" | |
12488 | fi | |
12489 | ||
12490 | _ACEOF | |
12491 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12492 | exec 5>>config.log | |
12493 | { | |
12494 | echo | |
12495 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
12496 | ## Running $as_me. ## | |
12497 | _ASBOX | |
12498 | $as_echo "$ac_log" | |
12499 | } >&5 | |
12500 | ||
12501 | _ACEOF | |
12502 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12503 | # | |
12504 | # INIT-COMMANDS | |
12505 | # | |
12506 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
12507 | ||
12508 | ||
12509 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
12510 | # if CDPATH is set. | |
12511 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
12512 | ||
12513 | sed_quote_subst='$sed_quote_subst' | |
12514 | double_quote_subst='$double_quote_subst' | |
12515 | delay_variable_subst='$delay_variable_subst' | |
12516 | macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
12517 | macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
12518 | enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
12519 | enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
12520 | pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
12521 | enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
12522 | SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
12523 | ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
12524 | host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
12525 | host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
12526 | host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
12527 | build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
12528 | build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
12529 | build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
12530 | SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
12531 | Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
12532 | GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
12533 | EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
12534 | FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
12535 | LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
12536 | NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
12537 | LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
12538 | max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
12539 | ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
12540 | exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
12541 | lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
12542 | lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
12543 | lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
12544 | reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
12545 | reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
12546 | OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
12547 | deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
12548 | file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
12549 | AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
12550 | AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
12551 | STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
12552 | RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
12553 | old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
12554 | old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
12555 | old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
12556 | lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
12557 | CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
12558 | CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
12559 | compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
12560 | GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
12561 | lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
12562 | lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
12563 | lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
12564 | 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"`' | |
12565 | objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
12566 | MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
12567 | lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
12568 | lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
12569 | lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
12570 | lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
12571 | lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
12572 | need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
12573 | DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
12574 | NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
12575 | LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
12576 | OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
12577 | OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
12578 | libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
12579 | shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
12580 | extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
12581 | archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
12582 | enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
12583 | export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
12584 | whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
12585 | compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
12586 | old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
12587 | old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
12588 | archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
12589 | archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
12590 | module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
12591 | module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
12592 | with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
12593 | allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
12594 | no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
12595 | hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
12596 | hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' | |
12597 | hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
12598 | hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
12599 | hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
12600 | hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
12601 | hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
12602 | hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
12603 | inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
12604 | link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
12605 | fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' | |
12606 | always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
12607 | export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
12608 | exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
12609 | include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
12610 | prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
12611 | file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
12612 | variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
12613 | need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
12614 | need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
12615 | version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
12616 | runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
12617 | shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
12618 | shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
12619 | libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
12620 | library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
12621 | soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
12622 | install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
12623 | postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
12624 | postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
12625 | finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
12626 | finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
12627 | hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
12628 | sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
12629 | sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
12630 | hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
12631 | enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
12632 | enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
12633 | enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
12634 | old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
12635 | striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
12636 | ||
12637 | LTCC='$LTCC' | |
12638 | LTCFLAGS='$LTCFLAGS' | |
12639 | compiler='$compiler_DEFAULT' | |
12640 | ||
12641 | # A function that is used when there is no print builtin or printf. | |
12642 | func_fallback_echo () | |
12643 | { | |
12644 | eval 'cat <<_LTECHO_EOF | |
12645 | \$1 | |
12646 | _LTECHO_EOF' | |
12647 | } | |
12648 | ||
12649 | # Quote evaled strings. | |
12650 | for var in SHELL \ | |
12651 | ECHO \ | |
12652 | SED \ | |
12653 | GREP \ | |
12654 | EGREP \ | |
12655 | FGREP \ | |
12656 | LD \ | |
12657 | NM \ | |
12658 | LN_S \ | |
12659 | lt_SP2NL \ | |
12660 | lt_NL2SP \ | |
12661 | reload_flag \ | |
12662 | OBJDUMP \ | |
12663 | deplibs_check_method \ | |
12664 | file_magic_cmd \ | |
12665 | AR \ | |
12666 | AR_FLAGS \ | |
12667 | STRIP \ | |
12668 | RANLIB \ | |
12669 | CC \ | |
12670 | CFLAGS \ | |
12671 | compiler \ | |
12672 | lt_cv_sys_global_symbol_pipe \ | |
12673 | lt_cv_sys_global_symbol_to_cdecl \ | |
12674 | lt_cv_sys_global_symbol_to_c_name_address \ | |
12675 | lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
12676 | lt_prog_compiler_no_builtin_flag \ | |
12677 | lt_prog_compiler_wl \ | |
12678 | lt_prog_compiler_pic \ | |
12679 | lt_prog_compiler_static \ | |
12680 | lt_cv_prog_compiler_c_o \ | |
12681 | need_locks \ | |
12682 | DSYMUTIL \ | |
12683 | NMEDIT \ | |
12684 | LIPO \ | |
12685 | OTOOL \ | |
12686 | OTOOL64 \ | |
12687 | shrext_cmds \ | |
12688 | export_dynamic_flag_spec \ | |
12689 | whole_archive_flag_spec \ | |
12690 | compiler_needs_object \ | |
12691 | with_gnu_ld \ | |
12692 | allow_undefined_flag \ | |
12693 | no_undefined_flag \ | |
12694 | hardcode_libdir_flag_spec \ | |
12695 | hardcode_libdir_flag_spec_ld \ | |
12696 | hardcode_libdir_separator \ | |
12697 | fix_srcfile_path \ | |
12698 | exclude_expsyms \ | |
12699 | include_expsyms \ | |
12700 | file_list_spec \ | |
12701 | variables_saved_for_relink \ | |
12702 | libname_spec \ | |
12703 | library_names_spec \ | |
12704 | soname_spec \ | |
12705 | install_override_mode \ | |
12706 | finish_eval \ | |
12707 | old_striplib \ | |
12708 | striplib; do | |
12709 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
12710 | *[\\\\\\\`\\"\\\$]*) | |
12711 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
12712 | ;; | |
12713 | *) | |
12714 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
12715 | ;; | |
12716 | esac | |
12717 | done | |
12718 | ||
12719 | # Double-quote double-evaled strings. | |
12720 | for var in reload_cmds \ | |
12721 | old_postinstall_cmds \ | |
12722 | old_postuninstall_cmds \ | |
12723 | old_archive_cmds \ | |
12724 | extract_expsyms_cmds \ | |
12725 | old_archive_from_new_cmds \ | |
12726 | old_archive_from_expsyms_cmds \ | |
12727 | archive_cmds \ | |
12728 | archive_expsym_cmds \ | |
12729 | module_cmds \ | |
12730 | module_expsym_cmds \ | |
12731 | export_symbols_cmds \ | |
12732 | prelink_cmds \ | |
12733 | postinstall_cmds \ | |
12734 | postuninstall_cmds \ | |
12735 | finish_cmds \ | |
12736 | sys_lib_search_path_spec \ | |
12737 | sys_lib_dlsearch_path_spec; do | |
12738 | case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
12739 | *[\\\\\\\`\\"\\\$]*) | |
12740 | eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
12741 | ;; | |
12742 | *) | |
12743 | eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
12744 | ;; | |
12745 | esac | |
12746 | done | |
12747 | ||
12748 | ac_aux_dir='$ac_aux_dir' | |
12749 | xsi_shell='$xsi_shell' | |
12750 | lt_shell_append='$lt_shell_append' | |
12751 | ||
12752 | # See if we are running on zsh, and set the options which allow our | |
12753 | # commands through without removal of \ escapes INIT. | |
12754 | if test -n "\${ZSH_VERSION+set}" ; then | |
12755 | setopt NO_GLOB_SUBST | |
12756 | fi | |
12757 | ||
12758 | ||
12759 | PACKAGE='$PACKAGE' | |
12760 | VERSION='$VERSION' | |
12761 | TIMESTAMP='$TIMESTAMP' | |
12762 | RM='$RM' | |
12763 | ofile='$ofile' | |
12764 | ||
12765 | ||
12766 | ||
12767 | ||
12768 | srcdir="$srcdir" | |
12769 | host="$host" | |
12770 | target="$target" | |
12771 | with_multisubdir="$with_multisubdir" | |
12772 | with_multisrctop="$with_multisrctop" | |
12773 | with_target_subdir="$with_target_subdir" | |
12774 | ac_configure_args="${multilib_arg} ${ac_configure_args}" | |
12775 | multi_basedir="$multi_basedir" | |
12776 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
12777 | CC="$CC" | |
12778 | CXX="$CXX" | |
12779 | GFORTRAN="$GFORTRAN" | |
12780 | GCJ="$GCJ" | |
12781 | ||
12782 | # Variables needed in config.status (file generation) which aren't already | |
12783 | # passed by autoconf. | |
12784 | SUBDIRS="$SUBDIRS" | |
12785 | ||
12786 | ||
12787 | _ACEOF | |
12788 | ||
12789 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12790 | ||
12791 | # Handling of arguments. | |
12792 | for ac_config_target in $ac_config_targets | |
12793 | do | |
12794 | case $ac_config_target in | |
12795 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
12796 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
12797 | "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
12798 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; | |
12799 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
12800 | "backtrace-supported.h") CONFIG_FILES="$CONFIG_FILES backtrace-supported.h" ;; | |
12801 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
12802 | ||
12803 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
12804 | esac | |
12805 | done | |
12806 | ||
12807 | ||
12808 | # If the user did not use the arguments to specify the items to instantiate, | |
12809 | # then the envvar interface is used. Set only those that are not. | |
12810 | # We use the long form for the default assignment because of an extremely | |
12811 | # bizarre bug on SunOS 4.1.3. | |
12812 | if $ac_need_defaults; then | |
12813 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
12814 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
12815 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
12816 | fi | |
12817 | ||
12818 | # Have a temporary directory for convenience. Make it in the build tree | |
12819 | # simply because there is no reason against having it here, and in addition, | |
12820 | # creating and moving files from /tmp can sometimes cause problems. | |
12821 | # Hook for its removal unless debugging. | |
12822 | # Note that there is a small window in which the directory will not be cleaned: | |
12823 | # after its creation but before its name has been assigned to `$tmp'. | |
12824 | $debug || | |
12825 | { | |
12826 | tmp= | |
12827 | trap 'exit_status=$? | |
12828 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
12829 | ' 0 | |
12830 | trap 'as_fn_exit 1' 1 2 13 15 | |
12831 | } | |
12832 | # Create a (secure) tmp directory for tmp files. | |
12833 | ||
12834 | { | |
12835 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
12836 | test -n "$tmp" && test -d "$tmp" | |
12837 | } || | |
12838 | { | |
12839 | tmp=./conf$$-$RANDOM | |
12840 | (umask 077 && mkdir "$tmp") | |
12841 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 | |
12842 | ||
12843 | # Set up the scripts for CONFIG_FILES section. | |
12844 | # No need to generate them if there are no CONFIG_FILES. | |
12845 | # This happens for instance with `./config.status config.h'. | |
12846 | if test -n "$CONFIG_FILES"; then | |
12847 | ||
12848 | ||
12849 | ac_cr=`echo X | tr X '\015'` | |
12850 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
12851 | # But we know of no other shell where ac_cr would be empty at this | |
12852 | # point, so we can use a bashism as a fallback. | |
12853 | if test "x$ac_cr" = x; then | |
12854 | eval ac_cr=\$\'\\r\' | |
12855 | fi | |
12856 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
12857 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
12858 | ac_cs_awk_cr='\r' | |
12859 | else | |
12860 | ac_cs_awk_cr=$ac_cr | |
12861 | fi | |
12862 | ||
12863 | echo 'BEGIN {' >"$tmp/subs1.awk" && | |
12864 | _ACEOF | |
12865 | ||
12866 | ||
12867 | { | |
12868 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
12869 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
12870 | echo "_ACEOF" | |
12871 | } >conf$$subs.sh || | |
12872 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
12873 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` | |
12874 | ac_delim='%!_!# ' | |
12875 | for ac_last_try in false false false false false :; do | |
12876 | . ./conf$$subs.sh || | |
12877 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
12878 | ||
12879 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
12880 | if test $ac_delim_n = $ac_delim_num; then | |
12881 | break | |
12882 | elif $ac_last_try; then | |
12883 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 | |
12884 | else | |
12885 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
12886 | fi | |
12887 | done | |
12888 | rm -f conf$$subs.sh | |
12889 | ||
12890 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12891 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && | |
12892 | _ACEOF | |
12893 | sed -n ' | |
12894 | h | |
12895 | s/^/S["/; s/!.*/"]=/ | |
12896 | p | |
12897 | g | |
12898 | s/^[^!]*!// | |
12899 | :repl | |
12900 | t repl | |
12901 | s/'"$ac_delim"'$// | |
12902 | t delim | |
12903 | :nl | |
12904 | h | |
12905 | s/\(.\{148\}\).*/\1/ | |
12906 | t more1 | |
12907 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
12908 | p | |
12909 | n | |
12910 | b repl | |
12911 | :more1 | |
12912 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12913 | p | |
12914 | g | |
12915 | s/.\{148\}// | |
12916 | t nl | |
12917 | :delim | |
12918 | h | |
12919 | s/\(.\{148\}\).*/\1/ | |
12920 | t more2 | |
12921 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
12922 | p | |
12923 | b | |
12924 | :more2 | |
12925 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
12926 | p | |
12927 | g | |
12928 | s/.\{148\}// | |
12929 | t delim | |
12930 | ' <conf$$subs.awk | sed ' | |
12931 | /^[^""]/{ | |
12932 | N | |
12933 | s/\n// | |
12934 | } | |
12935 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
12936 | rm -f conf$$subs.awk | |
12937 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
12938 | _ACAWK | |
12939 | cat >>"\$tmp/subs1.awk" <<_ACAWK && | |
12940 | for (key in S) S_is_set[key] = 1 | |
12941 | FS = "\a" | |
12942 | ||
12943 | } | |
12944 | { | |
12945 | line = $ 0 | |
12946 | nfields = split(line, field, "@") | |
12947 | substed = 0 | |
12948 | len = length(field[1]) | |
12949 | for (i = 2; i < nfields; i++) { | |
12950 | key = field[i] | |
12951 | keylen = length(key) | |
12952 | if (S_is_set[key]) { | |
12953 | value = S[key] | |
12954 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
12955 | len += length(value) + length(field[++i]) | |
12956 | substed = 1 | |
12957 | } else | |
12958 | len += 1 + keylen | |
12959 | } | |
12960 | ||
12961 | print line | |
12962 | } | |
12963 | ||
12964 | _ACAWK | |
12965 | _ACEOF | |
12966 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12967 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
12968 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
12969 | else | |
12970 | cat | |
12971 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ | |
12972 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 | |
12973 | _ACEOF | |
12974 | ||
12975 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
12976 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
12977 | # trailing colons and then remove the whole line if VPATH becomes empty | |
12978 | # (actually we leave an empty line to preserve line numbers). | |
12979 | if test "x$srcdir" = x.; then | |
12980 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
12981 | s/:*\$(srcdir):*/:/ | |
12982 | s/:*\${srcdir}:*/:/ | |
12983 | s/:*@srcdir@:*/:/ | |
12984 | s/^\([^=]*=[ ]*\):*/\1/ | |
12985 | s/:*$// | |
12986 | s/^[^=]*=[ ]*$// | |
12987 | }' | |
12988 | fi | |
12989 | ||
12990 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
12991 | fi # test -n "$CONFIG_FILES" | |
12992 | ||
12993 | # Set up the scripts for CONFIG_HEADERS section. | |
12994 | # No need to generate them if there are no CONFIG_HEADERS. | |
12995 | # This happens for instance with `./config.status Makefile'. | |
12996 | if test -n "$CONFIG_HEADERS"; then | |
12997 | cat >"$tmp/defines.awk" <<\_ACAWK || | |
12998 | BEGIN { | |
12999 | _ACEOF | |
13000 | ||
13001 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
13002 | # here-document in config.status, that substitutes the proper values into | |
13003 | # config.h.in to produce config.h. | |
13004 | ||
13005 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
13006 | # handling of long lines. | |
13007 | ac_delim='%!_!# ' | |
13008 | for ac_last_try in false false :; do | |
13009 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` | |
13010 | if test -z "$ac_t"; then | |
13011 | break | |
13012 | elif $ac_last_try; then | |
13013 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
13014 | else | |
13015 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
13016 | fi | |
13017 | done | |
13018 | ||
13019 | # For the awk script, D is an array of macro values keyed by name, | |
13020 | # likewise P contains macro parameters if any. Preserve backslash | |
13021 | # newline sequences. | |
13022 | ||
13023 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
13024 | sed -n ' | |
13025 | s/.\{148\}/&'"$ac_delim"'/g | |
13026 | t rset | |
13027 | :rset | |
13028 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
13029 | t def | |
13030 | d | |
13031 | :def | |
13032 | s/\\$// | |
13033 | t bsnl | |
13034 | s/["\\]/\\&/g | |
13035 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13036 | D["\1"]=" \3"/p | |
13037 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
13038 | d | |
13039 | :bsnl | |
13040 | s/["\\]/\\&/g | |
13041 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
13042 | D["\1"]=" \3\\\\\\n"\\/p | |
13043 | t cont | |
13044 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
13045 | t cont | |
13046 | d | |
13047 | :cont | |
13048 | n | |
13049 | s/.\{148\}/&'"$ac_delim"'/g | |
13050 | t clear | |
13051 | :clear | |
13052 | s/\\$// | |
13053 | t bsnlc | |
13054 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
13055 | d | |
13056 | :bsnlc | |
13057 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
13058 | b cont | |
13059 | ' <confdefs.h | sed ' | |
13060 | s/'"$ac_delim"'/"\\\ | |
13061 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
13062 | ||
13063 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13064 | for (key in D) D_is_set[key] = 1 | |
13065 | FS = "\a" | |
13066 | } | |
13067 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
13068 | line = \$ 0 | |
13069 | split(line, arg, " ") | |
13070 | if (arg[1] == "#") { | |
13071 | defundef = arg[2] | |
13072 | mac1 = arg[3] | |
13073 | } else { | |
13074 | defundef = substr(arg[1], 2) | |
13075 | mac1 = arg[2] | |
13076 | } | |
13077 | split(mac1, mac2, "(") #) | |
13078 | macro = mac2[1] | |
13079 | prefix = substr(line, 1, index(line, defundef) - 1) | |
13080 | if (D_is_set[macro]) { | |
13081 | # Preserve the white space surrounding the "#". | |
13082 | print prefix "define", macro P[macro] D[macro] | |
13083 | next | |
13084 | } else { | |
13085 | # Replace #undef with comments. This is necessary, for example, | |
13086 | # in the case of _POSIX_SOURCE, which is predefined and required | |
13087 | # on some systems where configure will not decide to define it. | |
13088 | if (defundef == "undef") { | |
13089 | print "/*", prefix defundef, macro, "*/" | |
13090 | next | |
13091 | } | |
13092 | } | |
13093 | } | |
13094 | { print } | |
13095 | _ACAWK | |
13096 | _ACEOF | |
13097 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13098 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 | |
13099 | fi # test -n "$CONFIG_HEADERS" | |
13100 | ||
13101 | ||
13102 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
13103 | shift | |
13104 | for ac_tag | |
13105 | do | |
13106 | case $ac_tag in | |
13107 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
13108 | esac | |
13109 | case $ac_mode$ac_tag in | |
13110 | :[FHL]*:*);; | |
13111 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
13112 | :[FH]-) ac_tag=-:-;; | |
13113 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
13114 | esac | |
13115 | ac_save_IFS=$IFS | |
13116 | IFS=: | |
13117 | set x $ac_tag | |
13118 | IFS=$ac_save_IFS | |
13119 | shift | |
13120 | ac_file=$1 | |
13121 | shift | |
13122 | ||
13123 | case $ac_mode in | |
13124 | :L) ac_source=$1;; | |
13125 | :[FH]) | |
13126 | ac_file_inputs= | |
13127 | for ac_f | |
13128 | do | |
13129 | case $ac_f in | |
13130 | -) ac_f="$tmp/stdin";; | |
13131 | *) # Look for the file first in the build tree, then in the source tree | |
13132 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
13133 | # because $ac_f cannot contain `:'. | |
13134 | test -f "$ac_f" || | |
13135 | case $ac_f in | |
13136 | [\\/$]*) false;; | |
13137 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
13138 | esac || | |
13139 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
13140 | esac | |
13141 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
13142 | as_fn_append ac_file_inputs " '$ac_f'" | |
13143 | done | |
13144 | ||
13145 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
13146 | # use $as_me), people would be surprised to read: | |
13147 | # /* config.h. Generated by config.status. */ | |
13148 | configure_input='Generated from '` | |
13149 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
13150 | `' by configure.' | |
13151 | if test x"$ac_file" != x-; then | |
13152 | configure_input="$ac_file. $configure_input" | |
13153 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
13154 | $as_echo "$as_me: creating $ac_file" >&6;} | |
13155 | fi | |
13156 | # Neutralize special characters interpreted by sed in replacement strings. | |
13157 | case $configure_input in #( | |
13158 | *\&* | *\|* | *\\* ) | |
13159 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
13160 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
13161 | *) ac_sed_conf_input=$configure_input;; | |
13162 | esac | |
13163 | ||
13164 | case $ac_tag in | |
13165 | *:-:* | *:-) cat >"$tmp/stdin" \ | |
13166 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; | |
13167 | esac | |
13168 | ;; | |
13169 | esac | |
13170 | ||
13171 | ac_dir=`$as_dirname -- "$ac_file" || | |
13172 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13173 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
13174 | X"$ac_file" : 'X\(//\)$' \| \ | |
13175 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
13176 | $as_echo X"$ac_file" | | |
13177 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13178 | s//\1/ | |
13179 | q | |
13180 | } | |
13181 | /^X\(\/\/\)[^/].*/{ | |
13182 | s//\1/ | |
13183 | q | |
13184 | } | |
13185 | /^X\(\/\/\)$/{ | |
13186 | s//\1/ | |
13187 | q | |
13188 | } | |
13189 | /^X\(\/\).*/{ | |
13190 | s//\1/ | |
13191 | q | |
13192 | } | |
13193 | s/.*/./; q'` | |
13194 | as_dir="$ac_dir"; as_fn_mkdir_p | |
13195 | ac_builddir=. | |
13196 | ||
13197 | case "$ac_dir" in | |
13198 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13199 | *) | |
13200 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
13201 | # A ".." for each directory in $ac_dir_suffix. | |
13202 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
13203 | case $ac_top_builddir_sub in | |
13204 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
13205 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
13206 | esac ;; | |
13207 | esac | |
13208 | ac_abs_top_builddir=$ac_pwd | |
13209 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
13210 | # for backward compatibility: | |
13211 | ac_top_builddir=$ac_top_build_prefix | |
13212 | ||
13213 | case $srcdir in | |
13214 | .) # We are building in place. | |
13215 | ac_srcdir=. | |
13216 | ac_top_srcdir=$ac_top_builddir_sub | |
13217 | ac_abs_top_srcdir=$ac_pwd ;; | |
13218 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
13219 | ac_srcdir=$srcdir$ac_dir_suffix; | |
13220 | ac_top_srcdir=$srcdir | |
13221 | ac_abs_top_srcdir=$srcdir ;; | |
13222 | *) # Relative name. | |
13223 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
13224 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
13225 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
13226 | esac | |
13227 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
13228 | ||
13229 | ||
13230 | case $ac_mode in | |
13231 | :F) | |
13232 | # | |
13233 | # CONFIG_FILE | |
13234 | # | |
13235 | ||
13236 | case $INSTALL in | |
13237 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
13238 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
13239 | esac | |
13240 | ac_MKDIR_P=$MKDIR_P | |
13241 | case $MKDIR_P in | |
13242 | [\\/$]* | ?:[\\/]* ) ;; | |
13243 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
13244 | esac | |
13245 | _ACEOF | |
13246 | ||
13247 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13248 | # If the template does not know about datarootdir, expand it. | |
13249 | # FIXME: This hack should be removed a few years after 2.60. | |
13250 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
13251 | ac_sed_dataroot=' | |
13252 | /datarootdir/ { | |
13253 | p | |
13254 | q | |
13255 | } | |
13256 | /@datadir@/p | |
13257 | /@docdir@/p | |
13258 | /@infodir@/p | |
13259 | /@localedir@/p | |
13260 | /@mandir@/p' | |
13261 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
13262 | *datarootdir*) ac_datarootdir_seen=yes;; | |
13263 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
13264 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
13265 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
13266 | _ACEOF | |
13267 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13268 | ac_datarootdir_hack=' | |
13269 | s&@datadir@&$datadir&g | |
13270 | s&@docdir@&$docdir&g | |
13271 | s&@infodir@&$infodir&g | |
13272 | s&@localedir@&$localedir&g | |
13273 | s&@mandir@&$mandir&g | |
13274 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
13275 | esac | |
13276 | _ACEOF | |
13277 | ||
13278 | # Neutralize VPATH when `$srcdir' = `.'. | |
13279 | # Shell code in configure.ac might set extrasub. | |
13280 | # FIXME: do we really want to maintain this feature? | |
13281 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
13282 | ac_sed_extra="$ac_vpsub | |
13283 | $extrasub | |
13284 | _ACEOF | |
13285 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
13286 | :t | |
13287 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
13288 | s|@configure_input@|$ac_sed_conf_input|;t t | |
13289 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
13290 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
13291 | s&@srcdir@&$ac_srcdir&;t t | |
13292 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
13293 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
13294 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
13295 | s&@builddir@&$ac_builddir&;t t | |
13296 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
13297 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
13298 | s&@INSTALL@&$ac_INSTALL&;t t | |
13299 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
13300 | $ac_datarootdir_hack | |
13301 | " | |
13302 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ | |
13303 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
13304 | ||
13305 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
13306 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
13307 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
13308 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
13309 | which seems to be undefined. Please make sure it is defined." >&5 | |
13310 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
13311 | which seems to be undefined. Please make sure it is defined." >&2;} | |
13312 | ||
13313 | rm -f "$tmp/stdin" | |
13314 | case $ac_file in | |
13315 | -) cat "$tmp/out" && rm -f "$tmp/out";; | |
13316 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; | |
13317 | esac \ | |
13318 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
13319 | ;; | |
13320 | :H) | |
13321 | # | |
13322 | # CONFIG_HEADER | |
13323 | # | |
13324 | if test x"$ac_file" != x-; then | |
13325 | { | |
13326 | $as_echo "/* $configure_input */" \ | |
13327 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" | |
13328 | } >"$tmp/config.h" \ | |
13329 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
13330 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then | |
13331 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
13332 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
13333 | else | |
13334 | rm -f "$ac_file" | |
13335 | mv "$tmp/config.h" "$ac_file" \ | |
13336 | || as_fn_error "could not create $ac_file" "$LINENO" 5 | |
13337 | fi | |
13338 | else | |
13339 | $as_echo "/* $configure_input */" \ | |
13340 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ | |
13341 | || as_fn_error "could not create -" "$LINENO" 5 | |
13342 | fi | |
13343 | # Compute "$ac_file"'s index in $config_headers. | |
13344 | _am_arg="$ac_file" | |
13345 | _am_stamp_count=1 | |
13346 | for _am_header in $config_headers :; do | |
13347 | case $_am_header in | |
13348 | $_am_arg | $_am_arg:* ) | |
13349 | break ;; | |
13350 | * ) | |
13351 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
13352 | esac | |
13353 | done | |
13354 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
13355 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13356 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
13357 | X"$_am_arg" : 'X\(//\)$' \| \ | |
13358 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
13359 | $as_echo X"$_am_arg" | | |
13360 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13361 | s//\1/ | |
13362 | q | |
13363 | } | |
13364 | /^X\(\/\/\)[^/].*/{ | |
13365 | s//\1/ | |
13366 | q | |
13367 | } | |
13368 | /^X\(\/\/\)$/{ | |
13369 | s//\1/ | |
13370 | q | |
13371 | } | |
13372 | /^X\(\/\).*/{ | |
13373 | s//\1/ | |
13374 | q | |
13375 | } | |
13376 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
13377 | ;; | |
13378 | ||
13379 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
13380 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
13381 | ;; | |
13382 | esac | |
13383 | ||
13384 | ||
13385 | case $ac_file$ac_mode in | |
13386 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
13387 | # Autoconf 2.62 quotes --file arguments for eval, but not when files | |
13388 | # are listed without --file. Let's play safe and only enable the eval | |
13389 | # if we detect the quoting. | |
13390 | case $CONFIG_FILES in | |
13391 | *\'*) eval set x "$CONFIG_FILES" ;; | |
13392 | *) set x $CONFIG_FILES ;; | |
13393 | esac | |
13394 | shift | |
13395 | for mf | |
13396 | do | |
13397 | # Strip MF so we end up with the name of the file. | |
13398 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
13399 | # Check whether this is an Automake generated Makefile or not. | |
13400 | # We used to match only the files named `Makefile.in', but | |
13401 | # some people rename them; so instead we look at the file content. | |
13402 | # Grep'ing the first line is not enough: some people post-process | |
13403 | # each Makefile.in and add a new line on top of each file to say so. | |
13404 | # Grep'ing the whole file is not good either: AIX grep has a line | |
13405 | # limit of 2048, but all sed's we know have understand at least 4000. | |
13406 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
13407 | dirpart=`$as_dirname -- "$mf" || | |
13408 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13409 | X"$mf" : 'X\(//\)[^/]' \| \ | |
13410 | X"$mf" : 'X\(//\)$' \| \ | |
13411 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
13412 | $as_echo X"$mf" | | |
13413 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13414 | s//\1/ | |
13415 | q | |
13416 | } | |
13417 | /^X\(\/\/\)[^/].*/{ | |
13418 | s//\1/ | |
13419 | q | |
13420 | } | |
13421 | /^X\(\/\/\)$/{ | |
13422 | s//\1/ | |
13423 | q | |
13424 | } | |
13425 | /^X\(\/\).*/{ | |
13426 | s//\1/ | |
13427 | q | |
13428 | } | |
13429 | s/.*/./; q'` | |
13430 | else | |
13431 | continue | |
13432 | fi | |
13433 | # Extract the definition of DEPDIR, am__include, and am__quote | |
13434 | # from the Makefile without running `make'. | |
13435 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
13436 | test -z "$DEPDIR" && continue | |
13437 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
13438 | test -z "am__include" && continue | |
13439 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
13440 | # When using ansi2knr, U may be empty or an underscore; expand it | |
13441 | U=`sed -n 's/^U = //p' < "$mf"` | |
13442 | # Find all dependency output files, they are included files with | |
13443 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
13444 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
13445 | # expansion. | |
13446 | for file in `sed -n " | |
13447 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
13448 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
13449 | # Make sure the directory exists. | |
13450 | test -f "$dirpart/$file" && continue | |
13451 | fdir=`$as_dirname -- "$file" || | |
13452 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
13453 | X"$file" : 'X\(//\)[^/]' \| \ | |
13454 | X"$file" : 'X\(//\)$' \| \ | |
13455 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
13456 | $as_echo X"$file" | | |
13457 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
13458 | s//\1/ | |
13459 | q | |
13460 | } | |
13461 | /^X\(\/\/\)[^/].*/{ | |
13462 | s//\1/ | |
13463 | q | |
13464 | } | |
13465 | /^X\(\/\/\)$/{ | |
13466 | s//\1/ | |
13467 | q | |
13468 | } | |
13469 | /^X\(\/\).*/{ | |
13470 | s//\1/ | |
13471 | q | |
13472 | } | |
13473 | s/.*/./; q'` | |
13474 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
13475 | # echo "creating $dirpart/$file" | |
13476 | echo '# dummy' > "$dirpart/$file" | |
13477 | done | |
13478 | done | |
13479 | } | |
13480 | ;; | |
13481 | "libtool":C) | |
13482 | ||
13483 | # See if we are running on zsh, and set the options which allow our | |
13484 | # commands through without removal of \ escapes. | |
13485 | if test -n "${ZSH_VERSION+set}" ; then | |
13486 | setopt NO_GLOB_SUBST | |
13487 | fi | |
13488 | ||
13489 | cfgfile="${ofile}T" | |
13490 | trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
13491 | $RM "$cfgfile" | |
13492 | ||
13493 | cat <<_LT_EOF >> "$cfgfile" | |
13494 | #! $SHELL | |
13495 | ||
13496 | # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
13497 | # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
13498 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
13499 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
13500 | # | |
13501 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
13502 | # 2006, 2007, 2008, 2009 Free Software Foundation, Inc. | |
13503 | # Written by Gordon Matzigkeit, 1996 | |
13504 | # | |
13505 | # This file is part of GNU Libtool. | |
13506 | # | |
13507 | # GNU Libtool is free software; you can redistribute it and/or | |
13508 | # modify it under the terms of the GNU General Public License as | |
13509 | # published by the Free Software Foundation; either version 2 of | |
13510 | # the License, or (at your option) any later version. | |
13511 | # | |
13512 | # As a special exception to the GNU General Public License, | |
13513 | # if you distribute this file as part of a program or library that | |
13514 | # is built using GNU Libtool, you may include this file under the | |
13515 | # same distribution terms that you use for the rest of that program. | |
13516 | # | |
13517 | # GNU Libtool is distributed in the hope that it will be useful, | |
13518 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
13519 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
13520 | # GNU General Public License for more details. | |
13521 | # | |
13522 | # You should have received a copy of the GNU General Public License | |
13523 | # along with GNU Libtool; see the file COPYING. If not, a copy | |
13524 | # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
13525 | # obtained by writing to the Free Software Foundation, Inc., | |
13526 | # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
13527 | ||
13528 | ||
13529 | # The names of the tagged configurations supported by this script. | |
13530 | available_tags="" | |
13531 | ||
13532 | # ### BEGIN LIBTOOL CONFIG | |
13533 | ||
13534 | # Which release of libtool.m4 was used? | |
13535 | macro_version=$macro_version | |
13536 | macro_revision=$macro_revision | |
13537 | ||
13538 | # Whether or not to build shared libraries. | |
13539 | build_libtool_libs=$enable_shared | |
13540 | ||
13541 | # Whether or not to build static libraries. | |
13542 | build_old_libs=$enable_static | |
13543 | ||
13544 | # What type of objects to build. | |
13545 | pic_mode=$pic_mode | |
13546 | ||
13547 | # Whether or not to optimize for fast installation. | |
13548 | fast_install=$enable_fast_install | |
13549 | ||
13550 | # Shell to use when invoking shell scripts. | |
13551 | SHELL=$lt_SHELL | |
13552 | ||
13553 | # An echo program that protects backslashes. | |
13554 | ECHO=$lt_ECHO | |
13555 | ||
13556 | # The host system. | |
13557 | host_alias=$host_alias | |
13558 | host=$host | |
13559 | host_os=$host_os | |
13560 | ||
13561 | # The build system. | |
13562 | build_alias=$build_alias | |
13563 | build=$build | |
13564 | build_os=$build_os | |
13565 | ||
13566 | # A sed program that does not truncate output. | |
13567 | SED=$lt_SED | |
13568 | ||
13569 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
13570 | Xsed="\$SED -e 1s/^X//" | |
13571 | ||
13572 | # A grep program that handles long lines. | |
13573 | GREP=$lt_GREP | |
13574 | ||
13575 | # An ERE matcher. | |
13576 | EGREP=$lt_EGREP | |
13577 | ||
13578 | # A literal string matcher. | |
13579 | FGREP=$lt_FGREP | |
13580 | ||
13581 | # A BSD- or MS-compatible name lister. | |
13582 | NM=$lt_NM | |
13583 | ||
13584 | # Whether we need soft or hard links. | |
13585 | LN_S=$lt_LN_S | |
13586 | ||
13587 | # What is the maximum length of a command? | |
13588 | max_cmd_len=$max_cmd_len | |
13589 | ||
13590 | # Object file suffix (normally "o"). | |
13591 | objext=$ac_objext | |
13592 | ||
13593 | # Executable file suffix (normally ""). | |
13594 | exeext=$exeext | |
13595 | ||
13596 | # whether the shell understands "unset". | |
13597 | lt_unset=$lt_unset | |
13598 | ||
13599 | # turn spaces into newlines. | |
13600 | SP2NL=$lt_lt_SP2NL | |
13601 | ||
13602 | # turn newlines into spaces. | |
13603 | NL2SP=$lt_lt_NL2SP | |
13604 | ||
13605 | # An object symbol dumper. | |
13606 | OBJDUMP=$lt_OBJDUMP | |
13607 | ||
13608 | # Method to check whether dependent libraries are shared objects. | |
13609 | deplibs_check_method=$lt_deplibs_check_method | |
13610 | ||
13611 | # Command to use when deplibs_check_method == "file_magic". | |
13612 | file_magic_cmd=$lt_file_magic_cmd | |
13613 | ||
13614 | # The archiver. | |
13615 | AR=$lt_AR | |
13616 | AR_FLAGS=$lt_AR_FLAGS | |
13617 | ||
13618 | # A symbol stripping program. | |
13619 | STRIP=$lt_STRIP | |
13620 | ||
13621 | # Commands used to install an old-style archive. | |
13622 | RANLIB=$lt_RANLIB | |
13623 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
13624 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
13625 | ||
13626 | # Whether to use a lock for old archive extraction. | |
13627 | lock_old_archive_extraction=$lock_old_archive_extraction | |
13628 | ||
13629 | # A C compiler. | |
13630 | LTCC=$lt_CC | |
13631 | ||
13632 | # LTCC compiler flags. | |
13633 | LTCFLAGS=$lt_CFLAGS | |
13634 | ||
13635 | # Take the output of nm and produce a listing of raw symbols and C names. | |
13636 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
13637 | ||
13638 | # Transform the output of nm in a proper C declaration. | |
13639 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
13640 | ||
13641 | # Transform the output of nm in a C name address pair. | |
13642 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
13643 | ||
13644 | # Transform the output of nm in a C name address pair when lib prefix is needed. | |
13645 | global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
13646 | ||
13647 | # The name of the directory that contains temporary libtool files. | |
13648 | objdir=$objdir | |
13649 | ||
13650 | # Used to examine libraries when file_magic_cmd begins with "file". | |
13651 | MAGIC_CMD=$MAGIC_CMD | |
13652 | ||
13653 | # Must we lock files when doing compilation? | |
13654 | need_locks=$lt_need_locks | |
13655 | ||
13656 | # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
13657 | DSYMUTIL=$lt_DSYMUTIL | |
13658 | ||
13659 | # Tool to change global to local symbols on Mac OS X. | |
13660 | NMEDIT=$lt_NMEDIT | |
13661 | ||
13662 | # Tool to manipulate fat objects and archives on Mac OS X. | |
13663 | LIPO=$lt_LIPO | |
13664 | ||
13665 | # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
13666 | OTOOL=$lt_OTOOL | |
13667 | ||
13668 | # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
13669 | OTOOL64=$lt_OTOOL64 | |
13670 | ||
13671 | # Old archive suffix (normally "a"). | |
13672 | libext=$libext | |
13673 | ||
13674 | # Shared library suffix (normally ".so"). | |
13675 | shrext_cmds=$lt_shrext_cmds | |
13676 | ||
13677 | # The commands to extract the exported symbol list from a shared archive. | |
13678 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
13679 | ||
13680 | # Variables whose values should be saved in libtool wrapper scripts and | |
13681 | # restored at link time. | |
13682 | variables_saved_for_relink=$lt_variables_saved_for_relink | |
13683 | ||
13684 | # Do we need the "lib" prefix for modules? | |
13685 | need_lib_prefix=$need_lib_prefix | |
13686 | ||
13687 | # Do we need a version for libraries? | |
13688 | need_version=$need_version | |
13689 | ||
13690 | # Library versioning type. | |
13691 | version_type=$version_type | |
13692 | ||
13693 | # Shared library runtime path variable. | |
13694 | runpath_var=$runpath_var | |
13695 | ||
13696 | # Shared library path variable. | |
13697 | shlibpath_var=$shlibpath_var | |
13698 | ||
13699 | # Is shlibpath searched before the hard-coded library search path? | |
13700 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
13701 | ||
13702 | # Format of library name prefix. | |
13703 | libname_spec=$lt_libname_spec | |
13704 | ||
13705 | # List of archive names. First name is the real one, the rest are links. | |
13706 | # The last name is the one that the linker finds with -lNAME | |
13707 | library_names_spec=$lt_library_names_spec | |
13708 | ||
13709 | # The coded name of the library, if different from the real name. | |
13710 | soname_spec=$lt_soname_spec | |
13711 | ||
13712 | # Permission mode override for installation of shared libraries. | |
13713 | install_override_mode=$lt_install_override_mode | |
13714 | ||
13715 | # Command to use after installation of a shared archive. | |
13716 | postinstall_cmds=$lt_postinstall_cmds | |
13717 | ||
13718 | # Command to use after uninstallation of a shared archive. | |
13719 | postuninstall_cmds=$lt_postuninstall_cmds | |
13720 | ||
13721 | # Commands used to finish a libtool library installation in a directory. | |
13722 | finish_cmds=$lt_finish_cmds | |
13723 | ||
13724 | # As "finish_cmds", except a single script fragment to be evaled but | |
13725 | # not shown. | |
13726 | finish_eval=$lt_finish_eval | |
13727 | ||
13728 | # Whether we should hardcode library paths into libraries. | |
13729 | hardcode_into_libs=$hardcode_into_libs | |
13730 | ||
13731 | # Compile-time system search path for libraries. | |
13732 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
13733 | ||
13734 | # Run-time system search path for libraries. | |
13735 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
13736 | ||
13737 | # Whether dlopen is supported. | |
13738 | dlopen_support=$enable_dlopen | |
13739 | ||
13740 | # Whether dlopen of programs is supported. | |
13741 | dlopen_self=$enable_dlopen_self | |
13742 | ||
13743 | # Whether dlopen of statically linked programs is supported. | |
13744 | dlopen_self_static=$enable_dlopen_self_static | |
13745 | ||
13746 | # Commands to strip libraries. | |
13747 | old_striplib=$lt_old_striplib | |
13748 | striplib=$lt_striplib | |
13749 | ||
13750 | ||
13751 | # The linker used to build libraries. | |
13752 | LD=$lt_LD | |
13753 | ||
13754 | # How to create reloadable object files. | |
13755 | reload_flag=$lt_reload_flag | |
13756 | reload_cmds=$lt_reload_cmds | |
13757 | ||
13758 | # Commands used to build an old-style archive. | |
13759 | old_archive_cmds=$lt_old_archive_cmds | |
13760 | ||
13761 | # A language specific compiler. | |
13762 | CC=$lt_compiler | |
13763 | ||
13764 | # Is the compiler the GNU compiler? | |
13765 | with_gcc=$GCC | |
13766 | ||
13767 | # Compiler flag to turn off builtin functions. | |
13768 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
13769 | ||
13770 | # How to pass a linker flag through the compiler. | |
13771 | wl=$lt_lt_prog_compiler_wl | |
13772 | ||
13773 | # Additional compiler flags for building library objects. | |
13774 | pic_flag=$lt_lt_prog_compiler_pic | |
13775 | ||
13776 | # Compiler flag to prevent dynamic linking. | |
13777 | link_static_flag=$lt_lt_prog_compiler_static | |
13778 | ||
13779 | # Does compiler simultaneously support -c and -o options? | |
13780 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
13781 | ||
13782 | # Whether or not to add -lc for building shared libraries. | |
13783 | build_libtool_need_lc=$archive_cmds_need_lc | |
13784 | ||
13785 | # Whether or not to disallow shared libs when runtime libs are static. | |
13786 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
13787 | ||
13788 | # Compiler flag to allow reflexive dlopens. | |
13789 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
13790 | ||
13791 | # Compiler flag to generate shared objects directly from archives. | |
13792 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
13793 | ||
13794 | # Whether the compiler copes with passing no objects directly. | |
13795 | compiler_needs_object=$lt_compiler_needs_object | |
13796 | ||
13797 | # Create an old-style archive from a shared archive. | |
13798 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
13799 | ||
13800 | # Create a temporary old-style archive to link instead of a shared archive. | |
13801 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
13802 | ||
13803 | # Commands used to build a shared archive. | |
13804 | archive_cmds=$lt_archive_cmds | |
13805 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
13806 | ||
13807 | # Commands used to build a loadable module if different from building | |
13808 | # a shared archive. | |
13809 | module_cmds=$lt_module_cmds | |
13810 | module_expsym_cmds=$lt_module_expsym_cmds | |
13811 | ||
13812 | # Whether we are building with GNU ld or not. | |
13813 | with_gnu_ld=$lt_with_gnu_ld | |
13814 | ||
13815 | # Flag that allows shared libraries with undefined symbols to be built. | |
13816 | allow_undefined_flag=$lt_allow_undefined_flag | |
13817 | ||
13818 | # Flag that enforces no undefined symbols. | |
13819 | no_undefined_flag=$lt_no_undefined_flag | |
13820 | ||
13821 | # Flag to hardcode \$libdir into a binary during linking. | |
13822 | # This must work even if \$libdir does not exist | |
13823 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
13824 | ||
13825 | # If ld is used when linking, flag to hardcode \$libdir into a binary | |
13826 | # during linking. This must work even if \$libdir does not exist. | |
13827 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
13828 | ||
13829 | # Whether we need a single "-rpath" flag with a separated argument. | |
13830 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
13831 | ||
13832 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
13833 | # DIR into the resulting binary. | |
13834 | hardcode_direct=$hardcode_direct | |
13835 | ||
13836 | # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
13837 | # DIR into the resulting binary and the resulting library dependency is | |
13838 | # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
13839 | # library is relocated. | |
13840 | hardcode_direct_absolute=$hardcode_direct_absolute | |
13841 | ||
13842 | # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
13843 | # into the resulting binary. | |
13844 | hardcode_minus_L=$hardcode_minus_L | |
13845 | ||
13846 | # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
13847 | # into the resulting binary. | |
13848 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
13849 | ||
13850 | # Set to "yes" if building a shared library automatically hardcodes DIR | |
13851 | # into the library and all subsequent libraries and executables linked | |
13852 | # against it. | |
13853 | hardcode_automatic=$hardcode_automatic | |
13854 | ||
13855 | # Set to yes if linker adds runtime paths of dependent libraries | |
13856 | # to runtime path list. | |
13857 | inherit_rpath=$inherit_rpath | |
13858 | ||
13859 | # Whether libtool must link a program against all its dependency libraries. | |
13860 | link_all_deplibs=$link_all_deplibs | |
13861 | ||
13862 | # Fix the shell variable \$srcfile for the compiler. | |
13863 | fix_srcfile_path=$lt_fix_srcfile_path | |
13864 | ||
13865 | # Set to "yes" if exported symbols are required. | |
13866 | always_export_symbols=$always_export_symbols | |
13867 | ||
13868 | # The commands to list exported symbols. | |
13869 | export_symbols_cmds=$lt_export_symbols_cmds | |
13870 | ||
13871 | # Symbols that should not be listed in the preloaded symbols. | |
13872 | exclude_expsyms=$lt_exclude_expsyms | |
13873 | ||
13874 | # Symbols that must always be exported. | |
13875 | include_expsyms=$lt_include_expsyms | |
13876 | ||
13877 | # Commands necessary for linking programs (against libraries) with templates. | |
13878 | prelink_cmds=$lt_prelink_cmds | |
13879 | ||
13880 | # Specify filename containing input files. | |
13881 | file_list_spec=$lt_file_list_spec | |
13882 | ||
13883 | # How to hardcode a shared library path into an executable. | |
13884 | hardcode_action=$hardcode_action | |
13885 | ||
13886 | # ### END LIBTOOL CONFIG | |
13887 | ||
13888 | _LT_EOF | |
13889 | ||
13890 | case $host_os in | |
13891 | aix3*) | |
13892 | cat <<\_LT_EOF >> "$cfgfile" | |
13893 | # AIX sometimes has problems with the GCC collect2 program. For some | |
13894 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
13895 | # vanish in a puff of smoke. | |
13896 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
13897 | COLLECT_NAMES= | |
13898 | export COLLECT_NAMES | |
13899 | fi | |
13900 | _LT_EOF | |
13901 | ;; | |
13902 | esac | |
13903 | ||
13904 | ||
13905 | ltmain="$ac_aux_dir/ltmain.sh" | |
13906 | ||
13907 | ||
13908 | # We use sed instead of cat because bash on DJGPP gets confused if | |
13909 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
13910 | # text mode, it properly converts lines to CR/LF. This bash problem | |
13911 | # is reportedly fixed, but why not run on old versions too? | |
13912 | sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ | |
13913 | || (rm -f "$cfgfile"; exit 1) | |
13914 | ||
13915 | case $xsi_shell in | |
13916 | yes) | |
13917 | cat << \_LT_EOF >> "$cfgfile" | |
13918 | ||
13919 | # func_dirname file append nondir_replacement | |
13920 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
13921 | # otherwise set result to NONDIR_REPLACEMENT. | |
13922 | func_dirname () | |
13923 | { | |
13924 | case ${1} in | |
13925 | */*) func_dirname_result="${1%/*}${2}" ;; | |
13926 | * ) func_dirname_result="${3}" ;; | |
13927 | esac | |
13928 | } | |
13929 | ||
13930 | # func_basename file | |
13931 | func_basename () | |
13932 | { | |
13933 | func_basename_result="${1##*/}" | |
13934 | } | |
13935 | ||
13936 | # func_dirname_and_basename file append nondir_replacement | |
13937 | # perform func_basename and func_dirname in a single function | |
13938 | # call: | |
13939 | # dirname: Compute the dirname of FILE. If nonempty, | |
13940 | # add APPEND to the result, otherwise set result | |
13941 | # to NONDIR_REPLACEMENT. | |
13942 | # value returned in "$func_dirname_result" | |
13943 | # basename: Compute filename of FILE. | |
13944 | # value retuned in "$func_basename_result" | |
13945 | # Implementation must be kept synchronized with func_dirname | |
13946 | # and func_basename. For efficiency, we do not delegate to | |
13947 | # those functions but instead duplicate the functionality here. | |
13948 | func_dirname_and_basename () | |
13949 | { | |
13950 | case ${1} in | |
13951 | */*) func_dirname_result="${1%/*}${2}" ;; | |
13952 | * ) func_dirname_result="${3}" ;; | |
13953 | esac | |
13954 | func_basename_result="${1##*/}" | |
13955 | } | |
13956 | ||
13957 | # func_stripname prefix suffix name | |
13958 | # strip PREFIX and SUFFIX off of NAME. | |
13959 | # PREFIX and SUFFIX must not contain globbing or regex special | |
13960 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
13961 | # dot (in which case that matches only a dot). | |
13962 | func_stripname () | |
13963 | { | |
13964 | # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are | |
13965 | # positional parameters, so assign one to ordinary parameter first. | |
13966 | func_stripname_result=${3} | |
13967 | func_stripname_result=${func_stripname_result#"${1}"} | |
13968 | func_stripname_result=${func_stripname_result%"${2}"} | |
13969 | } | |
13970 | ||
13971 | # func_opt_split | |
13972 | func_opt_split () | |
13973 | { | |
13974 | func_opt_split_opt=${1%%=*} | |
13975 | func_opt_split_arg=${1#*=} | |
13976 | } | |
13977 | ||
13978 | # func_lo2o object | |
13979 | func_lo2o () | |
13980 | { | |
13981 | case ${1} in | |
13982 | *.lo) func_lo2o_result=${1%.lo}.${objext} ;; | |
13983 | *) func_lo2o_result=${1} ;; | |
13984 | esac | |
13985 | } | |
13986 | ||
13987 | # func_xform libobj-or-source | |
13988 | func_xform () | |
13989 | { | |
13990 | func_xform_result=${1%.*}.lo | |
13991 | } | |
13992 | ||
13993 | # func_arith arithmetic-term... | |
13994 | func_arith () | |
13995 | { | |
13996 | func_arith_result=$(( $* )) | |
13997 | } | |
13998 | ||
13999 | # func_len string | |
14000 | # STRING may not start with a hyphen. | |
14001 | func_len () | |
14002 | { | |
14003 | func_len_result=${#1} | |
14004 | } | |
14005 | ||
14006 | _LT_EOF | |
14007 | ;; | |
14008 | *) # Bourne compatible functions. | |
14009 | cat << \_LT_EOF >> "$cfgfile" | |
14010 | ||
14011 | # func_dirname file append nondir_replacement | |
14012 | # Compute the dirname of FILE. If nonempty, add APPEND to the result, | |
14013 | # otherwise set result to NONDIR_REPLACEMENT. | |
14014 | func_dirname () | |
14015 | { | |
14016 | # Extract subdirectory from the argument. | |
14017 | func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` | |
14018 | if test "X$func_dirname_result" = "X${1}"; then | |
14019 | func_dirname_result="${3}" | |
14020 | else | |
14021 | func_dirname_result="$func_dirname_result${2}" | |
14022 | fi | |
14023 | } | |
14024 | ||
14025 | # func_basename file | |
14026 | func_basename () | |
14027 | { | |
14028 | func_basename_result=`$ECHO "${1}" | $SED "$basename"` | |
14029 | } | |
14030 | ||
14031 | ||
14032 | # func_stripname prefix suffix name | |
14033 | # strip PREFIX and SUFFIX off of NAME. | |
14034 | # PREFIX and SUFFIX must not contain globbing or regex special | |
14035 | # characters, hashes, percent signs, but SUFFIX may contain a leading | |
14036 | # dot (in which case that matches only a dot). | |
14037 | # func_strip_suffix prefix name | |
14038 | func_stripname () | |
14039 | { | |
14040 | case ${2} in | |
14041 | .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
14042 | *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
14043 | esac | |
14044 | } | |
14045 | ||
14046 | # sed scripts: | |
14047 | my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' | |
14048 | my_sed_long_arg='1s/^-[^=]*=//' | |
14049 | ||
14050 | # func_opt_split | |
14051 | func_opt_split () | |
14052 | { | |
14053 | func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` | |
14054 | func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` | |
14055 | } | |
14056 | ||
14057 | # func_lo2o object | |
14058 | func_lo2o () | |
14059 | { | |
14060 | func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` | |
14061 | } | |
14062 | ||
14063 | # func_xform libobj-or-source | |
14064 | func_xform () | |
14065 | { | |
14066 | func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` | |
14067 | } | |
14068 | ||
14069 | # func_arith arithmetic-term... | |
14070 | func_arith () | |
14071 | { | |
14072 | func_arith_result=`expr "$@"` | |
14073 | } | |
14074 | ||
14075 | # func_len string | |
14076 | # STRING may not start with a hyphen. | |
14077 | func_len () | |
14078 | { | |
14079 | func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` | |
14080 | } | |
14081 | ||
14082 | _LT_EOF | |
14083 | esac | |
14084 | ||
14085 | case $lt_shell_append in | |
14086 | yes) | |
14087 | cat << \_LT_EOF >> "$cfgfile" | |
14088 | ||
14089 | # func_append var value | |
14090 | # Append VALUE to the end of shell variable VAR. | |
14091 | func_append () | |
14092 | { | |
14093 | eval "$1+=\$2" | |
14094 | } | |
14095 | _LT_EOF | |
14096 | ;; | |
14097 | *) | |
14098 | cat << \_LT_EOF >> "$cfgfile" | |
14099 | ||
14100 | # func_append var value | |
14101 | # Append VALUE to the end of shell variable VAR. | |
14102 | func_append () | |
14103 | { | |
14104 | eval "$1=\$$1\$2" | |
14105 | } | |
14106 | ||
14107 | _LT_EOF | |
14108 | ;; | |
14109 | esac | |
14110 | ||
14111 | ||
14112 | sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ | |
14113 | || (rm -f "$cfgfile"; exit 1) | |
14114 | ||
14115 | mv -f "$cfgfile" "$ofile" || | |
14116 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
14117 | chmod +x "$ofile" | |
14118 | ||
14119 | ;; | |
14120 | "default-1":C) | |
14121 | # Only add multilib support code if we just rebuilt the top-level | |
14122 | # Makefile. | |
14123 | case " $CONFIG_FILES " in | |
14124 | *" Makefile "*) | |
14125 | ac_file=Makefile . ${multi_basedir}/config-ml.in | |
14126 | ;; | |
14127 | esac ;; | |
14128 | "default":C) if test -n "$CONFIG_FILES"; then | |
14129 | if test -n "${with_target_subdir}"; then | |
14130 | # Multilibs need MULTISUBDIR defined correctly in certain makefiles so | |
14131 | # that multilib installs will end up installed in the correct place. | |
14132 | # The testsuite needs it for multilib-aware ABI baseline files. | |
14133 | # To work around this not being passed down from config-ml.in -> | |
14134 | # srcdir/Makefile.am -> srcdir/{src,libsupc++,...}/Makefile.am, manually | |
14135 | # append it here. Only modify Makefiles that have just been created. | |
14136 | # | |
14137 | # Also, get rid of this simulated-VPATH thing that automake does. | |
14138 | cat > vpsed << \_EOF | |
14139 | s!`test -f '$<' || echo '$(srcdir)/'`!! | |
14140 | _EOF | |
14141 | for i in $SUBDIRS; do | |
14142 | case $CONFIG_FILES in | |
14143 | *${i}/Makefile*) | |
14144 | #echo "Adding MULTISUBDIR to $i/Makefile" | |
14145 | sed -f vpsed $i/Makefile > tmp | |
14146 | grep '^MULTISUBDIR =' Makefile >> tmp | |
14147 | mv tmp $i/Makefile | |
14148 | ;; | |
14149 | esac | |
14150 | done | |
14151 | rm vpsed | |
14152 | fi | |
14153 | fi | |
14154 | ;; | |
14155 | ||
14156 | esac | |
14157 | done # for ac_tag | |
14158 | ||
14159 | ||
14160 | as_fn_exit 0 | |
14161 | _ACEOF | |
14162 | ac_clean_files=$ac_clean_files_save | |
14163 | ||
14164 | test $ac_write_fail = 0 || | |
14165 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
14166 | ||
14167 | ||
14168 | # configure is writing to config.log, and then calls config.status. | |
14169 | # config.status does its own redirection, appending to config.log. | |
14170 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
14171 | # by configure, so config.status won't be able to write to it; its | |
14172 | # output is simply discarded. So we exec the FD to /dev/null, | |
14173 | # effectively closing config.log, so it can be properly (re)opened and | |
14174 | # appended to by config.status. When coming back to configure, we | |
14175 | # need to make the FD available again. | |
14176 | if test "$no_create" != yes; then | |
14177 | ac_cs_success=: | |
14178 | ac_config_status_args= | |
14179 | test "$silent" = yes && | |
14180 | ac_config_status_args="$ac_config_status_args --quiet" | |
14181 | exec 5>/dev/null | |
14182 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
14183 | exec 5>>config.log | |
14184 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
14185 | # would make configure fail if this is the last instruction. | |
14186 | $ac_cs_success || as_fn_exit $? | |
14187 | fi | |
14188 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
14189 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
14190 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
14191 | fi | |
14192 |