Mercurial > hg > sv-dependency-builds
comparison src/portaudio_20161030/bindings/cpp/configure @ 55:284acf908dcd
Add source for PortAudio stable v190600_20161030
author | Chris Cannam |
---|---|
date | Tue, 03 Jan 2017 13:44:07 +0000 |
parents | src/portaudio/bindings/cpp/configure@e13257ea84a4 |
children |
comparison
equal
deleted
inserted
replaced
54:5f67a29f0fc7 | 55:284acf908dcd |
---|---|
1 #! /bin/sh | |
2 # Guess values for system-dependent variables and create Makefiles. | |
3 # Generated by GNU Autoconf 2.69 for PortAudioCpp 12. | |
4 # | |
5 # | |
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. | |
7 # | |
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 as_myself= | |
91 case $0 in #(( | |
92 *[\\/]* ) as_myself=$0 ;; | |
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
94 for as_dir in $PATH | |
95 do | |
96 IFS=$as_save_IFS | |
97 test -z "$as_dir" && as_dir=. | |
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
99 done | |
100 IFS=$as_save_IFS | |
101 | |
102 ;; | |
103 esac | |
104 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
105 # in which case we are not to be found in the path. | |
106 if test "x$as_myself" = x; then | |
107 as_myself=$0 | |
108 fi | |
109 if test ! -f "$as_myself"; then | |
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
111 exit 1 | |
112 fi | |
113 | |
114 # Unset variables that we do not need and which cause bugs (e.g. in | |
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
116 # suppresses any "Segmentation fault" message there. '((' could | |
117 # trigger a bug in pdksh 5.2.14. | |
118 for as_var in BASH_ENV ENV MAIL MAILPATH | |
119 do eval test x\${$as_var+set} = xset \ | |
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
121 done | |
122 PS1='$ ' | |
123 PS2='> ' | |
124 PS4='+ ' | |
125 | |
126 # NLS nuisances. | |
127 LC_ALL=C | |
128 export LC_ALL | |
129 LANGUAGE=C | |
130 export LANGUAGE | |
131 | |
132 # CDPATH. | |
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
134 | |
135 # Use a proper internal environment variable to ensure we don't fall | |
136 # into an infinite loop, continuously re-executing ourselves. | |
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then | |
138 _as_can_reexec=no; export _as_can_reexec; | |
139 # We cannot yet assume a decent shell, so we have to provide a | |
140 # neutralization value for shells without unset; and this also | |
141 # works around shells that cannot unset nonexistent variables. | |
142 # Preserve -v and -x to the replacement shell. | |
143 BASH_ENV=/dev/null | |
144 ENV=/dev/null | |
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
146 case $- in # (((( | |
147 *v*x* | *x*v* ) as_opts=-vx ;; | |
148 *v* ) as_opts=-v ;; | |
149 *x* ) as_opts=-x ;; | |
150 * ) as_opts= ;; | |
151 esac | |
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
153 # Admittedly, this is quite paranoid, since all the known shells bail | |
154 # out after a failed `exec'. | |
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
156 as_fn_exit 255 | |
157 fi | |
158 # We don't want this to propagate to other subprocesses. | |
159 { _as_can_reexec=; unset _as_can_reexec;} | |
160 if test "x$CONFIG_SHELL" = x; then | |
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : | |
162 emulate sh | |
163 NULLCMD=: | |
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which | |
165 # is contrary to our usage. Disable this feature. | |
166 alias -g '\${1+\"\$@\"}'='\"\$@\"' | |
167 setopt NO_GLOB_SUBST | |
168 else | |
169 case \`(set -o) 2>/dev/null\` in #( | |
170 *posix*) : | |
171 set -o posix ;; #( | |
172 *) : | |
173 ;; | |
174 esac | |
175 fi | |
176 " | |
177 as_required="as_fn_return () { (exit \$1); } | |
178 as_fn_success () { as_fn_return 0; } | |
179 as_fn_failure () { as_fn_return 1; } | |
180 as_fn_ret_success () { return 0; } | |
181 as_fn_ret_failure () { return 1; } | |
182 | |
183 exitcode=0 | |
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
189 | |
190 else | |
191 exitcode=1; echo positional parameters were not saved. | |
192 fi | |
193 test x\$exitcode = x0 || exit 1 | |
194 test -x / || exit 1" | |
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO | |
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO | |
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && | |
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 | |
199 | |
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( | |
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO | |
204 PATH=/empty FPATH=/empty; export PATH FPATH | |
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ | |
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 | |
207 test \$(( 1 + 1 )) = 2 || exit 1" | |
208 if (eval "$as_required") 2>/dev/null; then : | |
209 as_have_required=yes | |
210 else | |
211 as_have_required=no | |
212 fi | |
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
214 | |
215 else | |
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
217 as_found=false | |
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
219 do | |
220 IFS=$as_save_IFS | |
221 test -z "$as_dir" && as_dir=. | |
222 as_found=: | |
223 case $as_dir in #( | |
224 /*) | |
225 for as_base in sh bash ksh sh5; do | |
226 # Try only shells that exist, to save several forks. | |
227 as_shell=$as_dir/$as_base | |
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
230 CONFIG_SHELL=$as_shell as_have_required=yes | |
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : | |
232 break 2 | |
233 fi | |
234 fi | |
235 done;; | |
236 esac | |
237 as_found=false | |
238 done | |
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && | |
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : | |
241 CONFIG_SHELL=$SHELL as_have_required=yes | |
242 fi; } | |
243 IFS=$as_save_IFS | |
244 | |
245 | |
246 if test "x$CONFIG_SHELL" != x; then : | |
247 export CONFIG_SHELL | |
248 # We cannot yet assume a decent shell, so we have to provide a | |
249 # neutralization value for shells without unset; and this also | |
250 # works around shells that cannot unset nonexistent variables. | |
251 # Preserve -v and -x to the replacement shell. | |
252 BASH_ENV=/dev/null | |
253 ENV=/dev/null | |
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
255 case $- in # (((( | |
256 *v*x* | *x*v* ) as_opts=-vx ;; | |
257 *v* ) as_opts=-v ;; | |
258 *x* ) as_opts=-x ;; | |
259 * ) as_opts= ;; | |
260 esac | |
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} | |
262 # Admittedly, this is quite paranoid, since all the known shells bail | |
263 # out after a failed `exec'. | |
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 | |
265 exit 255 | |
266 fi | |
267 | |
268 if test x$as_have_required = xno; then : | |
269 $as_echo "$0: This script requires a shell more modern than all" | |
270 $as_echo "$0: the shells that I found on your system." | |
271 if test x${ZSH_VERSION+set} = xset ; then | |
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" | |
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." | |
274 else | |
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, | |
276 $0: including any error possibly output before this | |
277 $0: message. Then install a modern shell, or manually run | |
278 $0: the script under such a shell if you do have one." | |
279 fi | |
280 exit 1 | |
281 fi | |
282 fi | |
283 fi | |
284 SHELL=${CONFIG_SHELL-/bin/sh} | |
285 export SHELL | |
286 # Unset more variables known to interfere with behavior of common tools. | |
287 CLICOLOR_FORCE= GREP_OPTIONS= | |
288 unset CLICOLOR_FORCE GREP_OPTIONS | |
289 | |
290 ## --------------------- ## | |
291 ## M4sh Shell Functions. ## | |
292 ## --------------------- ## | |
293 # as_fn_unset VAR | |
294 # --------------- | |
295 # Portably unset VAR. | |
296 as_fn_unset () | |
297 { | |
298 { eval $1=; unset $1;} | |
299 } | |
300 as_unset=as_fn_unset | |
301 | |
302 # as_fn_set_status STATUS | |
303 # ----------------------- | |
304 # Set $? to STATUS, without forking. | |
305 as_fn_set_status () | |
306 { | |
307 return $1 | |
308 } # as_fn_set_status | |
309 | |
310 # as_fn_exit STATUS | |
311 # ----------------- | |
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
313 as_fn_exit () | |
314 { | |
315 set +e | |
316 as_fn_set_status $1 | |
317 exit $1 | |
318 } # as_fn_exit | |
319 | |
320 # as_fn_mkdir_p | |
321 # ------------- | |
322 # Create "$as_dir" as a directory, including parents if necessary. | |
323 as_fn_mkdir_p () | |
324 { | |
325 | |
326 case $as_dir in #( | |
327 -*) as_dir=./$as_dir;; | |
328 esac | |
329 test -d "$as_dir" || eval $as_mkdir_p || { | |
330 as_dirs= | |
331 while :; do | |
332 case $as_dir in #( | |
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
334 *) as_qdir=$as_dir;; | |
335 esac | |
336 as_dirs="'$as_qdir' $as_dirs" | |
337 as_dir=`$as_dirname -- "$as_dir" || | |
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
339 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
340 X"$as_dir" : 'X\(//\)$' \| \ | |
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
342 $as_echo X"$as_dir" | | |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
344 s//\1/ | |
345 q | |
346 } | |
347 /^X\(\/\/\)[^/].*/{ | |
348 s//\1/ | |
349 q | |
350 } | |
351 /^X\(\/\/\)$/{ | |
352 s//\1/ | |
353 q | |
354 } | |
355 /^X\(\/\).*/{ | |
356 s//\1/ | |
357 q | |
358 } | |
359 s/.*/./; q'` | |
360 test -d "$as_dir" && break | |
361 done | |
362 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
364 | |
365 | |
366 } # as_fn_mkdir_p | |
367 | |
368 # as_fn_executable_p FILE | |
369 # ----------------------- | |
370 # Test if FILE is an executable regular file. | |
371 as_fn_executable_p () | |
372 { | |
373 test -f "$1" && test -x "$1" | |
374 } # as_fn_executable_p | |
375 # as_fn_append VAR VALUE | |
376 # ---------------------- | |
377 # Append the text in VALUE to the end of the definition contained in VAR. Take | |
378 # advantage of any shell optimizations that allow amortized linear growth over | |
379 # repeated appends, instead of the typical quadratic growth present in naive | |
380 # implementations. | |
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
382 eval 'as_fn_append () | |
383 { | |
384 eval $1+=\$2 | |
385 }' | |
386 else | |
387 as_fn_append () | |
388 { | |
389 eval $1=\$$1\$2 | |
390 } | |
391 fi # as_fn_append | |
392 | |
393 # as_fn_arith ARG... | |
394 # ------------------ | |
395 # Perform arithmetic evaluation on the ARGs, and store the result in the | |
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
397 # must be portable across $(()) and expr. | |
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
399 eval 'as_fn_arith () | |
400 { | |
401 as_val=$(( $* )) | |
402 }' | |
403 else | |
404 as_fn_arith () | |
405 { | |
406 as_val=`expr "$@" || test $? -eq 1` | |
407 } | |
408 fi # as_fn_arith | |
409 | |
410 | |
411 # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
412 # ---------------------------------------- | |
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
415 # script with STATUS, using 1 if that was 0. | |
416 as_fn_error () | |
417 { | |
418 as_status=$1; test $as_status -eq 0 && as_status=1 | |
419 if test "$4"; then | |
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
422 fi | |
423 $as_echo "$as_me: error: $2" >&2 | |
424 as_fn_exit $as_status | |
425 } # as_fn_error | |
426 | |
427 if expr a : '\(a\)' >/dev/null 2>&1 && | |
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
429 as_expr=expr | |
430 else | |
431 as_expr=false | |
432 fi | |
433 | |
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
435 as_basename=basename | |
436 else | |
437 as_basename=false | |
438 fi | |
439 | |
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
441 as_dirname=dirname | |
442 else | |
443 as_dirname=false | |
444 fi | |
445 | |
446 as_me=`$as_basename -- "$0" || | |
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
448 X"$0" : 'X\(//\)$' \| \ | |
449 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
450 $as_echo X/"$0" | | |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
452 s//\1/ | |
453 q | |
454 } | |
455 /^X\/\(\/\/\)$/{ | |
456 s//\1/ | |
457 q | |
458 } | |
459 /^X\/\(\/\).*/{ | |
460 s//\1/ | |
461 q | |
462 } | |
463 s/.*/./; q'` | |
464 | |
465 # Avoid depending upon Character Ranges. | |
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
469 as_cr_digits='0123456789' | |
470 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
471 | |
472 | |
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO | |
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO | |
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && | |
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { | |
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) | |
478 sed -n ' | |
479 p | |
480 /[$]LINENO/= | |
481 ' <$as_myself | | |
482 sed ' | |
483 s/[$]LINENO.*/&-/ | |
484 t lineno | |
485 b | |
486 :lineno | |
487 N | |
488 :loop | |
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
490 t loop | |
491 s/-\n.*// | |
492 ' >$as_me.lineno && | |
493 chmod +x "$as_me.lineno" || | |
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } | |
495 | |
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have | |
497 # already done that, so ensure we don't try to do so again and fall | |
498 # in an infinite loop. This has already happened in practice. | |
499 _as_can_reexec=no; export _as_can_reexec | |
500 # Don't try to exec as it changes $[0], causing all sort of problems | |
501 # (the dirname of $[0] is not the place where we might find the | |
502 # original and so on. Autoconf is especially sensitive to this). | |
503 . "./$as_me.lineno" | |
504 # Exit status is that of the last command. | |
505 exit | |
506 } | |
507 | |
508 ECHO_C= ECHO_N= ECHO_T= | |
509 case `echo -n x` in #((((( | |
510 -n*) | |
511 case `echo 'xy\c'` in | |
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
513 xy) ECHO_C='\c';; | |
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
515 ECHO_T=' ';; | |
516 esac;; | |
517 *) | |
518 ECHO_N='-n';; | |
519 esac | |
520 | |
521 rm -f conf$$ conf$$.exe conf$$.file | |
522 if test -d conf$$.dir; then | |
523 rm -f conf$$.dir/conf$$.file | |
524 else | |
525 rm -f conf$$.dir | |
526 mkdir conf$$.dir 2>/dev/null | |
527 fi | |
528 if (echo >conf$$.file) 2>/dev/null; then | |
529 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
530 as_ln_s='ln -s' | |
531 # ... but there are two gotchas: | |
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
534 # In both cases, we have to default to `cp -pR'. | |
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
536 as_ln_s='cp -pR' | |
537 elif ln conf$$.file conf$$ 2>/dev/null; then | |
538 as_ln_s=ln | |
539 else | |
540 as_ln_s='cp -pR' | |
541 fi | |
542 else | |
543 as_ln_s='cp -pR' | |
544 fi | |
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
546 rmdir conf$$.dir 2>/dev/null | |
547 | |
548 if mkdir -p . 2>/dev/null; then | |
549 as_mkdir_p='mkdir -p "$as_dir"' | |
550 else | |
551 test -d ./-p && rmdir ./-p | |
552 as_mkdir_p=false | |
553 fi | |
554 | |
555 as_test_x='test -x' | |
556 as_executable_p=as_fn_executable_p | |
557 | |
558 # Sed expression to map a string onto a valid CPP name. | |
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
560 | |
561 # Sed expression to map a string onto a valid variable name. | |
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
563 | |
564 SHELL=${CONFIG_SHELL-/bin/sh} | |
565 | |
566 | |
567 test -n "$DJDIR" || exec 7<&0 </dev/null | |
568 exec 6>&1 | |
569 | |
570 # Name of the host. | |
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, | |
572 # so uname gets run too. | |
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
574 | |
575 # | |
576 # Initializations. | |
577 # | |
578 ac_default_prefix=/usr/local | |
579 ac_clean_files= | |
580 ac_config_libobj_dir=. | |
581 LIBOBJS= | |
582 cross_compiling=no | |
583 subdirs= | |
584 MFLAGS= | |
585 MAKEFLAGS= | |
586 | |
587 # Identity of this package. | |
588 PACKAGE_NAME='PortAudioCpp' | |
589 PACKAGE_TARNAME='portaudiocpp' | |
590 PACKAGE_VERSION='12' | |
591 PACKAGE_STRING='PortAudioCpp 12' | |
592 PACKAGE_BUGREPORT='' | |
593 PACKAGE_URL='' | |
594 | |
595 ac_unique_file="include/portaudiocpp/PortAudioCpp.hxx" | |
596 # Factoring default headers for most tests. | |
597 ac_includes_default="\ | |
598 #include <stdio.h> | |
599 #ifdef HAVE_SYS_TYPES_H | |
600 # include <sys/types.h> | |
601 #endif | |
602 #ifdef HAVE_SYS_STAT_H | |
603 # include <sys/stat.h> | |
604 #endif | |
605 #ifdef STDC_HEADERS | |
606 # include <stdlib.h> | |
607 # include <stddef.h> | |
608 #else | |
609 # ifdef HAVE_STDLIB_H | |
610 # include <stdlib.h> | |
611 # endif | |
612 #endif | |
613 #ifdef HAVE_STRING_H | |
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
615 # include <memory.h> | |
616 # endif | |
617 # include <string.h> | |
618 #endif | |
619 #ifdef HAVE_STRINGS_H | |
620 # include <strings.h> | |
621 #endif | |
622 #ifdef HAVE_INTTYPES_H | |
623 # include <inttypes.h> | |
624 #endif | |
625 #ifdef HAVE_STDINT_H | |
626 # include <stdint.h> | |
627 #endif | |
628 #ifdef HAVE_UNISTD_H | |
629 # include <unistd.h> | |
630 #endif" | |
631 | |
632 ac_subst_vars='am__EXEEXT_FALSE | |
633 am__EXEEXT_TRUE | |
634 LTLIBOBJS | |
635 LIBOBJS | |
636 LT_VERSION_INFO | |
637 PORTAUDIO_ROOT | |
638 DEFAULT_INCLUDES | |
639 CXXCPP | |
640 CPP | |
641 OTOOL64 | |
642 OTOOL | |
643 LIPO | |
644 NMEDIT | |
645 DSYMUTIL | |
646 MANIFEST_TOOL | |
647 RANLIB | |
648 ac_ct_AR | |
649 AR | |
650 LN_S | |
651 NM | |
652 ac_ct_DUMPBIN | |
653 DUMPBIN | |
654 LD | |
655 FGREP | |
656 EGREP | |
657 GREP | |
658 SED | |
659 LIBTOOL | |
660 OBJDUMP | |
661 DLLTOOL | |
662 AS | |
663 host_os | |
664 host_vendor | |
665 host_cpu | |
666 host | |
667 build_os | |
668 build_vendor | |
669 build_cpu | |
670 build | |
671 am__fastdepCXX_FALSE | |
672 am__fastdepCXX_TRUE | |
673 CXXDEPMODE | |
674 ac_ct_CXX | |
675 CXXFLAGS | |
676 CXX | |
677 am__fastdepCC_FALSE | |
678 am__fastdepCC_TRUE | |
679 CCDEPMODE | |
680 am__nodep | |
681 AMDEPBACKSLASH | |
682 AMDEP_FALSE | |
683 AMDEP_TRUE | |
684 am__quote | |
685 am__include | |
686 DEPDIR | |
687 OBJEXT | |
688 EXEEXT | |
689 ac_ct_CC | |
690 CPPFLAGS | |
691 LDFLAGS | |
692 CFLAGS | |
693 CC | |
694 MAINT | |
695 MAINTAINER_MODE_FALSE | |
696 MAINTAINER_MODE_TRUE | |
697 AM_BACKSLASH | |
698 AM_DEFAULT_VERBOSITY | |
699 AM_DEFAULT_V | |
700 AM_V | |
701 am__untar | |
702 am__tar | |
703 AMTAR | |
704 am__leading_dot | |
705 SET_MAKE | |
706 AWK | |
707 mkdir_p | |
708 MKDIR_P | |
709 INSTALL_STRIP_PROGRAM | |
710 STRIP | |
711 install_sh | |
712 MAKEINFO | |
713 AUTOHEADER | |
714 AUTOMAKE | |
715 AUTOCONF | |
716 ACLOCAL | |
717 VERSION | |
718 PACKAGE | |
719 CYGPATH_W | |
720 am__isrc | |
721 INSTALL_DATA | |
722 INSTALL_SCRIPT | |
723 INSTALL_PROGRAM | |
724 target_alias | |
725 host_alias | |
726 build_alias | |
727 LIBS | |
728 ECHO_T | |
729 ECHO_N | |
730 ECHO_C | |
731 DEFS | |
732 mandir | |
733 localedir | |
734 libdir | |
735 psdir | |
736 pdfdir | |
737 dvidir | |
738 htmldir | |
739 infodir | |
740 docdir | |
741 oldincludedir | |
742 includedir | |
743 localstatedir | |
744 sharedstatedir | |
745 sysconfdir | |
746 datadir | |
747 datarootdir | |
748 libexecdir | |
749 sbindir | |
750 bindir | |
751 program_transform_name | |
752 prefix | |
753 exec_prefix | |
754 PACKAGE_URL | |
755 PACKAGE_BUGREPORT | |
756 PACKAGE_STRING | |
757 PACKAGE_VERSION | |
758 PACKAGE_TARNAME | |
759 PACKAGE_NAME | |
760 PATH_SEPARATOR | |
761 SHELL' | |
762 ac_subst_files='' | |
763 ac_user_opts=' | |
764 enable_option_checking | |
765 enable_silent_rules | |
766 enable_maintainer_mode | |
767 enable_dependency_tracking | |
768 enable_shared | |
769 enable_static | |
770 with_pic | |
771 enable_fast_install | |
772 with_gnu_ld | |
773 with_sysroot | |
774 enable_libtool_lock | |
775 ' | |
776 ac_precious_vars='build_alias | |
777 host_alias | |
778 target_alias | |
779 CC | |
780 CFLAGS | |
781 LDFLAGS | |
782 LIBS | |
783 CPPFLAGS | |
784 CXX | |
785 CXXFLAGS | |
786 CCC | |
787 CPP | |
788 CXXCPP' | |
789 | |
790 | |
791 # Initialize some variables set by options. | |
792 ac_init_help= | |
793 ac_init_version=false | |
794 ac_unrecognized_opts= | |
795 ac_unrecognized_sep= | |
796 # The variables have the same names as the options, with | |
797 # dashes changed to underlines. | |
798 cache_file=/dev/null | |
799 exec_prefix=NONE | |
800 no_create= | |
801 no_recursion= | |
802 prefix=NONE | |
803 program_prefix=NONE | |
804 program_suffix=NONE | |
805 program_transform_name=s,x,x, | |
806 silent= | |
807 site= | |
808 srcdir= | |
809 verbose= | |
810 x_includes=NONE | |
811 x_libraries=NONE | |
812 | |
813 # Installation directory options. | |
814 # These are left unexpanded so users can "make install exec_prefix=/foo" | |
815 # and all the variables that are supposed to be based on exec_prefix | |
816 # by default will actually change. | |
817 # Use braces instead of parens because sh, perl, etc. also accept them. | |
818 # (The list follows the same order as the GNU Coding Standards.) | |
819 bindir='${exec_prefix}/bin' | |
820 sbindir='${exec_prefix}/sbin' | |
821 libexecdir='${exec_prefix}/libexec' | |
822 datarootdir='${prefix}/share' | |
823 datadir='${datarootdir}' | |
824 sysconfdir='${prefix}/etc' | |
825 sharedstatedir='${prefix}/com' | |
826 localstatedir='${prefix}/var' | |
827 includedir='${prefix}/include' | |
828 oldincludedir='/usr/include' | |
829 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
830 infodir='${datarootdir}/info' | |
831 htmldir='${docdir}' | |
832 dvidir='${docdir}' | |
833 pdfdir='${docdir}' | |
834 psdir='${docdir}' | |
835 libdir='${exec_prefix}/lib' | |
836 localedir='${datarootdir}/locale' | |
837 mandir='${datarootdir}/man' | |
838 | |
839 ac_prev= | |
840 ac_dashdash= | |
841 for ac_option | |
842 do | |
843 # If the previous option needs an argument, assign it. | |
844 if test -n "$ac_prev"; then | |
845 eval $ac_prev=\$ac_option | |
846 ac_prev= | |
847 continue | |
848 fi | |
849 | |
850 case $ac_option in | |
851 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
852 *=) ac_optarg= ;; | |
853 *) ac_optarg=yes ;; | |
854 esac | |
855 | |
856 # Accept the important Cygnus configure options, so we can diagnose typos. | |
857 | |
858 case $ac_dashdash$ac_option in | |
859 --) | |
860 ac_dashdash=yes ;; | |
861 | |
862 -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
863 ac_prev=bindir ;; | |
864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
865 bindir=$ac_optarg ;; | |
866 | |
867 -build | --build | --buil | --bui | --bu) | |
868 ac_prev=build_alias ;; | |
869 -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
870 build_alias=$ac_optarg ;; | |
871 | |
872 -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
874 ac_prev=cache_file ;; | |
875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
877 cache_file=$ac_optarg ;; | |
878 | |
879 --config-cache | -C) | |
880 cache_file=config.cache ;; | |
881 | |
882 -datadir | --datadir | --datadi | --datad) | |
883 ac_prev=datadir ;; | |
884 -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
885 datadir=$ac_optarg ;; | |
886 | |
887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
888 | --dataroo | --dataro | --datar) | |
889 ac_prev=datarootdir ;; | |
890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
892 datarootdir=$ac_optarg ;; | |
893 | |
894 -disable-* | --disable-*) | |
895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
896 # Reject names that are not valid shell variable names. | |
897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
898 as_fn_error $? "invalid feature name: $ac_useropt" | |
899 ac_useropt_orig=$ac_useropt | |
900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
901 case $ac_user_opts in | |
902 *" | |
903 "enable_$ac_useropt" | |
904 "*) ;; | |
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
906 ac_unrecognized_sep=', ';; | |
907 esac | |
908 eval enable_$ac_useropt=no ;; | |
909 | |
910 -docdir | --docdir | --docdi | --doc | --do) | |
911 ac_prev=docdir ;; | |
912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
913 docdir=$ac_optarg ;; | |
914 | |
915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
916 ac_prev=dvidir ;; | |
917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
918 dvidir=$ac_optarg ;; | |
919 | |
920 -enable-* | --enable-*) | |
921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
922 # Reject names that are not valid shell variable names. | |
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
924 as_fn_error $? "invalid feature name: $ac_useropt" | |
925 ac_useropt_orig=$ac_useropt | |
926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
927 case $ac_user_opts in | |
928 *" | |
929 "enable_$ac_useropt" | |
930 "*) ;; | |
931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
932 ac_unrecognized_sep=', ';; | |
933 esac | |
934 eval enable_$ac_useropt=\$ac_optarg ;; | |
935 | |
936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
938 | --exec | --exe | --ex) | |
939 ac_prev=exec_prefix ;; | |
940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
942 | --exec=* | --exe=* | --ex=*) | |
943 exec_prefix=$ac_optarg ;; | |
944 | |
945 -gas | --gas | --ga | --g) | |
946 # Obsolete; use --with-gas. | |
947 with_gas=yes ;; | |
948 | |
949 -help | --help | --hel | --he | -h) | |
950 ac_init_help=long ;; | |
951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
952 ac_init_help=recursive ;; | |
953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
954 ac_init_help=short ;; | |
955 | |
956 -host | --host | --hos | --ho) | |
957 ac_prev=host_alias ;; | |
958 -host=* | --host=* | --hos=* | --ho=*) | |
959 host_alias=$ac_optarg ;; | |
960 | |
961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
962 ac_prev=htmldir ;; | |
963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
964 | --ht=*) | |
965 htmldir=$ac_optarg ;; | |
966 | |
967 -includedir | --includedir | --includedi | --included | --include \ | |
968 | --includ | --inclu | --incl | --inc) | |
969 ac_prev=includedir ;; | |
970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
971 | --includ=* | --inclu=* | --incl=* | --inc=*) | |
972 includedir=$ac_optarg ;; | |
973 | |
974 -infodir | --infodir | --infodi | --infod | --info | --inf) | |
975 ac_prev=infodir ;; | |
976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
977 infodir=$ac_optarg ;; | |
978 | |
979 -libdir | --libdir | --libdi | --libd) | |
980 ac_prev=libdir ;; | |
981 -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
982 libdir=$ac_optarg ;; | |
983 | |
984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
985 | --libexe | --libex | --libe) | |
986 ac_prev=libexecdir ;; | |
987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
988 | --libexe=* | --libex=* | --libe=*) | |
989 libexecdir=$ac_optarg ;; | |
990 | |
991 -localedir | --localedir | --localedi | --localed | --locale) | |
992 ac_prev=localedir ;; | |
993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
994 localedir=$ac_optarg ;; | |
995 | |
996 -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
997 | --localstate | --localstat | --localsta | --localst | --locals) | |
998 ac_prev=localstatedir ;; | |
999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1001 localstatedir=$ac_optarg ;; | |
1002 | |
1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1004 ac_prev=mandir ;; | |
1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1006 mandir=$ac_optarg ;; | |
1007 | |
1008 -nfp | --nfp | --nf) | |
1009 # Obsolete; use --without-fp. | |
1010 with_fp=no ;; | |
1011 | |
1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1013 | --no-cr | --no-c | -n) | |
1014 no_create=yes ;; | |
1015 | |
1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1018 no_recursion=yes ;; | |
1019 | |
1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1022 | --oldin | --oldi | --old | --ol | --o) | |
1023 ac_prev=oldincludedir ;; | |
1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1027 oldincludedir=$ac_optarg ;; | |
1028 | |
1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1030 ac_prev=prefix ;; | |
1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1032 prefix=$ac_optarg ;; | |
1033 | |
1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1035 | --program-pre | --program-pr | --program-p) | |
1036 ac_prev=program_prefix ;; | |
1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1039 program_prefix=$ac_optarg ;; | |
1040 | |
1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1042 | --program-suf | --program-su | --program-s) | |
1043 ac_prev=program_suffix ;; | |
1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1046 program_suffix=$ac_optarg ;; | |
1047 | |
1048 -program-transform-name | --program-transform-name \ | |
1049 | --program-transform-nam | --program-transform-na \ | |
1050 | --program-transform-n | --program-transform- \ | |
1051 | --program-transform | --program-transfor \ | |
1052 | --program-transfo | --program-transf \ | |
1053 | --program-trans | --program-tran \ | |
1054 | --progr-tra | --program-tr | --program-t) | |
1055 ac_prev=program_transform_name ;; | |
1056 -program-transform-name=* | --program-transform-name=* \ | |
1057 | --program-transform-nam=* | --program-transform-na=* \ | |
1058 | --program-transform-n=* | --program-transform-=* \ | |
1059 | --program-transform=* | --program-transfor=* \ | |
1060 | --program-transfo=* | --program-transf=* \ | |
1061 | --program-trans=* | --program-tran=* \ | |
1062 | --progr-tra=* | --program-tr=* | --program-t=*) | |
1063 program_transform_name=$ac_optarg ;; | |
1064 | |
1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1066 ac_prev=pdfdir ;; | |
1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1068 pdfdir=$ac_optarg ;; | |
1069 | |
1070 -psdir | --psdir | --psdi | --psd | --ps) | |
1071 ac_prev=psdir ;; | |
1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1073 psdir=$ac_optarg ;; | |
1074 | |
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1076 | -silent | --silent | --silen | --sile | --sil) | |
1077 silent=yes ;; | |
1078 | |
1079 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1080 ac_prev=sbindir ;; | |
1081 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1082 | --sbi=* | --sb=*) | |
1083 sbindir=$ac_optarg ;; | |
1084 | |
1085 -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1086 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1087 | --sharedst | --shareds | --shared | --share | --shar \ | |
1088 | --sha | --sh) | |
1089 ac_prev=sharedstatedir ;; | |
1090 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1091 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1092 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1093 | --sha=* | --sh=*) | |
1094 sharedstatedir=$ac_optarg ;; | |
1095 | |
1096 -site | --site | --sit) | |
1097 ac_prev=site ;; | |
1098 -site=* | --site=* | --sit=*) | |
1099 site=$ac_optarg ;; | |
1100 | |
1101 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1102 ac_prev=srcdir ;; | |
1103 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1104 srcdir=$ac_optarg ;; | |
1105 | |
1106 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1107 | --syscon | --sysco | --sysc | --sys | --sy) | |
1108 ac_prev=sysconfdir ;; | |
1109 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1110 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1111 sysconfdir=$ac_optarg ;; | |
1112 | |
1113 -target | --target | --targe | --targ | --tar | --ta | --t) | |
1114 ac_prev=target_alias ;; | |
1115 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1116 target_alias=$ac_optarg ;; | |
1117 | |
1118 -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1119 verbose=yes ;; | |
1120 | |
1121 -version | --version | --versio | --versi | --vers | -V) | |
1122 ac_init_version=: ;; | |
1123 | |
1124 -with-* | --with-*) | |
1125 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1126 # Reject names that are not valid shell variable names. | |
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1128 as_fn_error $? "invalid package name: $ac_useropt" | |
1129 ac_useropt_orig=$ac_useropt | |
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1131 case $ac_user_opts in | |
1132 *" | |
1133 "with_$ac_useropt" | |
1134 "*) ;; | |
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1136 ac_unrecognized_sep=', ';; | |
1137 esac | |
1138 eval with_$ac_useropt=\$ac_optarg ;; | |
1139 | |
1140 -without-* | --without-*) | |
1141 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1142 # Reject names that are not valid shell variable names. | |
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1144 as_fn_error $? "invalid package name: $ac_useropt" | |
1145 ac_useropt_orig=$ac_useropt | |
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1147 case $ac_user_opts in | |
1148 *" | |
1149 "with_$ac_useropt" | |
1150 "*) ;; | |
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1152 ac_unrecognized_sep=', ';; | |
1153 esac | |
1154 eval with_$ac_useropt=no ;; | |
1155 | |
1156 --x) | |
1157 # Obsolete; use --with-x. | |
1158 with_x=yes ;; | |
1159 | |
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1161 | --x-incl | --x-inc | --x-in | --x-i) | |
1162 ac_prev=x_includes ;; | |
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1165 x_includes=$ac_optarg ;; | |
1166 | |
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1169 ac_prev=x_libraries ;; | |
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1172 x_libraries=$ac_optarg ;; | |
1173 | |
1174 -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1175 Try \`$0 --help' for more information" | |
1176 ;; | |
1177 | |
1178 *=*) | |
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1180 # Reject names that are not valid shell variable names. | |
1181 case $ac_envvar in #( | |
1182 '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1183 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1184 esac | |
1185 eval $ac_envvar=\$ac_optarg | |
1186 export $ac_envvar ;; | |
1187 | |
1188 *) | |
1189 # FIXME: should be removed in autoconf 3.0. | |
1190 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1192 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1193 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1194 ;; | |
1195 | |
1196 esac | |
1197 done | |
1198 | |
1199 if test -n "$ac_prev"; then | |
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1201 as_fn_error $? "missing argument to $ac_option" | |
1202 fi | |
1203 | |
1204 if test -n "$ac_unrecognized_opts"; then | |
1205 case $enable_option_checking in | |
1206 no) ;; | |
1207 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1208 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1209 esac | |
1210 fi | |
1211 | |
1212 # Check all directory arguments for consistency. | |
1213 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1214 datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1216 libdir localedir mandir | |
1217 do | |
1218 eval ac_val=\$$ac_var | |
1219 # Remove trailing slashes. | |
1220 case $ac_val in | |
1221 */ ) | |
1222 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1223 eval $ac_var=\$ac_val;; | |
1224 esac | |
1225 # Be sure to have absolute directory names. | |
1226 case $ac_val in | |
1227 [\\/$]* | ?:[\\/]* ) continue;; | |
1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1229 esac | |
1230 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1231 done | |
1232 | |
1233 # There might be people who depend on the old broken behavior: `$host' | |
1234 # used to hold the argument of --host etc. | |
1235 # FIXME: To remove some day. | |
1236 build=$build_alias | |
1237 host=$host_alias | |
1238 target=$target_alias | |
1239 | |
1240 # FIXME: To remove some day. | |
1241 if test "x$host_alias" != x; then | |
1242 if test "x$build_alias" = x; then | |
1243 cross_compiling=maybe | |
1244 elif test "x$build_alias" != "x$host_alias"; then | |
1245 cross_compiling=yes | |
1246 fi | |
1247 fi | |
1248 | |
1249 ac_tool_prefix= | |
1250 test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1251 | |
1252 test "$silent" = yes && exec 6>/dev/null | |
1253 | |
1254 | |
1255 ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1256 ac_ls_di=`ls -di .` && | |
1257 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1258 as_fn_error $? "working directory cannot be determined" | |
1259 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1260 as_fn_error $? "pwd does not report name of working directory" | |
1261 | |
1262 | |
1263 # Find the source files, if location was not specified. | |
1264 if test -z "$srcdir"; then | |
1265 ac_srcdir_defaulted=yes | |
1266 # Try the directory containing this script, then the parent directory. | |
1267 ac_confdir=`$as_dirname -- "$as_myself" || | |
1268 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1269 X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1270 X"$as_myself" : 'X\(//\)$' \| \ | |
1271 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1272 $as_echo X"$as_myself" | | |
1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1274 s//\1/ | |
1275 q | |
1276 } | |
1277 /^X\(\/\/\)[^/].*/{ | |
1278 s//\1/ | |
1279 q | |
1280 } | |
1281 /^X\(\/\/\)$/{ | |
1282 s//\1/ | |
1283 q | |
1284 } | |
1285 /^X\(\/\).*/{ | |
1286 s//\1/ | |
1287 q | |
1288 } | |
1289 s/.*/./; q'` | |
1290 srcdir=$ac_confdir | |
1291 if test ! -r "$srcdir/$ac_unique_file"; then | |
1292 srcdir=.. | |
1293 fi | |
1294 else | |
1295 ac_srcdir_defaulted=no | |
1296 fi | |
1297 if test ! -r "$srcdir/$ac_unique_file"; then | |
1298 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1299 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1300 fi | |
1301 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1302 ac_abs_confdir=`( | |
1303 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1304 pwd)` | |
1305 # When building in place, set srcdir=. | |
1306 if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1307 srcdir=. | |
1308 fi | |
1309 # Remove unnecessary trailing slashes from srcdir. | |
1310 # Double slashes in file names in object file debugging info | |
1311 # mess up M-x gdb in Emacs. | |
1312 case $srcdir in | |
1313 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1314 esac | |
1315 for ac_var in $ac_precious_vars; do | |
1316 eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1317 eval ac_env_${ac_var}_value=\$${ac_var} | |
1318 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1319 eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1320 done | |
1321 | |
1322 # | |
1323 # Report the --help message. | |
1324 # | |
1325 if test "$ac_init_help" = "long"; then | |
1326 # Omit some internal or obsolete options to make the list less imposing. | |
1327 # This message is too long to be a string in the A/UX 3.1 sh. | |
1328 cat <<_ACEOF | |
1329 \`configure' configures PortAudioCpp 12 to adapt to many kinds of systems. | |
1330 | |
1331 Usage: $0 [OPTION]... [VAR=VALUE]... | |
1332 | |
1333 To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1334 VAR=VALUE. See below for descriptions of some of the useful variables. | |
1335 | |
1336 Defaults for the options are specified in brackets. | |
1337 | |
1338 Configuration: | |
1339 -h, --help display this help and exit | |
1340 --help=short display options specific to this package | |
1341 --help=recursive display the short help of all the included packages | |
1342 -V, --version display version information and exit | |
1343 -q, --quiet, --silent do not print \`checking ...' messages | |
1344 --cache-file=FILE cache test results in FILE [disabled] | |
1345 -C, --config-cache alias for \`--cache-file=config.cache' | |
1346 -n, --no-create do not create output files | |
1347 --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1348 | |
1349 Installation directories: | |
1350 --prefix=PREFIX install architecture-independent files in PREFIX | |
1351 [$ac_default_prefix] | |
1352 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1353 [PREFIX] | |
1354 | |
1355 By default, \`make install' will install all the files in | |
1356 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1357 an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1358 for instance \`--prefix=\$HOME'. | |
1359 | |
1360 For better control, use the options below. | |
1361 | |
1362 Fine tuning of the installation directories: | |
1363 --bindir=DIR user executables [EPREFIX/bin] | |
1364 --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1365 --libexecdir=DIR program executables [EPREFIX/libexec] | |
1366 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1367 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1368 --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1369 --libdir=DIR object code libraries [EPREFIX/lib] | |
1370 --includedir=DIR C header files [PREFIX/include] | |
1371 --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1372 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1373 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1374 --infodir=DIR info documentation [DATAROOTDIR/info] | |
1375 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1376 --mandir=DIR man documentation [DATAROOTDIR/man] | |
1377 --docdir=DIR documentation root [DATAROOTDIR/doc/portaudiocpp] | |
1378 --htmldir=DIR html documentation [DOCDIR] | |
1379 --dvidir=DIR dvi documentation [DOCDIR] | |
1380 --pdfdir=DIR pdf documentation [DOCDIR] | |
1381 --psdir=DIR ps documentation [DOCDIR] | |
1382 _ACEOF | |
1383 | |
1384 cat <<\_ACEOF | |
1385 | |
1386 Program names: | |
1387 --program-prefix=PREFIX prepend PREFIX to installed program names | |
1388 --program-suffix=SUFFIX append SUFFIX to installed program names | |
1389 --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1390 | |
1391 System types: | |
1392 --build=BUILD configure for building on BUILD [guessed] | |
1393 --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1394 _ACEOF | |
1395 fi | |
1396 | |
1397 if test -n "$ac_init_help"; then | |
1398 case $ac_init_help in | |
1399 short | recursive ) echo "Configuration of PortAudioCpp 12:";; | |
1400 esac | |
1401 cat <<\_ACEOF | |
1402 | |
1403 Optional Features: | |
1404 --disable-option-checking ignore unrecognized --enable/--with options | |
1405 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1406 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1407 --enable-silent-rules less verbose build output (undo: "make V=1") | |
1408 --disable-silent-rules verbose build output (undo: "make V=0") | |
1409 --enable-maintainer-mode | |
1410 enable make rules and dependencies not useful (and | |
1411 sometimes confusing) to the casual installer | |
1412 --enable-dependency-tracking | |
1413 do not reject slow dependency extractors | |
1414 --disable-dependency-tracking | |
1415 speeds up one-time build | |
1416 --enable-shared[=PKGS] build shared libraries [default=yes] | |
1417 --enable-static[=PKGS] build static libraries [default=yes] | |
1418 --enable-fast-install[=PKGS] | |
1419 optimize for fast installation [default=yes] | |
1420 --disable-libtool-lock avoid locking (might break parallel builds) | |
1421 | |
1422 Optional Packages: | |
1423 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1424 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1425 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use | |
1426 both] | |
1427 --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1428 --with-sysroot=DIR Search for dependent libraries within DIR | |
1429 (or the compiler's sysroot if not specified). | |
1430 | |
1431 Some influential environment variables: | |
1432 CC C compiler command | |
1433 CFLAGS C compiler flags | |
1434 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1435 nonstandard directory <lib dir> | |
1436 LIBS libraries to pass to the linker, e.g. -l<library> | |
1437 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1438 you have headers in a nonstandard directory <include dir> | |
1439 CXX C++ compiler command | |
1440 CXXFLAGS C++ compiler flags | |
1441 CPP C preprocessor | |
1442 CXXCPP C++ preprocessor | |
1443 | |
1444 Use these variables to override the choices made by `configure' or to help | |
1445 it to find libraries and programs with nonstandard names/locations. | |
1446 | |
1447 Report bugs to the package provider. | |
1448 _ACEOF | |
1449 ac_status=$? | |
1450 fi | |
1451 | |
1452 if test "$ac_init_help" = "recursive"; then | |
1453 # If there are subdirs, report their specific --help. | |
1454 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1455 test -d "$ac_dir" || | |
1456 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1457 continue | |
1458 ac_builddir=. | |
1459 | |
1460 case "$ac_dir" in | |
1461 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1462 *) | |
1463 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1464 # A ".." for each directory in $ac_dir_suffix. | |
1465 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1466 case $ac_top_builddir_sub in | |
1467 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1468 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1469 esac ;; | |
1470 esac | |
1471 ac_abs_top_builddir=$ac_pwd | |
1472 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1473 # for backward compatibility: | |
1474 ac_top_builddir=$ac_top_build_prefix | |
1475 | |
1476 case $srcdir in | |
1477 .) # We are building in place. | |
1478 ac_srcdir=. | |
1479 ac_top_srcdir=$ac_top_builddir_sub | |
1480 ac_abs_top_srcdir=$ac_pwd ;; | |
1481 [\\/]* | ?:[\\/]* ) # Absolute name. | |
1482 ac_srcdir=$srcdir$ac_dir_suffix; | |
1483 ac_top_srcdir=$srcdir | |
1484 ac_abs_top_srcdir=$srcdir ;; | |
1485 *) # Relative name. | |
1486 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1487 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1488 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1489 esac | |
1490 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1491 | |
1492 cd "$ac_dir" || { ac_status=$?; continue; } | |
1493 # Check for guested configure. | |
1494 if test -f "$ac_srcdir/configure.gnu"; then | |
1495 echo && | |
1496 $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1497 elif test -f "$ac_srcdir/configure"; then | |
1498 echo && | |
1499 $SHELL "$ac_srcdir/configure" --help=recursive | |
1500 else | |
1501 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1502 fi || ac_status=$? | |
1503 cd "$ac_pwd" || { ac_status=$?; break; } | |
1504 done | |
1505 fi | |
1506 | |
1507 test -n "$ac_init_help" && exit $ac_status | |
1508 if $ac_init_version; then | |
1509 cat <<\_ACEOF | |
1510 PortAudioCpp configure 12 | |
1511 generated by GNU Autoconf 2.69 | |
1512 | |
1513 Copyright (C) 2012 Free Software Foundation, Inc. | |
1514 This configure script is free software; the Free Software Foundation | |
1515 gives unlimited permission to copy, distribute and modify it. | |
1516 _ACEOF | |
1517 exit | |
1518 fi | |
1519 | |
1520 ## ------------------------ ## | |
1521 ## Autoconf initialization. ## | |
1522 ## ------------------------ ## | |
1523 | |
1524 # ac_fn_c_try_compile LINENO | |
1525 # -------------------------- | |
1526 # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1527 ac_fn_c_try_compile () | |
1528 { | |
1529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1530 rm -f conftest.$ac_objext | |
1531 if { { ac_try="$ac_compile" | |
1532 case "(($ac_try" in | |
1533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1534 *) ac_try_echo=$ac_try;; | |
1535 esac | |
1536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1537 $as_echo "$ac_try_echo"; } >&5 | |
1538 (eval "$ac_compile") 2>conftest.err | |
1539 ac_status=$? | |
1540 if test -s conftest.err; then | |
1541 grep -v '^ *+' conftest.err >conftest.er1 | |
1542 cat conftest.er1 >&5 | |
1543 mv -f conftest.er1 conftest.err | |
1544 fi | |
1545 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1546 test $ac_status = 0; } && { | |
1547 test -z "$ac_c_werror_flag" || | |
1548 test ! -s conftest.err | |
1549 } && test -s conftest.$ac_objext; then : | |
1550 ac_retval=0 | |
1551 else | |
1552 $as_echo "$as_me: failed program was:" >&5 | |
1553 sed 's/^/| /' conftest.$ac_ext >&5 | |
1554 | |
1555 ac_retval=1 | |
1556 fi | |
1557 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1558 as_fn_set_status $ac_retval | |
1559 | |
1560 } # ac_fn_c_try_compile | |
1561 | |
1562 # ac_fn_cxx_try_compile LINENO | |
1563 # ---------------------------- | |
1564 # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1565 ac_fn_cxx_try_compile () | |
1566 { | |
1567 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1568 rm -f conftest.$ac_objext | |
1569 if { { ac_try="$ac_compile" | |
1570 case "(($ac_try" in | |
1571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1572 *) ac_try_echo=$ac_try;; | |
1573 esac | |
1574 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1575 $as_echo "$ac_try_echo"; } >&5 | |
1576 (eval "$ac_compile") 2>conftest.err | |
1577 ac_status=$? | |
1578 if test -s conftest.err; then | |
1579 grep -v '^ *+' conftest.err >conftest.er1 | |
1580 cat conftest.er1 >&5 | |
1581 mv -f conftest.er1 conftest.err | |
1582 fi | |
1583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1584 test $ac_status = 0; } && { | |
1585 test -z "$ac_cxx_werror_flag" || | |
1586 test ! -s conftest.err | |
1587 } && test -s conftest.$ac_objext; then : | |
1588 ac_retval=0 | |
1589 else | |
1590 $as_echo "$as_me: failed program was:" >&5 | |
1591 sed 's/^/| /' conftest.$ac_ext >&5 | |
1592 | |
1593 ac_retval=1 | |
1594 fi | |
1595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1596 as_fn_set_status $ac_retval | |
1597 | |
1598 } # ac_fn_cxx_try_compile | |
1599 | |
1600 # ac_fn_c_try_link LINENO | |
1601 # ----------------------- | |
1602 # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1603 ac_fn_c_try_link () | |
1604 { | |
1605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1606 rm -f conftest.$ac_objext conftest$ac_exeext | |
1607 if { { ac_try="$ac_link" | |
1608 case "(($ac_try" in | |
1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1610 *) ac_try_echo=$ac_try;; | |
1611 esac | |
1612 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1613 $as_echo "$ac_try_echo"; } >&5 | |
1614 (eval "$ac_link") 2>conftest.err | |
1615 ac_status=$? | |
1616 if test -s conftest.err; then | |
1617 grep -v '^ *+' conftest.err >conftest.er1 | |
1618 cat conftest.er1 >&5 | |
1619 mv -f conftest.er1 conftest.err | |
1620 fi | |
1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1622 test $ac_status = 0; } && { | |
1623 test -z "$ac_c_werror_flag" || | |
1624 test ! -s conftest.err | |
1625 } && test -s conftest$ac_exeext && { | |
1626 test "$cross_compiling" = yes || | |
1627 test -x conftest$ac_exeext | |
1628 }; then : | |
1629 ac_retval=0 | |
1630 else | |
1631 $as_echo "$as_me: failed program was:" >&5 | |
1632 sed 's/^/| /' conftest.$ac_ext >&5 | |
1633 | |
1634 ac_retval=1 | |
1635 fi | |
1636 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1637 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1638 # interfere with the next link command; also delete a directory that is | |
1639 # left behind by Apple's compiler. We do this before executing the actions. | |
1640 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1641 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1642 as_fn_set_status $ac_retval | |
1643 | |
1644 } # ac_fn_c_try_link | |
1645 | |
1646 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES | |
1647 # ------------------------------------------------------- | |
1648 # Tests whether HEADER exists and can be compiled using the include files in | |
1649 # INCLUDES, setting the cache variable VAR accordingly. | |
1650 ac_fn_c_check_header_compile () | |
1651 { | |
1652 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1654 $as_echo_n "checking for $2... " >&6; } | |
1655 if eval \${$3+:} false; then : | |
1656 $as_echo_n "(cached) " >&6 | |
1657 else | |
1658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1659 /* end confdefs.h. */ | |
1660 $4 | |
1661 #include <$2> | |
1662 _ACEOF | |
1663 if ac_fn_c_try_compile "$LINENO"; then : | |
1664 eval "$3=yes" | |
1665 else | |
1666 eval "$3=no" | |
1667 fi | |
1668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1669 fi | |
1670 eval ac_res=\$$3 | |
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1672 $as_echo "$ac_res" >&6; } | |
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1674 | |
1675 } # ac_fn_c_check_header_compile | |
1676 | |
1677 # ac_fn_c_try_cpp LINENO | |
1678 # ---------------------- | |
1679 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1680 ac_fn_c_try_cpp () | |
1681 { | |
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1683 if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1684 case "(($ac_try" in | |
1685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1686 *) ac_try_echo=$ac_try;; | |
1687 esac | |
1688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1689 $as_echo "$ac_try_echo"; } >&5 | |
1690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1691 ac_status=$? | |
1692 if test -s conftest.err; then | |
1693 grep -v '^ *+' conftest.err >conftest.er1 | |
1694 cat conftest.er1 >&5 | |
1695 mv -f conftest.er1 conftest.err | |
1696 fi | |
1697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1698 test $ac_status = 0; } > conftest.i && { | |
1699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
1700 test ! -s conftest.err | |
1701 }; then : | |
1702 ac_retval=0 | |
1703 else | |
1704 $as_echo "$as_me: failed program was:" >&5 | |
1705 sed 's/^/| /' conftest.$ac_ext >&5 | |
1706 | |
1707 ac_retval=1 | |
1708 fi | |
1709 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1710 as_fn_set_status $ac_retval | |
1711 | |
1712 } # ac_fn_c_try_cpp | |
1713 | |
1714 # ac_fn_c_try_run LINENO | |
1715 # ---------------------- | |
1716 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1717 # that executables *can* be run. | |
1718 ac_fn_c_try_run () | |
1719 { | |
1720 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1721 if { { ac_try="$ac_link" | |
1722 case "(($ac_try" in | |
1723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1724 *) ac_try_echo=$ac_try;; | |
1725 esac | |
1726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1727 $as_echo "$ac_try_echo"; } >&5 | |
1728 (eval "$ac_link") 2>&5 | |
1729 ac_status=$? | |
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1731 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1732 { { case "(($ac_try" in | |
1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1734 *) ac_try_echo=$ac_try;; | |
1735 esac | |
1736 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1737 $as_echo "$ac_try_echo"; } >&5 | |
1738 (eval "$ac_try") 2>&5 | |
1739 ac_status=$? | |
1740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1741 test $ac_status = 0; }; }; then : | |
1742 ac_retval=0 | |
1743 else | |
1744 $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1745 $as_echo "$as_me: failed program was:" >&5 | |
1746 sed 's/^/| /' conftest.$ac_ext >&5 | |
1747 | |
1748 ac_retval=$ac_status | |
1749 fi | |
1750 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1751 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1752 as_fn_set_status $ac_retval | |
1753 | |
1754 } # ac_fn_c_try_run | |
1755 | |
1756 # ac_fn_c_check_func LINENO FUNC VAR | |
1757 # ---------------------------------- | |
1758 # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
1759 ac_fn_c_check_func () | |
1760 { | |
1761 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1763 $as_echo_n "checking for $2... " >&6; } | |
1764 if eval \${$3+:} false; then : | |
1765 $as_echo_n "(cached) " >&6 | |
1766 else | |
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1768 /* end confdefs.h. */ | |
1769 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
1770 For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
1771 #define $2 innocuous_$2 | |
1772 | |
1773 /* System header to define __stub macros and hopefully few prototypes, | |
1774 which can conflict with char $2 (); below. | |
1775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
1776 <limits.h> exists even on freestanding compilers. */ | |
1777 | |
1778 #ifdef __STDC__ | |
1779 # include <limits.h> | |
1780 #else | |
1781 # include <assert.h> | |
1782 #endif | |
1783 | |
1784 #undef $2 | |
1785 | |
1786 /* Override any GCC internal prototype to avoid an error. | |
1787 Use char because int might match the return type of a GCC | |
1788 builtin and then its argument prototype would still apply. */ | |
1789 #ifdef __cplusplus | |
1790 extern "C" | |
1791 #endif | |
1792 char $2 (); | |
1793 /* The GNU C library defines this for functions which it implements | |
1794 to always fail with ENOSYS. Some functions are actually named | |
1795 something starting with __ and the normal name is an alias. */ | |
1796 #if defined __stub_$2 || defined __stub___$2 | |
1797 choke me | |
1798 #endif | |
1799 | |
1800 int | |
1801 main () | |
1802 { | |
1803 return $2 (); | |
1804 ; | |
1805 return 0; | |
1806 } | |
1807 _ACEOF | |
1808 if ac_fn_c_try_link "$LINENO"; then : | |
1809 eval "$3=yes" | |
1810 else | |
1811 eval "$3=no" | |
1812 fi | |
1813 rm -f core conftest.err conftest.$ac_objext \ | |
1814 conftest$ac_exeext conftest.$ac_ext | |
1815 fi | |
1816 eval ac_res=\$$3 | |
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1818 $as_echo "$ac_res" >&6; } | |
1819 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1820 | |
1821 } # ac_fn_c_check_func | |
1822 | |
1823 # ac_fn_cxx_try_cpp LINENO | |
1824 # ------------------------ | |
1825 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1826 ac_fn_cxx_try_cpp () | |
1827 { | |
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1829 if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1830 case "(($ac_try" in | |
1831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1832 *) ac_try_echo=$ac_try;; | |
1833 esac | |
1834 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1835 $as_echo "$ac_try_echo"; } >&5 | |
1836 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1837 ac_status=$? | |
1838 if test -s conftest.err; then | |
1839 grep -v '^ *+' conftest.err >conftest.er1 | |
1840 cat conftest.er1 >&5 | |
1841 mv -f conftest.er1 conftest.err | |
1842 fi | |
1843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1844 test $ac_status = 0; } > conftest.i && { | |
1845 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
1846 test ! -s conftest.err | |
1847 }; then : | |
1848 ac_retval=0 | |
1849 else | |
1850 $as_echo "$as_me: failed program was:" >&5 | |
1851 sed 's/^/| /' conftest.$ac_ext >&5 | |
1852 | |
1853 ac_retval=1 | |
1854 fi | |
1855 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1856 as_fn_set_status $ac_retval | |
1857 | |
1858 } # ac_fn_cxx_try_cpp | |
1859 | |
1860 # ac_fn_cxx_try_link LINENO | |
1861 # ------------------------- | |
1862 # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1863 ac_fn_cxx_try_link () | |
1864 { | |
1865 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1866 rm -f conftest.$ac_objext conftest$ac_exeext | |
1867 if { { ac_try="$ac_link" | |
1868 case "(($ac_try" in | |
1869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1870 *) ac_try_echo=$ac_try;; | |
1871 esac | |
1872 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1873 $as_echo "$ac_try_echo"; } >&5 | |
1874 (eval "$ac_link") 2>conftest.err | |
1875 ac_status=$? | |
1876 if test -s conftest.err; then | |
1877 grep -v '^ *+' conftest.err >conftest.er1 | |
1878 cat conftest.er1 >&5 | |
1879 mv -f conftest.er1 conftest.err | |
1880 fi | |
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1882 test $ac_status = 0; } && { | |
1883 test -z "$ac_cxx_werror_flag" || | |
1884 test ! -s conftest.err | |
1885 } && test -s conftest$ac_exeext && { | |
1886 test "$cross_compiling" = yes || | |
1887 test -x conftest$ac_exeext | |
1888 }; then : | |
1889 ac_retval=0 | |
1890 else | |
1891 $as_echo "$as_me: failed program was:" >&5 | |
1892 sed 's/^/| /' conftest.$ac_ext >&5 | |
1893 | |
1894 ac_retval=1 | |
1895 fi | |
1896 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
1897 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
1898 # interfere with the next link command; also delete a directory that is | |
1899 # left behind by Apple's compiler. We do this before executing the actions. | |
1900 rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1902 as_fn_set_status $ac_retval | |
1903 | |
1904 } # ac_fn_cxx_try_link | |
1905 cat >config.log <<_ACEOF | |
1906 This file contains any messages produced by compilers while | |
1907 running configure, to aid debugging if configure makes a mistake. | |
1908 | |
1909 It was created by PortAudioCpp $as_me 12, which was | |
1910 generated by GNU Autoconf 2.69. Invocation command line was | |
1911 | |
1912 $ $0 $@ | |
1913 | |
1914 _ACEOF | |
1915 exec 5>>config.log | |
1916 { | |
1917 cat <<_ASUNAME | |
1918 ## --------- ## | |
1919 ## Platform. ## | |
1920 ## --------- ## | |
1921 | |
1922 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1923 uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1924 uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1925 uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1926 uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1927 | |
1928 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1929 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1930 | |
1931 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1932 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1933 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1934 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
1935 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1936 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1937 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1938 | |
1939 _ASUNAME | |
1940 | |
1941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1942 for as_dir in $PATH | |
1943 do | |
1944 IFS=$as_save_IFS | |
1945 test -z "$as_dir" && as_dir=. | |
1946 $as_echo "PATH: $as_dir" | |
1947 done | |
1948 IFS=$as_save_IFS | |
1949 | |
1950 } >&5 | |
1951 | |
1952 cat >&5 <<_ACEOF | |
1953 | |
1954 | |
1955 ## ----------- ## | |
1956 ## Core tests. ## | |
1957 ## ----------- ## | |
1958 | |
1959 _ACEOF | |
1960 | |
1961 | |
1962 # Keep a trace of the command line. | |
1963 # Strip out --no-create and --no-recursion so they do not pile up. | |
1964 # Strip out --silent because we don't want to record it for future runs. | |
1965 # Also quote any args containing shell meta-characters. | |
1966 # Make two passes to allow for proper duplicate-argument suppression. | |
1967 ac_configure_args= | |
1968 ac_configure_args0= | |
1969 ac_configure_args1= | |
1970 ac_must_keep_next=false | |
1971 for ac_pass in 1 2 | |
1972 do | |
1973 for ac_arg | |
1974 do | |
1975 case $ac_arg in | |
1976 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1977 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1978 | -silent | --silent | --silen | --sile | --sil) | |
1979 continue ;; | |
1980 *\'*) | |
1981 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1982 esac | |
1983 case $ac_pass in | |
1984 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
1985 2) | |
1986 as_fn_append ac_configure_args1 " '$ac_arg'" | |
1987 if test $ac_must_keep_next = true; then | |
1988 ac_must_keep_next=false # Got value, back to normal. | |
1989 else | |
1990 case $ac_arg in | |
1991 *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1992 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1993 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1994 | -with-* | --with-* | -without-* | --without-* | --x) | |
1995 case "$ac_configure_args0 " in | |
1996 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1997 esac | |
1998 ;; | |
1999 -* ) ac_must_keep_next=true ;; | |
2000 esac | |
2001 fi | |
2002 as_fn_append ac_configure_args " '$ac_arg'" | |
2003 ;; | |
2004 esac | |
2005 done | |
2006 done | |
2007 { ac_configure_args0=; unset ac_configure_args0;} | |
2008 { ac_configure_args1=; unset ac_configure_args1;} | |
2009 | |
2010 # When interrupted or exit'd, cleanup temporary files, and complete | |
2011 # config.log. We remove comments because anyway the quotes in there | |
2012 # would cause problems or look ugly. | |
2013 # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2014 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2015 trap 'exit_status=$? | |
2016 # Save into config.log some information that might help in debugging. | |
2017 { | |
2018 echo | |
2019 | |
2020 $as_echo "## ---------------- ## | |
2021 ## Cache variables. ## | |
2022 ## ---------------- ##" | |
2023 echo | |
2024 # The following way of writing the cache mishandles newlines in values, | |
2025 ( | |
2026 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2027 eval ac_val=\$$ac_var | |
2028 case $ac_val in #( | |
2029 *${as_nl}*) | |
2030 case $ac_var in #( | |
2031 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2032 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2033 esac | |
2034 case $ac_var in #( | |
2035 _ | IFS | as_nl) ;; #( | |
2036 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2037 *) { eval $ac_var=; unset $ac_var;} ;; | |
2038 esac ;; | |
2039 esac | |
2040 done | |
2041 (set) 2>&1 | | |
2042 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2043 *${as_nl}ac_space=\ *) | |
2044 sed -n \ | |
2045 "s/'\''/'\''\\\\'\'''\''/g; | |
2046 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2047 ;; #( | |
2048 *) | |
2049 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2050 ;; | |
2051 esac | | |
2052 sort | |
2053 ) | |
2054 echo | |
2055 | |
2056 $as_echo "## ----------------- ## | |
2057 ## Output variables. ## | |
2058 ## ----------------- ##" | |
2059 echo | |
2060 for ac_var in $ac_subst_vars | |
2061 do | |
2062 eval ac_val=\$$ac_var | |
2063 case $ac_val in | |
2064 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2065 esac | |
2066 $as_echo "$ac_var='\''$ac_val'\''" | |
2067 done | sort | |
2068 echo | |
2069 | |
2070 if test -n "$ac_subst_files"; then | |
2071 $as_echo "## ------------------- ## | |
2072 ## File substitutions. ## | |
2073 ## ------------------- ##" | |
2074 echo | |
2075 for ac_var in $ac_subst_files | |
2076 do | |
2077 eval ac_val=\$$ac_var | |
2078 case $ac_val in | |
2079 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2080 esac | |
2081 $as_echo "$ac_var='\''$ac_val'\''" | |
2082 done | sort | |
2083 echo | |
2084 fi | |
2085 | |
2086 if test -s confdefs.h; then | |
2087 $as_echo "## ----------- ## | |
2088 ## confdefs.h. ## | |
2089 ## ----------- ##" | |
2090 echo | |
2091 cat confdefs.h | |
2092 echo | |
2093 fi | |
2094 test "$ac_signal" != 0 && | |
2095 $as_echo "$as_me: caught signal $ac_signal" | |
2096 $as_echo "$as_me: exit $exit_status" | |
2097 } >&5 | |
2098 rm -f core *.core core.conftest.* && | |
2099 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2100 exit $exit_status | |
2101 ' 0 | |
2102 for ac_signal in 1 2 13 15; do | |
2103 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2104 done | |
2105 ac_signal=0 | |
2106 | |
2107 # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2108 rm -f -r conftest* confdefs.h | |
2109 | |
2110 $as_echo "/* confdefs.h */" > confdefs.h | |
2111 | |
2112 # Predefined preprocessor variables. | |
2113 | |
2114 cat >>confdefs.h <<_ACEOF | |
2115 #define PACKAGE_NAME "$PACKAGE_NAME" | |
2116 _ACEOF | |
2117 | |
2118 cat >>confdefs.h <<_ACEOF | |
2119 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2120 _ACEOF | |
2121 | |
2122 cat >>confdefs.h <<_ACEOF | |
2123 #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2124 _ACEOF | |
2125 | |
2126 cat >>confdefs.h <<_ACEOF | |
2127 #define PACKAGE_STRING "$PACKAGE_STRING" | |
2128 _ACEOF | |
2129 | |
2130 cat >>confdefs.h <<_ACEOF | |
2131 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2132 _ACEOF | |
2133 | |
2134 cat >>confdefs.h <<_ACEOF | |
2135 #define PACKAGE_URL "$PACKAGE_URL" | |
2136 _ACEOF | |
2137 | |
2138 | |
2139 # Let the site file select an alternate cache file if it wants to. | |
2140 # Prefer an explicitly selected file to automatically selected ones. | |
2141 ac_site_file1=NONE | |
2142 ac_site_file2=NONE | |
2143 if test -n "$CONFIG_SITE"; then | |
2144 # We do not want a PATH search for config.site. | |
2145 case $CONFIG_SITE in #(( | |
2146 -*) ac_site_file1=./$CONFIG_SITE;; | |
2147 */*) ac_site_file1=$CONFIG_SITE;; | |
2148 *) ac_site_file1=./$CONFIG_SITE;; | |
2149 esac | |
2150 elif test "x$prefix" != xNONE; then | |
2151 ac_site_file1=$prefix/share/config.site | |
2152 ac_site_file2=$prefix/etc/config.site | |
2153 else | |
2154 ac_site_file1=$ac_default_prefix/share/config.site | |
2155 ac_site_file2=$ac_default_prefix/etc/config.site | |
2156 fi | |
2157 for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2158 do | |
2159 test "x$ac_site_file" = xNONE && continue | |
2160 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2162 $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2163 sed 's/^/| /' "$ac_site_file" >&5 | |
2164 . "$ac_site_file" \ | |
2165 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2167 as_fn_error $? "failed to load site script $ac_site_file | |
2168 See \`config.log' for more details" "$LINENO" 5; } | |
2169 fi | |
2170 done | |
2171 | |
2172 if test -r "$cache_file"; then | |
2173 # Some versions of bash will fail to source /dev/null (special files | |
2174 # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2175 if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2177 $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2178 case $cache_file in | |
2179 [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2180 *) . "./$cache_file";; | |
2181 esac | |
2182 fi | |
2183 else | |
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2185 $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2186 >$cache_file | |
2187 fi | |
2188 | |
2189 # Check that the precious variables saved in the cache have kept the same | |
2190 # value. | |
2191 ac_cache_corrupted=false | |
2192 for ac_var in $ac_precious_vars; do | |
2193 eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2194 eval ac_new_set=\$ac_env_${ac_var}_set | |
2195 eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2196 eval ac_new_val=\$ac_env_${ac_var}_value | |
2197 case $ac_old_set,$ac_new_set in | |
2198 set,) | |
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2200 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2201 ac_cache_corrupted=: ;; | |
2202 ,set) | |
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2204 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2205 ac_cache_corrupted=: ;; | |
2206 ,);; | |
2207 *) | |
2208 if test "x$ac_old_val" != "x$ac_new_val"; then | |
2209 # differences in whitespace do not lead to failure. | |
2210 ac_old_val_w=`echo x $ac_old_val` | |
2211 ac_new_val_w=`echo x $ac_new_val` | |
2212 if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2214 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2215 ac_cache_corrupted=: | |
2216 else | |
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2218 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2219 eval $ac_var=\$ac_old_val | |
2220 fi | |
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2222 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2224 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2225 fi;; | |
2226 esac | |
2227 # Pass precious variables to config.status. | |
2228 if test "$ac_new_set" = set; then | |
2229 case $ac_new_val in | |
2230 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2231 *) ac_arg=$ac_var=$ac_new_val ;; | |
2232 esac | |
2233 case " $ac_configure_args " in | |
2234 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2235 *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2236 esac | |
2237 fi | |
2238 done | |
2239 if $ac_cache_corrupted; then | |
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2243 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2244 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2245 fi | |
2246 ## -------------------- ## | |
2247 ## Main body of script. ## | |
2248 ## -------------------- ## | |
2249 | |
2250 ac_ext=c | |
2251 ac_cpp='$CPP $CPPFLAGS' | |
2252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2254 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2255 | |
2256 | |
2257 | |
2258 am__api_version='1.14' | |
2259 | |
2260 ac_aux_dir= | |
2261 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2262 if test -f "$ac_dir/install-sh"; then | |
2263 ac_aux_dir=$ac_dir | |
2264 ac_install_sh="$ac_aux_dir/install-sh -c" | |
2265 break | |
2266 elif test -f "$ac_dir/install.sh"; then | |
2267 ac_aux_dir=$ac_dir | |
2268 ac_install_sh="$ac_aux_dir/install.sh -c" | |
2269 break | |
2270 elif test -f "$ac_dir/shtool"; then | |
2271 ac_aux_dir=$ac_dir | |
2272 ac_install_sh="$ac_aux_dir/shtool install -c" | |
2273 break | |
2274 fi | |
2275 done | |
2276 if test -z "$ac_aux_dir"; then | |
2277 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2278 fi | |
2279 | |
2280 # These three variables are undocumented and unsupported, | |
2281 # and are intended to be withdrawn in a future Autoconf release. | |
2282 # They can cause serious problems if a builder's source tree is in a directory | |
2283 # whose full name contains unusual characters. | |
2284 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2285 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2286 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2287 | |
2288 | |
2289 # Find a good install program. We prefer a C program (faster), | |
2290 # so one script is as good as another. But avoid the broken or | |
2291 # incompatible versions: | |
2292 # SysV /etc/install, /usr/sbin/install | |
2293 # SunOS /usr/etc/install | |
2294 # IRIX /sbin/install | |
2295 # AIX /bin/install | |
2296 # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2297 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2298 # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2299 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2300 # OS/2's system install, which has a completely different semantic | |
2301 # ./install, which can be erroneously created by make from ./install.sh. | |
2302 # Reject install programs that cannot install multiple files. | |
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2304 $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2305 if test -z "$INSTALL"; then | |
2306 if ${ac_cv_path_install+:} false; then : | |
2307 $as_echo_n "(cached) " >&6 | |
2308 else | |
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2310 for as_dir in $PATH | |
2311 do | |
2312 IFS=$as_save_IFS | |
2313 test -z "$as_dir" && as_dir=. | |
2314 # Account for people who put trailing slashes in PATH elements. | |
2315 case $as_dir/ in #(( | |
2316 ./ | .// | /[cC]/* | \ | |
2317 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2318 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2319 /usr/ucb/* ) ;; | |
2320 *) | |
2321 # OSF1 and SCO ODT 3.0 have their own names for install. | |
2322 # Don't use installbsd from OSF since it installs stuff as root | |
2323 # by default. | |
2324 for ac_prog in ginstall scoinst install; do | |
2325 for ac_exec_ext in '' $ac_executable_extensions; do | |
2326 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2327 if test $ac_prog = install && | |
2328 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2329 # AIX install. It has an incompatible calling convention. | |
2330 : | |
2331 elif test $ac_prog = install && | |
2332 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2333 # program-specific install script used by HP pwplus--don't use. | |
2334 : | |
2335 else | |
2336 rm -rf conftest.one conftest.two conftest.dir | |
2337 echo one > conftest.one | |
2338 echo two > conftest.two | |
2339 mkdir conftest.dir | |
2340 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2341 test -s conftest.one && test -s conftest.two && | |
2342 test -s conftest.dir/conftest.one && | |
2343 test -s conftest.dir/conftest.two | |
2344 then | |
2345 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2346 break 3 | |
2347 fi | |
2348 fi | |
2349 fi | |
2350 done | |
2351 done | |
2352 ;; | |
2353 esac | |
2354 | |
2355 done | |
2356 IFS=$as_save_IFS | |
2357 | |
2358 rm -rf conftest.one conftest.two conftest.dir | |
2359 | |
2360 fi | |
2361 if test "${ac_cv_path_install+set}" = set; then | |
2362 INSTALL=$ac_cv_path_install | |
2363 else | |
2364 # As a last resort, use the slow shell script. Don't cache a | |
2365 # value for INSTALL within a source directory, because that will | |
2366 # break other packages using the cache if that directory is | |
2367 # removed, or if the value is a relative name. | |
2368 INSTALL=$ac_install_sh | |
2369 fi | |
2370 fi | |
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2372 $as_echo "$INSTALL" >&6; } | |
2373 | |
2374 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2375 # It thinks the first close brace ends the variable substitution. | |
2376 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2377 | |
2378 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2379 | |
2380 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2381 | |
2382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
2383 $as_echo_n "checking whether build environment is sane... " >&6; } | |
2384 # Reject unsafe characters in $srcdir or the absolute working directory | |
2385 # name. Accept space and tab only in the latter. | |
2386 am_lf=' | |
2387 ' | |
2388 case `pwd` in | |
2389 *[\\\"\#\$\&\'\`$am_lf]*) | |
2390 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2391 esac | |
2392 case $srcdir in | |
2393 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2394 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2395 esac | |
2396 | |
2397 # Do 'set' in a subshell so we don't clobber the current shell's | |
2398 # arguments. Must try -L first in case configure is actually a | |
2399 # symlink; some systems play weird games with the mod time of symlinks | |
2400 # (eg FreeBSD returns the mod time of the symlink's containing | |
2401 # directory). | |
2402 if ( | |
2403 am_has_slept=no | |
2404 for am_try in 1 2; do | |
2405 echo "timestamp, slept: $am_has_slept" > conftest.file | |
2406 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2407 if test "$*" = "X"; then | |
2408 # -L didn't work. | |
2409 set X `ls -t "$srcdir/configure" conftest.file` | |
2410 fi | |
2411 if test "$*" != "X $srcdir/configure conftest.file" \ | |
2412 && test "$*" != "X conftest.file $srcdir/configure"; then | |
2413 | |
2414 # If neither matched, then we have a broken ls. This can happen | |
2415 # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2416 # broken ls alias from the environment. This has actually | |
2417 # happened. Such a system could not be considered "sane". | |
2418 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2419 alias in your environment" "$LINENO" 5 | |
2420 fi | |
2421 if test "$2" = conftest.file || test $am_try -eq 2; then | |
2422 break | |
2423 fi | |
2424 # Just in case. | |
2425 sleep 1 | |
2426 am_has_slept=yes | |
2427 done | |
2428 test "$2" = conftest.file | |
2429 ) | |
2430 then | |
2431 # Ok. | |
2432 : | |
2433 else | |
2434 as_fn_error $? "newly created file is older than distributed files! | |
2435 Check your system clock" "$LINENO" 5 | |
2436 fi | |
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2438 $as_echo "yes" >&6; } | |
2439 # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2440 # generated files are strictly newer. | |
2441 am_sleep_pid= | |
2442 if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2443 ( sleep 1 ) & | |
2444 am_sleep_pid=$! | |
2445 fi | |
2446 | |
2447 rm -f conftest.file | |
2448 | |
2449 test "$program_prefix" != NONE && | |
2450 program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2451 # Use a double $ so make ignores it. | |
2452 test "$program_suffix" != NONE && | |
2453 program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2454 # Double any \ or $. | |
2455 # By default was `s,x,x', remove it if useless. | |
2456 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2457 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2458 | |
2459 # expand $ac_aux_dir to an absolute path | |
2460 am_aux_dir=`cd $ac_aux_dir && pwd` | |
2461 | |
2462 if test x"${MISSING+set}" != xset; then | |
2463 case $am_aux_dir in | |
2464 *\ * | *\ *) | |
2465 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2466 *) | |
2467 MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2468 esac | |
2469 fi | |
2470 # Use eval to expand $SHELL | |
2471 if eval "$MISSING --is-lightweight"; then | |
2472 am_missing_run="$MISSING " | |
2473 else | |
2474 am_missing_run= | |
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2476 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2477 fi | |
2478 | |
2479 if test x"${install_sh}" != xset; then | |
2480 case $am_aux_dir in | |
2481 *\ * | *\ *) | |
2482 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2483 *) | |
2484 install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2485 esac | |
2486 fi | |
2487 | |
2488 # Installed binaries are usually stripped using 'strip' when the user | |
2489 # run "make install-strip". However 'strip' might not be the right | |
2490 # tool to use in cross-compilation environments, therefore Automake | |
2491 # will honor the 'STRIP' environment variable to overrule this program. | |
2492 if test "$cross_compiling" != no; then | |
2493 if test -n "$ac_tool_prefix"; then | |
2494 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2495 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2497 $as_echo_n "checking for $ac_word... " >&6; } | |
2498 if ${ac_cv_prog_STRIP+:} false; then : | |
2499 $as_echo_n "(cached) " >&6 | |
2500 else | |
2501 if test -n "$STRIP"; then | |
2502 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2503 else | |
2504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2505 for as_dir in $PATH | |
2506 do | |
2507 IFS=$as_save_IFS | |
2508 test -z "$as_dir" && as_dir=. | |
2509 for ac_exec_ext in '' $ac_executable_extensions; do | |
2510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2511 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2513 break 2 | |
2514 fi | |
2515 done | |
2516 done | |
2517 IFS=$as_save_IFS | |
2518 | |
2519 fi | |
2520 fi | |
2521 STRIP=$ac_cv_prog_STRIP | |
2522 if test -n "$STRIP"; then | |
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2524 $as_echo "$STRIP" >&6; } | |
2525 else | |
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2527 $as_echo "no" >&6; } | |
2528 fi | |
2529 | |
2530 | |
2531 fi | |
2532 if test -z "$ac_cv_prog_STRIP"; then | |
2533 ac_ct_STRIP=$STRIP | |
2534 # Extract the first word of "strip", so it can be a program name with args. | |
2535 set dummy strip; ac_word=$2 | |
2536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2537 $as_echo_n "checking for $ac_word... " >&6; } | |
2538 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
2539 $as_echo_n "(cached) " >&6 | |
2540 else | |
2541 if test -n "$ac_ct_STRIP"; then | |
2542 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2543 else | |
2544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2545 for as_dir in $PATH | |
2546 do | |
2547 IFS=$as_save_IFS | |
2548 test -z "$as_dir" && as_dir=. | |
2549 for ac_exec_ext in '' $ac_executable_extensions; do | |
2550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2551 ac_cv_prog_ac_ct_STRIP="strip" | |
2552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2553 break 2 | |
2554 fi | |
2555 done | |
2556 done | |
2557 IFS=$as_save_IFS | |
2558 | |
2559 fi | |
2560 fi | |
2561 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2562 if test -n "$ac_ct_STRIP"; then | |
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2564 $as_echo "$ac_ct_STRIP" >&6; } | |
2565 else | |
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2567 $as_echo "no" >&6; } | |
2568 fi | |
2569 | |
2570 if test "x$ac_ct_STRIP" = x; then | |
2571 STRIP=":" | |
2572 else | |
2573 case $cross_compiling:$ac_tool_warned in | |
2574 yes:) | |
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2576 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2577 ac_tool_warned=yes ;; | |
2578 esac | |
2579 STRIP=$ac_ct_STRIP | |
2580 fi | |
2581 else | |
2582 STRIP="$ac_cv_prog_STRIP" | |
2583 fi | |
2584 | |
2585 fi | |
2586 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2587 | |
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2589 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2590 if test -z "$MKDIR_P"; then | |
2591 if ${ac_cv_path_mkdir+:} false; then : | |
2592 $as_echo_n "(cached) " >&6 | |
2593 else | |
2594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2595 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2596 do | |
2597 IFS=$as_save_IFS | |
2598 test -z "$as_dir" && as_dir=. | |
2599 for ac_prog in mkdir gmkdir; do | |
2600 for ac_exec_ext in '' $ac_executable_extensions; do | |
2601 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
2602 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2603 'mkdir (GNU coreutils) '* | \ | |
2604 'mkdir (coreutils) '* | \ | |
2605 'mkdir (fileutils) '4.1*) | |
2606 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2607 break 3;; | |
2608 esac | |
2609 done | |
2610 done | |
2611 done | |
2612 IFS=$as_save_IFS | |
2613 | |
2614 fi | |
2615 | |
2616 test -d ./--version && rmdir ./--version | |
2617 if test "${ac_cv_path_mkdir+set}" = set; then | |
2618 MKDIR_P="$ac_cv_path_mkdir -p" | |
2619 else | |
2620 # As a last resort, use the slow shell script. Don't cache a | |
2621 # value for MKDIR_P within a source directory, because that will | |
2622 # break other packages using the cache if that directory is | |
2623 # removed, or if the value is a relative name. | |
2624 MKDIR_P="$ac_install_sh -d" | |
2625 fi | |
2626 fi | |
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2628 $as_echo "$MKDIR_P" >&6; } | |
2629 | |
2630 for ac_prog in gawk mawk nawk awk | |
2631 do | |
2632 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2633 set dummy $ac_prog; ac_word=$2 | |
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2635 $as_echo_n "checking for $ac_word... " >&6; } | |
2636 if ${ac_cv_prog_AWK+:} false; then : | |
2637 $as_echo_n "(cached) " >&6 | |
2638 else | |
2639 if test -n "$AWK"; then | |
2640 ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2641 else | |
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2643 for as_dir in $PATH | |
2644 do | |
2645 IFS=$as_save_IFS | |
2646 test -z "$as_dir" && as_dir=. | |
2647 for ac_exec_ext in '' $ac_executable_extensions; do | |
2648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2649 ac_cv_prog_AWK="$ac_prog" | |
2650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2651 break 2 | |
2652 fi | |
2653 done | |
2654 done | |
2655 IFS=$as_save_IFS | |
2656 | |
2657 fi | |
2658 fi | |
2659 AWK=$ac_cv_prog_AWK | |
2660 if test -n "$AWK"; then | |
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2662 $as_echo "$AWK" >&6; } | |
2663 else | |
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2665 $as_echo "no" >&6; } | |
2666 fi | |
2667 | |
2668 | |
2669 test -n "$AWK" && break | |
2670 done | |
2671 | |
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2673 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2674 set x ${MAKE-make} | |
2675 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2676 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
2677 $as_echo_n "(cached) " >&6 | |
2678 else | |
2679 cat >conftest.make <<\_ACEOF | |
2680 SHELL = /bin/sh | |
2681 all: | |
2682 @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2683 _ACEOF | |
2684 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
2685 case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2686 *@@@%%%=?*=@@@%%%*) | |
2687 eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2688 *) | |
2689 eval ac_cv_prog_make_${ac_make}_set=no;; | |
2690 esac | |
2691 rm -f conftest.make | |
2692 fi | |
2693 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2695 $as_echo "yes" >&6; } | |
2696 SET_MAKE= | |
2697 else | |
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2699 $as_echo "no" >&6; } | |
2700 SET_MAKE="MAKE=${MAKE-make}" | |
2701 fi | |
2702 | |
2703 rm -rf .tst 2>/dev/null | |
2704 mkdir .tst 2>/dev/null | |
2705 if test -d .tst; then | |
2706 am__leading_dot=. | |
2707 else | |
2708 am__leading_dot=_ | |
2709 fi | |
2710 rmdir .tst 2>/dev/null | |
2711 | |
2712 # Check whether --enable-silent-rules was given. | |
2713 if test "${enable_silent_rules+set}" = set; then : | |
2714 enableval=$enable_silent_rules; | |
2715 fi | |
2716 | |
2717 case $enable_silent_rules in # ((( | |
2718 yes) AM_DEFAULT_VERBOSITY=0;; | |
2719 no) AM_DEFAULT_VERBOSITY=1;; | |
2720 *) AM_DEFAULT_VERBOSITY=1;; | |
2721 esac | |
2722 am_make=${MAKE-make} | |
2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2724 $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2725 if ${am_cv_make_support_nested_variables+:} false; then : | |
2726 $as_echo_n "(cached) " >&6 | |
2727 else | |
2728 if $as_echo 'TRUE=$(BAR$(V)) | |
2729 BAR0=false | |
2730 BAR1=true | |
2731 V=1 | |
2732 am__doit: | |
2733 @$(TRUE) | |
2734 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2735 am_cv_make_support_nested_variables=yes | |
2736 else | |
2737 am_cv_make_support_nested_variables=no | |
2738 fi | |
2739 fi | |
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2741 $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2742 if test $am_cv_make_support_nested_variables = yes; then | |
2743 AM_V='$(V)' | |
2744 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2745 else | |
2746 AM_V=$AM_DEFAULT_VERBOSITY | |
2747 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2748 fi | |
2749 AM_BACKSLASH='\' | |
2750 | |
2751 if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
2752 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2753 # is not polluted with repeated "-I." | |
2754 am__isrc=' -I$(srcdir)' | |
2755 # test to see if srcdir already configured | |
2756 if test -f $srcdir/config.status; then | |
2757 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
2758 fi | |
2759 fi | |
2760 | |
2761 # test whether we have cygpath | |
2762 if test -z "$CYGPATH_W"; then | |
2763 if (cygpath --version) >/dev/null 2>/dev/null; then | |
2764 CYGPATH_W='cygpath -w' | |
2765 else | |
2766 CYGPATH_W=echo | |
2767 fi | |
2768 fi | |
2769 | |
2770 | |
2771 # Define the identity of the package. | |
2772 PACKAGE='portaudiocpp' | |
2773 VERSION='12' | |
2774 | |
2775 | |
2776 cat >>confdefs.h <<_ACEOF | |
2777 #define PACKAGE "$PACKAGE" | |
2778 _ACEOF | |
2779 | |
2780 | |
2781 cat >>confdefs.h <<_ACEOF | |
2782 #define VERSION "$VERSION" | |
2783 _ACEOF | |
2784 | |
2785 # Some tools Automake needs. | |
2786 | |
2787 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2788 | |
2789 | |
2790 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2791 | |
2792 | |
2793 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2794 | |
2795 | |
2796 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2797 | |
2798 | |
2799 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2800 | |
2801 # For better backward compatibility. To be removed once Automake 1.9.x | |
2802 # dies out for good. For more background, see: | |
2803 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
2804 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
2805 mkdir_p='$(MKDIR_P)' | |
2806 | |
2807 # We need awk for the "check" target. The system "awk" is bad on | |
2808 # some platforms. | |
2809 # Always define AMTAR for backward compatibility. Yes, it's still used | |
2810 # in the wild :-( We should find a proper way to deprecate it ... | |
2811 AMTAR='$${TAR-tar}' | |
2812 | |
2813 | |
2814 # We'll loop over all known methods to create a tar archive until one works. | |
2815 _am_tools='gnutar pax cpio none' | |
2816 | |
2817 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
2818 | |
2819 | |
2820 | |
2821 | |
2822 | |
2823 | |
2824 # POSIX will say in a future version that running "rm -f" with no argument | |
2825 # is OK; and we want to be able to make that assumption in our Makefile | |
2826 # recipes. So use an aggressive probe to check that the usage we want is | |
2827 # actually supported "in the wild" to an acceptable degree. | |
2828 # See automake bug#10828. | |
2829 # To make any issue more visible, cause the running configure to be aborted | |
2830 # by default if the 'rm' program in use doesn't match our expectations; the | |
2831 # user can still override this though. | |
2832 if rm -f && rm -fr && rm -rf; then : OK; else | |
2833 cat >&2 <<'END' | |
2834 Oops! | |
2835 | |
2836 Your 'rm' program seems unable to run without file operands specified | |
2837 on the command line, even when the '-f' option is present. This is contrary | |
2838 to the behaviour of most rm programs out there, and not conforming with | |
2839 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
2840 | |
2841 Please tell bug-automake@gnu.org about your system, including the value | |
2842 of your $PATH and any error possibly output before this message. This | |
2843 can help us improve future automake versions. | |
2844 | |
2845 END | |
2846 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
2847 echo 'Configuration will proceed anyway, since you have set the' >&2 | |
2848 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
2849 echo >&2 | |
2850 else | |
2851 cat >&2 <<'END' | |
2852 Aborting the configuration process, to ensure you take notice of the issue. | |
2853 | |
2854 You can download and install GNU coreutils to get an 'rm' implementation | |
2855 that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
2856 | |
2857 If you want to complete the configuration process using your problematic | |
2858 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
2859 to "yes", and re-run configure. | |
2860 | |
2861 END | |
2862 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
2863 fi | |
2864 fi | |
2865 | |
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
2867 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
2868 # Check whether --enable-maintainer-mode was given. | |
2869 if test "${enable_maintainer_mode+set}" = set; then : | |
2870 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
2871 else | |
2872 USE_MAINTAINER_MODE=no | |
2873 fi | |
2874 | |
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
2876 $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
2877 if test $USE_MAINTAINER_MODE = yes; then | |
2878 MAINTAINER_MODE_TRUE= | |
2879 MAINTAINER_MODE_FALSE='#' | |
2880 else | |
2881 MAINTAINER_MODE_TRUE='#' | |
2882 MAINTAINER_MODE_FALSE= | |
2883 fi | |
2884 | |
2885 MAINT=$MAINTAINER_MODE_TRUE | |
2886 | |
2887 | |
2888 | |
2889 ###### Top-level directory of pacpp | |
2890 ###### This makes it easy to shuffle the build directories | |
2891 ###### Also edit AC_CONFIG_SRCDIR above (wouldn't accept this variable)! | |
2892 PACPP_ROOT="\$(top_srcdir)" | |
2893 PORTAUDIO_ROOT="../.." | |
2894 | |
2895 # Various other variables and flags | |
2896 DEFAULT_INCLUDES="-I$PACPP_ROOT/include -I$PACPP_ROOT/$PORTAUDIO_ROOT/include" | |
2897 CFLAGS=${CFLAGS-"-g -O2 -Wall -ansi -pedantic"} | |
2898 CXXFLAGS=${CXXFLAGS-"${CFLAGS}"} | |
2899 | |
2900 LT_VERSION_INFO="0:12:0" | |
2901 | |
2902 # Checks for programs | |
2903 | |
2904 ac_ext=c | |
2905 ac_cpp='$CPP $CPPFLAGS' | |
2906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2908 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2909 if test -n "$ac_tool_prefix"; then | |
2910 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2911 set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
2912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2913 $as_echo_n "checking for $ac_word... " >&6; } | |
2914 if ${ac_cv_prog_CC+:} false; then : | |
2915 $as_echo_n "(cached) " >&6 | |
2916 else | |
2917 if test -n "$CC"; then | |
2918 ac_cv_prog_CC="$CC" # Let the user override the test. | |
2919 else | |
2920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2921 for as_dir in $PATH | |
2922 do | |
2923 IFS=$as_save_IFS | |
2924 test -z "$as_dir" && as_dir=. | |
2925 for ac_exec_ext in '' $ac_executable_extensions; do | |
2926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2927 ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
2928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2929 break 2 | |
2930 fi | |
2931 done | |
2932 done | |
2933 IFS=$as_save_IFS | |
2934 | |
2935 fi | |
2936 fi | |
2937 CC=$ac_cv_prog_CC | |
2938 if test -n "$CC"; then | |
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
2940 $as_echo "$CC" >&6; } | |
2941 else | |
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2943 $as_echo "no" >&6; } | |
2944 fi | |
2945 | |
2946 | |
2947 fi | |
2948 if test -z "$ac_cv_prog_CC"; then | |
2949 ac_ct_CC=$CC | |
2950 # Extract the first word of "gcc", so it can be a program name with args. | |
2951 set dummy gcc; ac_word=$2 | |
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2953 $as_echo_n "checking for $ac_word... " >&6; } | |
2954 if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
2955 $as_echo_n "(cached) " >&6 | |
2956 else | |
2957 if test -n "$ac_ct_CC"; then | |
2958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2959 else | |
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2961 for as_dir in $PATH | |
2962 do | |
2963 IFS=$as_save_IFS | |
2964 test -z "$as_dir" && as_dir=. | |
2965 for ac_exec_ext in '' $ac_executable_extensions; do | |
2966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2967 ac_cv_prog_ac_ct_CC="gcc" | |
2968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2969 break 2 | |
2970 fi | |
2971 done | |
2972 done | |
2973 IFS=$as_save_IFS | |
2974 | |
2975 fi | |
2976 fi | |
2977 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2978 if test -n "$ac_ct_CC"; then | |
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
2980 $as_echo "$ac_ct_CC" >&6; } | |
2981 else | |
2982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2983 $as_echo "no" >&6; } | |
2984 fi | |
2985 | |
2986 if test "x$ac_ct_CC" = x; then | |
2987 CC="" | |
2988 else | |
2989 case $cross_compiling:$ac_tool_warned in | |
2990 yes:) | |
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2992 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2993 ac_tool_warned=yes ;; | |
2994 esac | |
2995 CC=$ac_ct_CC | |
2996 fi | |
2997 else | |
2998 CC="$ac_cv_prog_CC" | |
2999 fi | |
3000 | |
3001 if test -z "$CC"; then | |
3002 if test -n "$ac_tool_prefix"; then | |
3003 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3004 set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3006 $as_echo_n "checking for $ac_word... " >&6; } | |
3007 if ${ac_cv_prog_CC+:} false; then : | |
3008 $as_echo_n "(cached) " >&6 | |
3009 else | |
3010 if test -n "$CC"; then | |
3011 ac_cv_prog_CC="$CC" # Let the user override the test. | |
3012 else | |
3013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3014 for as_dir in $PATH | |
3015 do | |
3016 IFS=$as_save_IFS | |
3017 test -z "$as_dir" && as_dir=. | |
3018 for ac_exec_ext in '' $ac_executable_extensions; do | |
3019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3020 ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3022 break 2 | |
3023 fi | |
3024 done | |
3025 done | |
3026 IFS=$as_save_IFS | |
3027 | |
3028 fi | |
3029 fi | |
3030 CC=$ac_cv_prog_CC | |
3031 if test -n "$CC"; then | |
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3033 $as_echo "$CC" >&6; } | |
3034 else | |
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3036 $as_echo "no" >&6; } | |
3037 fi | |
3038 | |
3039 | |
3040 fi | |
3041 fi | |
3042 if test -z "$CC"; then | |
3043 # Extract the first word of "cc", so it can be a program name with args. | |
3044 set dummy cc; ac_word=$2 | |
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3046 $as_echo_n "checking for $ac_word... " >&6; } | |
3047 if ${ac_cv_prog_CC+:} false; then : | |
3048 $as_echo_n "(cached) " >&6 | |
3049 else | |
3050 if test -n "$CC"; then | |
3051 ac_cv_prog_CC="$CC" # Let the user override the test. | |
3052 else | |
3053 ac_prog_rejected=no | |
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3055 for as_dir in $PATH | |
3056 do | |
3057 IFS=$as_save_IFS | |
3058 test -z "$as_dir" && as_dir=. | |
3059 for ac_exec_ext in '' $ac_executable_extensions; do | |
3060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3061 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3062 ac_prog_rejected=yes | |
3063 continue | |
3064 fi | |
3065 ac_cv_prog_CC="cc" | |
3066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3067 break 2 | |
3068 fi | |
3069 done | |
3070 done | |
3071 IFS=$as_save_IFS | |
3072 | |
3073 if test $ac_prog_rejected = yes; then | |
3074 # We found a bogon in the path, so make sure we never use it. | |
3075 set dummy $ac_cv_prog_CC | |
3076 shift | |
3077 if test $# != 0; then | |
3078 # We chose a different compiler from the bogus one. | |
3079 # However, it has the same basename, so the bogon will be chosen | |
3080 # first if we set CC to just the basename; use the full file name. | |
3081 shift | |
3082 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
3083 fi | |
3084 fi | |
3085 fi | |
3086 fi | |
3087 CC=$ac_cv_prog_CC | |
3088 if test -n "$CC"; then | |
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3090 $as_echo "$CC" >&6; } | |
3091 else | |
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3093 $as_echo "no" >&6; } | |
3094 fi | |
3095 | |
3096 | |
3097 fi | |
3098 if test -z "$CC"; then | |
3099 if test -n "$ac_tool_prefix"; then | |
3100 for ac_prog in cl.exe | |
3101 do | |
3102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3103 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3105 $as_echo_n "checking for $ac_word... " >&6; } | |
3106 if ${ac_cv_prog_CC+:} false; then : | |
3107 $as_echo_n "(cached) " >&6 | |
3108 else | |
3109 if test -n "$CC"; then | |
3110 ac_cv_prog_CC="$CC" # Let the user override the test. | |
3111 else | |
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3113 for as_dir in $PATH | |
3114 do | |
3115 IFS=$as_save_IFS | |
3116 test -z "$as_dir" && as_dir=. | |
3117 for ac_exec_ext in '' $ac_executable_extensions; do | |
3118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3119 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3121 break 2 | |
3122 fi | |
3123 done | |
3124 done | |
3125 IFS=$as_save_IFS | |
3126 | |
3127 fi | |
3128 fi | |
3129 CC=$ac_cv_prog_CC | |
3130 if test -n "$CC"; then | |
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3132 $as_echo "$CC" >&6; } | |
3133 else | |
3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3135 $as_echo "no" >&6; } | |
3136 fi | |
3137 | |
3138 | |
3139 test -n "$CC" && break | |
3140 done | |
3141 fi | |
3142 if test -z "$CC"; then | |
3143 ac_ct_CC=$CC | |
3144 for ac_prog in cl.exe | |
3145 do | |
3146 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3147 set dummy $ac_prog; ac_word=$2 | |
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3149 $as_echo_n "checking for $ac_word... " >&6; } | |
3150 if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3151 $as_echo_n "(cached) " >&6 | |
3152 else | |
3153 if test -n "$ac_ct_CC"; then | |
3154 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3155 else | |
3156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3157 for as_dir in $PATH | |
3158 do | |
3159 IFS=$as_save_IFS | |
3160 test -z "$as_dir" && as_dir=. | |
3161 for ac_exec_ext in '' $ac_executable_extensions; do | |
3162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3163 ac_cv_prog_ac_ct_CC="$ac_prog" | |
3164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3165 break 2 | |
3166 fi | |
3167 done | |
3168 done | |
3169 IFS=$as_save_IFS | |
3170 | |
3171 fi | |
3172 fi | |
3173 ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3174 if test -n "$ac_ct_CC"; then | |
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3176 $as_echo "$ac_ct_CC" >&6; } | |
3177 else | |
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3179 $as_echo "no" >&6; } | |
3180 fi | |
3181 | |
3182 | |
3183 test -n "$ac_ct_CC" && break | |
3184 done | |
3185 | |
3186 if test "x$ac_ct_CC" = x; then | |
3187 CC="" | |
3188 else | |
3189 case $cross_compiling:$ac_tool_warned in | |
3190 yes:) | |
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3193 ac_tool_warned=yes ;; | |
3194 esac | |
3195 CC=$ac_ct_CC | |
3196 fi | |
3197 fi | |
3198 | |
3199 fi | |
3200 | |
3201 | |
3202 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3203 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3204 as_fn_error $? "no acceptable C compiler found in \$PATH | |
3205 See \`config.log' for more details" "$LINENO" 5; } | |
3206 | |
3207 # Provide some information about the compiler. | |
3208 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
3209 set X $ac_compile | |
3210 ac_compiler=$2 | |
3211 for ac_option in --version -v -V -qversion; do | |
3212 { { ac_try="$ac_compiler $ac_option >&5" | |
3213 case "(($ac_try" in | |
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3215 *) ac_try_echo=$ac_try;; | |
3216 esac | |
3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3218 $as_echo "$ac_try_echo"; } >&5 | |
3219 (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3220 ac_status=$? | |
3221 if test -s conftest.err; then | |
3222 sed '10a\ | |
3223 ... rest of stderr output deleted ... | |
3224 10q' conftest.err >conftest.er1 | |
3225 cat conftest.er1 >&5 | |
3226 fi | |
3227 rm -f conftest.er1 conftest.err | |
3228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3229 test $ac_status = 0; } | |
3230 done | |
3231 | |
3232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3233 /* end confdefs.h. */ | |
3234 | |
3235 int | |
3236 main () | |
3237 { | |
3238 | |
3239 ; | |
3240 return 0; | |
3241 } | |
3242 _ACEOF | |
3243 ac_clean_files_save=$ac_clean_files | |
3244 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3245 # Try to create an executable without -o first, disregard a.out. | |
3246 # It will help us diagnose broken compilers, and finding out an intuition | |
3247 # of exeext. | |
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 | |
3249 $as_echo_n "checking whether the C compiler works... " >&6; } | |
3250 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3251 | |
3252 # The possible output files: | |
3253 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3254 | |
3255 ac_rmfiles= | |
3256 for ac_file in $ac_files | |
3257 do | |
3258 case $ac_file in | |
3259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3260 * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3261 esac | |
3262 done | |
3263 rm -f $ac_rmfiles | |
3264 | |
3265 if { { ac_try="$ac_link_default" | |
3266 case "(($ac_try" in | |
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3268 *) ac_try_echo=$ac_try;; | |
3269 esac | |
3270 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3271 $as_echo "$ac_try_echo"; } >&5 | |
3272 (eval "$ac_link_default") 2>&5 | |
3273 ac_status=$? | |
3274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3275 test $ac_status = 0; }; then : | |
3276 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3277 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3278 # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3279 # so that the user can short-circuit this test for compilers unknown to | |
3280 # Autoconf. | |
3281 for ac_file in $ac_files '' | |
3282 do | |
3283 test -f "$ac_file" || continue | |
3284 case $ac_file in | |
3285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3286 ;; | |
3287 [ab].out ) | |
3288 # We found the default executable, but exeext='' is most | |
3289 # certainly right. | |
3290 break;; | |
3291 *.* ) | |
3292 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3293 then :; else | |
3294 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3295 fi | |
3296 # We set ac_cv_exeext here because the later test for it is not | |
3297 # safe: cross compilers may not add the suffix if given an `-o' | |
3298 # argument, so we may need to know it at that point already. | |
3299 # Even if this section looks crufty: it has the advantage of | |
3300 # actually working. | |
3301 break;; | |
3302 * ) | |
3303 break;; | |
3304 esac | |
3305 done | |
3306 test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3307 | |
3308 else | |
3309 ac_file='' | |
3310 fi | |
3311 if test -z "$ac_file"; then : | |
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3313 $as_echo "no" >&6; } | |
3314 $as_echo "$as_me: failed program was:" >&5 | |
3315 sed 's/^/| /' conftest.$ac_ext >&5 | |
3316 | |
3317 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3318 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3319 as_fn_error 77 "C compiler cannot create executables | |
3320 See \`config.log' for more details" "$LINENO" 5; } | |
3321 else | |
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3323 $as_echo "yes" >&6; } | |
3324 fi | |
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 | |
3326 $as_echo_n "checking for C compiler default output file name... " >&6; } | |
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3328 $as_echo "$ac_file" >&6; } | |
3329 ac_exeext=$ac_cv_exeext | |
3330 | |
3331 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3332 ac_clean_files=$ac_clean_files_save | |
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3334 $as_echo_n "checking for suffix of executables... " >&6; } | |
3335 if { { ac_try="$ac_link" | |
3336 case "(($ac_try" in | |
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3338 *) ac_try_echo=$ac_try;; | |
3339 esac | |
3340 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3341 $as_echo "$ac_try_echo"; } >&5 | |
3342 (eval "$ac_link") 2>&5 | |
3343 ac_status=$? | |
3344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3345 test $ac_status = 0; }; then : | |
3346 # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3347 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3348 # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3349 # `rm'. | |
3350 for ac_file in conftest.exe conftest conftest.*; do | |
3351 test -f "$ac_file" || continue | |
3352 case $ac_file in | |
3353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3354 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3355 break;; | |
3356 * ) break;; | |
3357 esac | |
3358 done | |
3359 else | |
3360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3362 as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3363 See \`config.log' for more details" "$LINENO" 5; } | |
3364 fi | |
3365 rm -f conftest conftest$ac_cv_exeext | |
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3367 $as_echo "$ac_cv_exeext" >&6; } | |
3368 | |
3369 rm -f conftest.$ac_ext | |
3370 EXEEXT=$ac_cv_exeext | |
3371 ac_exeext=$EXEEXT | |
3372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3373 /* end confdefs.h. */ | |
3374 #include <stdio.h> | |
3375 int | |
3376 main () | |
3377 { | |
3378 FILE *f = fopen ("conftest.out", "w"); | |
3379 return ferror (f) || fclose (f) != 0; | |
3380 | |
3381 ; | |
3382 return 0; | |
3383 } | |
3384 _ACEOF | |
3385 ac_clean_files="$ac_clean_files conftest.out" | |
3386 # Check that the compiler produces executables we can run. If not, either | |
3387 # the compiler is broken, or we cross compile. | |
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3389 $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3390 if test "$cross_compiling" != yes; then | |
3391 { { ac_try="$ac_link" | |
3392 case "(($ac_try" in | |
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3394 *) ac_try_echo=$ac_try;; | |
3395 esac | |
3396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3397 $as_echo "$ac_try_echo"; } >&5 | |
3398 (eval "$ac_link") 2>&5 | |
3399 ac_status=$? | |
3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3401 test $ac_status = 0; } | |
3402 if { ac_try='./conftest$ac_cv_exeext' | |
3403 { { case "(($ac_try" in | |
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3405 *) ac_try_echo=$ac_try;; | |
3406 esac | |
3407 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3408 $as_echo "$ac_try_echo"; } >&5 | |
3409 (eval "$ac_try") 2>&5 | |
3410 ac_status=$? | |
3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3412 test $ac_status = 0; }; }; then | |
3413 cross_compiling=no | |
3414 else | |
3415 if test "$cross_compiling" = maybe; then | |
3416 cross_compiling=yes | |
3417 else | |
3418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3419 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3420 as_fn_error $? "cannot run C compiled programs. | |
3421 If you meant to cross compile, use \`--host'. | |
3422 See \`config.log' for more details" "$LINENO" 5; } | |
3423 fi | |
3424 fi | |
3425 fi | |
3426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3427 $as_echo "$cross_compiling" >&6; } | |
3428 | |
3429 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3430 ac_clean_files=$ac_clean_files_save | |
3431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3432 $as_echo_n "checking for suffix of object files... " >&6; } | |
3433 if ${ac_cv_objext+:} false; then : | |
3434 $as_echo_n "(cached) " >&6 | |
3435 else | |
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3437 /* end confdefs.h. */ | |
3438 | |
3439 int | |
3440 main () | |
3441 { | |
3442 | |
3443 ; | |
3444 return 0; | |
3445 } | |
3446 _ACEOF | |
3447 rm -f conftest.o conftest.obj | |
3448 if { { ac_try="$ac_compile" | |
3449 case "(($ac_try" in | |
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3451 *) ac_try_echo=$ac_try;; | |
3452 esac | |
3453 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3454 $as_echo "$ac_try_echo"; } >&5 | |
3455 (eval "$ac_compile") 2>&5 | |
3456 ac_status=$? | |
3457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3458 test $ac_status = 0; }; then : | |
3459 for ac_file in conftest.o conftest.obj conftest.*; do | |
3460 test -f "$ac_file" || continue; | |
3461 case $ac_file in | |
3462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3463 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3464 break;; | |
3465 esac | |
3466 done | |
3467 else | |
3468 $as_echo "$as_me: failed program was:" >&5 | |
3469 sed 's/^/| /' conftest.$ac_ext >&5 | |
3470 | |
3471 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3472 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3473 as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3474 See \`config.log' for more details" "$LINENO" 5; } | |
3475 fi | |
3476 rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3477 fi | |
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3479 $as_echo "$ac_cv_objext" >&6; } | |
3480 OBJEXT=$ac_cv_objext | |
3481 ac_objext=$OBJEXT | |
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
3483 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
3484 if ${ac_cv_c_compiler_gnu+:} false; then : | |
3485 $as_echo_n "(cached) " >&6 | |
3486 else | |
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3488 /* end confdefs.h. */ | |
3489 | |
3490 int | |
3491 main () | |
3492 { | |
3493 #ifndef __GNUC__ | |
3494 choke me | |
3495 #endif | |
3496 | |
3497 ; | |
3498 return 0; | |
3499 } | |
3500 _ACEOF | |
3501 if ac_fn_c_try_compile "$LINENO"; then : | |
3502 ac_compiler_gnu=yes | |
3503 else | |
3504 ac_compiler_gnu=no | |
3505 fi | |
3506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3507 ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3508 | |
3509 fi | |
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
3511 $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
3512 if test $ac_compiler_gnu = yes; then | |
3513 GCC=yes | |
3514 else | |
3515 GCC= | |
3516 fi | |
3517 ac_test_CFLAGS=${CFLAGS+set} | |
3518 ac_save_CFLAGS=$CFLAGS | |
3519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
3520 $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
3521 if ${ac_cv_prog_cc_g+:} false; then : | |
3522 $as_echo_n "(cached) " >&6 | |
3523 else | |
3524 ac_save_c_werror_flag=$ac_c_werror_flag | |
3525 ac_c_werror_flag=yes | |
3526 ac_cv_prog_cc_g=no | |
3527 CFLAGS="-g" | |
3528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3529 /* end confdefs.h. */ | |
3530 | |
3531 int | |
3532 main () | |
3533 { | |
3534 | |
3535 ; | |
3536 return 0; | |
3537 } | |
3538 _ACEOF | |
3539 if ac_fn_c_try_compile "$LINENO"; then : | |
3540 ac_cv_prog_cc_g=yes | |
3541 else | |
3542 CFLAGS="" | |
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3544 /* end confdefs.h. */ | |
3545 | |
3546 int | |
3547 main () | |
3548 { | |
3549 | |
3550 ; | |
3551 return 0; | |
3552 } | |
3553 _ACEOF | |
3554 if ac_fn_c_try_compile "$LINENO"; then : | |
3555 | |
3556 else | |
3557 ac_c_werror_flag=$ac_save_c_werror_flag | |
3558 CFLAGS="-g" | |
3559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3560 /* end confdefs.h. */ | |
3561 | |
3562 int | |
3563 main () | |
3564 { | |
3565 | |
3566 ; | |
3567 return 0; | |
3568 } | |
3569 _ACEOF | |
3570 if ac_fn_c_try_compile "$LINENO"; then : | |
3571 ac_cv_prog_cc_g=yes | |
3572 fi | |
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3574 fi | |
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3576 fi | |
3577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3578 ac_c_werror_flag=$ac_save_c_werror_flag | |
3579 fi | |
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
3581 $as_echo "$ac_cv_prog_cc_g" >&6; } | |
3582 if test "$ac_test_CFLAGS" = set; then | |
3583 CFLAGS=$ac_save_CFLAGS | |
3584 elif test $ac_cv_prog_cc_g = yes; then | |
3585 if test "$GCC" = yes; then | |
3586 CFLAGS="-g -O2" | |
3587 else | |
3588 CFLAGS="-g" | |
3589 fi | |
3590 else | |
3591 if test "$GCC" = yes; then | |
3592 CFLAGS="-O2" | |
3593 else | |
3594 CFLAGS= | |
3595 fi | |
3596 fi | |
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
3598 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
3599 if ${ac_cv_prog_cc_c89+:} false; then : | |
3600 $as_echo_n "(cached) " >&6 | |
3601 else | |
3602 ac_cv_prog_cc_c89=no | |
3603 ac_save_CC=$CC | |
3604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3605 /* end confdefs.h. */ | |
3606 #include <stdarg.h> | |
3607 #include <stdio.h> | |
3608 struct stat; | |
3609 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3610 struct buf { int x; }; | |
3611 FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3612 static char *e (p, i) | |
3613 char **p; | |
3614 int i; | |
3615 { | |
3616 return p[i]; | |
3617 } | |
3618 static char *f (char * (*g) (char **, int), char **p, ...) | |
3619 { | |
3620 char *s; | |
3621 va_list v; | |
3622 va_start (v,p); | |
3623 s = g (p, va_arg (v,int)); | |
3624 va_end (v); | |
3625 return s; | |
3626 } | |
3627 | |
3628 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3629 function prototypes and stuff, but not '\xHH' hex character constants. | |
3630 These don't provoke an error unfortunately, instead are silently treated | |
3631 as 'x'. The following induces an error, until -std is added to get | |
3632 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3633 array size at least. It's necessary to write '\x00'==0 to get something | |
3634 that's true only with -std. */ | |
3635 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3636 | |
3637 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3638 inside strings and character constants. */ | |
3639 #define FOO(x) 'x' | |
3640 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3641 | |
3642 int test (int i, double x); | |
3643 struct s1 {int (*f) (int a);}; | |
3644 struct s2 {int (*f) (double a);}; | |
3645 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3646 int argc; | |
3647 char **argv; | |
3648 int | |
3649 main () | |
3650 { | |
3651 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3652 ; | |
3653 return 0; | |
3654 } | |
3655 _ACEOF | |
3656 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3657 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3658 do | |
3659 CC="$ac_save_CC $ac_arg" | |
3660 if ac_fn_c_try_compile "$LINENO"; then : | |
3661 ac_cv_prog_cc_c89=$ac_arg | |
3662 fi | |
3663 rm -f core conftest.err conftest.$ac_objext | |
3664 test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3665 done | |
3666 rm -f conftest.$ac_ext | |
3667 CC=$ac_save_CC | |
3668 | |
3669 fi | |
3670 # AC_CACHE_VAL | |
3671 case "x$ac_cv_prog_cc_c89" in | |
3672 x) | |
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
3674 $as_echo "none needed" >&6; } ;; | |
3675 xno) | |
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
3677 $as_echo "unsupported" >&6; } ;; | |
3678 *) | |
3679 CC="$CC $ac_cv_prog_cc_c89" | |
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
3681 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
3682 esac | |
3683 if test "x$ac_cv_prog_cc_c89" != xno; then : | |
3684 | |
3685 fi | |
3686 | |
3687 ac_ext=c | |
3688 ac_cpp='$CPP $CPPFLAGS' | |
3689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3691 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3692 | |
3693 ac_ext=c | |
3694 ac_cpp='$CPP $CPPFLAGS' | |
3695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3697 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
3699 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
3700 if ${am_cv_prog_cc_c_o+:} false; then : | |
3701 $as_echo_n "(cached) " >&6 | |
3702 else | |
3703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3704 /* end confdefs.h. */ | |
3705 | |
3706 int | |
3707 main () | |
3708 { | |
3709 | |
3710 ; | |
3711 return 0; | |
3712 } | |
3713 _ACEOF | |
3714 # Make sure it works both with $CC and with simple cc. | |
3715 # Following AC_PROG_CC_C_O, we do the test twice because some | |
3716 # compilers refuse to overwrite an existing .o file with -o, | |
3717 # though they will create one. | |
3718 am_cv_prog_cc_c_o=yes | |
3719 for am_i in 1 2; do | |
3720 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
3721 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
3722 ac_status=$? | |
3723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3724 (exit $ac_status); } \ | |
3725 && test -f conftest2.$ac_objext; then | |
3726 : OK | |
3727 else | |
3728 am_cv_prog_cc_c_o=no | |
3729 break | |
3730 fi | |
3731 done | |
3732 rm -f core conftest* | |
3733 unset am_i | |
3734 fi | |
3735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
3736 $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
3737 if test "$am_cv_prog_cc_c_o" != yes; then | |
3738 # Losing compiler, so override with the script. | |
3739 # FIXME: It is wrong to rewrite CC. | |
3740 # But if we don't then we get into trouble of one sort or another. | |
3741 # A longer-term fix would be to have automake use am__CC in this case, | |
3742 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3743 CC="$am_aux_dir/compile $CC" | |
3744 fi | |
3745 ac_ext=c | |
3746 ac_cpp='$CPP $CPPFLAGS' | |
3747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3749 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3750 | |
3751 DEPDIR="${am__leading_dot}deps" | |
3752 | |
3753 ac_config_commands="$ac_config_commands depfiles" | |
3754 | |
3755 | |
3756 am_make=${MAKE-make} | |
3757 cat > confinc << 'END' | |
3758 am__doit: | |
3759 @echo this is the am__doit target | |
3760 .PHONY: am__doit | |
3761 END | |
3762 # If we don't find an include directive, just comment out the code. | |
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3764 $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3765 am__include="#" | |
3766 am__quote= | |
3767 _am_result=none | |
3768 # First try GNU make style include. | |
3769 echo "include confinc" > confmf | |
3770 # Ignore all kinds of additional output from 'make'. | |
3771 case `$am_make -s -f confmf 2> /dev/null` in #( | |
3772 *the\ am__doit\ target*) | |
3773 am__include=include | |
3774 am__quote= | |
3775 _am_result=GNU | |
3776 ;; | |
3777 esac | |
3778 # Now try BSD make style include. | |
3779 if test "$am__include" = "#"; then | |
3780 echo '.include "confinc"' > confmf | |
3781 case `$am_make -s -f confmf 2> /dev/null` in #( | |
3782 *the\ am__doit\ target*) | |
3783 am__include=.include | |
3784 am__quote="\"" | |
3785 _am_result=BSD | |
3786 ;; | |
3787 esac | |
3788 fi | |
3789 | |
3790 | |
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
3792 $as_echo "$_am_result" >&6; } | |
3793 rm -f confinc confmf | |
3794 | |
3795 # Check whether --enable-dependency-tracking was given. | |
3796 if test "${enable_dependency_tracking+set}" = set; then : | |
3797 enableval=$enable_dependency_tracking; | |
3798 fi | |
3799 | |
3800 if test "x$enable_dependency_tracking" != xno; then | |
3801 am_depcomp="$ac_aux_dir/depcomp" | |
3802 AMDEPBACKSLASH='\' | |
3803 am__nodep='_no' | |
3804 fi | |
3805 if test "x$enable_dependency_tracking" != xno; then | |
3806 AMDEP_TRUE= | |
3807 AMDEP_FALSE='#' | |
3808 else | |
3809 AMDEP_TRUE='#' | |
3810 AMDEP_FALSE= | |
3811 fi | |
3812 | |
3813 | |
3814 | |
3815 depcc="$CC" am_compiler_list= | |
3816 | |
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
3818 $as_echo_n "checking dependency style of $depcc... " >&6; } | |
3819 if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
3820 $as_echo_n "(cached) " >&6 | |
3821 else | |
3822 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3823 # We make a subdir and do the tests there. Otherwise we can end up | |
3824 # making bogus files that we don't know about and never remove. For | |
3825 # instance it was reported that on HP-UX the gcc test will end up | |
3826 # making a dummy file named 'D' -- because '-MD' means "put the output | |
3827 # in D". | |
3828 rm -rf conftest.dir | |
3829 mkdir conftest.dir | |
3830 # Copy depcomp to subdir because otherwise we won't find it if we're | |
3831 # using a relative directory. | |
3832 cp "$am_depcomp" conftest.dir | |
3833 cd conftest.dir | |
3834 # We will build objects and dependencies in a subdirectory because | |
3835 # it helps to detect inapplicable dependency modes. For instance | |
3836 # both Tru64's cc and ICC support -MD to output dependencies as a | |
3837 # side effect of compilation, but ICC will put the dependencies in | |
3838 # the current directory while Tru64 will put them in the object | |
3839 # directory. | |
3840 mkdir sub | |
3841 | |
3842 am_cv_CC_dependencies_compiler_type=none | |
3843 if test "$am_compiler_list" = ""; then | |
3844 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3845 fi | |
3846 am__universal=false | |
3847 case " $depcc " in #( | |
3848 *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3849 esac | |
3850 | |
3851 for depmode in $am_compiler_list; do | |
3852 # Setup a source with many dependencies, because some compilers | |
3853 # like to wrap large dependency lists on column 80 (with \), and | |
3854 # we should not choose a depcomp mode which is confused by this. | |
3855 # | |
3856 # We need to recreate these files for each test, as the compiler may | |
3857 # overwrite some of them when testing with obscure command lines. | |
3858 # This happens at least with the AIX C compiler. | |
3859 : > sub/conftest.c | |
3860 for i in 1 2 3 4 5 6; do | |
3861 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3862 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
3863 # Solaris 10 /bin/sh. | |
3864 echo '/* dummy */' > sub/conftst$i.h | |
3865 done | |
3866 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3867 | |
3868 # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
3869 # mode. It turns out that the SunPro C++ compiler does not properly | |
3870 # handle '-M -o', and we need to detect this. Also, some Intel | |
3871 # versions had trouble with output in subdirs. | |
3872 am__obj=sub/conftest.${OBJEXT-o} | |
3873 am__minus_obj="-o $am__obj" | |
3874 case $depmode in | |
3875 gcc) | |
3876 # This depmode causes a compiler race in universal mode. | |
3877 test "$am__universal" = false || continue | |
3878 ;; | |
3879 nosideeffect) | |
3880 # After this tag, mechanisms are not by side-effect, so they'll | |
3881 # only be used when explicitly requested. | |
3882 if test "x$enable_dependency_tracking" = xyes; then | |
3883 continue | |
3884 else | |
3885 break | |
3886 fi | |
3887 ;; | |
3888 msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
3889 # This compiler won't grok '-c -o', but also, the minuso test has | |
3890 # not run yet. These depmodes are late enough in the game, and | |
3891 # so weak that their functioning should not be impacted. | |
3892 am__obj=conftest.${OBJEXT-o} | |
3893 am__minus_obj= | |
3894 ;; | |
3895 none) break ;; | |
3896 esac | |
3897 if depmode=$depmode \ | |
3898 source=sub/conftest.c object=$am__obj \ | |
3899 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3900 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
3901 >/dev/null 2>conftest.err && | |
3902 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
3903 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3904 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
3905 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3906 # icc doesn't choke on unknown options, it will just issue warnings | |
3907 # or remarks (even with -Werror). So we grep stderr for any message | |
3908 # that says an option was ignored or not supported. | |
3909 # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3910 # icc: Command line warning: ignoring option '-M'; no argument required | |
3911 # The diagnosis changed in icc 8.0: | |
3912 # icc: Command line remark: option '-MP' not supported | |
3913 if (grep 'ignoring option' conftest.err || | |
3914 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3915 am_cv_CC_dependencies_compiler_type=$depmode | |
3916 break | |
3917 fi | |
3918 fi | |
3919 done | |
3920 | |
3921 cd .. | |
3922 rm -rf conftest.dir | |
3923 else | |
3924 am_cv_CC_dependencies_compiler_type=none | |
3925 fi | |
3926 | |
3927 fi | |
3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3929 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
3930 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3931 | |
3932 if | |
3933 test "x$enable_dependency_tracking" != xno \ | |
3934 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3935 am__fastdepCC_TRUE= | |
3936 am__fastdepCC_FALSE='#' | |
3937 else | |
3938 am__fastdepCC_TRUE='#' | |
3939 am__fastdepCC_FALSE= | |
3940 fi | |
3941 | |
3942 | |
3943 ac_ext=cpp | |
3944 ac_cpp='$CXXCPP $CPPFLAGS' | |
3945 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3946 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3947 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3948 if test -z "$CXX"; then | |
3949 if test -n "$CCC"; then | |
3950 CXX=$CCC | |
3951 else | |
3952 if test -n "$ac_tool_prefix"; then | |
3953 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
3954 do | |
3955 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3956 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3958 $as_echo_n "checking for $ac_word... " >&6; } | |
3959 if ${ac_cv_prog_CXX+:} false; then : | |
3960 $as_echo_n "(cached) " >&6 | |
3961 else | |
3962 if test -n "$CXX"; then | |
3963 ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3964 else | |
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3966 for as_dir in $PATH | |
3967 do | |
3968 IFS=$as_save_IFS | |
3969 test -z "$as_dir" && as_dir=. | |
3970 for ac_exec_ext in '' $ac_executable_extensions; do | |
3971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3972 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
3973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3974 break 2 | |
3975 fi | |
3976 done | |
3977 done | |
3978 IFS=$as_save_IFS | |
3979 | |
3980 fi | |
3981 fi | |
3982 CXX=$ac_cv_prog_CXX | |
3983 if test -n "$CXX"; then | |
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
3985 $as_echo "$CXX" >&6; } | |
3986 else | |
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3988 $as_echo "no" >&6; } | |
3989 fi | |
3990 | |
3991 | |
3992 test -n "$CXX" && break | |
3993 done | |
3994 fi | |
3995 if test -z "$CXX"; then | |
3996 ac_ct_CXX=$CXX | |
3997 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
3998 do | |
3999 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4000 set dummy $ac_prog; ac_word=$2 | |
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4002 $as_echo_n "checking for $ac_word... " >&6; } | |
4003 if ${ac_cv_prog_ac_ct_CXX+:} false; then : | |
4004 $as_echo_n "(cached) " >&6 | |
4005 else | |
4006 if test -n "$ac_ct_CXX"; then | |
4007 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
4008 else | |
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4010 for as_dir in $PATH | |
4011 do | |
4012 IFS=$as_save_IFS | |
4013 test -z "$as_dir" && as_dir=. | |
4014 for ac_exec_ext in '' $ac_executable_extensions; do | |
4015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4016 ac_cv_prog_ac_ct_CXX="$ac_prog" | |
4017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4018 break 2 | |
4019 fi | |
4020 done | |
4021 done | |
4022 IFS=$as_save_IFS | |
4023 | |
4024 fi | |
4025 fi | |
4026 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
4027 if test -n "$ac_ct_CXX"; then | |
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
4029 $as_echo "$ac_ct_CXX" >&6; } | |
4030 else | |
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4032 $as_echo "no" >&6; } | |
4033 fi | |
4034 | |
4035 | |
4036 test -n "$ac_ct_CXX" && break | |
4037 done | |
4038 | |
4039 if test "x$ac_ct_CXX" = x; then | |
4040 CXX="g++" | |
4041 else | |
4042 case $cross_compiling:$ac_tool_warned in | |
4043 yes:) | |
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4046 ac_tool_warned=yes ;; | |
4047 esac | |
4048 CXX=$ac_ct_CXX | |
4049 fi | |
4050 fi | |
4051 | |
4052 fi | |
4053 fi | |
4054 # Provide some information about the compiler. | |
4055 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
4056 set X $ac_compile | |
4057 ac_compiler=$2 | |
4058 for ac_option in --version -v -V -qversion; do | |
4059 { { ac_try="$ac_compiler $ac_option >&5" | |
4060 case "(($ac_try" in | |
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4062 *) ac_try_echo=$ac_try;; | |
4063 esac | |
4064 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4065 $as_echo "$ac_try_echo"; } >&5 | |
4066 (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4067 ac_status=$? | |
4068 if test -s conftest.err; then | |
4069 sed '10a\ | |
4070 ... rest of stderr output deleted ... | |
4071 10q' conftest.err >conftest.er1 | |
4072 cat conftest.er1 >&5 | |
4073 fi | |
4074 rm -f conftest.er1 conftest.err | |
4075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4076 test $ac_status = 0; } | |
4077 done | |
4078 | |
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
4080 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
4081 if ${ac_cv_cxx_compiler_gnu+:} false; then : | |
4082 $as_echo_n "(cached) " >&6 | |
4083 else | |
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4085 /* end confdefs.h. */ | |
4086 | |
4087 int | |
4088 main () | |
4089 { | |
4090 #ifndef __GNUC__ | |
4091 choke me | |
4092 #endif | |
4093 | |
4094 ; | |
4095 return 0; | |
4096 } | |
4097 _ACEOF | |
4098 if ac_fn_cxx_try_compile "$LINENO"; then : | |
4099 ac_compiler_gnu=yes | |
4100 else | |
4101 ac_compiler_gnu=no | |
4102 fi | |
4103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4104 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
4105 | |
4106 fi | |
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
4108 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
4109 if test $ac_compiler_gnu = yes; then | |
4110 GXX=yes | |
4111 else | |
4112 GXX= | |
4113 fi | |
4114 ac_test_CXXFLAGS=${CXXFLAGS+set} | |
4115 ac_save_CXXFLAGS=$CXXFLAGS | |
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
4117 $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
4118 if ${ac_cv_prog_cxx_g+:} false; then : | |
4119 $as_echo_n "(cached) " >&6 | |
4120 else | |
4121 ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4122 ac_cxx_werror_flag=yes | |
4123 ac_cv_prog_cxx_g=no | |
4124 CXXFLAGS="-g" | |
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4126 /* end confdefs.h. */ | |
4127 | |
4128 int | |
4129 main () | |
4130 { | |
4131 | |
4132 ; | |
4133 return 0; | |
4134 } | |
4135 _ACEOF | |
4136 if ac_fn_cxx_try_compile "$LINENO"; then : | |
4137 ac_cv_prog_cxx_g=yes | |
4138 else | |
4139 CXXFLAGS="" | |
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4141 /* end confdefs.h. */ | |
4142 | |
4143 int | |
4144 main () | |
4145 { | |
4146 | |
4147 ; | |
4148 return 0; | |
4149 } | |
4150 _ACEOF | |
4151 if ac_fn_cxx_try_compile "$LINENO"; then : | |
4152 | |
4153 else | |
4154 ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4155 CXXFLAGS="-g" | |
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4157 /* end confdefs.h. */ | |
4158 | |
4159 int | |
4160 main () | |
4161 { | |
4162 | |
4163 ; | |
4164 return 0; | |
4165 } | |
4166 _ACEOF | |
4167 if ac_fn_cxx_try_compile "$LINENO"; then : | |
4168 ac_cv_prog_cxx_g=yes | |
4169 fi | |
4170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4171 fi | |
4172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4173 fi | |
4174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4175 ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4176 fi | |
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
4178 $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
4179 if test "$ac_test_CXXFLAGS" = set; then | |
4180 CXXFLAGS=$ac_save_CXXFLAGS | |
4181 elif test $ac_cv_prog_cxx_g = yes; then | |
4182 if test "$GXX" = yes; then | |
4183 CXXFLAGS="-g -O2" | |
4184 else | |
4185 CXXFLAGS="-g" | |
4186 fi | |
4187 else | |
4188 if test "$GXX" = yes; then | |
4189 CXXFLAGS="-O2" | |
4190 else | |
4191 CXXFLAGS= | |
4192 fi | |
4193 fi | |
4194 ac_ext=c | |
4195 ac_cpp='$CPP $CPPFLAGS' | |
4196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4198 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4199 | |
4200 depcc="$CXX" am_compiler_list= | |
4201 | |
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4203 $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4204 if ${am_cv_CXX_dependencies_compiler_type+:} false; then : | |
4205 $as_echo_n "(cached) " >&6 | |
4206 else | |
4207 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4208 # We make a subdir and do the tests there. Otherwise we can end up | |
4209 # making bogus files that we don't know about and never remove. For | |
4210 # instance it was reported that on HP-UX the gcc test will end up | |
4211 # making a dummy file named 'D' -- because '-MD' means "put the output | |
4212 # in D". | |
4213 rm -rf conftest.dir | |
4214 mkdir conftest.dir | |
4215 # Copy depcomp to subdir because otherwise we won't find it if we're | |
4216 # using a relative directory. | |
4217 cp "$am_depcomp" conftest.dir | |
4218 cd conftest.dir | |
4219 # We will build objects and dependencies in a subdirectory because | |
4220 # it helps to detect inapplicable dependency modes. For instance | |
4221 # both Tru64's cc and ICC support -MD to output dependencies as a | |
4222 # side effect of compilation, but ICC will put the dependencies in | |
4223 # the current directory while Tru64 will put them in the object | |
4224 # directory. | |
4225 mkdir sub | |
4226 | |
4227 am_cv_CXX_dependencies_compiler_type=none | |
4228 if test "$am_compiler_list" = ""; then | |
4229 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4230 fi | |
4231 am__universal=false | |
4232 case " $depcc " in #( | |
4233 *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4234 esac | |
4235 | |
4236 for depmode in $am_compiler_list; do | |
4237 # Setup a source with many dependencies, because some compilers | |
4238 # like to wrap large dependency lists on column 80 (with \), and | |
4239 # we should not choose a depcomp mode which is confused by this. | |
4240 # | |
4241 # We need to recreate these files for each test, as the compiler may | |
4242 # overwrite some of them when testing with obscure command lines. | |
4243 # This happens at least with the AIX C compiler. | |
4244 : > sub/conftest.c | |
4245 for i in 1 2 3 4 5 6; do | |
4246 echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4247 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4248 # Solaris 10 /bin/sh. | |
4249 echo '/* dummy */' > sub/conftst$i.h | |
4250 done | |
4251 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4252 | |
4253 # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4254 # mode. It turns out that the SunPro C++ compiler does not properly | |
4255 # handle '-M -o', and we need to detect this. Also, some Intel | |
4256 # versions had trouble with output in subdirs. | |
4257 am__obj=sub/conftest.${OBJEXT-o} | |
4258 am__minus_obj="-o $am__obj" | |
4259 case $depmode in | |
4260 gcc) | |
4261 # This depmode causes a compiler race in universal mode. | |
4262 test "$am__universal" = false || continue | |
4263 ;; | |
4264 nosideeffect) | |
4265 # After this tag, mechanisms are not by side-effect, so they'll | |
4266 # only be used when explicitly requested. | |
4267 if test "x$enable_dependency_tracking" = xyes; then | |
4268 continue | |
4269 else | |
4270 break | |
4271 fi | |
4272 ;; | |
4273 msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4274 # This compiler won't grok '-c -o', but also, the minuso test has | |
4275 # not run yet. These depmodes are late enough in the game, and | |
4276 # so weak that their functioning should not be impacted. | |
4277 am__obj=conftest.${OBJEXT-o} | |
4278 am__minus_obj= | |
4279 ;; | |
4280 none) break ;; | |
4281 esac | |
4282 if depmode=$depmode \ | |
4283 source=sub/conftest.c object=$am__obj \ | |
4284 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4285 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4286 >/dev/null 2>conftest.err && | |
4287 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4288 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4289 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4290 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4291 # icc doesn't choke on unknown options, it will just issue warnings | |
4292 # or remarks (even with -Werror). So we grep stderr for any message | |
4293 # that says an option was ignored or not supported. | |
4294 # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4295 # icc: Command line warning: ignoring option '-M'; no argument required | |
4296 # The diagnosis changed in icc 8.0: | |
4297 # icc: Command line remark: option '-MP' not supported | |
4298 if (grep 'ignoring option' conftest.err || | |
4299 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4300 am_cv_CXX_dependencies_compiler_type=$depmode | |
4301 break | |
4302 fi | |
4303 fi | |
4304 done | |
4305 | |
4306 cd .. | |
4307 rm -rf conftest.dir | |
4308 else | |
4309 am_cv_CXX_dependencies_compiler_type=none | |
4310 fi | |
4311 | |
4312 fi | |
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
4314 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
4315 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
4316 | |
4317 if | |
4318 test "x$enable_dependency_tracking" != xno \ | |
4319 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
4320 am__fastdepCXX_TRUE= | |
4321 am__fastdepCXX_FALSE='#' | |
4322 else | |
4323 am__fastdepCXX_TRUE='#' | |
4324 am__fastdepCXX_FALSE= | |
4325 fi | |
4326 | |
4327 | |
4328 # Make sure we can run config.sub. | |
4329 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
4330 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
4331 | |
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
4333 $as_echo_n "checking build system type... " >&6; } | |
4334 if ${ac_cv_build+:} false; then : | |
4335 $as_echo_n "(cached) " >&6 | |
4336 else | |
4337 ac_build_alias=$build_alias | |
4338 test "x$ac_build_alias" = x && | |
4339 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
4340 test "x$ac_build_alias" = x && | |
4341 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
4342 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
4343 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
4344 | |
4345 fi | |
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
4347 $as_echo "$ac_cv_build" >&6; } | |
4348 case $ac_cv_build in | |
4349 *-*-*) ;; | |
4350 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
4351 esac | |
4352 build=$ac_cv_build | |
4353 ac_save_IFS=$IFS; IFS='-' | |
4354 set x $ac_cv_build | |
4355 shift | |
4356 build_cpu=$1 | |
4357 build_vendor=$2 | |
4358 shift; shift | |
4359 # Remember, the first character of IFS is used to create $*, | |
4360 # except with old shells: | |
4361 build_os=$* | |
4362 IFS=$ac_save_IFS | |
4363 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
4364 | |
4365 | |
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
4367 $as_echo_n "checking host system type... " >&6; } | |
4368 if ${ac_cv_host+:} false; then : | |
4369 $as_echo_n "(cached) " >&6 | |
4370 else | |
4371 if test "x$host_alias" = x; then | |
4372 ac_cv_host=$ac_cv_build | |
4373 else | |
4374 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
4375 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
4376 fi | |
4377 | |
4378 fi | |
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
4380 $as_echo "$ac_cv_host" >&6; } | |
4381 case $ac_cv_host in | |
4382 *-*-*) ;; | |
4383 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
4384 esac | |
4385 host=$ac_cv_host | |
4386 ac_save_IFS=$IFS; IFS='-' | |
4387 set x $ac_cv_host | |
4388 shift | |
4389 host_cpu=$1 | |
4390 host_vendor=$2 | |
4391 shift; shift | |
4392 # Remember, the first character of IFS is used to create $*, | |
4393 # except with old shells: | |
4394 host_os=$* | |
4395 IFS=$ac_save_IFS | |
4396 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
4397 | |
4398 | |
4399 enable_win32_dll=yes | |
4400 | |
4401 case $host in | |
4402 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) | |
4403 if test -n "$ac_tool_prefix"; then | |
4404 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | |
4405 set dummy ${ac_tool_prefix}as; ac_word=$2 | |
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4407 $as_echo_n "checking for $ac_word... " >&6; } | |
4408 if ${ac_cv_prog_AS+:} false; then : | |
4409 $as_echo_n "(cached) " >&6 | |
4410 else | |
4411 if test -n "$AS"; then | |
4412 ac_cv_prog_AS="$AS" # Let the user override the test. | |
4413 else | |
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4415 for as_dir in $PATH | |
4416 do | |
4417 IFS=$as_save_IFS | |
4418 test -z "$as_dir" && as_dir=. | |
4419 for ac_exec_ext in '' $ac_executable_extensions; do | |
4420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4421 ac_cv_prog_AS="${ac_tool_prefix}as" | |
4422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4423 break 2 | |
4424 fi | |
4425 done | |
4426 done | |
4427 IFS=$as_save_IFS | |
4428 | |
4429 fi | |
4430 fi | |
4431 AS=$ac_cv_prog_AS | |
4432 if test -n "$AS"; then | |
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 | |
4434 $as_echo "$AS" >&6; } | |
4435 else | |
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4437 $as_echo "no" >&6; } | |
4438 fi | |
4439 | |
4440 | |
4441 fi | |
4442 if test -z "$ac_cv_prog_AS"; then | |
4443 ac_ct_AS=$AS | |
4444 # Extract the first word of "as", so it can be a program name with args. | |
4445 set dummy as; ac_word=$2 | |
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4447 $as_echo_n "checking for $ac_word... " >&6; } | |
4448 if ${ac_cv_prog_ac_ct_AS+:} false; then : | |
4449 $as_echo_n "(cached) " >&6 | |
4450 else | |
4451 if test -n "$ac_ct_AS"; then | |
4452 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | |
4453 else | |
4454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4455 for as_dir in $PATH | |
4456 do | |
4457 IFS=$as_save_IFS | |
4458 test -z "$as_dir" && as_dir=. | |
4459 for ac_exec_ext in '' $ac_executable_extensions; do | |
4460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4461 ac_cv_prog_ac_ct_AS="as" | |
4462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4463 break 2 | |
4464 fi | |
4465 done | |
4466 done | |
4467 IFS=$as_save_IFS | |
4468 | |
4469 fi | |
4470 fi | |
4471 ac_ct_AS=$ac_cv_prog_ac_ct_AS | |
4472 if test -n "$ac_ct_AS"; then | |
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 | |
4474 $as_echo "$ac_ct_AS" >&6; } | |
4475 else | |
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4477 $as_echo "no" >&6; } | |
4478 fi | |
4479 | |
4480 if test "x$ac_ct_AS" = x; then | |
4481 AS="false" | |
4482 else | |
4483 case $cross_compiling:$ac_tool_warned in | |
4484 yes:) | |
4485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4487 ac_tool_warned=yes ;; | |
4488 esac | |
4489 AS=$ac_ct_AS | |
4490 fi | |
4491 else | |
4492 AS="$ac_cv_prog_AS" | |
4493 fi | |
4494 | |
4495 if test -n "$ac_tool_prefix"; then | |
4496 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
4497 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4499 $as_echo_n "checking for $ac_word... " >&6; } | |
4500 if ${ac_cv_prog_DLLTOOL+:} false; then : | |
4501 $as_echo_n "(cached) " >&6 | |
4502 else | |
4503 if test -n "$DLLTOOL"; then | |
4504 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
4505 else | |
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4507 for as_dir in $PATH | |
4508 do | |
4509 IFS=$as_save_IFS | |
4510 test -z "$as_dir" && as_dir=. | |
4511 for ac_exec_ext in '' $ac_executable_extensions; do | |
4512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4513 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
4514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4515 break 2 | |
4516 fi | |
4517 done | |
4518 done | |
4519 IFS=$as_save_IFS | |
4520 | |
4521 fi | |
4522 fi | |
4523 DLLTOOL=$ac_cv_prog_DLLTOOL | |
4524 if test -n "$DLLTOOL"; then | |
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
4526 $as_echo "$DLLTOOL" >&6; } | |
4527 else | |
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4529 $as_echo "no" >&6; } | |
4530 fi | |
4531 | |
4532 | |
4533 fi | |
4534 if test -z "$ac_cv_prog_DLLTOOL"; then | |
4535 ac_ct_DLLTOOL=$DLLTOOL | |
4536 # Extract the first word of "dlltool", so it can be a program name with args. | |
4537 set dummy dlltool; ac_word=$2 | |
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4539 $as_echo_n "checking for $ac_word... " >&6; } | |
4540 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
4541 $as_echo_n "(cached) " >&6 | |
4542 else | |
4543 if test -n "$ac_ct_DLLTOOL"; then | |
4544 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | |
4545 else | |
4546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4547 for as_dir in $PATH | |
4548 do | |
4549 IFS=$as_save_IFS | |
4550 test -z "$as_dir" && as_dir=. | |
4551 for ac_exec_ext in '' $ac_executable_extensions; do | |
4552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4553 ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
4554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4555 break 2 | |
4556 fi | |
4557 done | |
4558 done | |
4559 IFS=$as_save_IFS | |
4560 | |
4561 fi | |
4562 fi | |
4563 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
4564 if test -n "$ac_ct_DLLTOOL"; then | |
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
4566 $as_echo "$ac_ct_DLLTOOL" >&6; } | |
4567 else | |
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4569 $as_echo "no" >&6; } | |
4570 fi | |
4571 | |
4572 if test "x$ac_ct_DLLTOOL" = x; then | |
4573 DLLTOOL="false" | |
4574 else | |
4575 case $cross_compiling:$ac_tool_warned in | |
4576 yes:) | |
4577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4579 ac_tool_warned=yes ;; | |
4580 esac | |
4581 DLLTOOL=$ac_ct_DLLTOOL | |
4582 fi | |
4583 else | |
4584 DLLTOOL="$ac_cv_prog_DLLTOOL" | |
4585 fi | |
4586 | |
4587 if test -n "$ac_tool_prefix"; then | |
4588 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
4589 set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4591 $as_echo_n "checking for $ac_word... " >&6; } | |
4592 if ${ac_cv_prog_OBJDUMP+:} false; then : | |
4593 $as_echo_n "(cached) " >&6 | |
4594 else | |
4595 if test -n "$OBJDUMP"; then | |
4596 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
4597 else | |
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4599 for as_dir in $PATH | |
4600 do | |
4601 IFS=$as_save_IFS | |
4602 test -z "$as_dir" && as_dir=. | |
4603 for ac_exec_ext in '' $ac_executable_extensions; do | |
4604 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4605 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
4606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4607 break 2 | |
4608 fi | |
4609 done | |
4610 done | |
4611 IFS=$as_save_IFS | |
4612 | |
4613 fi | |
4614 fi | |
4615 OBJDUMP=$ac_cv_prog_OBJDUMP | |
4616 if test -n "$OBJDUMP"; then | |
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
4618 $as_echo "$OBJDUMP" >&6; } | |
4619 else | |
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4621 $as_echo "no" >&6; } | |
4622 fi | |
4623 | |
4624 | |
4625 fi | |
4626 if test -z "$ac_cv_prog_OBJDUMP"; then | |
4627 ac_ct_OBJDUMP=$OBJDUMP | |
4628 # Extract the first word of "objdump", so it can be a program name with args. | |
4629 set dummy objdump; ac_word=$2 | |
4630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4631 $as_echo_n "checking for $ac_word... " >&6; } | |
4632 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
4633 $as_echo_n "(cached) " >&6 | |
4634 else | |
4635 if test -n "$ac_ct_OBJDUMP"; then | |
4636 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
4637 else | |
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4639 for as_dir in $PATH | |
4640 do | |
4641 IFS=$as_save_IFS | |
4642 test -z "$as_dir" && as_dir=. | |
4643 for ac_exec_ext in '' $ac_executable_extensions; do | |
4644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4645 ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
4646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4647 break 2 | |
4648 fi | |
4649 done | |
4650 done | |
4651 IFS=$as_save_IFS | |
4652 | |
4653 fi | |
4654 fi | |
4655 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
4656 if test -n "$ac_ct_OBJDUMP"; then | |
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
4658 $as_echo "$ac_ct_OBJDUMP" >&6; } | |
4659 else | |
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4661 $as_echo "no" >&6; } | |
4662 fi | |
4663 | |
4664 if test "x$ac_ct_OBJDUMP" = x; then | |
4665 OBJDUMP="false" | |
4666 else | |
4667 case $cross_compiling:$ac_tool_warned in | |
4668 yes:) | |
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4671 ac_tool_warned=yes ;; | |
4672 esac | |
4673 OBJDUMP=$ac_ct_OBJDUMP | |
4674 fi | |
4675 else | |
4676 OBJDUMP="$ac_cv_prog_OBJDUMP" | |
4677 fi | |
4678 | |
4679 ;; | |
4680 esac | |
4681 | |
4682 test -z "$AS" && AS=as | |
4683 | |
4684 | |
4685 | |
4686 | |
4687 | |
4688 test -z "$DLLTOOL" && DLLTOOL=dlltool | |
4689 | |
4690 | |
4691 | |
4692 | |
4693 | |
4694 test -z "$OBJDUMP" && OBJDUMP=objdump | |
4695 | |
4696 | |
4697 | |
4698 | |
4699 | |
4700 | |
4701 | |
4702 case `pwd` in | |
4703 *\ * | *\ *) | |
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 | |
4705 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; | |
4706 esac | |
4707 | |
4708 | |
4709 | |
4710 macro_version='2.4.2' | |
4711 macro_revision='1.3337' | |
4712 | |
4713 | |
4714 | |
4715 | |
4716 | |
4717 | |
4718 | |
4719 | |
4720 | |
4721 | |
4722 | |
4723 | |
4724 | |
4725 ltmain="$ac_aux_dir/ltmain.sh" | |
4726 | |
4727 # Backslashify metacharacters that are still active within | |
4728 # double-quoted strings. | |
4729 sed_quote_subst='s/\(["`$\\]\)/\\\1/g' | |
4730 | |
4731 # Same as above, but do not quote variable references. | |
4732 double_quote_subst='s/\(["`\\]\)/\\\1/g' | |
4733 | |
4734 # Sed substitution to delay expansion of an escaped shell variable in a | |
4735 # double_quote_subst'ed string. | |
4736 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
4737 | |
4738 # Sed substitution to delay expansion of an escaped single quote. | |
4739 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' | |
4740 | |
4741 # Sed substitution to avoid accidental globbing in evaled expressions | |
4742 no_glob_subst='s/\*/\\\*/g' | |
4743 | |
4744 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
4745 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO | |
4746 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO | |
4747 | |
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 | |
4749 $as_echo_n "checking how to print strings... " >&6; } | |
4750 # Test print first, because it will be a builtin if present. | |
4751 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ | |
4752 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4753 ECHO='print -r --' | |
4754 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then | |
4755 ECHO='printf %s\n' | |
4756 else | |
4757 # Use this function as a fallback that always works. | |
4758 func_fallback_echo () | |
4759 { | |
4760 eval 'cat <<_LTECHO_EOF | |
4761 $1 | |
4762 _LTECHO_EOF' | |
4763 } | |
4764 ECHO='func_fallback_echo' | |
4765 fi | |
4766 | |
4767 # func_echo_all arg... | |
4768 # Invoke $ECHO with all args, space-separated. | |
4769 func_echo_all () | |
4770 { | |
4771 $ECHO "" | |
4772 } | |
4773 | |
4774 case "$ECHO" in | |
4775 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 | |
4776 $as_echo "printf" >&6; } ;; | |
4777 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 | |
4778 $as_echo "print -r" >&6; } ;; | |
4779 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 | |
4780 $as_echo "cat" >&6; } ;; | |
4781 esac | |
4782 | |
4783 | |
4784 | |
4785 | |
4786 | |
4787 | |
4788 | |
4789 | |
4790 | |
4791 | |
4792 | |
4793 | |
4794 | |
4795 | |
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 | |
4797 $as_echo_n "checking for a sed that does not truncate output... " >&6; } | |
4798 if ${ac_cv_path_SED+:} false; then : | |
4799 $as_echo_n "(cached) " >&6 | |
4800 else | |
4801 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ | |
4802 for ac_i in 1 2 3 4 5 6 7; do | |
4803 ac_script="$ac_script$as_nl$ac_script" | |
4804 done | |
4805 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed | |
4806 { ac_script=; unset ac_script;} | |
4807 if test -z "$SED"; then | |
4808 ac_path_SED_found=false | |
4809 # Loop through the user's path and test for each of PROGNAME-LIST | |
4810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4811 for as_dir in $PATH | |
4812 do | |
4813 IFS=$as_save_IFS | |
4814 test -z "$as_dir" && as_dir=. | |
4815 for ac_prog in sed gsed; do | |
4816 for ac_exec_ext in '' $ac_executable_extensions; do | |
4817 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" | |
4818 as_fn_executable_p "$ac_path_SED" || continue | |
4819 # Check for GNU ac_path_SED and select it if it is found. | |
4820 # Check for GNU $ac_path_SED | |
4821 case `"$ac_path_SED" --version 2>&1` in | |
4822 *GNU*) | |
4823 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; | |
4824 *) | |
4825 ac_count=0 | |
4826 $as_echo_n 0123456789 >"conftest.in" | |
4827 while : | |
4828 do | |
4829 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4830 mv "conftest.tmp" "conftest.in" | |
4831 cp "conftest.in" "conftest.nl" | |
4832 $as_echo '' >> "conftest.nl" | |
4833 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4834 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4835 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4836 if test $ac_count -gt ${ac_path_SED_max-0}; then | |
4837 # Best one so far, save it but keep looking for a better one | |
4838 ac_cv_path_SED="$ac_path_SED" | |
4839 ac_path_SED_max=$ac_count | |
4840 fi | |
4841 # 10*(2^10) chars as input seems more than enough | |
4842 test $ac_count -gt 10 && break | |
4843 done | |
4844 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4845 esac | |
4846 | |
4847 $ac_path_SED_found && break 3 | |
4848 done | |
4849 done | |
4850 done | |
4851 IFS=$as_save_IFS | |
4852 if test -z "$ac_cv_path_SED"; then | |
4853 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 | |
4854 fi | |
4855 else | |
4856 ac_cv_path_SED=$SED | |
4857 fi | |
4858 | |
4859 fi | |
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 | |
4861 $as_echo "$ac_cv_path_SED" >&6; } | |
4862 SED="$ac_cv_path_SED" | |
4863 rm -f conftest.sed | |
4864 | |
4865 test -z "$SED" && SED=sed | |
4866 Xsed="$SED -e 1s/^X//" | |
4867 | |
4868 | |
4869 | |
4870 | |
4871 | |
4872 | |
4873 | |
4874 | |
4875 | |
4876 | |
4877 | |
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
4879 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
4880 if ${ac_cv_path_GREP+:} false; then : | |
4881 $as_echo_n "(cached) " >&6 | |
4882 else | |
4883 if test -z "$GREP"; then | |
4884 ac_path_GREP_found=false | |
4885 # Loop through the user's path and test for each of PROGNAME-LIST | |
4886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4887 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4888 do | |
4889 IFS=$as_save_IFS | |
4890 test -z "$as_dir" && as_dir=. | |
4891 for ac_prog in grep ggrep; do | |
4892 for ac_exec_ext in '' $ac_executable_extensions; do | |
4893 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
4894 as_fn_executable_p "$ac_path_GREP" || continue | |
4895 # Check for GNU ac_path_GREP and select it if it is found. | |
4896 # Check for GNU $ac_path_GREP | |
4897 case `"$ac_path_GREP" --version 2>&1` in | |
4898 *GNU*) | |
4899 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
4900 *) | |
4901 ac_count=0 | |
4902 $as_echo_n 0123456789 >"conftest.in" | |
4903 while : | |
4904 do | |
4905 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4906 mv "conftest.tmp" "conftest.in" | |
4907 cp "conftest.in" "conftest.nl" | |
4908 $as_echo 'GREP' >> "conftest.nl" | |
4909 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4910 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4911 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4912 if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
4913 # Best one so far, save it but keep looking for a better one | |
4914 ac_cv_path_GREP="$ac_path_GREP" | |
4915 ac_path_GREP_max=$ac_count | |
4916 fi | |
4917 # 10*(2^10) chars as input seems more than enough | |
4918 test $ac_count -gt 10 && break | |
4919 done | |
4920 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4921 esac | |
4922 | |
4923 $ac_path_GREP_found && break 3 | |
4924 done | |
4925 done | |
4926 done | |
4927 IFS=$as_save_IFS | |
4928 if test -z "$ac_cv_path_GREP"; then | |
4929 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4930 fi | |
4931 else | |
4932 ac_cv_path_GREP=$GREP | |
4933 fi | |
4934 | |
4935 fi | |
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
4937 $as_echo "$ac_cv_path_GREP" >&6; } | |
4938 GREP="$ac_cv_path_GREP" | |
4939 | |
4940 | |
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
4942 $as_echo_n "checking for egrep... " >&6; } | |
4943 if ${ac_cv_path_EGREP+:} false; then : | |
4944 $as_echo_n "(cached) " >&6 | |
4945 else | |
4946 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
4947 then ac_cv_path_EGREP="$GREP -E" | |
4948 else | |
4949 if test -z "$EGREP"; then | |
4950 ac_path_EGREP_found=false | |
4951 # Loop through the user's path and test for each of PROGNAME-LIST | |
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4953 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
4954 do | |
4955 IFS=$as_save_IFS | |
4956 test -z "$as_dir" && as_dir=. | |
4957 for ac_prog in egrep; do | |
4958 for ac_exec_ext in '' $ac_executable_extensions; do | |
4959 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
4960 as_fn_executable_p "$ac_path_EGREP" || continue | |
4961 # Check for GNU ac_path_EGREP and select it if it is found. | |
4962 # Check for GNU $ac_path_EGREP | |
4963 case `"$ac_path_EGREP" --version 2>&1` in | |
4964 *GNU*) | |
4965 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
4966 *) | |
4967 ac_count=0 | |
4968 $as_echo_n 0123456789 >"conftest.in" | |
4969 while : | |
4970 do | |
4971 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
4972 mv "conftest.tmp" "conftest.in" | |
4973 cp "conftest.in" "conftest.nl" | |
4974 $as_echo 'EGREP' >> "conftest.nl" | |
4975 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
4976 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
4977 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
4978 if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
4979 # Best one so far, save it but keep looking for a better one | |
4980 ac_cv_path_EGREP="$ac_path_EGREP" | |
4981 ac_path_EGREP_max=$ac_count | |
4982 fi | |
4983 # 10*(2^10) chars as input seems more than enough | |
4984 test $ac_count -gt 10 && break | |
4985 done | |
4986 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
4987 esac | |
4988 | |
4989 $ac_path_EGREP_found && break 3 | |
4990 done | |
4991 done | |
4992 done | |
4993 IFS=$as_save_IFS | |
4994 if test -z "$ac_cv_path_EGREP"; then | |
4995 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
4996 fi | |
4997 else | |
4998 ac_cv_path_EGREP=$EGREP | |
4999 fi | |
5000 | |
5001 fi | |
5002 fi | |
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5004 $as_echo "$ac_cv_path_EGREP" >&6; } | |
5005 EGREP="$ac_cv_path_EGREP" | |
5006 | |
5007 | |
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 | |
5009 $as_echo_n "checking for fgrep... " >&6; } | |
5010 if ${ac_cv_path_FGREP+:} false; then : | |
5011 $as_echo_n "(cached) " >&6 | |
5012 else | |
5013 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 | |
5014 then ac_cv_path_FGREP="$GREP -F" | |
5015 else | |
5016 if test -z "$FGREP"; then | |
5017 ac_path_FGREP_found=false | |
5018 # Loop through the user's path and test for each of PROGNAME-LIST | |
5019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5020 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5021 do | |
5022 IFS=$as_save_IFS | |
5023 test -z "$as_dir" && as_dir=. | |
5024 for ac_prog in fgrep; do | |
5025 for ac_exec_ext in '' $ac_executable_extensions; do | |
5026 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5027 as_fn_executable_p "$ac_path_FGREP" || continue | |
5028 # Check for GNU ac_path_FGREP and select it if it is found. | |
5029 # Check for GNU $ac_path_FGREP | |
5030 case `"$ac_path_FGREP" --version 2>&1` in | |
5031 *GNU*) | |
5032 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; | |
5033 *) | |
5034 ac_count=0 | |
5035 $as_echo_n 0123456789 >"conftest.in" | |
5036 while : | |
5037 do | |
5038 cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5039 mv "conftest.tmp" "conftest.in" | |
5040 cp "conftest.in" "conftest.nl" | |
5041 $as_echo 'FGREP' >> "conftest.nl" | |
5042 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5043 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5044 as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5045 if test $ac_count -gt ${ac_path_FGREP_max-0}; then | |
5046 # Best one so far, save it but keep looking for a better one | |
5047 ac_cv_path_FGREP="$ac_path_FGREP" | |
5048 ac_path_FGREP_max=$ac_count | |
5049 fi | |
5050 # 10*(2^10) chars as input seems more than enough | |
5051 test $ac_count -gt 10 && break | |
5052 done | |
5053 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5054 esac | |
5055 | |
5056 $ac_path_FGREP_found && break 3 | |
5057 done | |
5058 done | |
5059 done | |
5060 IFS=$as_save_IFS | |
5061 if test -z "$ac_cv_path_FGREP"; then | |
5062 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5063 fi | |
5064 else | |
5065 ac_cv_path_FGREP=$FGREP | |
5066 fi | |
5067 | |
5068 fi | |
5069 fi | |
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 | |
5071 $as_echo "$ac_cv_path_FGREP" >&6; } | |
5072 FGREP="$ac_cv_path_FGREP" | |
5073 | |
5074 | |
5075 test -z "$GREP" && GREP=grep | |
5076 | |
5077 | |
5078 | |
5079 | |
5080 | |
5081 | |
5082 | |
5083 | |
5084 | |
5085 | |
5086 | |
5087 | |
5088 | |
5089 | |
5090 | |
5091 | |
5092 | |
5093 | |
5094 | |
5095 # Check whether --with-gnu-ld was given. | |
5096 if test "${with_gnu_ld+set}" = set; then : | |
5097 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
5098 else | |
5099 with_gnu_ld=no | |
5100 fi | |
5101 | |
5102 ac_prog=ld | |
5103 if test "$GCC" = yes; then | |
5104 # Check if gcc -print-prog-name=ld gives a path. | |
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
5106 $as_echo_n "checking for ld used by $CC... " >&6; } | |
5107 case $host in | |
5108 *-*-mingw*) | |
5109 # gcc leaves a trailing carriage return which upsets mingw | |
5110 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
5111 *) | |
5112 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
5113 esac | |
5114 case $ac_prog in | |
5115 # Accept absolute paths. | |
5116 [\\/]* | ?:[\\/]*) | |
5117 re_direlt='/[^/][^/]*/\.\./' | |
5118 # Canonicalize the pathname of ld | |
5119 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
5120 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
5121 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
5122 done | |
5123 test -z "$LD" && LD="$ac_prog" | |
5124 ;; | |
5125 "") | |
5126 # If it fails, then pretend we aren't using GCC. | |
5127 ac_prog=ld | |
5128 ;; | |
5129 *) | |
5130 # If it is relative, then search for the first ld in PATH. | |
5131 with_gnu_ld=unknown | |
5132 ;; | |
5133 esac | |
5134 elif test "$with_gnu_ld" = yes; then | |
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
5136 $as_echo_n "checking for GNU ld... " >&6; } | |
5137 else | |
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
5139 $as_echo_n "checking for non-GNU ld... " >&6; } | |
5140 fi | |
5141 if ${lt_cv_path_LD+:} false; then : | |
5142 $as_echo_n "(cached) " >&6 | |
5143 else | |
5144 if test -z "$LD"; then | |
5145 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5146 for ac_dir in $PATH; do | |
5147 IFS="$lt_save_ifs" | |
5148 test -z "$ac_dir" && ac_dir=. | |
5149 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
5150 lt_cv_path_LD="$ac_dir/$ac_prog" | |
5151 # Check to see if the program is GNU ld. I'd rather use --version, | |
5152 # but apparently some variants of GNU ld only accept -v. | |
5153 # Break only if it was the GNU/non-GNU ld that we prefer. | |
5154 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
5155 *GNU* | *'with BFD'*) | |
5156 test "$with_gnu_ld" != no && break | |
5157 ;; | |
5158 *) | |
5159 test "$with_gnu_ld" != yes && break | |
5160 ;; | |
5161 esac | |
5162 fi | |
5163 done | |
5164 IFS="$lt_save_ifs" | |
5165 else | |
5166 lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
5167 fi | |
5168 fi | |
5169 | |
5170 LD="$lt_cv_path_LD" | |
5171 if test -n "$LD"; then | |
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
5173 $as_echo "$LD" >&6; } | |
5174 else | |
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5176 $as_echo "no" >&6; } | |
5177 fi | |
5178 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
5180 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
5181 if ${lt_cv_prog_gnu_ld+:} false; then : | |
5182 $as_echo_n "(cached) " >&6 | |
5183 else | |
5184 # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
5185 case `$LD -v 2>&1 </dev/null` in | |
5186 *GNU* | *'with BFD'*) | |
5187 lt_cv_prog_gnu_ld=yes | |
5188 ;; | |
5189 *) | |
5190 lt_cv_prog_gnu_ld=no | |
5191 ;; | |
5192 esac | |
5193 fi | |
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
5195 $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
5196 with_gnu_ld=$lt_cv_prog_gnu_ld | |
5197 | |
5198 | |
5199 | |
5200 | |
5201 | |
5202 | |
5203 | |
5204 | |
5205 | |
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 | |
5207 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } | |
5208 if ${lt_cv_path_NM+:} false; then : | |
5209 $as_echo_n "(cached) " >&6 | |
5210 else | |
5211 if test -n "$NM"; then | |
5212 # Let the user override the test. | |
5213 lt_cv_path_NM="$NM" | |
5214 else | |
5215 lt_nm_to_check="${ac_tool_prefix}nm" | |
5216 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
5217 lt_nm_to_check="$lt_nm_to_check nm" | |
5218 fi | |
5219 for lt_tmp_nm in $lt_nm_to_check; do | |
5220 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
5221 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
5222 IFS="$lt_save_ifs" | |
5223 test -z "$ac_dir" && ac_dir=. | |
5224 tmp_nm="$ac_dir/$lt_tmp_nm" | |
5225 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
5226 # Check to see if the nm accepts a BSD-compat flag. | |
5227 # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
5228 # nm: unknown option "B" ignored | |
5229 # Tru64's nm complains that /dev/null is an invalid object file | |
5230 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
5231 */dev/null* | *'Invalid file or object type'*) | |
5232 lt_cv_path_NM="$tmp_nm -B" | |
5233 break | |
5234 ;; | |
5235 *) | |
5236 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
5237 */dev/null*) | |
5238 lt_cv_path_NM="$tmp_nm -p" | |
5239 break | |
5240 ;; | |
5241 *) | |
5242 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
5243 continue # so that we can try to find one that supports BSD flags | |
5244 ;; | |
5245 esac | |
5246 ;; | |
5247 esac | |
5248 fi | |
5249 done | |
5250 IFS="$lt_save_ifs" | |
5251 done | |
5252 : ${lt_cv_path_NM=no} | |
5253 fi | |
5254 fi | |
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 | |
5256 $as_echo "$lt_cv_path_NM" >&6; } | |
5257 if test "$lt_cv_path_NM" != "no"; then | |
5258 NM="$lt_cv_path_NM" | |
5259 else | |
5260 # Didn't find any BSD compatible name lister, look for dumpbin. | |
5261 if test -n "$DUMPBIN"; then : | |
5262 # Let the user override the test. | |
5263 else | |
5264 if test -n "$ac_tool_prefix"; then | |
5265 for ac_prog in dumpbin "link -dump" | |
5266 do | |
5267 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
5268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5270 $as_echo_n "checking for $ac_word... " >&6; } | |
5271 if ${ac_cv_prog_DUMPBIN+:} false; then : | |
5272 $as_echo_n "(cached) " >&6 | |
5273 else | |
5274 if test -n "$DUMPBIN"; then | |
5275 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. | |
5276 else | |
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5278 for as_dir in $PATH | |
5279 do | |
5280 IFS=$as_save_IFS | |
5281 test -z "$as_dir" && as_dir=. | |
5282 for ac_exec_ext in '' $ac_executable_extensions; do | |
5283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5284 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" | |
5285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5286 break 2 | |
5287 fi | |
5288 done | |
5289 done | |
5290 IFS=$as_save_IFS | |
5291 | |
5292 fi | |
5293 fi | |
5294 DUMPBIN=$ac_cv_prog_DUMPBIN | |
5295 if test -n "$DUMPBIN"; then | |
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 | |
5297 $as_echo "$DUMPBIN" >&6; } | |
5298 else | |
5299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5300 $as_echo "no" >&6; } | |
5301 fi | |
5302 | |
5303 | |
5304 test -n "$DUMPBIN" && break | |
5305 done | |
5306 fi | |
5307 if test -z "$DUMPBIN"; then | |
5308 ac_ct_DUMPBIN=$DUMPBIN | |
5309 for ac_prog in dumpbin "link -dump" | |
5310 do | |
5311 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
5312 set dummy $ac_prog; ac_word=$2 | |
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5314 $as_echo_n "checking for $ac_word... " >&6; } | |
5315 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : | |
5316 $as_echo_n "(cached) " >&6 | |
5317 else | |
5318 if test -n "$ac_ct_DUMPBIN"; then | |
5319 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. | |
5320 else | |
5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5322 for as_dir in $PATH | |
5323 do | |
5324 IFS=$as_save_IFS | |
5325 test -z "$as_dir" && as_dir=. | |
5326 for ac_exec_ext in '' $ac_executable_extensions; do | |
5327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5328 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" | |
5329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5330 break 2 | |
5331 fi | |
5332 done | |
5333 done | |
5334 IFS=$as_save_IFS | |
5335 | |
5336 fi | |
5337 fi | |
5338 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN | |
5339 if test -n "$ac_ct_DUMPBIN"; then | |
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 | |
5341 $as_echo "$ac_ct_DUMPBIN" >&6; } | |
5342 else | |
5343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5344 $as_echo "no" >&6; } | |
5345 fi | |
5346 | |
5347 | |
5348 test -n "$ac_ct_DUMPBIN" && break | |
5349 done | |
5350 | |
5351 if test "x$ac_ct_DUMPBIN" = x; then | |
5352 DUMPBIN=":" | |
5353 else | |
5354 case $cross_compiling:$ac_tool_warned in | |
5355 yes:) | |
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5357 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5358 ac_tool_warned=yes ;; | |
5359 esac | |
5360 DUMPBIN=$ac_ct_DUMPBIN | |
5361 fi | |
5362 fi | |
5363 | |
5364 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in | |
5365 *COFF*) | |
5366 DUMPBIN="$DUMPBIN -symbols" | |
5367 ;; | |
5368 *) | |
5369 DUMPBIN=: | |
5370 ;; | |
5371 esac | |
5372 fi | |
5373 | |
5374 if test "$DUMPBIN" != ":"; then | |
5375 NM="$DUMPBIN" | |
5376 fi | |
5377 fi | |
5378 test -z "$NM" && NM=nm | |
5379 | |
5380 | |
5381 | |
5382 | |
5383 | |
5384 | |
5385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 | |
5386 $as_echo_n "checking the name lister ($NM) interface... " >&6; } | |
5387 if ${lt_cv_nm_interface+:} false; then : | |
5388 $as_echo_n "(cached) " >&6 | |
5389 else | |
5390 lt_cv_nm_interface="BSD nm" | |
5391 echo "int some_variable = 0;" > conftest.$ac_ext | |
5392 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) | |
5393 (eval "$ac_compile" 2>conftest.err) | |
5394 cat conftest.err >&5 | |
5395 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) | |
5396 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) | |
5397 cat conftest.err >&5 | |
5398 (eval echo "\"\$as_me:$LINENO: output\"" >&5) | |
5399 cat conftest.out >&5 | |
5400 if $GREP 'External.*some_variable' conftest.out > /dev/null; then | |
5401 lt_cv_nm_interface="MS dumpbin" | |
5402 fi | |
5403 rm -f conftest* | |
5404 fi | |
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 | |
5406 $as_echo "$lt_cv_nm_interface" >&6; } | |
5407 | |
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 | |
5409 $as_echo_n "checking whether ln -s works... " >&6; } | |
5410 LN_S=$as_ln_s | |
5411 if test "$LN_S" = "ln -s"; then | |
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
5413 $as_echo "yes" >&6; } | |
5414 else | |
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 | |
5416 $as_echo "no, using $LN_S" >&6; } | |
5417 fi | |
5418 | |
5419 # find the maximum length of command line arguments | |
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 | |
5421 $as_echo_n "checking the maximum length of command line arguments... " >&6; } | |
5422 if ${lt_cv_sys_max_cmd_len+:} false; then : | |
5423 $as_echo_n "(cached) " >&6 | |
5424 else | |
5425 i=0 | |
5426 teststring="ABCD" | |
5427 | |
5428 case $build_os in | |
5429 msdosdjgpp*) | |
5430 # On DJGPP, this test can blow up pretty badly due to problems in libc | |
5431 # (any single argument exceeding 2000 bytes causes a buffer overrun | |
5432 # during glob expansion). Even if it were fixed, the result of this | |
5433 # check would be larger than it should be. | |
5434 lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
5435 ;; | |
5436 | |
5437 gnu*) | |
5438 # Under GNU Hurd, this test is not required because there is | |
5439 # no limit to the length of command line arguments. | |
5440 # Libtool will interpret -1 as no limit whatsoever | |
5441 lt_cv_sys_max_cmd_len=-1; | |
5442 ;; | |
5443 | |
5444 cygwin* | mingw* | cegcc*) | |
5445 # On Win9x/ME, this test blows up -- it succeeds, but takes | |
5446 # about 5 minutes as the teststring grows exponentially. | |
5447 # Worse, since 9x/ME are not pre-emptively multitasking, | |
5448 # you end up with a "frozen" computer, even though with patience | |
5449 # the test eventually succeeds (with a max line length of 256k). | |
5450 # Instead, let's just punt: use the minimum linelength reported by | |
5451 # all of the supported platforms: 8192 (on NT/2K/XP). | |
5452 lt_cv_sys_max_cmd_len=8192; | |
5453 ;; | |
5454 | |
5455 mint*) | |
5456 # On MiNT this can take a long time and run out of memory. | |
5457 lt_cv_sys_max_cmd_len=8192; | |
5458 ;; | |
5459 | |
5460 amigaos*) | |
5461 # On AmigaOS with pdksh, this test takes hours, literally. | |
5462 # So we just punt and use a minimum line length of 8192. | |
5463 lt_cv_sys_max_cmd_len=8192; | |
5464 ;; | |
5465 | |
5466 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
5467 # This has been around since 386BSD, at least. Likely further. | |
5468 if test -x /sbin/sysctl; then | |
5469 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
5470 elif test -x /usr/sbin/sysctl; then | |
5471 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
5472 else | |
5473 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
5474 fi | |
5475 # And add a safety zone | |
5476 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5477 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5478 ;; | |
5479 | |
5480 interix*) | |
5481 # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
5482 lt_cv_sys_max_cmd_len=196608 | |
5483 ;; | |
5484 | |
5485 os2*) | |
5486 # The test takes a long time on OS/2. | |
5487 lt_cv_sys_max_cmd_len=8192 | |
5488 ;; | |
5489 | |
5490 osf*) | |
5491 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
5492 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
5493 # nice to cause kernel panics so lets avoid the loop below. | |
5494 # First set a reasonable default. | |
5495 lt_cv_sys_max_cmd_len=16384 | |
5496 # | |
5497 if test -x /sbin/sysconfig; then | |
5498 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
5499 *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
5500 esac | |
5501 fi | |
5502 ;; | |
5503 sco3.2v5*) | |
5504 lt_cv_sys_max_cmd_len=102400 | |
5505 ;; | |
5506 sysv5* | sco5v6* | sysv4.2uw2*) | |
5507 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
5508 if test -n "$kargmax"; then | |
5509 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
5510 else | |
5511 lt_cv_sys_max_cmd_len=32768 | |
5512 fi | |
5513 ;; | |
5514 *) | |
5515 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` | |
5516 if test -n "$lt_cv_sys_max_cmd_len" && \ | |
5517 test undefined != "$lt_cv_sys_max_cmd_len"; then | |
5518 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
5519 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
5520 else | |
5521 # Make teststring a little bigger before we do anything with it. | |
5522 # a 1K string should be a reasonable start. | |
5523 for i in 1 2 3 4 5 6 7 8 ; do | |
5524 teststring=$teststring$teststring | |
5525 done | |
5526 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
5527 # If test is not a shell built-in, we'll probably end up computing a | |
5528 # maximum length that is only half of the actual maximum length, but | |
5529 # we can't tell. | |
5530 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ | |
5531 = "X$teststring$teststring"; } >/dev/null 2>&1 && | |
5532 test $i != 17 # 1/2 MB should be enough | |
5533 do | |
5534 i=`expr $i + 1` | |
5535 teststring=$teststring$teststring | |
5536 done | |
5537 # Only check the string length outside the loop. | |
5538 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` | |
5539 teststring= | |
5540 # Add a significant safety factor because C++ compilers can tack on | |
5541 # massive amounts of additional arguments before passing them to the | |
5542 # linker. It appears as though 1/2 is a usable value. | |
5543 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
5544 fi | |
5545 ;; | |
5546 esac | |
5547 | |
5548 fi | |
5549 | |
5550 if test -n $lt_cv_sys_max_cmd_len ; then | |
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 | |
5552 $as_echo "$lt_cv_sys_max_cmd_len" >&6; } | |
5553 else | |
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 | |
5555 $as_echo "none" >&6; } | |
5556 fi | |
5557 max_cmd_len=$lt_cv_sys_max_cmd_len | |
5558 | |
5559 | |
5560 | |
5561 | |
5562 | |
5563 | |
5564 : ${CP="cp -f"} | |
5565 : ${MV="mv -f"} | |
5566 : ${RM="rm -f"} | |
5567 | |
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 | |
5569 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } | |
5570 # Try some XSI features | |
5571 xsi_shell=no | |
5572 ( _lt_dummy="a/b/c" | |
5573 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ | |
5574 = c,a/b,b/c, \ | |
5575 && eval 'test $(( 1 + 1 )) -eq 2 \ | |
5576 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ | |
5577 && xsi_shell=yes | |
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 | |
5579 $as_echo "$xsi_shell" >&6; } | |
5580 | |
5581 | |
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 | |
5583 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; } | |
5584 lt_shell_append=no | |
5585 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ | |
5586 >/dev/null 2>&1 \ | |
5587 && lt_shell_append=yes | |
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 | |
5589 $as_echo "$lt_shell_append" >&6; } | |
5590 | |
5591 | |
5592 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
5593 lt_unset=unset | |
5594 else | |
5595 lt_unset=false | |
5596 fi | |
5597 | |
5598 | |
5599 | |
5600 | |
5601 | |
5602 # test EBCDIC or ASCII | |
5603 case `echo X|tr X '\101'` in | |
5604 A) # ASCII based system | |
5605 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr | |
5606 lt_SP2NL='tr \040 \012' | |
5607 lt_NL2SP='tr \015\012 \040\040' | |
5608 ;; | |
5609 *) # EBCDIC based system | |
5610 lt_SP2NL='tr \100 \n' | |
5611 lt_NL2SP='tr \r\n \100\100' | |
5612 ;; | |
5613 esac | |
5614 | |
5615 | |
5616 | |
5617 | |
5618 | |
5619 | |
5620 | |
5621 | |
5622 | |
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 | |
5624 $as_echo_n "checking how to convert $build file names to $host format... " >&6; } | |
5625 if ${lt_cv_to_host_file_cmd+:} false; then : | |
5626 $as_echo_n "(cached) " >&6 | |
5627 else | |
5628 case $host in | |
5629 *-*-mingw* ) | |
5630 case $build in | |
5631 *-*-mingw* ) # actually msys | |
5632 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 | |
5633 ;; | |
5634 *-*-cygwin* ) | |
5635 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 | |
5636 ;; | |
5637 * ) # otherwise, assume *nix | |
5638 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 | |
5639 ;; | |
5640 esac | |
5641 ;; | |
5642 *-*-cygwin* ) | |
5643 case $build in | |
5644 *-*-mingw* ) # actually msys | |
5645 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin | |
5646 ;; | |
5647 *-*-cygwin* ) | |
5648 lt_cv_to_host_file_cmd=func_convert_file_noop | |
5649 ;; | |
5650 * ) # otherwise, assume *nix | |
5651 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin | |
5652 ;; | |
5653 esac | |
5654 ;; | |
5655 * ) # unhandled hosts (and "normal" native builds) | |
5656 lt_cv_to_host_file_cmd=func_convert_file_noop | |
5657 ;; | |
5658 esac | |
5659 | |
5660 fi | |
5661 | |
5662 to_host_file_cmd=$lt_cv_to_host_file_cmd | |
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 | |
5664 $as_echo "$lt_cv_to_host_file_cmd" >&6; } | |
5665 | |
5666 | |
5667 | |
5668 | |
5669 | |
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 | |
5671 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } | |
5672 if ${lt_cv_to_tool_file_cmd+:} false; then : | |
5673 $as_echo_n "(cached) " >&6 | |
5674 else | |
5675 #assume ordinary cross tools, or native build. | |
5676 lt_cv_to_tool_file_cmd=func_convert_file_noop | |
5677 case $host in | |
5678 *-*-mingw* ) | |
5679 case $build in | |
5680 *-*-mingw* ) # actually msys | |
5681 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 | |
5682 ;; | |
5683 esac | |
5684 ;; | |
5685 esac | |
5686 | |
5687 fi | |
5688 | |
5689 to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 | |
5691 $as_echo "$lt_cv_to_tool_file_cmd" >&6; } | |
5692 | |
5693 | |
5694 | |
5695 | |
5696 | |
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 | |
5698 $as_echo_n "checking for $LD option to reload object files... " >&6; } | |
5699 if ${lt_cv_ld_reload_flag+:} false; then : | |
5700 $as_echo_n "(cached) " >&6 | |
5701 else | |
5702 lt_cv_ld_reload_flag='-r' | |
5703 fi | |
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 | |
5705 $as_echo "$lt_cv_ld_reload_flag" >&6; } | |
5706 reload_flag=$lt_cv_ld_reload_flag | |
5707 case $reload_flag in | |
5708 "" | " "*) ;; | |
5709 *) reload_flag=" $reload_flag" ;; | |
5710 esac | |
5711 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5712 case $host_os in | |
5713 cygwin* | mingw* | pw32* | cegcc*) | |
5714 if test "$GCC" != yes; then | |
5715 reload_cmds=false | |
5716 fi | |
5717 ;; | |
5718 darwin*) | |
5719 if test "$GCC" = yes; then | |
5720 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
5721 else | |
5722 reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
5723 fi | |
5724 ;; | |
5725 esac | |
5726 | |
5727 | |
5728 | |
5729 | |
5730 | |
5731 | |
5732 | |
5733 | |
5734 | |
5735 if test -n "$ac_tool_prefix"; then | |
5736 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | |
5737 set dummy ${ac_tool_prefix}objdump; ac_word=$2 | |
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5739 $as_echo_n "checking for $ac_word... " >&6; } | |
5740 if ${ac_cv_prog_OBJDUMP+:} false; then : | |
5741 $as_echo_n "(cached) " >&6 | |
5742 else | |
5743 if test -n "$OBJDUMP"; then | |
5744 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | |
5745 else | |
5746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5747 for as_dir in $PATH | |
5748 do | |
5749 IFS=$as_save_IFS | |
5750 test -z "$as_dir" && as_dir=. | |
5751 for ac_exec_ext in '' $ac_executable_extensions; do | |
5752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5753 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | |
5754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5755 break 2 | |
5756 fi | |
5757 done | |
5758 done | |
5759 IFS=$as_save_IFS | |
5760 | |
5761 fi | |
5762 fi | |
5763 OBJDUMP=$ac_cv_prog_OBJDUMP | |
5764 if test -n "$OBJDUMP"; then | |
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 | |
5766 $as_echo "$OBJDUMP" >&6; } | |
5767 else | |
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5769 $as_echo "no" >&6; } | |
5770 fi | |
5771 | |
5772 | |
5773 fi | |
5774 if test -z "$ac_cv_prog_OBJDUMP"; then | |
5775 ac_ct_OBJDUMP=$OBJDUMP | |
5776 # Extract the first word of "objdump", so it can be a program name with args. | |
5777 set dummy objdump; ac_word=$2 | |
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5779 $as_echo_n "checking for $ac_word... " >&6; } | |
5780 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : | |
5781 $as_echo_n "(cached) " >&6 | |
5782 else | |
5783 if test -n "$ac_ct_OBJDUMP"; then | |
5784 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | |
5785 else | |
5786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5787 for as_dir in $PATH | |
5788 do | |
5789 IFS=$as_save_IFS | |
5790 test -z "$as_dir" && as_dir=. | |
5791 for ac_exec_ext in '' $ac_executable_extensions; do | |
5792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5793 ac_cv_prog_ac_ct_OBJDUMP="objdump" | |
5794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5795 break 2 | |
5796 fi | |
5797 done | |
5798 done | |
5799 IFS=$as_save_IFS | |
5800 | |
5801 fi | |
5802 fi | |
5803 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | |
5804 if test -n "$ac_ct_OBJDUMP"; then | |
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 | |
5806 $as_echo "$ac_ct_OBJDUMP" >&6; } | |
5807 else | |
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5809 $as_echo "no" >&6; } | |
5810 fi | |
5811 | |
5812 if test "x$ac_ct_OBJDUMP" = x; then | |
5813 OBJDUMP="false" | |
5814 else | |
5815 case $cross_compiling:$ac_tool_warned in | |
5816 yes:) | |
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5818 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5819 ac_tool_warned=yes ;; | |
5820 esac | |
5821 OBJDUMP=$ac_ct_OBJDUMP | |
5822 fi | |
5823 else | |
5824 OBJDUMP="$ac_cv_prog_OBJDUMP" | |
5825 fi | |
5826 | |
5827 test -z "$OBJDUMP" && OBJDUMP=objdump | |
5828 | |
5829 | |
5830 | |
5831 | |
5832 | |
5833 | |
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 | |
5835 $as_echo_n "checking how to recognize dependent libraries... " >&6; } | |
5836 if ${lt_cv_deplibs_check_method+:} false; then : | |
5837 $as_echo_n "(cached) " >&6 | |
5838 else | |
5839 lt_cv_file_magic_cmd='$MAGIC_CMD' | |
5840 lt_cv_file_magic_test_file= | |
5841 lt_cv_deplibs_check_method='unknown' | |
5842 # Need to set the preceding variable on all platforms that support | |
5843 # interlibrary dependencies. | |
5844 # 'none' -- dependencies not supported. | |
5845 # `unknown' -- same as none, but documents that we really don't know. | |
5846 # 'pass_all' -- all dependencies passed with no checks. | |
5847 # 'test_compile' -- check by making test program. | |
5848 # 'file_magic [[regex]]' -- check by looking for files in library path | |
5849 # which responds to the $file_magic_cmd with a given extended regex. | |
5850 # If you have `file' or equivalent on your system and you're not sure | |
5851 # whether `pass_all' will *always* work, you probably want this one. | |
5852 | |
5853 case $host_os in | |
5854 aix[4-9]*) | |
5855 lt_cv_deplibs_check_method=pass_all | |
5856 ;; | |
5857 | |
5858 beos*) | |
5859 lt_cv_deplibs_check_method=pass_all | |
5860 ;; | |
5861 | |
5862 bsdi[45]*) | |
5863 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
5864 lt_cv_file_magic_cmd='/usr/bin/file -L' | |
5865 lt_cv_file_magic_test_file=/shlib/libc.so | |
5866 ;; | |
5867 | |
5868 cygwin*) | |
5869 # func_win32_libid is a shell function defined in ltmain.sh | |
5870 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5871 lt_cv_file_magic_cmd='func_win32_libid' | |
5872 ;; | |
5873 | |
5874 mingw* | pw32*) | |
5875 # Base MSYS/MinGW do not provide the 'file' command needed by | |
5876 # func_win32_libid shell function, so use a weaker test based on 'objdump', | |
5877 # unless we find 'file', for example because we are cross-compiling. | |
5878 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. | |
5879 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then | |
5880 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
5881 lt_cv_file_magic_cmd='func_win32_libid' | |
5882 else | |
5883 # Keep this pattern in sync with the one in func_win32_libid. | |
5884 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' | |
5885 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5886 fi | |
5887 ;; | |
5888 | |
5889 cegcc*) | |
5890 # use the weaker test based on 'objdump'. See mingw*. | |
5891 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' | |
5892 lt_cv_file_magic_cmd='$OBJDUMP -f' | |
5893 ;; | |
5894 | |
5895 darwin* | rhapsody*) | |
5896 lt_cv_deplibs_check_method=pass_all | |
5897 ;; | |
5898 | |
5899 freebsd* | dragonfly*) | |
5900 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5901 case $host_cpu in | |
5902 i*86 ) | |
5903 # Not sure whether the presence of OpenBSD here was a mistake. | |
5904 # Let's accept both of them until this is cleared up. | |
5905 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
5906 lt_cv_file_magic_cmd=/usr/bin/file | |
5907 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
5908 ;; | |
5909 esac | |
5910 else | |
5911 lt_cv_deplibs_check_method=pass_all | |
5912 fi | |
5913 ;; | |
5914 | |
5915 haiku*) | |
5916 lt_cv_deplibs_check_method=pass_all | |
5917 ;; | |
5918 | |
5919 hpux10.20* | hpux11*) | |
5920 lt_cv_file_magic_cmd=/usr/bin/file | |
5921 case $host_cpu in | |
5922 ia64*) | |
5923 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
5924 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
5925 ;; | |
5926 hppa*64*) | |
5927 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]' | |
5928 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
5929 ;; | |
5930 *) | |
5931 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' | |
5932 lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
5933 ;; | |
5934 esac | |
5935 ;; | |
5936 | |
5937 interix[3-9]*) | |
5938 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
5939 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
5940 ;; | |
5941 | |
5942 irix5* | irix6* | nonstopux*) | |
5943 case $LD in | |
5944 *-32|*"-32 ") libmagic=32-bit;; | |
5945 *-n32|*"-n32 ") libmagic=N32;; | |
5946 *-64|*"-64 ") libmagic=64-bit;; | |
5947 *) libmagic=never-match;; | |
5948 esac | |
5949 lt_cv_deplibs_check_method=pass_all | |
5950 ;; | |
5951 | |
5952 # This must be glibc/ELF. | |
5953 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
5954 lt_cv_deplibs_check_method=pass_all | |
5955 ;; | |
5956 | |
5957 netbsd* | netbsdelf*-gnu) | |
5958 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then | |
5959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5960 else | |
5961 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
5962 fi | |
5963 ;; | |
5964 | |
5965 newos6*) | |
5966 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
5967 lt_cv_file_magic_cmd=/usr/bin/file | |
5968 lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
5969 ;; | |
5970 | |
5971 *nto* | *qnx*) | |
5972 lt_cv_deplibs_check_method=pass_all | |
5973 ;; | |
5974 | |
5975 openbsd*) | |
5976 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
5977 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
5978 else | |
5979 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
5980 fi | |
5981 ;; | |
5982 | |
5983 osf3* | osf4* | osf5*) | |
5984 lt_cv_deplibs_check_method=pass_all | |
5985 ;; | |
5986 | |
5987 rdos*) | |
5988 lt_cv_deplibs_check_method=pass_all | |
5989 ;; | |
5990 | |
5991 solaris*) | |
5992 lt_cv_deplibs_check_method=pass_all | |
5993 ;; | |
5994 | |
5995 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
5996 lt_cv_deplibs_check_method=pass_all | |
5997 ;; | |
5998 | |
5999 sysv4 | sysv4.3*) | |
6000 case $host_vendor in | |
6001 motorola) | |
6002 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]' | |
6003 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6004 ;; | |
6005 ncr) | |
6006 lt_cv_deplibs_check_method=pass_all | |
6007 ;; | |
6008 sequent) | |
6009 lt_cv_file_magic_cmd='/bin/file' | |
6010 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6011 ;; | |
6012 sni) | |
6013 lt_cv_file_magic_cmd='/bin/file' | |
6014 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6015 lt_cv_file_magic_test_file=/lib/libc.so | |
6016 ;; | |
6017 siemens) | |
6018 lt_cv_deplibs_check_method=pass_all | |
6019 ;; | |
6020 pc) | |
6021 lt_cv_deplibs_check_method=pass_all | |
6022 ;; | |
6023 esac | |
6024 ;; | |
6025 | |
6026 tpf*) | |
6027 lt_cv_deplibs_check_method=pass_all | |
6028 ;; | |
6029 esac | |
6030 | |
6031 fi | |
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 | |
6033 $as_echo "$lt_cv_deplibs_check_method" >&6; } | |
6034 | |
6035 file_magic_glob= | |
6036 want_nocaseglob=no | |
6037 if test "$build" = "$host"; then | |
6038 case $host_os in | |
6039 mingw* | pw32*) | |
6040 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then | |
6041 want_nocaseglob=yes | |
6042 else | |
6043 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` | |
6044 fi | |
6045 ;; | |
6046 esac | |
6047 fi | |
6048 | |
6049 file_magic_cmd=$lt_cv_file_magic_cmd | |
6050 deplibs_check_method=$lt_cv_deplibs_check_method | |
6051 test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6052 | |
6053 | |
6054 | |
6055 | |
6056 | |
6057 | |
6058 | |
6059 | |
6060 | |
6061 | |
6062 | |
6063 | |
6064 | |
6065 | |
6066 | |
6067 | |
6068 | |
6069 | |
6070 | |
6071 | |
6072 | |
6073 | |
6074 if test -n "$ac_tool_prefix"; then | |
6075 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | |
6076 set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | |
6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6078 $as_echo_n "checking for $ac_word... " >&6; } | |
6079 if ${ac_cv_prog_DLLTOOL+:} false; then : | |
6080 $as_echo_n "(cached) " >&6 | |
6081 else | |
6082 if test -n "$DLLTOOL"; then | |
6083 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | |
6084 else | |
6085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6086 for as_dir in $PATH | |
6087 do | |
6088 IFS=$as_save_IFS | |
6089 test -z "$as_dir" && as_dir=. | |
6090 for ac_exec_ext in '' $ac_executable_extensions; do | |
6091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6092 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | |
6093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6094 break 2 | |
6095 fi | |
6096 done | |
6097 done | |
6098 IFS=$as_save_IFS | |
6099 | |
6100 fi | |
6101 fi | |
6102 DLLTOOL=$ac_cv_prog_DLLTOOL | |
6103 if test -n "$DLLTOOL"; then | |
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 | |
6105 $as_echo "$DLLTOOL" >&6; } | |
6106 else | |
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6108 $as_echo "no" >&6; } | |
6109 fi | |
6110 | |
6111 | |
6112 fi | |
6113 if test -z "$ac_cv_prog_DLLTOOL"; then | |
6114 ac_ct_DLLTOOL=$DLLTOOL | |
6115 # Extract the first word of "dlltool", so it can be a program name with args. | |
6116 set dummy dlltool; 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 ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : | |
6120 $as_echo_n "(cached) " >&6 | |
6121 else | |
6122 if test -n "$ac_ct_DLLTOOL"; then | |
6123 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6132 ac_cv_prog_ac_ct_DLLTOOL="dlltool" | |
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 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | |
6143 if test -n "$ac_ct_DLLTOOL"; then | |
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 | |
6145 $as_echo "$ac_ct_DLLTOOL" >&6; } | |
6146 else | |
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6148 $as_echo "no" >&6; } | |
6149 fi | |
6150 | |
6151 if test "x$ac_ct_DLLTOOL" = x; then | |
6152 DLLTOOL="false" | |
6153 else | |
6154 case $cross_compiling:$ac_tool_warned in | |
6155 yes:) | |
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6158 ac_tool_warned=yes ;; | |
6159 esac | |
6160 DLLTOOL=$ac_ct_DLLTOOL | |
6161 fi | |
6162 else | |
6163 DLLTOOL="$ac_cv_prog_DLLTOOL" | |
6164 fi | |
6165 | |
6166 test -z "$DLLTOOL" && DLLTOOL=dlltool | |
6167 | |
6168 | |
6169 | |
6170 | |
6171 | |
6172 | |
6173 | |
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 | |
6175 $as_echo_n "checking how to associate runtime and link libraries... " >&6; } | |
6176 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : | |
6177 $as_echo_n "(cached) " >&6 | |
6178 else | |
6179 lt_cv_sharedlib_from_linklib_cmd='unknown' | |
6180 | |
6181 case $host_os in | |
6182 cygwin* | mingw* | pw32* | cegcc*) | |
6183 # two different shell functions defined in ltmain.sh | |
6184 # decide which to use based on capabilities of $DLLTOOL | |
6185 case `$DLLTOOL --help 2>&1` in | |
6186 *--identify-strict*) | |
6187 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib | |
6188 ;; | |
6189 *) | |
6190 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback | |
6191 ;; | |
6192 esac | |
6193 ;; | |
6194 *) | |
6195 # fallback: assume linklib IS sharedlib | |
6196 lt_cv_sharedlib_from_linklib_cmd="$ECHO" | |
6197 ;; | |
6198 esac | |
6199 | |
6200 fi | |
6201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 | |
6202 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } | |
6203 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd | |
6204 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO | |
6205 | |
6206 | |
6207 | |
6208 | |
6209 | |
6210 | |
6211 | |
6212 | |
6213 if test -n "$ac_tool_prefix"; then | |
6214 for ac_prog in ar | |
6215 do | |
6216 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
6217 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6219 $as_echo_n "checking for $ac_word... " >&6; } | |
6220 if ${ac_cv_prog_AR+:} false; then : | |
6221 $as_echo_n "(cached) " >&6 | |
6222 else | |
6223 if test -n "$AR"; then | |
6224 ac_cv_prog_AR="$AR" # Let the user override the test. | |
6225 else | |
6226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6227 for as_dir in $PATH | |
6228 do | |
6229 IFS=$as_save_IFS | |
6230 test -z "$as_dir" && as_dir=. | |
6231 for ac_exec_ext in '' $ac_executable_extensions; do | |
6232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6233 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" | |
6234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6235 break 2 | |
6236 fi | |
6237 done | |
6238 done | |
6239 IFS=$as_save_IFS | |
6240 | |
6241 fi | |
6242 fi | |
6243 AR=$ac_cv_prog_AR | |
6244 if test -n "$AR"; then | |
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 | |
6246 $as_echo "$AR" >&6; } | |
6247 else | |
6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6249 $as_echo "no" >&6; } | |
6250 fi | |
6251 | |
6252 | |
6253 test -n "$AR" && break | |
6254 done | |
6255 fi | |
6256 if test -z "$AR"; then | |
6257 ac_ct_AR=$AR | |
6258 for ac_prog in ar | |
6259 do | |
6260 # Extract the first word of "$ac_prog", so it can be a program name with args. | |
6261 set dummy $ac_prog; 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 ${ac_cv_prog_ac_ct_AR+:} false; then : | |
6265 $as_echo_n "(cached) " >&6 | |
6266 else | |
6267 if test -n "$ac_ct_AR"; then | |
6268 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6277 ac_cv_prog_ac_ct_AR="$ac_prog" | |
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_AR=$ac_cv_prog_ac_ct_AR | |
6288 if test -n "$ac_ct_AR"; then | |
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 | |
6290 $as_echo "$ac_ct_AR" >&6; } | |
6291 else | |
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6293 $as_echo "no" >&6; } | |
6294 fi | |
6295 | |
6296 | |
6297 test -n "$ac_ct_AR" && break | |
6298 done | |
6299 | |
6300 if test "x$ac_ct_AR" = x; then | |
6301 AR="false" | |
6302 else | |
6303 case $cross_compiling:$ac_tool_warned in | |
6304 yes:) | |
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6306 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6307 ac_tool_warned=yes ;; | |
6308 esac | |
6309 AR=$ac_ct_AR | |
6310 fi | |
6311 fi | |
6312 | |
6313 : ${AR=ar} | |
6314 : ${AR_FLAGS=cru} | |
6315 | |
6316 | |
6317 | |
6318 | |
6319 | |
6320 | |
6321 | |
6322 | |
6323 | |
6324 | |
6325 | |
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 | |
6327 $as_echo_n "checking for archiver @FILE support... " >&6; } | |
6328 if ${lt_cv_ar_at_file+:} false; then : | |
6329 $as_echo_n "(cached) " >&6 | |
6330 else | |
6331 lt_cv_ar_at_file=no | |
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6333 /* end confdefs.h. */ | |
6334 | |
6335 int | |
6336 main () | |
6337 { | |
6338 | |
6339 ; | |
6340 return 0; | |
6341 } | |
6342 _ACEOF | |
6343 if ac_fn_c_try_compile "$LINENO"; then : | |
6344 echo conftest.$ac_objext > conftest.lst | |
6345 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' | |
6346 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6347 (eval $lt_ar_try) 2>&5 | |
6348 ac_status=$? | |
6349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6350 test $ac_status = 0; } | |
6351 if test "$ac_status" -eq 0; then | |
6352 # Ensure the archiver fails upon bogus file names. | |
6353 rm -f conftest.$ac_objext libconftest.a | |
6354 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 | |
6355 (eval $lt_ar_try) 2>&5 | |
6356 ac_status=$? | |
6357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6358 test $ac_status = 0; } | |
6359 if test "$ac_status" -ne 0; then | |
6360 lt_cv_ar_at_file=@ | |
6361 fi | |
6362 fi | |
6363 rm -f conftest.* libconftest.a | |
6364 | |
6365 fi | |
6366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6367 | |
6368 fi | |
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 | |
6370 $as_echo "$lt_cv_ar_at_file" >&6; } | |
6371 | |
6372 if test "x$lt_cv_ar_at_file" = xno; then | |
6373 archiver_list_spec= | |
6374 else | |
6375 archiver_list_spec=$lt_cv_ar_at_file | |
6376 fi | |
6377 | |
6378 | |
6379 | |
6380 | |
6381 | |
6382 | |
6383 | |
6384 if test -n "$ac_tool_prefix"; then | |
6385 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
6386 set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6388 $as_echo_n "checking for $ac_word... " >&6; } | |
6389 if ${ac_cv_prog_STRIP+:} false; then : | |
6390 $as_echo_n "(cached) " >&6 | |
6391 else | |
6392 if test -n "$STRIP"; then | |
6393 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
6394 else | |
6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6396 for as_dir in $PATH | |
6397 do | |
6398 IFS=$as_save_IFS | |
6399 test -z "$as_dir" && as_dir=. | |
6400 for ac_exec_ext in '' $ac_executable_extensions; do | |
6401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6402 ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
6403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6404 break 2 | |
6405 fi | |
6406 done | |
6407 done | |
6408 IFS=$as_save_IFS | |
6409 | |
6410 fi | |
6411 fi | |
6412 STRIP=$ac_cv_prog_STRIP | |
6413 if test -n "$STRIP"; then | |
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
6415 $as_echo "$STRIP" >&6; } | |
6416 else | |
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6418 $as_echo "no" >&6; } | |
6419 fi | |
6420 | |
6421 | |
6422 fi | |
6423 if test -z "$ac_cv_prog_STRIP"; then | |
6424 ac_ct_STRIP=$STRIP | |
6425 # Extract the first word of "strip", so it can be a program name with args. | |
6426 set dummy strip; ac_word=$2 | |
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6428 $as_echo_n "checking for $ac_word... " >&6; } | |
6429 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
6430 $as_echo_n "(cached) " >&6 | |
6431 else | |
6432 if test -n "$ac_ct_STRIP"; then | |
6433 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
6434 else | |
6435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6436 for as_dir in $PATH | |
6437 do | |
6438 IFS=$as_save_IFS | |
6439 test -z "$as_dir" && as_dir=. | |
6440 for ac_exec_ext in '' $ac_executable_extensions; do | |
6441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6442 ac_cv_prog_ac_ct_STRIP="strip" | |
6443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6444 break 2 | |
6445 fi | |
6446 done | |
6447 done | |
6448 IFS=$as_save_IFS | |
6449 | |
6450 fi | |
6451 fi | |
6452 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
6453 if test -n "$ac_ct_STRIP"; then | |
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
6455 $as_echo "$ac_ct_STRIP" >&6; } | |
6456 else | |
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6458 $as_echo "no" >&6; } | |
6459 fi | |
6460 | |
6461 if test "x$ac_ct_STRIP" = x; then | |
6462 STRIP=":" | |
6463 else | |
6464 case $cross_compiling:$ac_tool_warned in | |
6465 yes:) | |
6466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6467 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6468 ac_tool_warned=yes ;; | |
6469 esac | |
6470 STRIP=$ac_ct_STRIP | |
6471 fi | |
6472 else | |
6473 STRIP="$ac_cv_prog_STRIP" | |
6474 fi | |
6475 | |
6476 test -z "$STRIP" && STRIP=: | |
6477 | |
6478 | |
6479 | |
6480 | |
6481 | |
6482 | |
6483 if test -n "$ac_tool_prefix"; then | |
6484 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
6485 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6487 $as_echo_n "checking for $ac_word... " >&6; } | |
6488 if ${ac_cv_prog_RANLIB+:} false; then : | |
6489 $as_echo_n "(cached) " >&6 | |
6490 else | |
6491 if test -n "$RANLIB"; then | |
6492 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
6493 else | |
6494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6495 for as_dir in $PATH | |
6496 do | |
6497 IFS=$as_save_IFS | |
6498 test -z "$as_dir" && as_dir=. | |
6499 for ac_exec_ext in '' $ac_executable_extensions; do | |
6500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6501 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
6502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6503 break 2 | |
6504 fi | |
6505 done | |
6506 done | |
6507 IFS=$as_save_IFS | |
6508 | |
6509 fi | |
6510 fi | |
6511 RANLIB=$ac_cv_prog_RANLIB | |
6512 if test -n "$RANLIB"; then | |
6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 | |
6514 $as_echo "$RANLIB" >&6; } | |
6515 else | |
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6517 $as_echo "no" >&6; } | |
6518 fi | |
6519 | |
6520 | |
6521 fi | |
6522 if test -z "$ac_cv_prog_RANLIB"; then | |
6523 ac_ct_RANLIB=$RANLIB | |
6524 # Extract the first word of "ranlib", so it can be a program name with args. | |
6525 set dummy ranlib; ac_word=$2 | |
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
6527 $as_echo_n "checking for $ac_word... " >&6; } | |
6528 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : | |
6529 $as_echo_n "(cached) " >&6 | |
6530 else | |
6531 if test -n "$ac_ct_RANLIB"; then | |
6532 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
6533 else | |
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6535 for as_dir in $PATH | |
6536 do | |
6537 IFS=$as_save_IFS | |
6538 test -z "$as_dir" && as_dir=. | |
6539 for ac_exec_ext in '' $ac_executable_extensions; do | |
6540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
6541 ac_cv_prog_ac_ct_RANLIB="ranlib" | |
6542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
6543 break 2 | |
6544 fi | |
6545 done | |
6546 done | |
6547 IFS=$as_save_IFS | |
6548 | |
6549 fi | |
6550 fi | |
6551 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
6552 if test -n "$ac_ct_RANLIB"; then | |
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 | |
6554 $as_echo "$ac_ct_RANLIB" >&6; } | |
6555 else | |
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
6557 $as_echo "no" >&6; } | |
6558 fi | |
6559 | |
6560 if test "x$ac_ct_RANLIB" = x; then | |
6561 RANLIB=":" | |
6562 else | |
6563 case $cross_compiling:$ac_tool_warned in | |
6564 yes:) | |
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
6566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
6567 ac_tool_warned=yes ;; | |
6568 esac | |
6569 RANLIB=$ac_ct_RANLIB | |
6570 fi | |
6571 else | |
6572 RANLIB="$ac_cv_prog_RANLIB" | |
6573 fi | |
6574 | |
6575 test -z "$RANLIB" && RANLIB=: | |
6576 | |
6577 | |
6578 | |
6579 | |
6580 | |
6581 | |
6582 # Determine commands to create old-style static archives. | |
6583 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' | |
6584 old_postinstall_cmds='chmod 644 $oldlib' | |
6585 old_postuninstall_cmds= | |
6586 | |
6587 if test -n "$RANLIB"; then | |
6588 case $host_os in | |
6589 openbsd*) | |
6590 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" | |
6591 ;; | |
6592 *) | |
6593 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" | |
6594 ;; | |
6595 esac | |
6596 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" | |
6597 fi | |
6598 | |
6599 case $host_os in | |
6600 darwin*) | |
6601 lock_old_archive_extraction=yes ;; | |
6602 *) | |
6603 lock_old_archive_extraction=no ;; | |
6604 esac | |
6605 | |
6606 | |
6607 | |
6608 | |
6609 | |
6610 | |
6611 | |
6612 | |
6613 | |
6614 | |
6615 | |
6616 | |
6617 | |
6618 | |
6619 | |
6620 | |
6621 | |
6622 | |
6623 | |
6624 | |
6625 | |
6626 | |
6627 | |
6628 | |
6629 | |
6630 | |
6631 | |
6632 | |
6633 | |
6634 | |
6635 | |
6636 | |
6637 | |
6638 | |
6639 | |
6640 | |
6641 | |
6642 | |
6643 | |
6644 # If no C compiler was specified, use CC. | |
6645 LTCC=${LTCC-"$CC"} | |
6646 | |
6647 # If no C compiler flags were specified, use CFLAGS. | |
6648 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6649 | |
6650 # Allow CC to be a program name with arguments. | |
6651 compiler=$CC | |
6652 | |
6653 | |
6654 # Check for command to grab the raw symbol name followed by C symbol from nm. | |
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 | |
6656 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } | |
6657 if ${lt_cv_sys_global_symbol_pipe+:} false; then : | |
6658 $as_echo_n "(cached) " >&6 | |
6659 else | |
6660 | |
6661 # These are sane defaults that work on at least a few old systems. | |
6662 # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
6663 | |
6664 # Character class describing NM global symbol codes. | |
6665 symcode='[BCDEGRST]' | |
6666 | |
6667 # Regexp to match symbols that can be accessed directly from C. | |
6668 sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
6669 | |
6670 # Define system-specific variables. | |
6671 case $host_os in | |
6672 aix*) | |
6673 symcode='[BCDT]' | |
6674 ;; | |
6675 cygwin* | mingw* | pw32* | cegcc*) | |
6676 symcode='[ABCDGISTW]' | |
6677 ;; | |
6678 hpux*) | |
6679 if test "$host_cpu" = ia64; then | |
6680 symcode='[ABCDEGRST]' | |
6681 fi | |
6682 ;; | |
6683 irix* | nonstopux*) | |
6684 symcode='[BCDEGRST]' | |
6685 ;; | |
6686 osf*) | |
6687 symcode='[BCDEGQRST]' | |
6688 ;; | |
6689 solaris*) | |
6690 symcode='[BDRT]' | |
6691 ;; | |
6692 sco3.2v5*) | |
6693 symcode='[DT]' | |
6694 ;; | |
6695 sysv4.2uw2*) | |
6696 symcode='[DT]' | |
6697 ;; | |
6698 sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
6699 symcode='[ABDT]' | |
6700 ;; | |
6701 sysv4) | |
6702 symcode='[DFNSTU]' | |
6703 ;; | |
6704 esac | |
6705 | |
6706 # If we're using GNU nm, then use its standard symbol codes. | |
6707 case `$NM -V 2>&1` in | |
6708 *GNU* | *'with BFD'*) | |
6709 symcode='[ABCDGIRSTW]' ;; | |
6710 esac | |
6711 | |
6712 # Transform an extracted symbol line into a proper C declaration. | |
6713 # Some systems (esp. on ia64) link data and code symbols differently, | |
6714 # so use this general approach. | |
6715 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
6716 | |
6717 # Transform an extracted symbol line into symbol name and symbol address | |
6718 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" | |
6719 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'" | |
6720 | |
6721 # Handle CRLF in mingw tool chain | |
6722 opt_cr= | |
6723 case $build_os in | |
6724 mingw*) | |
6725 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
6726 ;; | |
6727 esac | |
6728 | |
6729 # Try without a prefix underscore, then with it. | |
6730 for ac_symprfx in "" "_"; do | |
6731 | |
6732 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
6733 symxfrm="\\1 $ac_symprfx\\2 \\2" | |
6734 | |
6735 # Write the raw and C identifiers. | |
6736 if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6737 # Fake it for dumpbin and say T for any non-static function | |
6738 # and D for any global variable. | |
6739 # Also find C++ and __fastcall symbols from MSVC++, | |
6740 # which start with @ or ?. | |
6741 lt_cv_sys_global_symbol_pipe="$AWK '"\ | |
6742 " {last_section=section; section=\$ 3};"\ | |
6743 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ | |
6744 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ | |
6745 " \$ 0!~/External *\|/{next};"\ | |
6746 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ | |
6747 " {if(hide[section]) next};"\ | |
6748 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ | |
6749 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ | |
6750 " s[1]~/^[@?]/{print s[1], s[1]; next};"\ | |
6751 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ | |
6752 " ' prfx=^$ac_symprfx" | |
6753 else | |
6754 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
6755 fi | |
6756 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" | |
6757 | |
6758 # Check to see that the pipe works correctly. | |
6759 pipe_works=no | |
6760 | |
6761 rm -f conftest* | |
6762 cat > conftest.$ac_ext <<_LT_EOF | |
6763 #ifdef __cplusplus | |
6764 extern "C" { | |
6765 #endif | |
6766 char nm_test_var; | |
6767 void nm_test_func(void); | |
6768 void nm_test_func(void){} | |
6769 #ifdef __cplusplus | |
6770 } | |
6771 #endif | |
6772 int main(){nm_test_var='a';nm_test_func();return(0);} | |
6773 _LT_EOF | |
6774 | |
6775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6776 (eval $ac_compile) 2>&5 | |
6777 ac_status=$? | |
6778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6779 test $ac_status = 0; }; then | |
6780 # Now try to grab the symbols. | |
6781 nlist=conftest.nm | |
6782 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 | |
6783 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 | |
6784 ac_status=$? | |
6785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6786 test $ac_status = 0; } && test -s "$nlist"; then | |
6787 # Try sorting and uniquifying the output. | |
6788 if sort "$nlist" | uniq > "$nlist"T; then | |
6789 mv -f "$nlist"T "$nlist" | |
6790 else | |
6791 rm -f "$nlist"T | |
6792 fi | |
6793 | |
6794 # Make sure that we snagged all the symbols we need. | |
6795 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then | |
6796 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then | |
6797 cat <<_LT_EOF > conftest.$ac_ext | |
6798 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ | |
6799 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) | |
6800 /* DATA imports from DLLs on WIN32 con't be const, because runtime | |
6801 relocations are performed -- see ld's documentation on pseudo-relocs. */ | |
6802 # define LT_DLSYM_CONST | |
6803 #elif defined(__osf__) | |
6804 /* This system does not cope well with relocations in const data. */ | |
6805 # define LT_DLSYM_CONST | |
6806 #else | |
6807 # define LT_DLSYM_CONST const | |
6808 #endif | |
6809 | |
6810 #ifdef __cplusplus | |
6811 extern "C" { | |
6812 #endif | |
6813 | |
6814 _LT_EOF | |
6815 # Now generate the symbol file. | |
6816 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' | |
6817 | |
6818 cat <<_LT_EOF >> conftest.$ac_ext | |
6819 | |
6820 /* The mapping between symbol names and symbols. */ | |
6821 LT_DLSYM_CONST struct { | |
6822 const char *name; | |
6823 void *address; | |
6824 } | |
6825 lt__PROGRAM__LTX_preloaded_symbols[] = | |
6826 { | |
6827 { "@PROGRAM@", (void *) 0 }, | |
6828 _LT_EOF | |
6829 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext | |
6830 cat <<\_LT_EOF >> conftest.$ac_ext | |
6831 {0, (void *) 0} | |
6832 }; | |
6833 | |
6834 /* This works around a problem in FreeBSD linker */ | |
6835 #ifdef FREEBSD_WORKAROUND | |
6836 static const void *lt_preloaded_setup() { | |
6837 return lt__PROGRAM__LTX_preloaded_symbols; | |
6838 } | |
6839 #endif | |
6840 | |
6841 #ifdef __cplusplus | |
6842 } | |
6843 #endif | |
6844 _LT_EOF | |
6845 # Now try linking the two files. | |
6846 mv conftest.$ac_objext conftstm.$ac_objext | |
6847 lt_globsym_save_LIBS=$LIBS | |
6848 lt_globsym_save_CFLAGS=$CFLAGS | |
6849 LIBS="conftstm.$ac_objext" | |
6850 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
6851 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
6852 (eval $ac_link) 2>&5 | |
6853 ac_status=$? | |
6854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6855 test $ac_status = 0; } && test -s conftest${ac_exeext}; then | |
6856 pipe_works=yes | |
6857 fi | |
6858 LIBS=$lt_globsym_save_LIBS | |
6859 CFLAGS=$lt_globsym_save_CFLAGS | |
6860 else | |
6861 echo "cannot find nm_test_func in $nlist" >&5 | |
6862 fi | |
6863 else | |
6864 echo "cannot find nm_test_var in $nlist" >&5 | |
6865 fi | |
6866 else | |
6867 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
6868 fi | |
6869 else | |
6870 echo "$progname: failed program was:" >&5 | |
6871 cat conftest.$ac_ext >&5 | |
6872 fi | |
6873 rm -rf conftest* conftst* | |
6874 | |
6875 # Do not use the global_symbol_pipe unless it works. | |
6876 if test "$pipe_works" = yes; then | |
6877 break | |
6878 else | |
6879 lt_cv_sys_global_symbol_pipe= | |
6880 fi | |
6881 done | |
6882 | |
6883 fi | |
6884 | |
6885 if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
6886 lt_cv_sys_global_symbol_to_cdecl= | |
6887 fi | |
6888 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 | |
6890 $as_echo "failed" >&6; } | |
6891 else | |
6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 | |
6893 $as_echo "ok" >&6; } | |
6894 fi | |
6895 | |
6896 # Response file support. | |
6897 if test "$lt_cv_nm_interface" = "MS dumpbin"; then | |
6898 nm_file_list_spec='@' | |
6899 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then | |
6900 nm_file_list_spec='@' | |
6901 fi | |
6902 | |
6903 | |
6904 | |
6905 | |
6906 | |
6907 | |
6908 | |
6909 | |
6910 | |
6911 | |
6912 | |
6913 | |
6914 | |
6915 | |
6916 | |
6917 | |
6918 | |
6919 | |
6920 | |
6921 | |
6922 | |
6923 | |
6924 | |
6925 | |
6926 | |
6927 | |
6928 | |
6929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 | |
6930 $as_echo_n "checking for sysroot... " >&6; } | |
6931 | |
6932 # Check whether --with-sysroot was given. | |
6933 if test "${with_sysroot+set}" = set; then : | |
6934 withval=$with_sysroot; | |
6935 else | |
6936 with_sysroot=no | |
6937 fi | |
6938 | |
6939 | |
6940 lt_sysroot= | |
6941 case ${with_sysroot} in #( | |
6942 yes) | |
6943 if test "$GCC" = yes; then | |
6944 lt_sysroot=`$CC --print-sysroot 2>/dev/null` | |
6945 fi | |
6946 ;; #( | |
6947 /*) | |
6948 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` | |
6949 ;; #( | |
6950 no|'') | |
6951 ;; #( | |
6952 *) | |
6953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 | |
6954 $as_echo "${with_sysroot}" >&6; } | |
6955 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 | |
6956 ;; | |
6957 esac | |
6958 | |
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 | |
6960 $as_echo "${lt_sysroot:-no}" >&6; } | |
6961 | |
6962 | |
6963 | |
6964 | |
6965 | |
6966 # Check whether --enable-libtool-lock was given. | |
6967 if test "${enable_libtool_lock+set}" = set; then : | |
6968 enableval=$enable_libtool_lock; | |
6969 fi | |
6970 | |
6971 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
6972 | |
6973 # Some flags need to be propagated to the compiler or linker for good | |
6974 # libtool support. | |
6975 case $host in | |
6976 ia64-*-hpux*) | |
6977 # Find out which ABI we are using. | |
6978 echo 'int i;' > conftest.$ac_ext | |
6979 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6980 (eval $ac_compile) 2>&5 | |
6981 ac_status=$? | |
6982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
6983 test $ac_status = 0; }; then | |
6984 case `/usr/bin/file conftest.$ac_objext` in | |
6985 *ELF-32*) | |
6986 HPUX_IA64_MODE="32" | |
6987 ;; | |
6988 *ELF-64*) | |
6989 HPUX_IA64_MODE="64" | |
6990 ;; | |
6991 esac | |
6992 fi | |
6993 rm -rf conftest* | |
6994 ;; | |
6995 *-*-irix6*) | |
6996 # Find out which ABI we are using. | |
6997 echo '#line '$LINENO' "configure"' > conftest.$ac_ext | |
6998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
6999 (eval $ac_compile) 2>&5 | |
7000 ac_status=$? | |
7001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7002 test $ac_status = 0; }; then | |
7003 if test "$lt_cv_prog_gnu_ld" = yes; then | |
7004 case `/usr/bin/file conftest.$ac_objext` in | |
7005 *32-bit*) | |
7006 LD="${LD-ld} -melf32bsmip" | |
7007 ;; | |
7008 *N32*) | |
7009 LD="${LD-ld} -melf32bmipn32" | |
7010 ;; | |
7011 *64-bit*) | |
7012 LD="${LD-ld} -melf64bmip" | |
7013 ;; | |
7014 esac | |
7015 else | |
7016 case `/usr/bin/file conftest.$ac_objext` in | |
7017 *32-bit*) | |
7018 LD="${LD-ld} -32" | |
7019 ;; | |
7020 *N32*) | |
7021 LD="${LD-ld} -n32" | |
7022 ;; | |
7023 *64-bit*) | |
7024 LD="${LD-ld} -64" | |
7025 ;; | |
7026 esac | |
7027 fi | |
7028 fi | |
7029 rm -rf conftest* | |
7030 ;; | |
7031 | |
7032 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ | |
7033 s390*-*linux*|s390*-*tpf*|sparc*-*linux*) | |
7034 # Find out which ABI we are using. | |
7035 echo 'int i;' > conftest.$ac_ext | |
7036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7037 (eval $ac_compile) 2>&5 | |
7038 ac_status=$? | |
7039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7040 test $ac_status = 0; }; then | |
7041 case `/usr/bin/file conftest.o` in | |
7042 *32-bit*) | |
7043 case $host in | |
7044 x86_64-*kfreebsd*-gnu) | |
7045 LD="${LD-ld} -m elf_i386_fbsd" | |
7046 ;; | |
7047 x86_64-*linux*) | |
7048 case `/usr/bin/file conftest.o` in | |
7049 *x86-64*) | |
7050 LD="${LD-ld} -m elf32_x86_64" | |
7051 ;; | |
7052 *) | |
7053 LD="${LD-ld} -m elf_i386" | |
7054 ;; | |
7055 esac | |
7056 ;; | |
7057 powerpc64le-*) | |
7058 LD="${LD-ld} -m elf32lppclinux" | |
7059 ;; | |
7060 powerpc64-*) | |
7061 LD="${LD-ld} -m elf32ppclinux" | |
7062 ;; | |
7063 s390x-*linux*) | |
7064 LD="${LD-ld} -m elf_s390" | |
7065 ;; | |
7066 sparc64-*linux*) | |
7067 LD="${LD-ld} -m elf32_sparc" | |
7068 ;; | |
7069 esac | |
7070 ;; | |
7071 *64-bit*) | |
7072 case $host in | |
7073 x86_64-*kfreebsd*-gnu) | |
7074 LD="${LD-ld} -m elf_x86_64_fbsd" | |
7075 ;; | |
7076 x86_64-*linux*) | |
7077 LD="${LD-ld} -m elf_x86_64" | |
7078 ;; | |
7079 powerpcle-*) | |
7080 LD="${LD-ld} -m elf64lppc" | |
7081 ;; | |
7082 powerpc-*) | |
7083 LD="${LD-ld} -m elf64ppc" | |
7084 ;; | |
7085 s390*-*linux*|s390*-*tpf*) | |
7086 LD="${LD-ld} -m elf64_s390" | |
7087 ;; | |
7088 sparc*-*linux*) | |
7089 LD="${LD-ld} -m elf64_sparc" | |
7090 ;; | |
7091 esac | |
7092 ;; | |
7093 esac | |
7094 fi | |
7095 rm -rf conftest* | |
7096 ;; | |
7097 | |
7098 *-*-sco3.2v5*) | |
7099 # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
7100 SAVE_CFLAGS="$CFLAGS" | |
7101 CFLAGS="$CFLAGS -belf" | |
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 | |
7103 $as_echo_n "checking whether the C compiler needs -belf... " >&6; } | |
7104 if ${lt_cv_cc_needs_belf+:} false; then : | |
7105 $as_echo_n "(cached) " >&6 | |
7106 else | |
7107 ac_ext=c | |
7108 ac_cpp='$CPP $CPPFLAGS' | |
7109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7111 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7112 | |
7113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7114 /* end confdefs.h. */ | |
7115 | |
7116 int | |
7117 main () | |
7118 { | |
7119 | |
7120 ; | |
7121 return 0; | |
7122 } | |
7123 _ACEOF | |
7124 if ac_fn_c_try_link "$LINENO"; then : | |
7125 lt_cv_cc_needs_belf=yes | |
7126 else | |
7127 lt_cv_cc_needs_belf=no | |
7128 fi | |
7129 rm -f core conftest.err conftest.$ac_objext \ | |
7130 conftest$ac_exeext conftest.$ac_ext | |
7131 ac_ext=c | |
7132 ac_cpp='$CPP $CPPFLAGS' | |
7133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7135 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7136 | |
7137 fi | |
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 | |
7139 $as_echo "$lt_cv_cc_needs_belf" >&6; } | |
7140 if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7141 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7142 CFLAGS="$SAVE_CFLAGS" | |
7143 fi | |
7144 ;; | |
7145 *-*solaris*) | |
7146 # Find out which ABI we are using. | |
7147 echo 'int i;' > conftest.$ac_ext | |
7148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
7149 (eval $ac_compile) 2>&5 | |
7150 ac_status=$? | |
7151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
7152 test $ac_status = 0; }; then | |
7153 case `/usr/bin/file conftest.o` in | |
7154 *64-bit*) | |
7155 case $lt_cv_prog_gnu_ld in | |
7156 yes*) | |
7157 case $host in | |
7158 i?86-*-solaris*) | |
7159 LD="${LD-ld} -m elf_x86_64" | |
7160 ;; | |
7161 sparc*-*-solaris*) | |
7162 LD="${LD-ld} -m elf64_sparc" | |
7163 ;; | |
7164 esac | |
7165 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. | |
7166 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then | |
7167 LD="${LD-ld}_sol2" | |
7168 fi | |
7169 ;; | |
7170 *) | |
7171 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then | |
7172 LD="${LD-ld} -64" | |
7173 fi | |
7174 ;; | |
7175 esac | |
7176 ;; | |
7177 esac | |
7178 fi | |
7179 rm -rf conftest* | |
7180 ;; | |
7181 esac | |
7182 | |
7183 need_locks="$enable_libtool_lock" | |
7184 | |
7185 if test -n "$ac_tool_prefix"; then | |
7186 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. | |
7187 set dummy ${ac_tool_prefix}mt; ac_word=$2 | |
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7189 $as_echo_n "checking for $ac_word... " >&6; } | |
7190 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : | |
7191 $as_echo_n "(cached) " >&6 | |
7192 else | |
7193 if test -n "$MANIFEST_TOOL"; then | |
7194 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. | |
7195 else | |
7196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7197 for as_dir in $PATH | |
7198 do | |
7199 IFS=$as_save_IFS | |
7200 test -z "$as_dir" && as_dir=. | |
7201 for ac_exec_ext in '' $ac_executable_extensions; do | |
7202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7203 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" | |
7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7205 break 2 | |
7206 fi | |
7207 done | |
7208 done | |
7209 IFS=$as_save_IFS | |
7210 | |
7211 fi | |
7212 fi | |
7213 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL | |
7214 if test -n "$MANIFEST_TOOL"; then | |
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 | |
7216 $as_echo "$MANIFEST_TOOL" >&6; } | |
7217 else | |
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7219 $as_echo "no" >&6; } | |
7220 fi | |
7221 | |
7222 | |
7223 fi | |
7224 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then | |
7225 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL | |
7226 # Extract the first word of "mt", so it can be a program name with args. | |
7227 set dummy mt; ac_word=$2 | |
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7229 $as_echo_n "checking for $ac_word... " >&6; } | |
7230 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : | |
7231 $as_echo_n "(cached) " >&6 | |
7232 else | |
7233 if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7234 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. | |
7235 else | |
7236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7237 for as_dir in $PATH | |
7238 do | |
7239 IFS=$as_save_IFS | |
7240 test -z "$as_dir" && as_dir=. | |
7241 for ac_exec_ext in '' $ac_executable_extensions; do | |
7242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7243 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" | |
7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7245 break 2 | |
7246 fi | |
7247 done | |
7248 done | |
7249 IFS=$as_save_IFS | |
7250 | |
7251 fi | |
7252 fi | |
7253 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL | |
7254 if test -n "$ac_ct_MANIFEST_TOOL"; then | |
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 | |
7256 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; } | |
7257 else | |
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7259 $as_echo "no" >&6; } | |
7260 fi | |
7261 | |
7262 if test "x$ac_ct_MANIFEST_TOOL" = x; then | |
7263 MANIFEST_TOOL=":" | |
7264 else | |
7265 case $cross_compiling:$ac_tool_warned in | |
7266 yes:) | |
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7269 ac_tool_warned=yes ;; | |
7270 esac | |
7271 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL | |
7272 fi | |
7273 else | |
7274 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" | |
7275 fi | |
7276 | |
7277 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt | |
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 | |
7279 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } | |
7280 if ${lt_cv_path_mainfest_tool+:} false; then : | |
7281 $as_echo_n "(cached) " >&6 | |
7282 else | |
7283 lt_cv_path_mainfest_tool=no | |
7284 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 | |
7285 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out | |
7286 cat conftest.err >&5 | |
7287 if $GREP 'Manifest Tool' conftest.out > /dev/null; then | |
7288 lt_cv_path_mainfest_tool=yes | |
7289 fi | |
7290 rm -f conftest* | |
7291 fi | |
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 | |
7293 $as_echo "$lt_cv_path_mainfest_tool" >&6; } | |
7294 if test "x$lt_cv_path_mainfest_tool" != xyes; then | |
7295 MANIFEST_TOOL=: | |
7296 fi | |
7297 | |
7298 | |
7299 | |
7300 | |
7301 | |
7302 | |
7303 case $host_os in | |
7304 rhapsody* | darwin*) | |
7305 if test -n "$ac_tool_prefix"; then | |
7306 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. | |
7307 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 | |
7308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7309 $as_echo_n "checking for $ac_word... " >&6; } | |
7310 if ${ac_cv_prog_DSYMUTIL+:} false; then : | |
7311 $as_echo_n "(cached) " >&6 | |
7312 else | |
7313 if test -n "$DSYMUTIL"; then | |
7314 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. | |
7315 else | |
7316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7317 for as_dir in $PATH | |
7318 do | |
7319 IFS=$as_save_IFS | |
7320 test -z "$as_dir" && as_dir=. | |
7321 for ac_exec_ext in '' $ac_executable_extensions; do | |
7322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7323 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" | |
7324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7325 break 2 | |
7326 fi | |
7327 done | |
7328 done | |
7329 IFS=$as_save_IFS | |
7330 | |
7331 fi | |
7332 fi | |
7333 DSYMUTIL=$ac_cv_prog_DSYMUTIL | |
7334 if test -n "$DSYMUTIL"; then | |
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 | |
7336 $as_echo "$DSYMUTIL" >&6; } | |
7337 else | |
7338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7339 $as_echo "no" >&6; } | |
7340 fi | |
7341 | |
7342 | |
7343 fi | |
7344 if test -z "$ac_cv_prog_DSYMUTIL"; then | |
7345 ac_ct_DSYMUTIL=$DSYMUTIL | |
7346 # Extract the first word of "dsymutil", so it can be a program name with args. | |
7347 set dummy dsymutil; ac_word=$2 | |
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7349 $as_echo_n "checking for $ac_word... " >&6; } | |
7350 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : | |
7351 $as_echo_n "(cached) " >&6 | |
7352 else | |
7353 if test -n "$ac_ct_DSYMUTIL"; then | |
7354 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. | |
7355 else | |
7356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7357 for as_dir in $PATH | |
7358 do | |
7359 IFS=$as_save_IFS | |
7360 test -z "$as_dir" && as_dir=. | |
7361 for ac_exec_ext in '' $ac_executable_extensions; do | |
7362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7363 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" | |
7364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7365 break 2 | |
7366 fi | |
7367 done | |
7368 done | |
7369 IFS=$as_save_IFS | |
7370 | |
7371 fi | |
7372 fi | |
7373 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL | |
7374 if test -n "$ac_ct_DSYMUTIL"; then | |
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 | |
7376 $as_echo "$ac_ct_DSYMUTIL" >&6; } | |
7377 else | |
7378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7379 $as_echo "no" >&6; } | |
7380 fi | |
7381 | |
7382 if test "x$ac_ct_DSYMUTIL" = x; then | |
7383 DSYMUTIL=":" | |
7384 else | |
7385 case $cross_compiling:$ac_tool_warned in | |
7386 yes:) | |
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7389 ac_tool_warned=yes ;; | |
7390 esac | |
7391 DSYMUTIL=$ac_ct_DSYMUTIL | |
7392 fi | |
7393 else | |
7394 DSYMUTIL="$ac_cv_prog_DSYMUTIL" | |
7395 fi | |
7396 | |
7397 if test -n "$ac_tool_prefix"; then | |
7398 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. | |
7399 set dummy ${ac_tool_prefix}nmedit; ac_word=$2 | |
7400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7401 $as_echo_n "checking for $ac_word... " >&6; } | |
7402 if ${ac_cv_prog_NMEDIT+:} false; then : | |
7403 $as_echo_n "(cached) " >&6 | |
7404 else | |
7405 if test -n "$NMEDIT"; then | |
7406 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. | |
7407 else | |
7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7409 for as_dir in $PATH | |
7410 do | |
7411 IFS=$as_save_IFS | |
7412 test -z "$as_dir" && as_dir=. | |
7413 for ac_exec_ext in '' $ac_executable_extensions; do | |
7414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7415 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" | |
7416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7417 break 2 | |
7418 fi | |
7419 done | |
7420 done | |
7421 IFS=$as_save_IFS | |
7422 | |
7423 fi | |
7424 fi | |
7425 NMEDIT=$ac_cv_prog_NMEDIT | |
7426 if test -n "$NMEDIT"; then | |
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 | |
7428 $as_echo "$NMEDIT" >&6; } | |
7429 else | |
7430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7431 $as_echo "no" >&6; } | |
7432 fi | |
7433 | |
7434 | |
7435 fi | |
7436 if test -z "$ac_cv_prog_NMEDIT"; then | |
7437 ac_ct_NMEDIT=$NMEDIT | |
7438 # Extract the first word of "nmedit", so it can be a program name with args. | |
7439 set dummy nmedit; ac_word=$2 | |
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7441 $as_echo_n "checking for $ac_word... " >&6; } | |
7442 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : | |
7443 $as_echo_n "(cached) " >&6 | |
7444 else | |
7445 if test -n "$ac_ct_NMEDIT"; then | |
7446 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. | |
7447 else | |
7448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7449 for as_dir in $PATH | |
7450 do | |
7451 IFS=$as_save_IFS | |
7452 test -z "$as_dir" && as_dir=. | |
7453 for ac_exec_ext in '' $ac_executable_extensions; do | |
7454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7455 ac_cv_prog_ac_ct_NMEDIT="nmedit" | |
7456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7457 break 2 | |
7458 fi | |
7459 done | |
7460 done | |
7461 IFS=$as_save_IFS | |
7462 | |
7463 fi | |
7464 fi | |
7465 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT | |
7466 if test -n "$ac_ct_NMEDIT"; then | |
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 | |
7468 $as_echo "$ac_ct_NMEDIT" >&6; } | |
7469 else | |
7470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7471 $as_echo "no" >&6; } | |
7472 fi | |
7473 | |
7474 if test "x$ac_ct_NMEDIT" = x; then | |
7475 NMEDIT=":" | |
7476 else | |
7477 case $cross_compiling:$ac_tool_warned in | |
7478 yes:) | |
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7481 ac_tool_warned=yes ;; | |
7482 esac | |
7483 NMEDIT=$ac_ct_NMEDIT | |
7484 fi | |
7485 else | |
7486 NMEDIT="$ac_cv_prog_NMEDIT" | |
7487 fi | |
7488 | |
7489 if test -n "$ac_tool_prefix"; then | |
7490 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. | |
7491 set dummy ${ac_tool_prefix}lipo; ac_word=$2 | |
7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7493 $as_echo_n "checking for $ac_word... " >&6; } | |
7494 if ${ac_cv_prog_LIPO+:} false; then : | |
7495 $as_echo_n "(cached) " >&6 | |
7496 else | |
7497 if test -n "$LIPO"; then | |
7498 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. | |
7499 else | |
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7501 for as_dir in $PATH | |
7502 do | |
7503 IFS=$as_save_IFS | |
7504 test -z "$as_dir" && as_dir=. | |
7505 for ac_exec_ext in '' $ac_executable_extensions; do | |
7506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7507 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" | |
7508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7509 break 2 | |
7510 fi | |
7511 done | |
7512 done | |
7513 IFS=$as_save_IFS | |
7514 | |
7515 fi | |
7516 fi | |
7517 LIPO=$ac_cv_prog_LIPO | |
7518 if test -n "$LIPO"; then | |
7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 | |
7520 $as_echo "$LIPO" >&6; } | |
7521 else | |
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7523 $as_echo "no" >&6; } | |
7524 fi | |
7525 | |
7526 | |
7527 fi | |
7528 if test -z "$ac_cv_prog_LIPO"; then | |
7529 ac_ct_LIPO=$LIPO | |
7530 # Extract the first word of "lipo", so it can be a program name with args. | |
7531 set dummy lipo; ac_word=$2 | |
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7533 $as_echo_n "checking for $ac_word... " >&6; } | |
7534 if ${ac_cv_prog_ac_ct_LIPO+:} false; then : | |
7535 $as_echo_n "(cached) " >&6 | |
7536 else | |
7537 if test -n "$ac_ct_LIPO"; then | |
7538 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. | |
7539 else | |
7540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7541 for as_dir in $PATH | |
7542 do | |
7543 IFS=$as_save_IFS | |
7544 test -z "$as_dir" && as_dir=. | |
7545 for ac_exec_ext in '' $ac_executable_extensions; do | |
7546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7547 ac_cv_prog_ac_ct_LIPO="lipo" | |
7548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7549 break 2 | |
7550 fi | |
7551 done | |
7552 done | |
7553 IFS=$as_save_IFS | |
7554 | |
7555 fi | |
7556 fi | |
7557 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO | |
7558 if test -n "$ac_ct_LIPO"; then | |
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 | |
7560 $as_echo "$ac_ct_LIPO" >&6; } | |
7561 else | |
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7563 $as_echo "no" >&6; } | |
7564 fi | |
7565 | |
7566 if test "x$ac_ct_LIPO" = x; then | |
7567 LIPO=":" | |
7568 else | |
7569 case $cross_compiling:$ac_tool_warned in | |
7570 yes:) | |
7571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7573 ac_tool_warned=yes ;; | |
7574 esac | |
7575 LIPO=$ac_ct_LIPO | |
7576 fi | |
7577 else | |
7578 LIPO="$ac_cv_prog_LIPO" | |
7579 fi | |
7580 | |
7581 if test -n "$ac_tool_prefix"; then | |
7582 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. | |
7583 set dummy ${ac_tool_prefix}otool; ac_word=$2 | |
7584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7585 $as_echo_n "checking for $ac_word... " >&6; } | |
7586 if ${ac_cv_prog_OTOOL+:} false; then : | |
7587 $as_echo_n "(cached) " >&6 | |
7588 else | |
7589 if test -n "$OTOOL"; then | |
7590 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. | |
7591 else | |
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7593 for as_dir in $PATH | |
7594 do | |
7595 IFS=$as_save_IFS | |
7596 test -z "$as_dir" && as_dir=. | |
7597 for ac_exec_ext in '' $ac_executable_extensions; do | |
7598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7599 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" | |
7600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7601 break 2 | |
7602 fi | |
7603 done | |
7604 done | |
7605 IFS=$as_save_IFS | |
7606 | |
7607 fi | |
7608 fi | |
7609 OTOOL=$ac_cv_prog_OTOOL | |
7610 if test -n "$OTOOL"; then | |
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 | |
7612 $as_echo "$OTOOL" >&6; } | |
7613 else | |
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7615 $as_echo "no" >&6; } | |
7616 fi | |
7617 | |
7618 | |
7619 fi | |
7620 if test -z "$ac_cv_prog_OTOOL"; then | |
7621 ac_ct_OTOOL=$OTOOL | |
7622 # Extract the first word of "otool", so it can be a program name with args. | |
7623 set dummy otool; ac_word=$2 | |
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7625 $as_echo_n "checking for $ac_word... " >&6; } | |
7626 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : | |
7627 $as_echo_n "(cached) " >&6 | |
7628 else | |
7629 if test -n "$ac_ct_OTOOL"; then | |
7630 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. | |
7631 else | |
7632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7633 for as_dir in $PATH | |
7634 do | |
7635 IFS=$as_save_IFS | |
7636 test -z "$as_dir" && as_dir=. | |
7637 for ac_exec_ext in '' $ac_executable_extensions; do | |
7638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7639 ac_cv_prog_ac_ct_OTOOL="otool" | |
7640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7641 break 2 | |
7642 fi | |
7643 done | |
7644 done | |
7645 IFS=$as_save_IFS | |
7646 | |
7647 fi | |
7648 fi | |
7649 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL | |
7650 if test -n "$ac_ct_OTOOL"; then | |
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 | |
7652 $as_echo "$ac_ct_OTOOL" >&6; } | |
7653 else | |
7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7655 $as_echo "no" >&6; } | |
7656 fi | |
7657 | |
7658 if test "x$ac_ct_OTOOL" = x; then | |
7659 OTOOL=":" | |
7660 else | |
7661 case $cross_compiling:$ac_tool_warned in | |
7662 yes:) | |
7663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7665 ac_tool_warned=yes ;; | |
7666 esac | |
7667 OTOOL=$ac_ct_OTOOL | |
7668 fi | |
7669 else | |
7670 OTOOL="$ac_cv_prog_OTOOL" | |
7671 fi | |
7672 | |
7673 if test -n "$ac_tool_prefix"; then | |
7674 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. | |
7675 set dummy ${ac_tool_prefix}otool64; ac_word=$2 | |
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7677 $as_echo_n "checking for $ac_word... " >&6; } | |
7678 if ${ac_cv_prog_OTOOL64+:} false; then : | |
7679 $as_echo_n "(cached) " >&6 | |
7680 else | |
7681 if test -n "$OTOOL64"; then | |
7682 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. | |
7683 else | |
7684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7685 for as_dir in $PATH | |
7686 do | |
7687 IFS=$as_save_IFS | |
7688 test -z "$as_dir" && as_dir=. | |
7689 for ac_exec_ext in '' $ac_executable_extensions; do | |
7690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7691 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" | |
7692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7693 break 2 | |
7694 fi | |
7695 done | |
7696 done | |
7697 IFS=$as_save_IFS | |
7698 | |
7699 fi | |
7700 fi | |
7701 OTOOL64=$ac_cv_prog_OTOOL64 | |
7702 if test -n "$OTOOL64"; then | |
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 | |
7704 $as_echo "$OTOOL64" >&6; } | |
7705 else | |
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7707 $as_echo "no" >&6; } | |
7708 fi | |
7709 | |
7710 | |
7711 fi | |
7712 if test -z "$ac_cv_prog_OTOOL64"; then | |
7713 ac_ct_OTOOL64=$OTOOL64 | |
7714 # Extract the first word of "otool64", so it can be a program name with args. | |
7715 set dummy otool64; ac_word=$2 | |
7716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
7717 $as_echo_n "checking for $ac_word... " >&6; } | |
7718 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : | |
7719 $as_echo_n "(cached) " >&6 | |
7720 else | |
7721 if test -n "$ac_ct_OTOOL64"; then | |
7722 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. | |
7723 else | |
7724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7725 for as_dir in $PATH | |
7726 do | |
7727 IFS=$as_save_IFS | |
7728 test -z "$as_dir" && as_dir=. | |
7729 for ac_exec_ext in '' $ac_executable_extensions; do | |
7730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
7731 ac_cv_prog_ac_ct_OTOOL64="otool64" | |
7732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7733 break 2 | |
7734 fi | |
7735 done | |
7736 done | |
7737 IFS=$as_save_IFS | |
7738 | |
7739 fi | |
7740 fi | |
7741 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 | |
7742 if test -n "$ac_ct_OTOOL64"; then | |
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 | |
7744 $as_echo "$ac_ct_OTOOL64" >&6; } | |
7745 else | |
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
7747 $as_echo "no" >&6; } | |
7748 fi | |
7749 | |
7750 if test "x$ac_ct_OTOOL64" = x; then | |
7751 OTOOL64=":" | |
7752 else | |
7753 case $cross_compiling:$ac_tool_warned in | |
7754 yes:) | |
7755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
7756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
7757 ac_tool_warned=yes ;; | |
7758 esac | |
7759 OTOOL64=$ac_ct_OTOOL64 | |
7760 fi | |
7761 else | |
7762 OTOOL64="$ac_cv_prog_OTOOL64" | |
7763 fi | |
7764 | |
7765 | |
7766 | |
7767 | |
7768 | |
7769 | |
7770 | |
7771 | |
7772 | |
7773 | |
7774 | |
7775 | |
7776 | |
7777 | |
7778 | |
7779 | |
7780 | |
7781 | |
7782 | |
7783 | |
7784 | |
7785 | |
7786 | |
7787 | |
7788 | |
7789 | |
7790 | |
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 | |
7792 $as_echo_n "checking for -single_module linker flag... " >&6; } | |
7793 if ${lt_cv_apple_cc_single_mod+:} false; then : | |
7794 $as_echo_n "(cached) " >&6 | |
7795 else | |
7796 lt_cv_apple_cc_single_mod=no | |
7797 if test -z "${LT_MULTI_MODULE}"; then | |
7798 # By default we will add the -single_module flag. You can override | |
7799 # by either setting the environment variable LT_MULTI_MODULE | |
7800 # non-empty at configure time, or by adding -multi_module to the | |
7801 # link flags. | |
7802 rm -rf libconftest.dylib* | |
7803 echo "int foo(void){return 1;}" > conftest.c | |
7804 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7805 -dynamiclib -Wl,-single_module conftest.c" >&5 | |
7806 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ | |
7807 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err | |
7808 _lt_result=$? | |
7809 # If there is a non-empty error log, and "single_module" | |
7810 # appears in it, assume the flag caused a linker warning | |
7811 if test -s conftest.err && $GREP single_module conftest.err; then | |
7812 cat conftest.err >&5 | |
7813 # Otherwise, if the output was created with a 0 exit code from | |
7814 # the compiler, it worked. | |
7815 elif test -f libconftest.dylib && test $_lt_result -eq 0; then | |
7816 lt_cv_apple_cc_single_mod=yes | |
7817 else | |
7818 cat conftest.err >&5 | |
7819 fi | |
7820 rm -rf libconftest.dylib* | |
7821 rm -f conftest.* | |
7822 fi | |
7823 fi | |
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 | |
7825 $as_echo "$lt_cv_apple_cc_single_mod" >&6; } | |
7826 | |
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 | |
7828 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } | |
7829 if ${lt_cv_ld_exported_symbols_list+:} false; then : | |
7830 $as_echo_n "(cached) " >&6 | |
7831 else | |
7832 lt_cv_ld_exported_symbols_list=no | |
7833 save_LDFLAGS=$LDFLAGS | |
7834 echo "_main" > conftest.sym | |
7835 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" | |
7836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7837 /* end confdefs.h. */ | |
7838 | |
7839 int | |
7840 main () | |
7841 { | |
7842 | |
7843 ; | |
7844 return 0; | |
7845 } | |
7846 _ACEOF | |
7847 if ac_fn_c_try_link "$LINENO"; then : | |
7848 lt_cv_ld_exported_symbols_list=yes | |
7849 else | |
7850 lt_cv_ld_exported_symbols_list=no | |
7851 fi | |
7852 rm -f core conftest.err conftest.$ac_objext \ | |
7853 conftest$ac_exeext conftest.$ac_ext | |
7854 LDFLAGS="$save_LDFLAGS" | |
7855 | |
7856 fi | |
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 | |
7858 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; } | |
7859 | |
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 | |
7861 $as_echo_n "checking for -force_load linker flag... " >&6; } | |
7862 if ${lt_cv_ld_force_load+:} false; then : | |
7863 $as_echo_n "(cached) " >&6 | |
7864 else | |
7865 lt_cv_ld_force_load=no | |
7866 cat > conftest.c << _LT_EOF | |
7867 int forced_loaded() { return 2;} | |
7868 _LT_EOF | |
7869 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 | |
7870 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 | |
7871 echo "$AR cru libconftest.a conftest.o" >&5 | |
7872 $AR cru libconftest.a conftest.o 2>&5 | |
7873 echo "$RANLIB libconftest.a" >&5 | |
7874 $RANLIB libconftest.a 2>&5 | |
7875 cat > conftest.c << _LT_EOF | |
7876 int main() { return 0;} | |
7877 _LT_EOF | |
7878 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 | |
7879 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err | |
7880 _lt_result=$? | |
7881 if test -s conftest.err && $GREP force_load conftest.err; then | |
7882 cat conftest.err >&5 | |
7883 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then | |
7884 lt_cv_ld_force_load=yes | |
7885 else | |
7886 cat conftest.err >&5 | |
7887 fi | |
7888 rm -f conftest.err libconftest.a conftest conftest.c | |
7889 rm -rf conftest.dSYM | |
7890 | |
7891 fi | |
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 | |
7893 $as_echo "$lt_cv_ld_force_load" >&6; } | |
7894 case $host_os in | |
7895 rhapsody* | darwin1.[012]) | |
7896 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; | |
7897 darwin1.*) | |
7898 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7899 darwin*) # darwin 5.x on | |
7900 # if running on 10.5 or later, the deployment target defaults | |
7901 # to the OS version, if on x86, and 10.4, the deployment | |
7902 # target defaults to 10.4. Don't you love it? | |
7903 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in | |
7904 10.0,*86*-darwin8*|10.0,*-darwin[91]*) | |
7905 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7906 10.[012]*) | |
7907 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; | |
7908 10.*) | |
7909 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; | |
7910 esac | |
7911 ;; | |
7912 esac | |
7913 if test "$lt_cv_apple_cc_single_mod" = "yes"; then | |
7914 _lt_dar_single_mod='$single_module' | |
7915 fi | |
7916 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then | |
7917 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' | |
7918 else | |
7919 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
7920 fi | |
7921 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then | |
7922 _lt_dsymutil='~$DSYMUTIL $lib || :' | |
7923 else | |
7924 _lt_dsymutil= | |
7925 fi | |
7926 ;; | |
7927 esac | |
7928 | |
7929 ac_ext=c | |
7930 ac_cpp='$CPP $CPPFLAGS' | |
7931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7933 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 | |
7935 $as_echo_n "checking how to run the C preprocessor... " >&6; } | |
7936 # On Suns, sometimes $CPP names a directory. | |
7937 if test -n "$CPP" && test -d "$CPP"; then | |
7938 CPP= | |
7939 fi | |
7940 if test -z "$CPP"; then | |
7941 if ${ac_cv_prog_CPP+:} false; then : | |
7942 $as_echo_n "(cached) " >&6 | |
7943 else | |
7944 # Double quotes because CPP needs to be expanded | |
7945 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7946 do | |
7947 ac_preproc_ok=false | |
7948 for ac_c_preproc_warn_flag in '' yes | |
7949 do | |
7950 # Use a header file that comes with gcc, so configuring glibc | |
7951 # with a fresh cross-compiler works. | |
7952 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7953 # <limits.h> exists even on freestanding compilers. | |
7954 # On the NeXT, cc -E runs the code through the compiler's parser, | |
7955 # not just through cpp. "Syntax error" is here to catch this case. | |
7956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7957 /* end confdefs.h. */ | |
7958 #ifdef __STDC__ | |
7959 # include <limits.h> | |
7960 #else | |
7961 # include <assert.h> | |
7962 #endif | |
7963 Syntax error | |
7964 _ACEOF | |
7965 if ac_fn_c_try_cpp "$LINENO"; then : | |
7966 | |
7967 else | |
7968 # Broken: fails on valid input. | |
7969 continue | |
7970 fi | |
7971 rm -f conftest.err conftest.i conftest.$ac_ext | |
7972 | |
7973 # OK, works on sane cases. Now check whether nonexistent headers | |
7974 # can be detected and how. | |
7975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
7976 /* end confdefs.h. */ | |
7977 #include <ac_nonexistent.h> | |
7978 _ACEOF | |
7979 if ac_fn_c_try_cpp "$LINENO"; then : | |
7980 # Broken: success on invalid input. | |
7981 continue | |
7982 else | |
7983 # Passes both tests. | |
7984 ac_preproc_ok=: | |
7985 break | |
7986 fi | |
7987 rm -f conftest.err conftest.i conftest.$ac_ext | |
7988 | |
7989 done | |
7990 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7991 rm -f conftest.i conftest.err conftest.$ac_ext | |
7992 if $ac_preproc_ok; then : | |
7993 break | |
7994 fi | |
7995 | |
7996 done | |
7997 ac_cv_prog_CPP=$CPP | |
7998 | |
7999 fi | |
8000 CPP=$ac_cv_prog_CPP | |
8001 else | |
8002 ac_cv_prog_CPP=$CPP | |
8003 fi | |
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 | |
8005 $as_echo "$CPP" >&6; } | |
8006 ac_preproc_ok=false | |
8007 for ac_c_preproc_warn_flag in '' yes | |
8008 do | |
8009 # Use a header file that comes with gcc, so configuring glibc | |
8010 # with a fresh cross-compiler works. | |
8011 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
8012 # <limits.h> exists even on freestanding compilers. | |
8013 # On the NeXT, cc -E runs the code through the compiler's parser, | |
8014 # not just through cpp. "Syntax error" is here to catch this case. | |
8015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8016 /* end confdefs.h. */ | |
8017 #ifdef __STDC__ | |
8018 # include <limits.h> | |
8019 #else | |
8020 # include <assert.h> | |
8021 #endif | |
8022 Syntax error | |
8023 _ACEOF | |
8024 if ac_fn_c_try_cpp "$LINENO"; then : | |
8025 | |
8026 else | |
8027 # Broken: fails on valid input. | |
8028 continue | |
8029 fi | |
8030 rm -f conftest.err conftest.i conftest.$ac_ext | |
8031 | |
8032 # OK, works on sane cases. Now check whether nonexistent headers | |
8033 # can be detected and how. | |
8034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8035 /* end confdefs.h. */ | |
8036 #include <ac_nonexistent.h> | |
8037 _ACEOF | |
8038 if ac_fn_c_try_cpp "$LINENO"; then : | |
8039 # Broken: success on invalid input. | |
8040 continue | |
8041 else | |
8042 # Passes both tests. | |
8043 ac_preproc_ok=: | |
8044 break | |
8045 fi | |
8046 rm -f conftest.err conftest.i conftest.$ac_ext | |
8047 | |
8048 done | |
8049 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
8050 rm -f conftest.i conftest.err conftest.$ac_ext | |
8051 if $ac_preproc_ok; then : | |
8052 | |
8053 else | |
8054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
8055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
8056 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check | |
8057 See \`config.log' for more details" "$LINENO" 5; } | |
8058 fi | |
8059 | |
8060 ac_ext=c | |
8061 ac_cpp='$CPP $CPPFLAGS' | |
8062 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8063 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8064 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8065 | |
8066 | |
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
8068 $as_echo_n "checking for ANSI C header files... " >&6; } | |
8069 if ${ac_cv_header_stdc+:} false; then : | |
8070 $as_echo_n "(cached) " >&6 | |
8071 else | |
8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8073 /* end confdefs.h. */ | |
8074 #include <stdlib.h> | |
8075 #include <stdarg.h> | |
8076 #include <string.h> | |
8077 #include <float.h> | |
8078 | |
8079 int | |
8080 main () | |
8081 { | |
8082 | |
8083 ; | |
8084 return 0; | |
8085 } | |
8086 _ACEOF | |
8087 if ac_fn_c_try_compile "$LINENO"; then : | |
8088 ac_cv_header_stdc=yes | |
8089 else | |
8090 ac_cv_header_stdc=no | |
8091 fi | |
8092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8093 | |
8094 if test $ac_cv_header_stdc = yes; then | |
8095 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
8096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8097 /* end confdefs.h. */ | |
8098 #include <string.h> | |
8099 | |
8100 _ACEOF | |
8101 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8102 $EGREP "memchr" >/dev/null 2>&1; then : | |
8103 | |
8104 else | |
8105 ac_cv_header_stdc=no | |
8106 fi | |
8107 rm -f conftest* | |
8108 | |
8109 fi | |
8110 | |
8111 if test $ac_cv_header_stdc = yes; then | |
8112 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
8113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8114 /* end confdefs.h. */ | |
8115 #include <stdlib.h> | |
8116 | |
8117 _ACEOF | |
8118 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
8119 $EGREP "free" >/dev/null 2>&1; then : | |
8120 | |
8121 else | |
8122 ac_cv_header_stdc=no | |
8123 fi | |
8124 rm -f conftest* | |
8125 | |
8126 fi | |
8127 | |
8128 if test $ac_cv_header_stdc = yes; then | |
8129 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
8130 if test "$cross_compiling" = yes; then : | |
8131 : | |
8132 else | |
8133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
8134 /* end confdefs.h. */ | |
8135 #include <ctype.h> | |
8136 #include <stdlib.h> | |
8137 #if ((' ' & 0x0FF) == 0x020) | |
8138 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
8139 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
8140 #else | |
8141 # define ISLOWER(c) \ | |
8142 (('a' <= (c) && (c) <= 'i') \ | |
8143 || ('j' <= (c) && (c) <= 'r') \ | |
8144 || ('s' <= (c) && (c) <= 'z')) | |
8145 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
8146 #endif | |
8147 | |
8148 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
8149 int | |
8150 main () | |
8151 { | |
8152 int i; | |
8153 for (i = 0; i < 256; i++) | |
8154 if (XOR (islower (i), ISLOWER (i)) | |
8155 || toupper (i) != TOUPPER (i)) | |
8156 return 2; | |
8157 return 0; | |
8158 } | |
8159 _ACEOF | |
8160 if ac_fn_c_try_run "$LINENO"; then : | |
8161 | |
8162 else | |
8163 ac_cv_header_stdc=no | |
8164 fi | |
8165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
8166 conftest.$ac_objext conftest.beam conftest.$ac_ext | |
8167 fi | |
8168 | |
8169 fi | |
8170 fi | |
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
8172 $as_echo "$ac_cv_header_stdc" >&6; } | |
8173 if test $ac_cv_header_stdc = yes; then | |
8174 | |
8175 $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
8176 | |
8177 fi | |
8178 | |
8179 # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
8180 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
8181 inttypes.h stdint.h unistd.h | |
8182 do : | |
8183 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
8184 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
8185 " | |
8186 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
8187 cat >>confdefs.h <<_ACEOF | |
8188 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8189 _ACEOF | |
8190 | |
8191 fi | |
8192 | |
8193 done | |
8194 | |
8195 | |
8196 for ac_header in dlfcn.h | |
8197 do : | |
8198 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default | |
8199 " | |
8200 if test "x$ac_cv_header_dlfcn_h" = xyes; then : | |
8201 cat >>confdefs.h <<_ACEOF | |
8202 #define HAVE_DLFCN_H 1 | |
8203 _ACEOF | |
8204 | |
8205 fi | |
8206 | |
8207 done | |
8208 | |
8209 | |
8210 | |
8211 | |
8212 func_stripname_cnf () | |
8213 { | |
8214 case ${2} in | |
8215 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; | |
8216 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; | |
8217 esac | |
8218 } # func_stripname_cnf | |
8219 | |
8220 | |
8221 | |
8222 | |
8223 | |
8224 # Set options | |
8225 | |
8226 | |
8227 | |
8228 enable_dlopen=no | |
8229 | |
8230 | |
8231 | |
8232 # Check whether --enable-shared was given. | |
8233 if test "${enable_shared+set}" = set; then : | |
8234 enableval=$enable_shared; p=${PACKAGE-default} | |
8235 case $enableval in | |
8236 yes) enable_shared=yes ;; | |
8237 no) enable_shared=no ;; | |
8238 *) | |
8239 enable_shared=no | |
8240 # Look at the argument we got. We use all the common list separators. | |
8241 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8242 for pkg in $enableval; do | |
8243 IFS="$lt_save_ifs" | |
8244 if test "X$pkg" = "X$p"; then | |
8245 enable_shared=yes | |
8246 fi | |
8247 done | |
8248 IFS="$lt_save_ifs" | |
8249 ;; | |
8250 esac | |
8251 else | |
8252 enable_shared=yes | |
8253 fi | |
8254 | |
8255 | |
8256 | |
8257 | |
8258 | |
8259 | |
8260 | |
8261 | |
8262 | |
8263 # Check whether --enable-static was given. | |
8264 if test "${enable_static+set}" = set; then : | |
8265 enableval=$enable_static; p=${PACKAGE-default} | |
8266 case $enableval in | |
8267 yes) enable_static=yes ;; | |
8268 no) enable_static=no ;; | |
8269 *) | |
8270 enable_static=no | |
8271 # Look at the argument we got. We use all the common list separators. | |
8272 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8273 for pkg in $enableval; do | |
8274 IFS="$lt_save_ifs" | |
8275 if test "X$pkg" = "X$p"; then | |
8276 enable_static=yes | |
8277 fi | |
8278 done | |
8279 IFS="$lt_save_ifs" | |
8280 ;; | |
8281 esac | |
8282 else | |
8283 enable_static=yes | |
8284 fi | |
8285 | |
8286 | |
8287 | |
8288 | |
8289 | |
8290 | |
8291 | |
8292 | |
8293 | |
8294 | |
8295 # Check whether --with-pic was given. | |
8296 if test "${with_pic+set}" = set; then : | |
8297 withval=$with_pic; lt_p=${PACKAGE-default} | |
8298 case $withval in | |
8299 yes|no) pic_mode=$withval ;; | |
8300 *) | |
8301 pic_mode=default | |
8302 # Look at the argument we got. We use all the common list separators. | |
8303 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8304 for lt_pkg in $withval; do | |
8305 IFS="$lt_save_ifs" | |
8306 if test "X$lt_pkg" = "X$lt_p"; then | |
8307 pic_mode=yes | |
8308 fi | |
8309 done | |
8310 IFS="$lt_save_ifs" | |
8311 ;; | |
8312 esac | |
8313 else | |
8314 pic_mode=default | |
8315 fi | |
8316 | |
8317 | |
8318 test -z "$pic_mode" && pic_mode=default | |
8319 | |
8320 | |
8321 | |
8322 | |
8323 | |
8324 | |
8325 | |
8326 # Check whether --enable-fast-install was given. | |
8327 if test "${enable_fast_install+set}" = set; then : | |
8328 enableval=$enable_fast_install; p=${PACKAGE-default} | |
8329 case $enableval in | |
8330 yes) enable_fast_install=yes ;; | |
8331 no) enable_fast_install=no ;; | |
8332 *) | |
8333 enable_fast_install=no | |
8334 # Look at the argument we got. We use all the common list separators. | |
8335 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
8336 for pkg in $enableval; do | |
8337 IFS="$lt_save_ifs" | |
8338 if test "X$pkg" = "X$p"; then | |
8339 enable_fast_install=yes | |
8340 fi | |
8341 done | |
8342 IFS="$lt_save_ifs" | |
8343 ;; | |
8344 esac | |
8345 else | |
8346 enable_fast_install=yes | |
8347 fi | |
8348 | |
8349 | |
8350 | |
8351 | |
8352 | |
8353 | |
8354 | |
8355 | |
8356 | |
8357 | |
8358 | |
8359 # This can be used to rebuild libtool when needed | |
8360 LIBTOOL_DEPS="$ltmain" | |
8361 | |
8362 # Always use our own libtool. | |
8363 LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
8364 | |
8365 | |
8366 | |
8367 | |
8368 | |
8369 | |
8370 | |
8371 | |
8372 | |
8373 | |
8374 | |
8375 | |
8376 | |
8377 | |
8378 | |
8379 | |
8380 | |
8381 | |
8382 | |
8383 | |
8384 | |
8385 | |
8386 | |
8387 | |
8388 | |
8389 | |
8390 | |
8391 | |
8392 | |
8393 | |
8394 test -z "$LN_S" && LN_S="ln -s" | |
8395 | |
8396 | |
8397 | |
8398 | |
8399 | |
8400 | |
8401 | |
8402 | |
8403 | |
8404 | |
8405 | |
8406 | |
8407 | |
8408 | |
8409 if test -n "${ZSH_VERSION+set}" ; then | |
8410 setopt NO_GLOB_SUBST | |
8411 fi | |
8412 | |
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 | |
8414 $as_echo_n "checking for objdir... " >&6; } | |
8415 if ${lt_cv_objdir+:} false; then : | |
8416 $as_echo_n "(cached) " >&6 | |
8417 else | |
8418 rm -f .libs 2>/dev/null | |
8419 mkdir .libs 2>/dev/null | |
8420 if test -d .libs; then | |
8421 lt_cv_objdir=.libs | |
8422 else | |
8423 # MS-DOS does not allow filenames that begin with a dot. | |
8424 lt_cv_objdir=_libs | |
8425 fi | |
8426 rmdir .libs 2>/dev/null | |
8427 fi | |
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 | |
8429 $as_echo "$lt_cv_objdir" >&6; } | |
8430 objdir=$lt_cv_objdir | |
8431 | |
8432 | |
8433 | |
8434 | |
8435 | |
8436 cat >>confdefs.h <<_ACEOF | |
8437 #define LT_OBJDIR "$lt_cv_objdir/" | |
8438 _ACEOF | |
8439 | |
8440 | |
8441 | |
8442 | |
8443 case $host_os in | |
8444 aix3*) | |
8445 # AIX sometimes has problems with the GCC collect2 program. For some | |
8446 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8447 # vanish in a puff of smoke. | |
8448 if test "X${COLLECT_NAMES+set}" != Xset; then | |
8449 COLLECT_NAMES= | |
8450 export COLLECT_NAMES | |
8451 fi | |
8452 ;; | |
8453 esac | |
8454 | |
8455 # Global variables: | |
8456 ofile=libtool | |
8457 can_build_shared=yes | |
8458 | |
8459 # All known linkers require a `.a' archive for static linking (except MSVC, | |
8460 # which needs '.lib'). | |
8461 libext=a | |
8462 | |
8463 with_gnu_ld="$lt_cv_prog_gnu_ld" | |
8464 | |
8465 old_CC="$CC" | |
8466 old_CFLAGS="$CFLAGS" | |
8467 | |
8468 # Set sane defaults for various variables | |
8469 test -z "$CC" && CC=cc | |
8470 test -z "$LTCC" && LTCC=$CC | |
8471 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8472 test -z "$LD" && LD=ld | |
8473 test -z "$ac_objext" && ac_objext=o | |
8474 | |
8475 for cc_temp in $compiler""; do | |
8476 case $cc_temp in | |
8477 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8478 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8479 \-*) ;; | |
8480 *) break;; | |
8481 esac | |
8482 done | |
8483 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
8484 | |
8485 | |
8486 # Only perform the check for file, if the check method requires it | |
8487 test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8488 case $deplibs_check_method in | |
8489 file_magic*) | |
8490 if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 | |
8492 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } | |
8493 if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8494 $as_echo_n "(cached) " >&6 | |
8495 else | |
8496 case $MAGIC_CMD in | |
8497 [\\/*] | ?:[\\/]*) | |
8498 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8499 ;; | |
8500 *) | |
8501 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8502 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8503 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8504 for ac_dir in $ac_dummy; do | |
8505 IFS="$lt_save_ifs" | |
8506 test -z "$ac_dir" && ac_dir=. | |
8507 if test -f $ac_dir/${ac_tool_prefix}file; then | |
8508 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8509 if test -n "$file_magic_test_file"; then | |
8510 case $deplibs_check_method in | |
8511 "file_magic "*) | |
8512 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8513 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8514 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8515 $EGREP "$file_magic_regex" > /dev/null; then | |
8516 : | |
8517 else | |
8518 cat <<_LT_EOF 1>&2 | |
8519 | |
8520 *** Warning: the command libtool uses to detect shared libraries, | |
8521 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8522 *** The result is that libtool may fail to recognize shared libraries | |
8523 *** as such. This will affect the creation of libtool libraries that | |
8524 *** depend on shared libraries, but programs linked with such libtool | |
8525 *** libraries will work regardless of this problem. Nevertheless, you | |
8526 *** may want to report the problem to your system manager and/or to | |
8527 *** bug-libtool@gnu.org | |
8528 | |
8529 _LT_EOF | |
8530 fi ;; | |
8531 esac | |
8532 fi | |
8533 break | |
8534 fi | |
8535 done | |
8536 IFS="$lt_save_ifs" | |
8537 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8538 ;; | |
8539 esac | |
8540 fi | |
8541 | |
8542 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8543 if test -n "$MAGIC_CMD"; then | |
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8545 $as_echo "$MAGIC_CMD" >&6; } | |
8546 else | |
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8548 $as_echo "no" >&6; } | |
8549 fi | |
8550 | |
8551 | |
8552 | |
8553 | |
8554 | |
8555 if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8556 if test -n "$ac_tool_prefix"; then | |
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 | |
8558 $as_echo_n "checking for file... " >&6; } | |
8559 if ${lt_cv_path_MAGIC_CMD+:} false; then : | |
8560 $as_echo_n "(cached) " >&6 | |
8561 else | |
8562 case $MAGIC_CMD in | |
8563 [\\/*] | ?:[\\/]*) | |
8564 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8565 ;; | |
8566 *) | |
8567 lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8568 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8569 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8570 for ac_dir in $ac_dummy; do | |
8571 IFS="$lt_save_ifs" | |
8572 test -z "$ac_dir" && ac_dir=. | |
8573 if test -f $ac_dir/file; then | |
8574 lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8575 if test -n "$file_magic_test_file"; then | |
8576 case $deplibs_check_method in | |
8577 "file_magic "*) | |
8578 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8579 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8580 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8581 $EGREP "$file_magic_regex" > /dev/null; then | |
8582 : | |
8583 else | |
8584 cat <<_LT_EOF 1>&2 | |
8585 | |
8586 *** Warning: the command libtool uses to detect shared libraries, | |
8587 *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8588 *** The result is that libtool may fail to recognize shared libraries | |
8589 *** as such. This will affect the creation of libtool libraries that | |
8590 *** depend on shared libraries, but programs linked with such libtool | |
8591 *** libraries will work regardless of this problem. Nevertheless, you | |
8592 *** may want to report the problem to your system manager and/or to | |
8593 *** bug-libtool@gnu.org | |
8594 | |
8595 _LT_EOF | |
8596 fi ;; | |
8597 esac | |
8598 fi | |
8599 break | |
8600 fi | |
8601 done | |
8602 IFS="$lt_save_ifs" | |
8603 MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8604 ;; | |
8605 esac | |
8606 fi | |
8607 | |
8608 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8609 if test -n "$MAGIC_CMD"; then | |
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 | |
8611 $as_echo "$MAGIC_CMD" >&6; } | |
8612 else | |
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8614 $as_echo "no" >&6; } | |
8615 fi | |
8616 | |
8617 | |
8618 else | |
8619 MAGIC_CMD=: | |
8620 fi | |
8621 fi | |
8622 | |
8623 fi | |
8624 ;; | |
8625 esac | |
8626 | |
8627 # Use C for the default configuration in the libtool script | |
8628 | |
8629 lt_save_CC="$CC" | |
8630 ac_ext=c | |
8631 ac_cpp='$CPP $CPPFLAGS' | |
8632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8634 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8635 | |
8636 | |
8637 # Source file extension for C test sources. | |
8638 ac_ext=c | |
8639 | |
8640 # Object file extension for compiled C test sources. | |
8641 objext=o | |
8642 objext=$objext | |
8643 | |
8644 # Code to be used in simple compile tests | |
8645 lt_simple_compile_test_code="int some_variable = 0;" | |
8646 | |
8647 # Code to be used in simple link tests | |
8648 lt_simple_link_test_code='int main(){return(0);}' | |
8649 | |
8650 | |
8651 | |
8652 | |
8653 | |
8654 | |
8655 | |
8656 # If no C compiler was specified, use CC. | |
8657 LTCC=${LTCC-"$CC"} | |
8658 | |
8659 # If no C compiler flags were specified, use CFLAGS. | |
8660 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
8661 | |
8662 # Allow CC to be a program name with arguments. | |
8663 compiler=$CC | |
8664 | |
8665 # Save the default compiler, since it gets overwritten when the other | |
8666 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. | |
8667 compiler_DEFAULT=$CC | |
8668 | |
8669 # save warnings/boilerplate of simple test code | |
8670 ac_outfile=conftest.$ac_objext | |
8671 echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
8672 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8673 _lt_compiler_boilerplate=`cat conftest.err` | |
8674 $RM conftest* | |
8675 | |
8676 ac_outfile=conftest.$ac_objext | |
8677 echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
8678 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
8679 _lt_linker_boilerplate=`cat conftest.err` | |
8680 $RM -r conftest* | |
8681 | |
8682 | |
8683 if test -n "$compiler"; then | |
8684 | |
8685 lt_prog_compiler_no_builtin_flag= | |
8686 | |
8687 if test "$GCC" = yes; then | |
8688 case $cc_basename in | |
8689 nvcc*) | |
8690 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; | |
8691 *) | |
8692 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; | |
8693 esac | |
8694 | |
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
8696 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } | |
8697 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : | |
8698 $as_echo_n "(cached) " >&6 | |
8699 else | |
8700 lt_cv_prog_compiler_rtti_exceptions=no | |
8701 ac_outfile=conftest.$ac_objext | |
8702 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
8703 lt_compiler_flag="-fno-rtti -fno-exceptions" | |
8704 # Insert the option either (1) after the last *FLAGS variable, or | |
8705 # (2) before a word containing "conftest.", or (3) at the end. | |
8706 # Note that $ac_compile itself does not contain backslashes and begins | |
8707 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
8708 # The option is referenced via a variable to avoid confusing sed. | |
8709 lt_compile=`echo "$ac_compile" | $SED \ | |
8710 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
8711 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
8712 -e 's:$: $lt_compiler_flag:'` | |
8713 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
8714 (eval "$lt_compile" 2>conftest.err) | |
8715 ac_status=$? | |
8716 cat conftest.err >&5 | |
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8718 if (exit $ac_status) && test -s "$ac_outfile"; then | |
8719 # The compiler can only warn and ignore the option if not recognized | |
8720 # So say no if there are warnings other than the usual output. | |
8721 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
8722 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
8723 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
8724 lt_cv_prog_compiler_rtti_exceptions=yes | |
8725 fi | |
8726 fi | |
8727 $RM conftest* | |
8728 | |
8729 fi | |
8730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
8731 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
8732 | |
8733 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
8734 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
8735 else | |
8736 : | |
8737 fi | |
8738 | |
8739 fi | |
8740 | |
8741 | |
8742 | |
8743 | |
8744 | |
8745 | |
8746 lt_prog_compiler_wl= | |
8747 lt_prog_compiler_pic= | |
8748 lt_prog_compiler_static= | |
8749 | |
8750 | |
8751 if test "$GCC" = yes; then | |
8752 lt_prog_compiler_wl='-Wl,' | |
8753 lt_prog_compiler_static='-static' | |
8754 | |
8755 case $host_os in | |
8756 aix*) | |
8757 # All AIX code is PIC. | |
8758 if test "$host_cpu" = ia64; then | |
8759 # AIX 5 now supports IA64 processor | |
8760 lt_prog_compiler_static='-Bstatic' | |
8761 fi | |
8762 ;; | |
8763 | |
8764 amigaos*) | |
8765 case $host_cpu in | |
8766 powerpc) | |
8767 # see comment about AmigaOS4 .so support | |
8768 lt_prog_compiler_pic='-fPIC' | |
8769 ;; | |
8770 m68k) | |
8771 # FIXME: we need at least 68020 code to build shared libraries, but | |
8772 # adding the `-m68020' flag to GCC prevents building anything better, | |
8773 # like `-m68040'. | |
8774 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
8775 ;; | |
8776 esac | |
8777 ;; | |
8778 | |
8779 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
8780 # PIC is the default for these OSes. | |
8781 ;; | |
8782 | |
8783 mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8784 # This hack is so that the source file can tell whether it is being | |
8785 # built for inclusion in a dll (and should export symbols for example). | |
8786 # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
8787 # (--disable-auto-import) libraries | |
8788 lt_prog_compiler_pic='-DDLL_EXPORT' | |
8789 ;; | |
8790 | |
8791 darwin* | rhapsody*) | |
8792 # PIC is the default on this platform | |
8793 # Common symbols not allowed in MH_DYLIB files | |
8794 lt_prog_compiler_pic='-fno-common' | |
8795 ;; | |
8796 | |
8797 haiku*) | |
8798 # PIC is the default for Haiku. | |
8799 # The "-static" flag exists, but is broken. | |
8800 lt_prog_compiler_static= | |
8801 ;; | |
8802 | |
8803 hpux*) | |
8804 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
8805 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
8806 # sets the default TLS model and affects inlining. | |
8807 case $host_cpu in | |
8808 hppa*64*) | |
8809 # +Z the default | |
8810 ;; | |
8811 *) | |
8812 lt_prog_compiler_pic='-fPIC' | |
8813 ;; | |
8814 esac | |
8815 ;; | |
8816 | |
8817 interix[3-9]*) | |
8818 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
8819 # Instead, we relocate shared libraries at runtime. | |
8820 ;; | |
8821 | |
8822 msdosdjgpp*) | |
8823 # Just because we use GCC doesn't mean we suddenly get shared libraries | |
8824 # on systems that don't support them. | |
8825 lt_prog_compiler_can_build_shared=no | |
8826 enable_shared=no | |
8827 ;; | |
8828 | |
8829 *nto* | *qnx*) | |
8830 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8831 # it will coredump. | |
8832 lt_prog_compiler_pic='-fPIC -shared' | |
8833 ;; | |
8834 | |
8835 sysv4*MP*) | |
8836 if test -d /usr/nec; then | |
8837 lt_prog_compiler_pic=-Kconform_pic | |
8838 fi | |
8839 ;; | |
8840 | |
8841 *) | |
8842 lt_prog_compiler_pic='-fPIC' | |
8843 ;; | |
8844 esac | |
8845 | |
8846 case $cc_basename in | |
8847 nvcc*) # Cuda Compiler Driver 2.2 | |
8848 lt_prog_compiler_wl='-Xlinker ' | |
8849 if test -n "$lt_prog_compiler_pic"; then | |
8850 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" | |
8851 fi | |
8852 ;; | |
8853 esac | |
8854 else | |
8855 # PORTME Check for flag to pass linker flags through the system compiler. | |
8856 case $host_os in | |
8857 aix*) | |
8858 lt_prog_compiler_wl='-Wl,' | |
8859 if test "$host_cpu" = ia64; then | |
8860 # AIX 5 now supports IA64 processor | |
8861 lt_prog_compiler_static='-Bstatic' | |
8862 else | |
8863 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
8864 fi | |
8865 ;; | |
8866 | |
8867 mingw* | cygwin* | pw32* | os2* | cegcc*) | |
8868 # This hack is so that the source file can tell whether it is being | |
8869 # built for inclusion in a dll (and should export symbols for example). | |
8870 lt_prog_compiler_pic='-DDLL_EXPORT' | |
8871 ;; | |
8872 | |
8873 hpux9* | hpux10* | hpux11*) | |
8874 lt_prog_compiler_wl='-Wl,' | |
8875 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
8876 # not for PA HP-UX. | |
8877 case $host_cpu in | |
8878 hppa*64*|ia64*) | |
8879 # +Z the default | |
8880 ;; | |
8881 *) | |
8882 lt_prog_compiler_pic='+Z' | |
8883 ;; | |
8884 esac | |
8885 # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
8886 lt_prog_compiler_static='${wl}-a ${wl}archive' | |
8887 ;; | |
8888 | |
8889 irix5* | irix6* | nonstopux*) | |
8890 lt_prog_compiler_wl='-Wl,' | |
8891 # PIC (with -KPIC) is the default. | |
8892 lt_prog_compiler_static='-non_shared' | |
8893 ;; | |
8894 | |
8895 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
8896 case $cc_basename in | |
8897 # old Intel for x86_64 which still supported -KPIC. | |
8898 ecc*) | |
8899 lt_prog_compiler_wl='-Wl,' | |
8900 lt_prog_compiler_pic='-KPIC' | |
8901 lt_prog_compiler_static='-static' | |
8902 ;; | |
8903 # icc used to be incompatible with GCC. | |
8904 # ICC 10 doesn't accept -KPIC any more. | |
8905 icc* | ifort*) | |
8906 lt_prog_compiler_wl='-Wl,' | |
8907 lt_prog_compiler_pic='-fPIC' | |
8908 lt_prog_compiler_static='-static' | |
8909 ;; | |
8910 # Lahey Fortran 8.1. | |
8911 lf95*) | |
8912 lt_prog_compiler_wl='-Wl,' | |
8913 lt_prog_compiler_pic='--shared' | |
8914 lt_prog_compiler_static='--static' | |
8915 ;; | |
8916 nagfor*) | |
8917 # NAG Fortran compiler | |
8918 lt_prog_compiler_wl='-Wl,-Wl,,' | |
8919 lt_prog_compiler_pic='-PIC' | |
8920 lt_prog_compiler_static='-Bstatic' | |
8921 ;; | |
8922 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) | |
8923 # Portland Group compilers (*not* the Pentium gcc compiler, | |
8924 # which looks to be a dead project) | |
8925 lt_prog_compiler_wl='-Wl,' | |
8926 lt_prog_compiler_pic='-fpic' | |
8927 lt_prog_compiler_static='-Bstatic' | |
8928 ;; | |
8929 ccc*) | |
8930 lt_prog_compiler_wl='-Wl,' | |
8931 # All Alpha code is PIC. | |
8932 lt_prog_compiler_static='-non_shared' | |
8933 ;; | |
8934 xl* | bgxl* | bgf* | mpixl*) | |
8935 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene | |
8936 lt_prog_compiler_wl='-Wl,' | |
8937 lt_prog_compiler_pic='-qpic' | |
8938 lt_prog_compiler_static='-qstaticlink' | |
8939 ;; | |
8940 *) | |
8941 case `$CC -V 2>&1 | sed 5q` in | |
8942 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) | |
8943 # Sun Fortran 8.3 passes all unrecognized flags to the linker | |
8944 lt_prog_compiler_pic='-KPIC' | |
8945 lt_prog_compiler_static='-Bstatic' | |
8946 lt_prog_compiler_wl='' | |
8947 ;; | |
8948 *Sun\ F* | *Sun*Fortran*) | |
8949 lt_prog_compiler_pic='-KPIC' | |
8950 lt_prog_compiler_static='-Bstatic' | |
8951 lt_prog_compiler_wl='-Qoption ld ' | |
8952 ;; | |
8953 *Sun\ C*) | |
8954 # Sun C 5.9 | |
8955 lt_prog_compiler_pic='-KPIC' | |
8956 lt_prog_compiler_static='-Bstatic' | |
8957 lt_prog_compiler_wl='-Wl,' | |
8958 ;; | |
8959 *Intel*\ [CF]*Compiler*) | |
8960 lt_prog_compiler_wl='-Wl,' | |
8961 lt_prog_compiler_pic='-fPIC' | |
8962 lt_prog_compiler_static='-static' | |
8963 ;; | |
8964 *Portland\ Group*) | |
8965 lt_prog_compiler_wl='-Wl,' | |
8966 lt_prog_compiler_pic='-fpic' | |
8967 lt_prog_compiler_static='-Bstatic' | |
8968 ;; | |
8969 esac | |
8970 ;; | |
8971 esac | |
8972 ;; | |
8973 | |
8974 newsos6) | |
8975 lt_prog_compiler_pic='-KPIC' | |
8976 lt_prog_compiler_static='-Bstatic' | |
8977 ;; | |
8978 | |
8979 *nto* | *qnx*) | |
8980 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
8981 # it will coredump. | |
8982 lt_prog_compiler_pic='-fPIC -shared' | |
8983 ;; | |
8984 | |
8985 osf3* | osf4* | osf5*) | |
8986 lt_prog_compiler_wl='-Wl,' | |
8987 # All OSF/1 code is PIC. | |
8988 lt_prog_compiler_static='-non_shared' | |
8989 ;; | |
8990 | |
8991 rdos*) | |
8992 lt_prog_compiler_static='-non_shared' | |
8993 ;; | |
8994 | |
8995 solaris*) | |
8996 lt_prog_compiler_pic='-KPIC' | |
8997 lt_prog_compiler_static='-Bstatic' | |
8998 case $cc_basename in | |
8999 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) | |
9000 lt_prog_compiler_wl='-Qoption ld ';; | |
9001 *) | |
9002 lt_prog_compiler_wl='-Wl,';; | |
9003 esac | |
9004 ;; | |
9005 | |
9006 sunos4*) | |
9007 lt_prog_compiler_wl='-Qoption ld ' | |
9008 lt_prog_compiler_pic='-PIC' | |
9009 lt_prog_compiler_static='-Bstatic' | |
9010 ;; | |
9011 | |
9012 sysv4 | sysv4.2uw2* | sysv4.3*) | |
9013 lt_prog_compiler_wl='-Wl,' | |
9014 lt_prog_compiler_pic='-KPIC' | |
9015 lt_prog_compiler_static='-Bstatic' | |
9016 ;; | |
9017 | |
9018 sysv4*MP*) | |
9019 if test -d /usr/nec ;then | |
9020 lt_prog_compiler_pic='-Kconform_pic' | |
9021 lt_prog_compiler_static='-Bstatic' | |
9022 fi | |
9023 ;; | |
9024 | |
9025 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
9026 lt_prog_compiler_wl='-Wl,' | |
9027 lt_prog_compiler_pic='-KPIC' | |
9028 lt_prog_compiler_static='-Bstatic' | |
9029 ;; | |
9030 | |
9031 unicos*) | |
9032 lt_prog_compiler_wl='-Wl,' | |
9033 lt_prog_compiler_can_build_shared=no | |
9034 ;; | |
9035 | |
9036 uts4*) | |
9037 lt_prog_compiler_pic='-pic' | |
9038 lt_prog_compiler_static='-Bstatic' | |
9039 ;; | |
9040 | |
9041 *) | |
9042 lt_prog_compiler_can_build_shared=no | |
9043 ;; | |
9044 esac | |
9045 fi | |
9046 | |
9047 case $host_os in | |
9048 # For platforms which do not support PIC, -DPIC is meaningless: | |
9049 *djgpp*) | |
9050 lt_prog_compiler_pic= | |
9051 ;; | |
9052 *) | |
9053 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9054 ;; | |
9055 esac | |
9056 | |
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
9058 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
9059 if ${lt_cv_prog_compiler_pic+:} false; then : | |
9060 $as_echo_n "(cached) " >&6 | |
9061 else | |
9062 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic | |
9063 fi | |
9064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 | |
9065 $as_echo "$lt_cv_prog_compiler_pic" >&6; } | |
9066 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic | |
9067 | |
9068 # | |
9069 # Check to make sure the PIC flag actually works. | |
9070 # | |
9071 if test -n "$lt_prog_compiler_pic"; then | |
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9073 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } | |
9074 if ${lt_cv_prog_compiler_pic_works+:} false; then : | |
9075 $as_echo_n "(cached) " >&6 | |
9076 else | |
9077 lt_cv_prog_compiler_pic_works=no | |
9078 ac_outfile=conftest.$ac_objext | |
9079 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9080 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9081 # Insert the option either (1) after the last *FLAGS variable, or | |
9082 # (2) before a word containing "conftest.", or (3) at the end. | |
9083 # Note that $ac_compile itself does not contain backslashes and begins | |
9084 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9085 # The option is referenced via a variable to avoid confusing sed. | |
9086 lt_compile=`echo "$ac_compile" | $SED \ | |
9087 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9088 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9089 -e 's:$: $lt_compiler_flag:'` | |
9090 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9091 (eval "$lt_compile" 2>conftest.err) | |
9092 ac_status=$? | |
9093 cat conftest.err >&5 | |
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9095 if (exit $ac_status) && test -s "$ac_outfile"; then | |
9096 # The compiler can only warn and ignore the option if not recognized | |
9097 # So say no if there are warnings other than the usual output. | |
9098 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
9099 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9100 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9101 lt_cv_prog_compiler_pic_works=yes | |
9102 fi | |
9103 fi | |
9104 $RM conftest* | |
9105 | |
9106 fi | |
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 | |
9108 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; } | |
9109 | |
9110 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then | |
9111 case $lt_prog_compiler_pic in | |
9112 "" | " "*) ;; | |
9113 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9114 esac | |
9115 else | |
9116 lt_prog_compiler_pic= | |
9117 lt_prog_compiler_can_build_shared=no | |
9118 fi | |
9119 | |
9120 fi | |
9121 | |
9122 | |
9123 | |
9124 | |
9125 | |
9126 | |
9127 | |
9128 | |
9129 | |
9130 | |
9131 | |
9132 # | |
9133 # Check to make sure the static flag actually works. | |
9134 # | |
9135 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9137 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
9138 if ${lt_cv_prog_compiler_static_works+:} false; then : | |
9139 $as_echo_n "(cached) " >&6 | |
9140 else | |
9141 lt_cv_prog_compiler_static_works=no | |
9142 save_LDFLAGS="$LDFLAGS" | |
9143 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9144 echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
9145 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9146 # The linker can only warn and ignore the option if not recognized | |
9147 # So say no if there are warnings | |
9148 if test -s conftest.err; then | |
9149 # Append any errors to the config.log. | |
9150 cat conftest.err 1>&5 | |
9151 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
9152 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9153 if diff conftest.exp conftest.er2 >/dev/null; then | |
9154 lt_cv_prog_compiler_static_works=yes | |
9155 fi | |
9156 else | |
9157 lt_cv_prog_compiler_static_works=yes | |
9158 fi | |
9159 fi | |
9160 $RM -r conftest* | |
9161 LDFLAGS="$save_LDFLAGS" | |
9162 | |
9163 fi | |
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 | |
9165 $as_echo "$lt_cv_prog_compiler_static_works" >&6; } | |
9166 | |
9167 if test x"$lt_cv_prog_compiler_static_works" = xyes; then | |
9168 : | |
9169 else | |
9170 lt_prog_compiler_static= | |
9171 fi | |
9172 | |
9173 | |
9174 | |
9175 | |
9176 | |
9177 | |
9178 | |
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9180 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9181 if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9182 $as_echo_n "(cached) " >&6 | |
9183 else | |
9184 lt_cv_prog_compiler_c_o=no | |
9185 $RM -r conftest 2>/dev/null | |
9186 mkdir conftest | |
9187 cd conftest | |
9188 mkdir out | |
9189 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9190 | |
9191 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9192 # Insert the option either (1) after the last *FLAGS variable, or | |
9193 # (2) before a word containing "conftest.", or (3) at the end. | |
9194 # Note that $ac_compile itself does not contain backslashes and begins | |
9195 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9196 lt_compile=`echo "$ac_compile" | $SED \ | |
9197 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9198 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9199 -e 's:$: $lt_compiler_flag:'` | |
9200 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9201 (eval "$lt_compile" 2>out/conftest.err) | |
9202 ac_status=$? | |
9203 cat out/conftest.err >&5 | |
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9205 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9206 then | |
9207 # The compiler can only warn and ignore the option if not recognized | |
9208 # So say no if there are warnings | |
9209 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9210 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9211 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9212 lt_cv_prog_compiler_c_o=yes | |
9213 fi | |
9214 fi | |
9215 chmod u+w . 2>&5 | |
9216 $RM conftest* | |
9217 # SGI C++ compiler will create directory out/ii_files/ for | |
9218 # template instantiation | |
9219 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9220 $RM out/* && rmdir out | |
9221 cd .. | |
9222 $RM -r conftest | |
9223 $RM conftest* | |
9224 | |
9225 fi | |
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9227 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9228 | |
9229 | |
9230 | |
9231 | |
9232 | |
9233 | |
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9235 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
9236 if ${lt_cv_prog_compiler_c_o+:} false; then : | |
9237 $as_echo_n "(cached) " >&6 | |
9238 else | |
9239 lt_cv_prog_compiler_c_o=no | |
9240 $RM -r conftest 2>/dev/null | |
9241 mkdir conftest | |
9242 cd conftest | |
9243 mkdir out | |
9244 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9245 | |
9246 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9247 # Insert the option either (1) after the last *FLAGS variable, or | |
9248 # (2) before a word containing "conftest.", or (3) at the end. | |
9249 # Note that $ac_compile itself does not contain backslashes and begins | |
9250 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9251 lt_compile=`echo "$ac_compile" | $SED \ | |
9252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9254 -e 's:$: $lt_compiler_flag:'` | |
9255 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
9256 (eval "$lt_compile" 2>out/conftest.err) | |
9257 ac_status=$? | |
9258 cat out/conftest.err >&5 | |
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9260 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9261 then | |
9262 # The compiler can only warn and ignore the option if not recognized | |
9263 # So say no if there are warnings | |
9264 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
9265 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9266 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9267 lt_cv_prog_compiler_c_o=yes | |
9268 fi | |
9269 fi | |
9270 chmod u+w . 2>&5 | |
9271 $RM conftest* | |
9272 # SGI C++ compiler will create directory out/ii_files/ for | |
9273 # template instantiation | |
9274 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
9275 $RM out/* && rmdir out | |
9276 cd .. | |
9277 $RM -r conftest | |
9278 $RM conftest* | |
9279 | |
9280 fi | |
9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 | |
9282 $as_echo "$lt_cv_prog_compiler_c_o" >&6; } | |
9283 | |
9284 | |
9285 | |
9286 | |
9287 hard_links="nottested" | |
9288 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9289 # do not overwrite the value of need_locks provided by the user | |
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
9291 $as_echo_n "checking if we can lock with hard links... " >&6; } | |
9292 hard_links=yes | |
9293 $RM conftest* | |
9294 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9295 touch conftest.a | |
9296 ln conftest.a conftest.b 2>&5 || hard_links=no | |
9297 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
9299 $as_echo "$hard_links" >&6; } | |
9300 if test "$hard_links" = no; then | |
9301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9302 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9303 need_locks=warn | |
9304 fi | |
9305 else | |
9306 need_locks=no | |
9307 fi | |
9308 | |
9309 | |
9310 | |
9311 | |
9312 | |
9313 | |
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9315 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
9316 | |
9317 runpath_var= | |
9318 allow_undefined_flag= | |
9319 always_export_symbols=no | |
9320 archive_cmds= | |
9321 archive_expsym_cmds= | |
9322 compiler_needs_object=no | |
9323 enable_shared_with_static_runtimes=no | |
9324 export_dynamic_flag_spec= | |
9325 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9326 hardcode_automatic=no | |
9327 hardcode_direct=no | |
9328 hardcode_direct_absolute=no | |
9329 hardcode_libdir_flag_spec= | |
9330 hardcode_libdir_separator= | |
9331 hardcode_minus_L=no | |
9332 hardcode_shlibpath_var=unsupported | |
9333 inherit_rpath=no | |
9334 link_all_deplibs=unknown | |
9335 module_cmds= | |
9336 module_expsym_cmds= | |
9337 old_archive_from_new_cmds= | |
9338 old_archive_from_expsyms_cmds= | |
9339 thread_safe_flag_spec= | |
9340 whole_archive_flag_spec= | |
9341 # include_expsyms should be a list of space-separated symbols to be *always* | |
9342 # included in the symbol list | |
9343 include_expsyms= | |
9344 # exclude_expsyms can be an extended regexp of symbols to exclude | |
9345 # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9346 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9347 # as well as any symbol that contains `d'. | |
9348 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
9349 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9350 # platforms (ab)use it in PIC code, but their linkers get confused if | |
9351 # the symbol is explicitly referenced. Since portable code cannot | |
9352 # rely on this symbol name, it's probably fine to never include it in | |
9353 # preloaded symbol tables. | |
9354 # Exclude shared library initialization/finalization symbols. | |
9355 extract_expsyms_cmds= | |
9356 | |
9357 case $host_os in | |
9358 cygwin* | mingw* | pw32* | cegcc*) | |
9359 # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9360 # When not using gcc, we currently assume that we are using | |
9361 # Microsoft Visual C++. | |
9362 if test "$GCC" != yes; then | |
9363 with_gnu_ld=no | |
9364 fi | |
9365 ;; | |
9366 interix*) | |
9367 # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9368 with_gnu_ld=yes | |
9369 ;; | |
9370 openbsd*) | |
9371 with_gnu_ld=no | |
9372 ;; | |
9373 linux* | k*bsd*-gnu | gnu*) | |
9374 link_all_deplibs=no | |
9375 ;; | |
9376 esac | |
9377 | |
9378 ld_shlibs=yes | |
9379 | |
9380 # On some targets, GNU ld is compatible enough with the native linker | |
9381 # that we're better off using the native interface for both. | |
9382 lt_use_gnu_ld_interface=no | |
9383 if test "$with_gnu_ld" = yes; then | |
9384 case $host_os in | |
9385 aix*) | |
9386 # The AIX port of GNU ld has always aspired to compatibility | |
9387 # with the native linker. However, as the warning in the GNU ld | |
9388 # block says, versions before 2.19.5* couldn't really create working | |
9389 # shared libraries, regardless of the interface used. | |
9390 case `$LD -v 2>&1` in | |
9391 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; | |
9392 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; | |
9393 *\ \(GNU\ Binutils\)\ [3-9]*) ;; | |
9394 *) | |
9395 lt_use_gnu_ld_interface=yes | |
9396 ;; | |
9397 esac | |
9398 ;; | |
9399 *) | |
9400 lt_use_gnu_ld_interface=yes | |
9401 ;; | |
9402 esac | |
9403 fi | |
9404 | |
9405 if test "$lt_use_gnu_ld_interface" = yes; then | |
9406 # If archive_cmds runs LD, not CC, wlarc should be empty | |
9407 wlarc='${wl}' | |
9408 | |
9409 # Set some defaults for GNU ld with shared library support. These | |
9410 # are reset later if shared libraries are not supported. Putting them | |
9411 # here allows them to be overridden if necessary. | |
9412 runpath_var=LD_RUN_PATH | |
9413 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9414 export_dynamic_flag_spec='${wl}--export-dynamic' | |
9415 # ancient GNU ld didn't support --whole-archive et. al. | |
9416 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then | |
9417 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9418 else | |
9419 whole_archive_flag_spec= | |
9420 fi | |
9421 supports_anon_versioning=no | |
9422 case `$LD -v 2>&1` in | |
9423 *GNU\ gold*) supports_anon_versioning=yes ;; | |
9424 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9425 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9426 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9427 *\ 2.11.*) ;; # other 2.11 versions | |
9428 *) supports_anon_versioning=yes ;; | |
9429 esac | |
9430 | |
9431 # See if GNU ld supports shared libraries. | |
9432 case $host_os in | |
9433 aix[3-9]*) | |
9434 # On AIX/PPC, the GNU linker is very broken | |
9435 if test "$host_cpu" != ia64; then | |
9436 ld_shlibs=no | |
9437 cat <<_LT_EOF 1>&2 | |
9438 | |
9439 *** Warning: the GNU linker, at least up to release 2.19, is reported | |
9440 *** to be unable to reliably create shared libraries on AIX. | |
9441 *** Therefore, libtool is disabling shared libraries support. If you | |
9442 *** really care for shared libraries, you may want to install binutils | |
9443 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found. | |
9444 *** You will then need to restart the configuration process. | |
9445 | |
9446 _LT_EOF | |
9447 fi | |
9448 ;; | |
9449 | |
9450 amigaos*) | |
9451 case $host_cpu in | |
9452 powerpc) | |
9453 # see comment about AmigaOS4 .so support | |
9454 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9455 archive_expsym_cmds='' | |
9456 ;; | |
9457 m68k) | |
9458 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)' | |
9459 hardcode_libdir_flag_spec='-L$libdir' | |
9460 hardcode_minus_L=yes | |
9461 ;; | |
9462 esac | |
9463 ;; | |
9464 | |
9465 beos*) | |
9466 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9467 allow_undefined_flag=unsupported | |
9468 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9469 # support --undefined. This deserves some investigation. FIXME | |
9470 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9471 else | |
9472 ld_shlibs=no | |
9473 fi | |
9474 ;; | |
9475 | |
9476 cygwin* | mingw* | pw32* | cegcc*) | |
9477 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9478 # as there is no search path for DLLs. | |
9479 hardcode_libdir_flag_spec='-L$libdir' | |
9480 export_dynamic_flag_spec='${wl}--export-all-symbols' | |
9481 allow_undefined_flag=unsupported | |
9482 always_export_symbols=no | |
9483 enable_shared_with_static_runtimes=yes | |
9484 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | |
9485 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
9486 | |
9487 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
9488 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9489 # If the export-symbols file already is a .def file (1st line | |
9490 # is EXPORTS), use it as is; otherwise, prepend... | |
9491 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9492 cp $export_symbols $output_objdir/$soname.def; | |
9493 else | |
9494 echo EXPORTS > $output_objdir/$soname.def; | |
9495 cat $export_symbols >> $output_objdir/$soname.def; | |
9496 fi~ | |
9497 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9498 else | |
9499 ld_shlibs=no | |
9500 fi | |
9501 ;; | |
9502 | |
9503 haiku*) | |
9504 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9505 link_all_deplibs=yes | |
9506 ;; | |
9507 | |
9508 interix[3-9]*) | |
9509 hardcode_direct=no | |
9510 hardcode_shlibpath_var=no | |
9511 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9512 export_dynamic_flag_spec='${wl}-E' | |
9513 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9514 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9515 # default) and relocated if they conflict, which is a slow very memory | |
9516 # consuming and fragmenting process. To avoid this, we pick a random, | |
9517 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9518 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9519 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9520 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' | |
9521 ;; | |
9522 | |
9523 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) | |
9524 tmp_diet=no | |
9525 if test "$host_os" = linux-dietlibc; then | |
9526 case $cc_basename in | |
9527 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) | |
9528 esac | |
9529 fi | |
9530 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ | |
9531 && test "$tmp_diet" = no | |
9532 then | |
9533 tmp_addflag=' $pic_flag' | |
9534 tmp_sharedflag='-shared' | |
9535 case $cc_basename,$host_cpu in | |
9536 pgcc*) # Portland Group C compiler | |
9537 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' | |
9538 tmp_addflag=' $pic_flag' | |
9539 ;; | |
9540 pgf77* | pgf90* | pgf95* | pgfortran*) | |
9541 # Portland Group f77 and f90 compilers | |
9542 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' | |
9543 tmp_addflag=' $pic_flag -Mnomain' ;; | |
9544 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9545 tmp_addflag=' -i_dynamic' ;; | |
9546 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9547 tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9548 ifc* | ifort*) # Intel Fortran compiler | |
9549 tmp_addflag=' -nofor_main' ;; | |
9550 lf95*) # Lahey Fortran 8.1 | |
9551 whole_archive_flag_spec= | |
9552 tmp_sharedflag='--shared' ;; | |
9553 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) | |
9554 tmp_sharedflag='-qmkshrobj' | |
9555 tmp_addflag= ;; | |
9556 nvcc*) # Cuda Compiler Driver 2.2 | |
9557 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' | |
9558 compiler_needs_object=yes | |
9559 ;; | |
9560 esac | |
9561 case `$CC -V 2>&1 | sed 5q` in | |
9562 *Sun\ C*) # Sun C 5.9 | |
9563 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' | |
9564 compiler_needs_object=yes | |
9565 tmp_sharedflag='-G' ;; | |
9566 *Sun\ F*) # Sun Fortran 8.3 | |
9567 tmp_sharedflag='-G' ;; | |
9568 esac | |
9569 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9570 | |
9571 if test "x$supports_anon_versioning" = xyes; then | |
9572 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9573 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9574 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9575 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9576 fi | |
9577 | |
9578 case $cc_basename in | |
9579 xlf* | bgf* | bgxlf* | mpixlf*) | |
9580 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself | |
9581 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' | |
9582 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9583 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' | |
9584 if test "x$supports_anon_versioning" = xyes; then | |
9585 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ | |
9586 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9587 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9588 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' | |
9589 fi | |
9590 ;; | |
9591 esac | |
9592 else | |
9593 ld_shlibs=no | |
9594 fi | |
9595 ;; | |
9596 | |
9597 netbsd* | netbsdelf*-gnu) | |
9598 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
9599 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9600 wlarc= | |
9601 else | |
9602 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9603 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9604 fi | |
9605 ;; | |
9606 | |
9607 solaris*) | |
9608 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then | |
9609 ld_shlibs=no | |
9610 cat <<_LT_EOF 1>&2 | |
9611 | |
9612 *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9613 *** create shared libraries on Solaris systems. Therefore, libtool | |
9614 *** is disabling shared libraries support. We urge you to upgrade GNU | |
9615 *** binutils to release 2.9.1 or newer. Another option is to modify | |
9616 *** your PATH or compiler configuration so that the native linker is | |
9617 *** used, and then restart. | |
9618 | |
9619 _LT_EOF | |
9620 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9621 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9622 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9623 else | |
9624 ld_shlibs=no | |
9625 fi | |
9626 ;; | |
9627 | |
9628 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9629 case `$LD -v 2>&1` in | |
9630 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9631 ld_shlibs=no | |
9632 cat <<_LT_EOF 1>&2 | |
9633 | |
9634 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9635 *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9636 *** is disabling shared libraries support. We urge you to upgrade GNU | |
9637 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9638 *** your PATH or compiler configuration so that the native linker is | |
9639 *** used, and then restart. | |
9640 | |
9641 _LT_EOF | |
9642 ;; | |
9643 *) | |
9644 # For security reasons, it is highly recommended that you always | |
9645 # use absolute paths for naming shared libraries, and exclude the | |
9646 # DT_RUNPATH tag from executables and libraries. But doing so | |
9647 # requires that you compile everything twice, which is a pain. | |
9648 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9649 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
9650 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9651 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9652 else | |
9653 ld_shlibs=no | |
9654 fi | |
9655 ;; | |
9656 esac | |
9657 ;; | |
9658 | |
9659 sunos4*) | |
9660 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9661 wlarc= | |
9662 hardcode_direct=yes | |
9663 hardcode_shlibpath_var=no | |
9664 ;; | |
9665 | |
9666 *) | |
9667 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
9668 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9669 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9670 else | |
9671 ld_shlibs=no | |
9672 fi | |
9673 ;; | |
9674 esac | |
9675 | |
9676 if test "$ld_shlibs" = no; then | |
9677 runpath_var= | |
9678 hardcode_libdir_flag_spec= | |
9679 export_dynamic_flag_spec= | |
9680 whole_archive_flag_spec= | |
9681 fi | |
9682 else | |
9683 # PORTME fill in a description of your system's linker (not GNU ld) | |
9684 case $host_os in | |
9685 aix3*) | |
9686 allow_undefined_flag=unsupported | |
9687 always_export_symbols=yes | |
9688 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' | |
9689 # Note: this linker hardcodes the directories in LIBPATH if there | |
9690 # are no directories specified by -L. | |
9691 hardcode_minus_L=yes | |
9692 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9693 # Neither direct hardcoding nor static linking is supported with a | |
9694 # broken collect2. | |
9695 hardcode_direct=unsupported | |
9696 fi | |
9697 ;; | |
9698 | |
9699 aix[4-9]*) | |
9700 if test "$host_cpu" = ia64; then | |
9701 # On IA64, the linker does run time linking by default, so we don't | |
9702 # have to do anything special. | |
9703 aix_use_runtimelinking=no | |
9704 exp_sym_flag='-Bexport' | |
9705 no_entry_flag="" | |
9706 else | |
9707 # If we're using GNU nm, then we don't want the "-C" option. | |
9708 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9709 # Also, AIX nm treats weak defined symbols like other global | |
9710 # defined symbols, whereas GNU nm marks them as "W". | |
9711 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
9712 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' | |
9713 else | |
9714 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' | |
9715 fi | |
9716 aix_use_runtimelinking=no | |
9717 | |
9718 # Test if we are trying to use run time linking or normal | |
9719 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9720 # need to do runtime linking. | |
9721 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
9722 for ld_flag in $LDFLAGS; do | |
9723 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9724 aix_use_runtimelinking=yes | |
9725 break | |
9726 fi | |
9727 done | |
9728 ;; | |
9729 esac | |
9730 | |
9731 exp_sym_flag='-bexport' | |
9732 no_entry_flag='-bnoentry' | |
9733 fi | |
9734 | |
9735 # When large executables or shared objects are built, AIX ld can | |
9736 # have problems creating the table of contents. If linking a library | |
9737 # or program results in "error TOC overflow" add -mminimal-toc to | |
9738 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9739 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9740 | |
9741 archive_cmds='' | |
9742 hardcode_direct=yes | |
9743 hardcode_direct_absolute=yes | |
9744 hardcode_libdir_separator=':' | |
9745 link_all_deplibs=yes | |
9746 file_list_spec='${wl}-f,' | |
9747 | |
9748 if test "$GCC" = yes; then | |
9749 case $host_os in aix4.[012]|aix4.[012].*) | |
9750 # We only want to do this on AIX 4.2 and lower, the check | |
9751 # below for broken collect2 doesn't work under 4.3+ | |
9752 collect2name=`${CC} -print-prog-name=collect2` | |
9753 if test -f "$collect2name" && | |
9754 strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
9755 then | |
9756 # We have reworked collect2 | |
9757 : | |
9758 else | |
9759 # We have old collect2 | |
9760 hardcode_direct=unsupported | |
9761 # It fails to find uninstalled libraries when the uninstalled | |
9762 # path is not listed in the libpath. Setting hardcode_minus_L | |
9763 # to unsupported forces relinking | |
9764 hardcode_minus_L=yes | |
9765 hardcode_libdir_flag_spec='-L$libdir' | |
9766 hardcode_libdir_separator= | |
9767 fi | |
9768 ;; | |
9769 esac | |
9770 shared_flag='-shared' | |
9771 if test "$aix_use_runtimelinking" = yes; then | |
9772 shared_flag="$shared_flag "'${wl}-G' | |
9773 fi | |
9774 link_all_deplibs=no | |
9775 else | |
9776 # not using gcc | |
9777 if test "$host_cpu" = ia64; then | |
9778 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9779 # chokes on -Wl,-G. The following line is correct: | |
9780 shared_flag='-G' | |
9781 else | |
9782 if test "$aix_use_runtimelinking" = yes; then | |
9783 shared_flag='${wl}-G' | |
9784 else | |
9785 shared_flag='${wl}-bM:SRE' | |
9786 fi | |
9787 fi | |
9788 fi | |
9789 | |
9790 export_dynamic_flag_spec='${wl}-bexpall' | |
9791 # It seems that -bexpall does not export symbols beginning with | |
9792 # underscore (_), so it is better to generate a list of symbols to export. | |
9793 always_export_symbols=yes | |
9794 if test "$aix_use_runtimelinking" = yes; then | |
9795 # Warning - without using the other runtime loading flags (-brtl), | |
9796 # -berok will link without error, but may produce a broken library. | |
9797 allow_undefined_flag='-berok' | |
9798 # Determine the default libpath from the value encoded in an | |
9799 # empty executable. | |
9800 if test "${lt_cv_aix_libpath+set}" = set; then | |
9801 aix_libpath=$lt_cv_aix_libpath | |
9802 else | |
9803 if ${lt_cv_aix_libpath_+:} false; then : | |
9804 $as_echo_n "(cached) " >&6 | |
9805 else | |
9806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9807 /* end confdefs.h. */ | |
9808 | |
9809 int | |
9810 main () | |
9811 { | |
9812 | |
9813 ; | |
9814 return 0; | |
9815 } | |
9816 _ACEOF | |
9817 if ac_fn_c_try_link "$LINENO"; then : | |
9818 | |
9819 lt_aix_libpath_sed=' | |
9820 /Import File Strings/,/^$/ { | |
9821 /^0/ { | |
9822 s/^0 *\([^ ]*\) *$/\1/ | |
9823 p | |
9824 } | |
9825 }' | |
9826 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9827 # Check for a 64-bit object if we didn't find anything. | |
9828 if test -z "$lt_cv_aix_libpath_"; then | |
9829 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9830 fi | |
9831 fi | |
9832 rm -f core conftest.err conftest.$ac_objext \ | |
9833 conftest$ac_exeext conftest.$ac_ext | |
9834 if test -z "$lt_cv_aix_libpath_"; then | |
9835 lt_cv_aix_libpath_="/usr/lib:/lib" | |
9836 fi | |
9837 | |
9838 fi | |
9839 | |
9840 aix_libpath=$lt_cv_aix_libpath_ | |
9841 fi | |
9842 | |
9843 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9844 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" | |
9845 else | |
9846 if test "$host_cpu" = ia64; then | |
9847 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9848 allow_undefined_flag="-z nodefs" | |
9849 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" | |
9850 else | |
9851 # Determine the default libpath from the value encoded in an | |
9852 # empty executable. | |
9853 if test "${lt_cv_aix_libpath+set}" = set; then | |
9854 aix_libpath=$lt_cv_aix_libpath | |
9855 else | |
9856 if ${lt_cv_aix_libpath_+:} false; then : | |
9857 $as_echo_n "(cached) " >&6 | |
9858 else | |
9859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
9860 /* end confdefs.h. */ | |
9861 | |
9862 int | |
9863 main () | |
9864 { | |
9865 | |
9866 ; | |
9867 return 0; | |
9868 } | |
9869 _ACEOF | |
9870 if ac_fn_c_try_link "$LINENO"; then : | |
9871 | |
9872 lt_aix_libpath_sed=' | |
9873 /Import File Strings/,/^$/ { | |
9874 /^0/ { | |
9875 s/^0 *\([^ ]*\) *$/\1/ | |
9876 p | |
9877 } | |
9878 }' | |
9879 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9880 # Check for a 64-bit object if we didn't find anything. | |
9881 if test -z "$lt_cv_aix_libpath_"; then | |
9882 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
9883 fi | |
9884 fi | |
9885 rm -f core conftest.err conftest.$ac_objext \ | |
9886 conftest$ac_exeext conftest.$ac_ext | |
9887 if test -z "$lt_cv_aix_libpath_"; then | |
9888 lt_cv_aix_libpath_="/usr/lib:/lib" | |
9889 fi | |
9890 | |
9891 fi | |
9892 | |
9893 aix_libpath=$lt_cv_aix_libpath_ | |
9894 fi | |
9895 | |
9896 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9897 # Warning - without using the other run time loading flags, | |
9898 # -berok will link without error, but may produce a broken library. | |
9899 no_undefined_flag=' ${wl}-bernotok' | |
9900 allow_undefined_flag=' ${wl}-berok' | |
9901 if test "$with_gnu_ld" = yes; then | |
9902 # We only use this code for GNU lds that support --whole-archive. | |
9903 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
9904 else | |
9905 # Exported symbols can be pulled into shared objects from archives | |
9906 whole_archive_flag_spec='$convenience' | |
9907 fi | |
9908 archive_cmds_need_lc=yes | |
9909 # This is similar to how AIX traditionally builds its shared libraries. | |
9910 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' | |
9911 fi | |
9912 fi | |
9913 ;; | |
9914 | |
9915 amigaos*) | |
9916 case $host_cpu in | |
9917 powerpc) | |
9918 # see comment about AmigaOS4 .so support | |
9919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9920 archive_expsym_cmds='' | |
9921 ;; | |
9922 m68k) | |
9923 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)' | |
9924 hardcode_libdir_flag_spec='-L$libdir' | |
9925 hardcode_minus_L=yes | |
9926 ;; | |
9927 esac | |
9928 ;; | |
9929 | |
9930 bsdi[45]*) | |
9931 export_dynamic_flag_spec=-rdynamic | |
9932 ;; | |
9933 | |
9934 cygwin* | mingw* | pw32* | cegcc*) | |
9935 # When not using gcc, we currently assume that we are using | |
9936 # Microsoft Visual C++. | |
9937 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
9938 # no search path for DLLs. | |
9939 case $cc_basename in | |
9940 cl*) | |
9941 # Native MSVC | |
9942 hardcode_libdir_flag_spec=' ' | |
9943 allow_undefined_flag=unsupported | |
9944 always_export_symbols=yes | |
9945 file_list_spec='@' | |
9946 # Tell ltmain to make .lib files, not .a files. | |
9947 libext=lib | |
9948 # Tell ltmain to make .dll files, not .so files. | |
9949 shrext_cmds=".dll" | |
9950 # FIXME: Setting linknames here is a bad hack. | |
9951 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
9952 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9953 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
9954 else | |
9955 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
9956 fi~ | |
9957 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
9958 linknames=' | |
9959 # The linker will not automatically build a static lib if we build a DLL. | |
9960 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' | |
9961 enable_shared_with_static_runtimes=yes | |
9962 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
9963 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' | |
9964 # Don't use ranlib | |
9965 old_postinstall_cmds='chmod 644 $oldlib' | |
9966 postlink_cmds='lt_outputfile="@OUTPUT@"~ | |
9967 lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
9968 case $lt_outputfile in | |
9969 *.exe|*.EXE) ;; | |
9970 *) | |
9971 lt_outputfile="$lt_outputfile.exe" | |
9972 lt_tool_outputfile="$lt_tool_outputfile.exe" | |
9973 ;; | |
9974 esac~ | |
9975 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
9976 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
9977 $RM "$lt_outputfile.manifest"; | |
9978 fi' | |
9979 ;; | |
9980 *) | |
9981 # Assume MSVC wrapper | |
9982 hardcode_libdir_flag_spec=' ' | |
9983 allow_undefined_flag=unsupported | |
9984 # Tell ltmain to make .lib files, not .a files. | |
9985 libext=lib | |
9986 # Tell ltmain to make .dll files, not .so files. | |
9987 shrext_cmds=".dll" | |
9988 # FIXME: Setting linknames here is a bad hack. | |
9989 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' | |
9990 # The linker will automatically build a .lib file if we build a DLL. | |
9991 old_archive_from_new_cmds='true' | |
9992 # FIXME: Should let the user specify the lib program. | |
9993 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' | |
9994 enable_shared_with_static_runtimes=yes | |
9995 ;; | |
9996 esac | |
9997 ;; | |
9998 | |
9999 darwin* | rhapsody*) | |
10000 | |
10001 | |
10002 archive_cmds_need_lc=no | |
10003 hardcode_direct=no | |
10004 hardcode_automatic=yes | |
10005 hardcode_shlibpath_var=unsupported | |
10006 if test "$lt_cv_ld_force_load" = "yes"; then | |
10007 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\"`' | |
10008 | |
10009 else | |
10010 whole_archive_flag_spec='' | |
10011 fi | |
10012 link_all_deplibs=yes | |
10013 allow_undefined_flag="$_lt_dar_allow_undefined" | |
10014 case $cc_basename in | |
10015 ifort*) _lt_dar_can_shared=yes ;; | |
10016 *) _lt_dar_can_shared=$GCC ;; | |
10017 esac | |
10018 if test "$_lt_dar_can_shared" = "yes"; then | |
10019 output_verbose_link_cmd=func_echo_all | |
10020 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
10021 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
10022 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}" | |
10023 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}" | |
10024 | |
10025 else | |
10026 ld_shlibs=no | |
10027 fi | |
10028 | |
10029 ;; | |
10030 | |
10031 dgux*) | |
10032 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10033 hardcode_libdir_flag_spec='-L$libdir' | |
10034 hardcode_shlibpath_var=no | |
10035 ;; | |
10036 | |
10037 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
10038 # support. Future versions do this automatically, but an explicit c++rt0.o | |
10039 # does not break anything, and helps significantly (at the cost of a little | |
10040 # extra space). | |
10041 freebsd2.2*) | |
10042 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10043 hardcode_libdir_flag_spec='-R$libdir' | |
10044 hardcode_direct=yes | |
10045 hardcode_shlibpath_var=no | |
10046 ;; | |
10047 | |
10048 # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
10049 freebsd2.*) | |
10050 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10051 hardcode_direct=yes | |
10052 hardcode_minus_L=yes | |
10053 hardcode_shlibpath_var=no | |
10054 ;; | |
10055 | |
10056 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10057 freebsd* | dragonfly*) | |
10058 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10059 hardcode_libdir_flag_spec='-R$libdir' | |
10060 hardcode_direct=yes | |
10061 hardcode_shlibpath_var=no | |
10062 ;; | |
10063 | |
10064 hpux9*) | |
10065 if test "$GCC" = yes; then | |
10066 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
10067 else | |
10068 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' | |
10069 fi | |
10070 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10071 hardcode_libdir_separator=: | |
10072 hardcode_direct=yes | |
10073 | |
10074 # hardcode_minus_L: Not really in the search PATH, | |
10075 # but as the default location of the library. | |
10076 hardcode_minus_L=yes | |
10077 export_dynamic_flag_spec='${wl}-E' | |
10078 ;; | |
10079 | |
10080 hpux10*) | |
10081 if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10082 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10083 else | |
10084 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10085 fi | |
10086 if test "$with_gnu_ld" = no; then | |
10087 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10088 hardcode_libdir_separator=: | |
10089 hardcode_direct=yes | |
10090 hardcode_direct_absolute=yes | |
10091 export_dynamic_flag_spec='${wl}-E' | |
10092 # hardcode_minus_L: Not really in the search PATH, | |
10093 # but as the default location of the library. | |
10094 hardcode_minus_L=yes | |
10095 fi | |
10096 ;; | |
10097 | |
10098 hpux11*) | |
10099 if test "$GCC" = yes && test "$with_gnu_ld" = no; then | |
10100 case $host_cpu in | |
10101 hppa*64*) | |
10102 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10103 ;; | |
10104 ia64*) | |
10105 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10106 ;; | |
10107 *) | |
10108 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10109 ;; | |
10110 esac | |
10111 else | |
10112 case $host_cpu in | |
10113 hppa*64*) | |
10114 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10115 ;; | |
10116 ia64*) | |
10117 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10118 ;; | |
10119 *) | |
10120 | |
10121 # Older versions of the 11.00 compiler do not understand -b yet | |
10122 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) | |
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 | |
10124 $as_echo_n "checking if $CC understands -b... " >&6; } | |
10125 if ${lt_cv_prog_compiler__b+:} false; then : | |
10126 $as_echo_n "(cached) " >&6 | |
10127 else | |
10128 lt_cv_prog_compiler__b=no | |
10129 save_LDFLAGS="$LDFLAGS" | |
10130 LDFLAGS="$LDFLAGS -b" | |
10131 echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
10132 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
10133 # The linker can only warn and ignore the option if not recognized | |
10134 # So say no if there are warnings | |
10135 if test -s conftest.err; then | |
10136 # Append any errors to the config.log. | |
10137 cat conftest.err 1>&5 | |
10138 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
10139 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
10140 if diff conftest.exp conftest.er2 >/dev/null; then | |
10141 lt_cv_prog_compiler__b=yes | |
10142 fi | |
10143 else | |
10144 lt_cv_prog_compiler__b=yes | |
10145 fi | |
10146 fi | |
10147 $RM -r conftest* | |
10148 LDFLAGS="$save_LDFLAGS" | |
10149 | |
10150 fi | |
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 | |
10152 $as_echo "$lt_cv_prog_compiler__b" >&6; } | |
10153 | |
10154 if test x"$lt_cv_prog_compiler__b" = xyes; then | |
10155 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10156 else | |
10157 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10158 fi | |
10159 | |
10160 ;; | |
10161 esac | |
10162 fi | |
10163 if test "$with_gnu_ld" = no; then | |
10164 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10165 hardcode_libdir_separator=: | |
10166 | |
10167 case $host_cpu in | |
10168 hppa*64*|ia64*) | |
10169 hardcode_direct=no | |
10170 hardcode_shlibpath_var=no | |
10171 ;; | |
10172 *) | |
10173 hardcode_direct=yes | |
10174 hardcode_direct_absolute=yes | |
10175 export_dynamic_flag_spec='${wl}-E' | |
10176 | |
10177 # hardcode_minus_L: Not really in the search PATH, | |
10178 # but as the default location of the library. | |
10179 hardcode_minus_L=yes | |
10180 ;; | |
10181 esac | |
10182 fi | |
10183 ;; | |
10184 | |
10185 irix5* | irix6* | nonstopux*) | |
10186 if test "$GCC" = yes; then | |
10187 archive_cmds='$CC -shared $pic_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' | |
10188 # Try to use the -exported_symbol ld option, if it does not | |
10189 # work, assume that -exports_file does not work either and | |
10190 # implicitly export all symbols. | |
10191 # This should be the same for all languages, so no per-tag cache variable. | |
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 | |
10193 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } | |
10194 if ${lt_cv_irix_exported_symbol+:} false; then : | |
10195 $as_echo_n "(cached) " >&6 | |
10196 else | |
10197 save_LDFLAGS="$LDFLAGS" | |
10198 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" | |
10199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
10200 /* end confdefs.h. */ | |
10201 int foo (void) { return 0; } | |
10202 _ACEOF | |
10203 if ac_fn_c_try_link "$LINENO"; then : | |
10204 lt_cv_irix_exported_symbol=yes | |
10205 else | |
10206 lt_cv_irix_exported_symbol=no | |
10207 fi | |
10208 rm -f core conftest.err conftest.$ac_objext \ | |
10209 conftest$ac_exeext conftest.$ac_ext | |
10210 LDFLAGS="$save_LDFLAGS" | |
10211 fi | |
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 | |
10213 $as_echo "$lt_cv_irix_exported_symbol" >&6; } | |
10214 if test "$lt_cv_irix_exported_symbol" = yes; then | |
10215 archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib' | |
10216 fi | |
10217 else | |
10218 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' | |
10219 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' | |
10220 fi | |
10221 archive_cmds_need_lc='no' | |
10222 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10223 hardcode_libdir_separator=: | |
10224 inherit_rpath=yes | |
10225 link_all_deplibs=yes | |
10226 ;; | |
10227 | |
10228 netbsd* | netbsdelf*-gnu) | |
10229 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
10230 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10231 else | |
10232 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10233 fi | |
10234 hardcode_libdir_flag_spec='-R$libdir' | |
10235 hardcode_direct=yes | |
10236 hardcode_shlibpath_var=no | |
10237 ;; | |
10238 | |
10239 newsos6) | |
10240 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10241 hardcode_direct=yes | |
10242 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10243 hardcode_libdir_separator=: | |
10244 hardcode_shlibpath_var=no | |
10245 ;; | |
10246 | |
10247 *nto* | *qnx*) | |
10248 ;; | |
10249 | |
10250 openbsd*) | |
10251 if test -f /usr/libexec/ld.so; then | |
10252 hardcode_direct=yes | |
10253 hardcode_shlibpath_var=no | |
10254 hardcode_direct_absolute=yes | |
10255 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10256 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10257 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
10258 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10259 export_dynamic_flag_spec='${wl}-E' | |
10260 else | |
10261 case $host_os in | |
10262 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10263 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10264 hardcode_libdir_flag_spec='-R$libdir' | |
10265 ;; | |
10266 *) | |
10267 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10268 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10269 ;; | |
10270 esac | |
10271 fi | |
10272 else | |
10273 ld_shlibs=no | |
10274 fi | |
10275 ;; | |
10276 | |
10277 os2*) | |
10278 hardcode_libdir_flag_spec='-L$libdir' | |
10279 hardcode_minus_L=yes | |
10280 allow_undefined_flag=unsupported | |
10281 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' | |
10282 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
10283 ;; | |
10284 | |
10285 osf3*) | |
10286 if test "$GCC" = yes; then | |
10287 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10288 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' | |
10289 else | |
10290 allow_undefined_flag=' -expect_unresolved \*' | |
10291 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' | |
10292 fi | |
10293 archive_cmds_need_lc='no' | |
10294 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10295 hardcode_libdir_separator=: | |
10296 ;; | |
10297 | |
10298 osf4* | osf5*) # as osf3* with the addition of -msym flag | |
10299 if test "$GCC" = yes; then | |
10300 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10301 archive_cmds='$CC -shared${allow_undefined_flag} $pic_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' | |
10302 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10303 else | |
10304 allow_undefined_flag=' -expect_unresolved \*' | |
10305 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' | |
10306 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~ | |
10307 $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' | |
10308 | |
10309 # Both c and cxx compiler support -rpath directly | |
10310 hardcode_libdir_flag_spec='-rpath $libdir' | |
10311 fi | |
10312 archive_cmds_need_lc='no' | |
10313 hardcode_libdir_separator=: | |
10314 ;; | |
10315 | |
10316 solaris*) | |
10317 no_undefined_flag=' -z defs' | |
10318 if test "$GCC" = yes; then | |
10319 wlarc='${wl}' | |
10320 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10321 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10322 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10323 else | |
10324 case `$CC -V 2>&1` in | |
10325 *"Compilers 5.0"*) | |
10326 wlarc='' | |
10327 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10328 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10329 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' | |
10330 ;; | |
10331 *) | |
10332 wlarc='${wl}' | |
10333 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10334 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
10335 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' | |
10336 ;; | |
10337 esac | |
10338 fi | |
10339 hardcode_libdir_flag_spec='-R$libdir' | |
10340 hardcode_shlibpath_var=no | |
10341 case $host_os in | |
10342 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10343 *) | |
10344 # The compiler driver will combine and reorder linker options, | |
10345 # but understands `-z linker_flag'. GCC discards it without `$wl', | |
10346 # but is careful enough not to reorder. | |
10347 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10348 if test "$GCC" = yes; then | |
10349 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
10350 else | |
10351 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' | |
10352 fi | |
10353 ;; | |
10354 esac | |
10355 link_all_deplibs=yes | |
10356 ;; | |
10357 | |
10358 sunos4*) | |
10359 if test "x$host_vendor" = xsequent; then | |
10360 # Use $CC to link under sequent, because it throws in some extra .o | |
10361 # files that make .init and .fini sections work. | |
10362 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10363 else | |
10364 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10365 fi | |
10366 hardcode_libdir_flag_spec='-L$libdir' | |
10367 hardcode_direct=yes | |
10368 hardcode_minus_L=yes | |
10369 hardcode_shlibpath_var=no | |
10370 ;; | |
10371 | |
10372 sysv4) | |
10373 case $host_vendor in | |
10374 sni) | |
10375 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10376 hardcode_direct=yes # is this really true??? | |
10377 ;; | |
10378 siemens) | |
10379 ## LD is ld it makes a PLAMLIB | |
10380 ## CC just makes a GrossModule. | |
10381 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10382 reload_cmds='$CC -r -o $output$reload_objs' | |
10383 hardcode_direct=no | |
10384 ;; | |
10385 motorola) | |
10386 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10387 hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10388 ;; | |
10389 esac | |
10390 runpath_var='LD_RUN_PATH' | |
10391 hardcode_shlibpath_var=no | |
10392 ;; | |
10393 | |
10394 sysv4.3*) | |
10395 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10396 hardcode_shlibpath_var=no | |
10397 export_dynamic_flag_spec='-Bexport' | |
10398 ;; | |
10399 | |
10400 sysv4*MP*) | |
10401 if test -d /usr/nec; then | |
10402 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10403 hardcode_shlibpath_var=no | |
10404 runpath_var=LD_RUN_PATH | |
10405 hardcode_runpath_var=yes | |
10406 ld_shlibs=yes | |
10407 fi | |
10408 ;; | |
10409 | |
10410 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
10411 no_undefined_flag='${wl}-z,text' | |
10412 archive_cmds_need_lc=no | |
10413 hardcode_shlibpath_var=no | |
10414 runpath_var='LD_RUN_PATH' | |
10415 | |
10416 if test "$GCC" = yes; then | |
10417 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10418 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10419 else | |
10420 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10421 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10422 fi | |
10423 ;; | |
10424 | |
10425 sysv5* | sco3.2v5* | sco5v6*) | |
10426 # Note: We can NOT use -z defs as we might desire, because we do not | |
10427 # link with -lc, and that would cause any symbols used from libc to | |
10428 # always be unresolved, which means just about no library would | |
10429 # ever link correctly. If we're not using GNU ld we use -z text | |
10430 # though, which does catch some bad symbols but isn't as heavy-handed | |
10431 # as -z defs. | |
10432 no_undefined_flag='${wl}-z,text' | |
10433 allow_undefined_flag='${wl}-z,nodefs' | |
10434 archive_cmds_need_lc=no | |
10435 hardcode_shlibpath_var=no | |
10436 hardcode_libdir_flag_spec='${wl}-R,$libdir' | |
10437 hardcode_libdir_separator=':' | |
10438 link_all_deplibs=yes | |
10439 export_dynamic_flag_spec='${wl}-Bexport' | |
10440 runpath_var='LD_RUN_PATH' | |
10441 | |
10442 if test "$GCC" = yes; then | |
10443 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10444 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10445 else | |
10446 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10447 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10448 fi | |
10449 ;; | |
10450 | |
10451 uts4*) | |
10452 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10453 hardcode_libdir_flag_spec='-L$libdir' | |
10454 hardcode_shlibpath_var=no | |
10455 ;; | |
10456 | |
10457 *) | |
10458 ld_shlibs=no | |
10459 ;; | |
10460 esac | |
10461 | |
10462 if test x$host_vendor = xsni; then | |
10463 case $host in | |
10464 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | |
10465 export_dynamic_flag_spec='${wl}-Blargedynsym' | |
10466 ;; | |
10467 esac | |
10468 fi | |
10469 fi | |
10470 | |
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 | |
10472 $as_echo "$ld_shlibs" >&6; } | |
10473 test "$ld_shlibs" = no && can_build_shared=no | |
10474 | |
10475 with_gnu_ld=$with_gnu_ld | |
10476 | |
10477 | |
10478 | |
10479 | |
10480 | |
10481 | |
10482 | |
10483 | |
10484 | |
10485 | |
10486 | |
10487 | |
10488 | |
10489 | |
10490 | |
10491 # | |
10492 # Do we need to explicitly link libc? | |
10493 # | |
10494 case "x$archive_cmds_need_lc" in | |
10495 x|xyes) | |
10496 # Assume -lc should be added | |
10497 archive_cmds_need_lc=yes | |
10498 | |
10499 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
10500 case $archive_cmds in | |
10501 *'~'*) | |
10502 # FIXME: we may have to deal with multi-command sequences. | |
10503 ;; | |
10504 '$CC '*) | |
10505 # Test whether the compiler implicitly links with -lc since on some | |
10506 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10507 # to ld, don't add -lc before -lgcc. | |
10508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
10509 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
10510 if ${lt_cv_archive_cmds_need_lc+:} false; then : | |
10511 $as_echo_n "(cached) " >&6 | |
10512 else | |
10513 $RM conftest* | |
10514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10515 | |
10516 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
10517 (eval $ac_compile) 2>&5 | |
10518 ac_status=$? | |
10519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10520 test $ac_status = 0; } 2>conftest.err; then | |
10521 soname=conftest | |
10522 lib=conftest | |
10523 libobjs=conftest.$ac_objext | |
10524 deplibs= | |
10525 wl=$lt_prog_compiler_wl | |
10526 pic_flag=$lt_prog_compiler_pic | |
10527 compiler_flags=-v | |
10528 linker_flags=-v | |
10529 verstring= | |
10530 output_objdir=. | |
10531 libname=conftest | |
10532 lt_save_allow_undefined_flag=$allow_undefined_flag | |
10533 allow_undefined_flag= | |
10534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
10535 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10536 ac_status=$? | |
10537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
10538 test $ac_status = 0; } | |
10539 then | |
10540 lt_cv_archive_cmds_need_lc=no | |
10541 else | |
10542 lt_cv_archive_cmds_need_lc=yes | |
10543 fi | |
10544 allow_undefined_flag=$lt_save_allow_undefined_flag | |
10545 else | |
10546 cat conftest.err 1>&5 | |
10547 fi | |
10548 $RM conftest* | |
10549 | |
10550 fi | |
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 | |
10552 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; } | |
10553 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc | |
10554 ;; | |
10555 esac | |
10556 fi | |
10557 ;; | |
10558 esac | |
10559 | |
10560 | |
10561 | |
10562 | |
10563 | |
10564 | |
10565 | |
10566 | |
10567 | |
10568 | |
10569 | |
10570 | |
10571 | |
10572 | |
10573 | |
10574 | |
10575 | |
10576 | |
10577 | |
10578 | |
10579 | |
10580 | |
10581 | |
10582 | |
10583 | |
10584 | |
10585 | |
10586 | |
10587 | |
10588 | |
10589 | |
10590 | |
10591 | |
10592 | |
10593 | |
10594 | |
10595 | |
10596 | |
10597 | |
10598 | |
10599 | |
10600 | |
10601 | |
10602 | |
10603 | |
10604 | |
10605 | |
10606 | |
10607 | |
10608 | |
10609 | |
10610 | |
10611 | |
10612 | |
10613 | |
10614 | |
10615 | |
10616 | |
10617 | |
10618 | |
10619 | |
10620 | |
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
10712 $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
10713 | |
10714 if test "$GCC" = yes; then | |
10715 case $host_os in | |
10716 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; | |
10717 *) lt_awk_arg="/^libraries:/" ;; | |
10718 esac | |
10719 case $host_os in | |
10720 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; | |
10721 *) lt_sed_strip_eq="s,=/,/,g" ;; | |
10722 esac | |
10723 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` | |
10724 case $lt_search_path_spec in | |
10725 *\;*) | |
10726 # if the path contains ";" then we assume it to be the separator | |
10727 # otherwise default to the standard path separator (i.e. ":") - it is | |
10728 # assumed that no part of a normal pathname contains ";" but that should | |
10729 # okay in the real world where ";" in dirpaths is itself problematic. | |
10730 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` | |
10731 ;; | |
10732 *) | |
10733 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` | |
10734 ;; | |
10735 esac | |
10736 # Ok, now we have the path, separated by spaces, we can step through it | |
10737 # and add multilib dir if necessary. | |
10738 lt_tmp_lt_search_path_spec= | |
10739 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` | |
10740 for lt_sys_path in $lt_search_path_spec; do | |
10741 if test -d "$lt_sys_path/$lt_multi_os_dir"; then | |
10742 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" | |
10743 else | |
10744 test -d "$lt_sys_path" && \ | |
10745 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" | |
10746 fi | |
10747 done | |
10748 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' | |
10749 BEGIN {RS=" "; FS="/|\n";} { | |
10750 lt_foo=""; | |
10751 lt_count=0; | |
10752 for (lt_i = NF; lt_i > 0; lt_i--) { | |
10753 if ($lt_i != "" && $lt_i != ".") { | |
10754 if ($lt_i == "..") { | |
10755 lt_count++; | |
10756 } else { | |
10757 if (lt_count == 0) { | |
10758 lt_foo="/" $lt_i lt_foo; | |
10759 } else { | |
10760 lt_count--; | |
10761 } | |
10762 } | |
10763 } | |
10764 } | |
10765 if (lt_foo != "") { lt_freq[lt_foo]++; } | |
10766 if (lt_freq[lt_foo] == 1) { print lt_foo; } | |
10767 }'` | |
10768 # AWK program above erroneously prepends '/' to C:/dos/paths | |
10769 # for these hosts. | |
10770 case $host_os in | |
10771 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ | |
10772 $SED 's,/\([A-Za-z]:\),\1,g'` ;; | |
10773 esac | |
10774 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` | |
10775 else | |
10776 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10777 fi | |
10778 library_names_spec= | |
10779 libname_spec='lib$name' | |
10780 soname_spec= | |
10781 shrext_cmds=".so" | |
10782 postinstall_cmds= | |
10783 postuninstall_cmds= | |
10784 finish_cmds= | |
10785 finish_eval= | |
10786 shlibpath_var= | |
10787 shlibpath_overrides_runpath=unknown | |
10788 version_type=none | |
10789 dynamic_linker="$host_os ld.so" | |
10790 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10791 need_lib_prefix=unknown | |
10792 hardcode_into_libs=no | |
10793 | |
10794 # when you set need_version to no, make sure it does not cause -set_version | |
10795 # flags to be left without arguments | |
10796 need_version=unknown | |
10797 | |
10798 case $host_os in | |
10799 aix3*) | |
10800 version_type=linux # correct to gnu/linux during the next big refactor | |
10801 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10802 shlibpath_var=LIBPATH | |
10803 | |
10804 # AIX 3 has no versioning support, so we append a major version to the name. | |
10805 soname_spec='${libname}${release}${shared_ext}$major' | |
10806 ;; | |
10807 | |
10808 aix[4-9]*) | |
10809 version_type=linux # correct to gnu/linux during the next big refactor | |
10810 need_lib_prefix=no | |
10811 need_version=no | |
10812 hardcode_into_libs=yes | |
10813 if test "$host_cpu" = ia64; then | |
10814 # AIX 5 supports IA64 | |
10815 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10816 shlibpath_var=LD_LIBRARY_PATH | |
10817 else | |
10818 # With GCC up to 2.95.x, collect2 would create an import file | |
10819 # for dependence libraries. The import file would start with | |
10820 # the line `#! .'. This would cause the generated library to | |
10821 # depend on `.', always an invalid library. This was fixed in | |
10822 # development snapshots of GCC prior to 3.0. | |
10823 case $host_os in | |
10824 aix4 | aix4.[01] | aix4.[01].*) | |
10825 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10826 echo ' yes ' | |
10827 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
10828 : | |
10829 else | |
10830 can_build_shared=no | |
10831 fi | |
10832 ;; | |
10833 esac | |
10834 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10835 # soname into executable. Probably we can add versioning support to | |
10836 # collect2, so additional links can be useful in future. | |
10837 if test "$aix_use_runtimelinking" = yes; then | |
10838 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10839 # instead of lib<name>.a to let people know that these are not | |
10840 # typical AIX shared libraries. | |
10841 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10842 else | |
10843 # We preserve .a as extension for shared libraries through AIX4.2 | |
10844 # and later when we are not doing run time linking. | |
10845 library_names_spec='${libname}${release}.a $libname.a' | |
10846 soname_spec='${libname}${release}${shared_ext}$major' | |
10847 fi | |
10848 shlibpath_var=LIBPATH | |
10849 fi | |
10850 ;; | |
10851 | |
10852 amigaos*) | |
10853 case $host_cpu in | |
10854 powerpc) | |
10855 # Since July 2007 AmigaOS4 officially supports .so libraries. | |
10856 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
10857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10858 ;; | |
10859 m68k) | |
10860 library_names_spec='$libname.ixlibrary $libname.a' | |
10861 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10862 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' | |
10863 ;; | |
10864 esac | |
10865 ;; | |
10866 | |
10867 beos*) | |
10868 library_names_spec='${libname}${shared_ext}' | |
10869 dynamic_linker="$host_os ld.so" | |
10870 shlibpath_var=LIBRARY_PATH | |
10871 ;; | |
10872 | |
10873 bsdi[45]*) | |
10874 version_type=linux # correct to gnu/linux during the next big refactor | |
10875 need_version=no | |
10876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10877 soname_spec='${libname}${release}${shared_ext}$major' | |
10878 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10879 shlibpath_var=LD_LIBRARY_PATH | |
10880 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10881 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10882 # the default ld.so.conf also contains /usr/contrib/lib and | |
10883 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10884 # libtool to hard-code these into programs | |
10885 ;; | |
10886 | |
10887 cygwin* | mingw* | pw32* | cegcc*) | |
10888 version_type=windows | |
10889 shrext_cmds=".dll" | |
10890 need_version=no | |
10891 need_lib_prefix=no | |
10892 | |
10893 case $GCC,$cc_basename in | |
10894 yes,*) | |
10895 # gcc | |
10896 library_names_spec='$libname.dll.a' | |
10897 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10898 postinstall_cmds='base_file=`basename \${file}`~ | |
10899 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10900 dldir=$destdir/`dirname \$dlpath`~ | |
10901 test -d \$dldir || mkdir -p \$dldir~ | |
10902 $install_prog $dir/$dlname \$dldir/$dlname~ | |
10903 chmod a+x \$dldir/$dlname~ | |
10904 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
10905 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
10906 fi' | |
10907 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10908 dlpath=$dir/\$dldll~ | |
10909 $RM \$dlpath' | |
10910 shlibpath_overrides_runpath=yes | |
10911 | |
10912 case $host_os in | |
10913 cygwin*) | |
10914 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10915 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10916 | |
10917 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" | |
10918 ;; | |
10919 mingw* | cegcc*) | |
10920 # MinGW DLLs use traditional 'lib' prefix | |
10921 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10922 ;; | |
10923 pw32*) | |
10924 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10925 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10926 ;; | |
10927 esac | |
10928 dynamic_linker='Win32 ld.exe' | |
10929 ;; | |
10930 | |
10931 *,cl*) | |
10932 # Native MSVC | |
10933 libname_spec='$name' | |
10934 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10935 library_names_spec='${libname}.dll.lib' | |
10936 | |
10937 case $build_os in | |
10938 mingw*) | |
10939 sys_lib_search_path_spec= | |
10940 lt_save_ifs=$IFS | |
10941 IFS=';' | |
10942 for lt_path in $LIB | |
10943 do | |
10944 IFS=$lt_save_ifs | |
10945 # Let DOS variable expansion print the short 8.3 style file name. | |
10946 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
10947 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
10948 done | |
10949 IFS=$lt_save_ifs | |
10950 # Convert to MSYS style. | |
10951 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
10952 ;; | |
10953 cygwin*) | |
10954 # Convert to unix form, then to dos form, then back to unix form | |
10955 # but this time dos style (no spaces!) so that the unix form looks | |
10956 # like /cygdrive/c/PROGRA~1:/cygdr... | |
10957 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
10958 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
10959 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10960 ;; | |
10961 *) | |
10962 sys_lib_search_path_spec="$LIB" | |
10963 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
10964 # It is most probably a Windows format PATH. | |
10965 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10966 else | |
10967 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10968 fi | |
10969 # FIXME: find the short name or the path components, as spaces are | |
10970 # common. (e.g. "Program Files" -> "PROGRA~1") | |
10971 ;; | |
10972 esac | |
10973 | |
10974 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10975 postinstall_cmds='base_file=`basename \${file}`~ | |
10976 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
10977 dldir=$destdir/`dirname \$dlpath`~ | |
10978 test -d \$dldir || mkdir -p \$dldir~ | |
10979 $install_prog $dir/$dlname \$dldir/$dlname' | |
10980 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10981 dlpath=$dir/\$dldll~ | |
10982 $RM \$dlpath' | |
10983 shlibpath_overrides_runpath=yes | |
10984 dynamic_linker='Win32 link.exe' | |
10985 ;; | |
10986 | |
10987 *) | |
10988 # Assume MSVC wrapper | |
10989 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10990 dynamic_linker='Win32 ld.exe' | |
10991 ;; | |
10992 esac | |
10993 # FIXME: first we should search . and the directory the executable is in | |
10994 shlibpath_var=PATH | |
10995 ;; | |
10996 | |
10997 darwin* | rhapsody*) | |
10998 dynamic_linker="$host_os dyld" | |
10999 version_type=darwin | |
11000 need_lib_prefix=no | |
11001 need_version=no | |
11002 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
11003 soname_spec='${libname}${release}${major}$shared_ext' | |
11004 shlibpath_overrides_runpath=yes | |
11005 shlibpath_var=DYLD_LIBRARY_PATH | |
11006 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
11007 | |
11008 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" | |
11009 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
11010 ;; | |
11011 | |
11012 dgux*) | |
11013 version_type=linux # correct to gnu/linux during the next big refactor | |
11014 need_lib_prefix=no | |
11015 need_version=no | |
11016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
11017 soname_spec='${libname}${release}${shared_ext}$major' | |
11018 shlibpath_var=LD_LIBRARY_PATH | |
11019 ;; | |
11020 | |
11021 freebsd* | dragonfly*) | |
11022 # DragonFly does not have aout. When/if they implement a new | |
11023 # versioning mechanism, adjust this. | |
11024 if test -x /usr/bin/objformat; then | |
11025 objformat=`/usr/bin/objformat` | |
11026 else | |
11027 case $host_os in | |
11028 freebsd[23].*) objformat=aout ;; | |
11029 *) objformat=elf ;; | |
11030 esac | |
11031 fi | |
11032 version_type=freebsd-$objformat | |
11033 case $version_type in | |
11034 freebsd-elf*) | |
11035 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11036 need_version=no | |
11037 need_lib_prefix=no | |
11038 ;; | |
11039 freebsd-*) | |
11040 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
11041 need_version=yes | |
11042 ;; | |
11043 esac | |
11044 shlibpath_var=LD_LIBRARY_PATH | |
11045 case $host_os in | |
11046 freebsd2.*) | |
11047 shlibpath_overrides_runpath=yes | |
11048 ;; | |
11049 freebsd3.[01]* | freebsdelf3.[01]*) | |
11050 shlibpath_overrides_runpath=yes | |
11051 hardcode_into_libs=yes | |
11052 ;; | |
11053 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
11054 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
11055 shlibpath_overrides_runpath=no | |
11056 hardcode_into_libs=yes | |
11057 ;; | |
11058 *) # from 4.6 on, and DragonFly | |
11059 shlibpath_overrides_runpath=yes | |
11060 hardcode_into_libs=yes | |
11061 ;; | |
11062 esac | |
11063 ;; | |
11064 | |
11065 haiku*) | |
11066 version_type=linux # correct to gnu/linux during the next big refactor | |
11067 need_lib_prefix=no | |
11068 need_version=no | |
11069 dynamic_linker="$host_os runtime_loader" | |
11070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
11071 soname_spec='${libname}${release}${shared_ext}$major' | |
11072 shlibpath_var=LIBRARY_PATH | |
11073 shlibpath_overrides_runpath=yes | |
11074 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
11075 hardcode_into_libs=yes | |
11076 ;; | |
11077 | |
11078 hpux9* | hpux10* | hpux11*) | |
11079 # Give a soname corresponding to the major version so that dld.sl refuses to | |
11080 # link against other versions. | |
11081 version_type=sunos | |
11082 need_lib_prefix=no | |
11083 need_version=no | |
11084 case $host_cpu in | |
11085 ia64*) | |
11086 shrext_cmds='.so' | |
11087 hardcode_into_libs=yes | |
11088 dynamic_linker="$host_os dld.so" | |
11089 shlibpath_var=LD_LIBRARY_PATH | |
11090 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11092 soname_spec='${libname}${release}${shared_ext}$major' | |
11093 if test "X$HPUX_IA64_MODE" = X32; then | |
11094 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
11095 else | |
11096 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
11097 fi | |
11098 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11099 ;; | |
11100 hppa*64*) | |
11101 shrext_cmds='.sl' | |
11102 hardcode_into_libs=yes | |
11103 dynamic_linker="$host_os dld.sl" | |
11104 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
11105 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
11106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11107 soname_spec='${libname}${release}${shared_ext}$major' | |
11108 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
11109 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
11110 ;; | |
11111 *) | |
11112 shrext_cmds='.sl' | |
11113 dynamic_linker="$host_os dld.sl" | |
11114 shlibpath_var=SHLIB_PATH | |
11115 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
11116 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11117 soname_spec='${libname}${release}${shared_ext}$major' | |
11118 ;; | |
11119 esac | |
11120 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
11121 postinstall_cmds='chmod 555 $lib' | |
11122 # or fails outright, so override atomically: | |
11123 install_override_mode=555 | |
11124 ;; | |
11125 | |
11126 interix[3-9]*) | |
11127 version_type=linux # correct to gnu/linux during the next big refactor | |
11128 need_lib_prefix=no | |
11129 need_version=no | |
11130 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11131 soname_spec='${libname}${release}${shared_ext}$major' | |
11132 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
11133 shlibpath_var=LD_LIBRARY_PATH | |
11134 shlibpath_overrides_runpath=no | |
11135 hardcode_into_libs=yes | |
11136 ;; | |
11137 | |
11138 irix5* | irix6* | nonstopux*) | |
11139 case $host_os in | |
11140 nonstopux*) version_type=nonstopux ;; | |
11141 *) | |
11142 if test "$lt_cv_prog_gnu_ld" = yes; then | |
11143 version_type=linux # correct to gnu/linux during the next big refactor | |
11144 else | |
11145 version_type=irix | |
11146 fi ;; | |
11147 esac | |
11148 need_lib_prefix=no | |
11149 need_version=no | |
11150 soname_spec='${libname}${release}${shared_ext}$major' | |
11151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11152 case $host_os in | |
11153 irix5* | nonstopux*) | |
11154 libsuff= shlibsuff= | |
11155 ;; | |
11156 *) | |
11157 case $LD in # libtool.m4 will add one of these switches to LD | |
11158 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
11159 libsuff= shlibsuff= libmagic=32-bit;; | |
11160 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
11161 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
11162 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
11163 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
11164 *) libsuff= shlibsuff= libmagic=never-match;; | |
11165 esac | |
11166 ;; | |
11167 esac | |
11168 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
11169 shlibpath_overrides_runpath=no | |
11170 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
11171 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
11172 hardcode_into_libs=yes | |
11173 ;; | |
11174 | |
11175 # No shared lib support for Linux oldld, aout, or coff. | |
11176 linux*oldld* | linux*aout* | linux*coff*) | |
11177 dynamic_linker=no | |
11178 ;; | |
11179 | |
11180 # This must be glibc/ELF. | |
11181 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
11182 version_type=linux # correct to gnu/linux during the next big refactor | |
11183 need_lib_prefix=no | |
11184 need_version=no | |
11185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11186 soname_spec='${libname}${release}${shared_ext}$major' | |
11187 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
11188 shlibpath_var=LD_LIBRARY_PATH | |
11189 shlibpath_overrides_runpath=no | |
11190 | |
11191 # Some binutils ld are patched to set DT_RUNPATH | |
11192 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
11193 $as_echo_n "(cached) " >&6 | |
11194 else | |
11195 lt_cv_shlibpath_overrides_runpath=no | |
11196 save_LDFLAGS=$LDFLAGS | |
11197 save_libdir=$libdir | |
11198 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ | |
11199 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" | |
11200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11201 /* end confdefs.h. */ | |
11202 | |
11203 int | |
11204 main () | |
11205 { | |
11206 | |
11207 ; | |
11208 return 0; | |
11209 } | |
11210 _ACEOF | |
11211 if ac_fn_c_try_link "$LINENO"; then : | |
11212 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
11213 lt_cv_shlibpath_overrides_runpath=yes | |
11214 fi | |
11215 fi | |
11216 rm -f core conftest.err conftest.$ac_objext \ | |
11217 conftest$ac_exeext conftest.$ac_ext | |
11218 LDFLAGS=$save_LDFLAGS | |
11219 libdir=$save_libdir | |
11220 | |
11221 fi | |
11222 | |
11223 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
11224 | |
11225 # This implies no fast_install, which is unacceptable. | |
11226 # Some rework will be needed to allow for fast_install | |
11227 # before this can be enabled. | |
11228 hardcode_into_libs=yes | |
11229 | |
11230 # Append ld.so.conf contents to the search path | |
11231 if test -f /etc/ld.so.conf; then | |
11232 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' ' '` | |
11233 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
11234 fi | |
11235 | |
11236 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
11237 # powerpc, because MkLinux only supported shared libraries with the | |
11238 # GNU dynamic linker. Since this was broken with cross compilers, | |
11239 # most powerpc-linux boxes support dynamic linking these days and | |
11240 # people can always --disable-shared, the test was removed, and we | |
11241 # assume the GNU/Linux dynamic linker is in use. | |
11242 dynamic_linker='GNU/Linux ld.so' | |
11243 ;; | |
11244 | |
11245 netbsdelf*-gnu) | |
11246 version_type=linux | |
11247 need_lib_prefix=no | |
11248 need_version=no | |
11249 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11250 soname_spec='${libname}${release}${shared_ext}$major' | |
11251 shlibpath_var=LD_LIBRARY_PATH | |
11252 shlibpath_overrides_runpath=no | |
11253 hardcode_into_libs=yes | |
11254 dynamic_linker='NetBSD ld.elf_so' | |
11255 ;; | |
11256 | |
11257 netbsd*) | |
11258 version_type=sunos | |
11259 need_lib_prefix=no | |
11260 need_version=no | |
11261 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
11262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11263 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11264 dynamic_linker='NetBSD (a.out) ld.so' | |
11265 else | |
11266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
11267 soname_spec='${libname}${release}${shared_ext}$major' | |
11268 dynamic_linker='NetBSD ld.elf_so' | |
11269 fi | |
11270 shlibpath_var=LD_LIBRARY_PATH | |
11271 shlibpath_overrides_runpath=yes | |
11272 hardcode_into_libs=yes | |
11273 ;; | |
11274 | |
11275 newsos6) | |
11276 version_type=linux # correct to gnu/linux during the next big refactor | |
11277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11278 shlibpath_var=LD_LIBRARY_PATH | |
11279 shlibpath_overrides_runpath=yes | |
11280 ;; | |
11281 | |
11282 *nto* | *qnx*) | |
11283 version_type=qnx | |
11284 need_lib_prefix=no | |
11285 need_version=no | |
11286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11287 soname_spec='${libname}${release}${shared_ext}$major' | |
11288 shlibpath_var=LD_LIBRARY_PATH | |
11289 shlibpath_overrides_runpath=no | |
11290 hardcode_into_libs=yes | |
11291 dynamic_linker='ldqnx.so' | |
11292 ;; | |
11293 | |
11294 openbsd*) | |
11295 version_type=sunos | |
11296 sys_lib_dlsearch_path_spec="/usr/lib" | |
11297 need_lib_prefix=no | |
11298 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11299 case $host_os in | |
11300 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11301 *) need_version=no ;; | |
11302 esac | |
11303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11304 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11305 shlibpath_var=LD_LIBRARY_PATH | |
11306 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11307 case $host_os in | |
11308 openbsd2.[89] | openbsd2.[89].*) | |
11309 shlibpath_overrides_runpath=no | |
11310 ;; | |
11311 *) | |
11312 shlibpath_overrides_runpath=yes | |
11313 ;; | |
11314 esac | |
11315 else | |
11316 shlibpath_overrides_runpath=yes | |
11317 fi | |
11318 ;; | |
11319 | |
11320 os2*) | |
11321 libname_spec='$name' | |
11322 shrext_cmds=".dll" | |
11323 need_lib_prefix=no | |
11324 library_names_spec='$libname${shared_ext} $libname.a' | |
11325 dynamic_linker='OS/2 ld.exe' | |
11326 shlibpath_var=LIBPATH | |
11327 ;; | |
11328 | |
11329 osf3* | osf4* | osf5*) | |
11330 version_type=osf | |
11331 need_lib_prefix=no | |
11332 need_version=no | |
11333 soname_spec='${libname}${release}${shared_ext}$major' | |
11334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11335 shlibpath_var=LD_LIBRARY_PATH | |
11336 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11337 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11338 ;; | |
11339 | |
11340 rdos*) | |
11341 dynamic_linker=no | |
11342 ;; | |
11343 | |
11344 solaris*) | |
11345 version_type=linux # correct to gnu/linux during the next big refactor | |
11346 need_lib_prefix=no | |
11347 need_version=no | |
11348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11349 soname_spec='${libname}${release}${shared_ext}$major' | |
11350 shlibpath_var=LD_LIBRARY_PATH | |
11351 shlibpath_overrides_runpath=yes | |
11352 hardcode_into_libs=yes | |
11353 # ldd complains unless libraries are executable | |
11354 postinstall_cmds='chmod +x $lib' | |
11355 ;; | |
11356 | |
11357 sunos4*) | |
11358 version_type=sunos | |
11359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11360 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11361 shlibpath_var=LD_LIBRARY_PATH | |
11362 shlibpath_overrides_runpath=yes | |
11363 if test "$with_gnu_ld" = yes; then | |
11364 need_lib_prefix=no | |
11365 fi | |
11366 need_version=yes | |
11367 ;; | |
11368 | |
11369 sysv4 | sysv4.3*) | |
11370 version_type=linux # correct to gnu/linux during the next big refactor | |
11371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11372 soname_spec='${libname}${release}${shared_ext}$major' | |
11373 shlibpath_var=LD_LIBRARY_PATH | |
11374 case $host_vendor in | |
11375 sni) | |
11376 shlibpath_overrides_runpath=no | |
11377 need_lib_prefix=no | |
11378 runpath_var=LD_RUN_PATH | |
11379 ;; | |
11380 siemens) | |
11381 need_lib_prefix=no | |
11382 ;; | |
11383 motorola) | |
11384 need_lib_prefix=no | |
11385 need_version=no | |
11386 shlibpath_overrides_runpath=no | |
11387 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11388 ;; | |
11389 esac | |
11390 ;; | |
11391 | |
11392 sysv4*MP*) | |
11393 if test -d /usr/nec ;then | |
11394 version_type=linux # correct to gnu/linux during the next big refactor | |
11395 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11396 soname_spec='$libname${shared_ext}.$major' | |
11397 shlibpath_var=LD_LIBRARY_PATH | |
11398 fi | |
11399 ;; | |
11400 | |
11401 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
11402 version_type=freebsd-elf | |
11403 need_lib_prefix=no | |
11404 need_version=no | |
11405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11406 soname_spec='${libname}${release}${shared_ext}$major' | |
11407 shlibpath_var=LD_LIBRARY_PATH | |
11408 shlibpath_overrides_runpath=yes | |
11409 hardcode_into_libs=yes | |
11410 if test "$with_gnu_ld" = yes; then | |
11411 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11412 else | |
11413 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11414 case $host_os in | |
11415 sco3.2v5*) | |
11416 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11417 ;; | |
11418 esac | |
11419 fi | |
11420 sys_lib_dlsearch_path_spec='/usr/lib' | |
11421 ;; | |
11422 | |
11423 tpf*) | |
11424 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
11425 version_type=linux # correct to gnu/linux during the next big refactor | |
11426 need_lib_prefix=no | |
11427 need_version=no | |
11428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11429 shlibpath_var=LD_LIBRARY_PATH | |
11430 shlibpath_overrides_runpath=no | |
11431 hardcode_into_libs=yes | |
11432 ;; | |
11433 | |
11434 uts4*) | |
11435 version_type=linux # correct to gnu/linux during the next big refactor | |
11436 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11437 soname_spec='${libname}${release}${shared_ext}$major' | |
11438 shlibpath_var=LD_LIBRARY_PATH | |
11439 ;; | |
11440 | |
11441 *) | |
11442 dynamic_linker=no | |
11443 ;; | |
11444 esac | |
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
11446 $as_echo "$dynamic_linker" >&6; } | |
11447 test "$dynamic_linker" = no && can_build_shared=no | |
11448 | |
11449 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11450 if test "$GCC" = yes; then | |
11451 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11452 fi | |
11453 | |
11454 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
11455 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
11456 fi | |
11457 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
11458 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
11459 fi | |
11460 | |
11461 | |
11462 | |
11463 | |
11464 | |
11465 | |
11466 | |
11467 | |
11468 | |
11469 | |
11470 | |
11471 | |
11472 | |
11473 | |
11474 | |
11475 | |
11476 | |
11477 | |
11478 | |
11479 | |
11480 | |
11481 | |
11482 | |
11483 | |
11484 | |
11485 | |
11486 | |
11487 | |
11488 | |
11489 | |
11490 | |
11491 | |
11492 | |
11493 | |
11494 | |
11495 | |
11496 | |
11497 | |
11498 | |
11499 | |
11500 | |
11501 | |
11502 | |
11503 | |
11504 | |
11505 | |
11506 | |
11507 | |
11508 | |
11509 | |
11510 | |
11511 | |
11512 | |
11513 | |
11514 | |
11515 | |
11516 | |
11517 | |
11518 | |
11519 | |
11520 | |
11521 | |
11522 | |
11523 | |
11524 | |
11525 | |
11526 | |
11527 | |
11528 | |
11529 | |
11530 | |
11531 | |
11532 | |
11533 | |
11534 | |
11535 | |
11536 | |
11537 | |
11538 | |
11539 | |
11540 | |
11541 | |
11542 | |
11543 | |
11544 | |
11545 | |
11546 | |
11547 | |
11548 | |
11549 | |
11550 | |
11551 | |
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
11553 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
11554 hardcode_action= | |
11555 if test -n "$hardcode_libdir_flag_spec" || | |
11556 test -n "$runpath_var" || | |
11557 test "X$hardcode_automatic" = "Xyes" ; then | |
11558 | |
11559 # We can hardcode non-existent directories. | |
11560 if test "$hardcode_direct" != no && | |
11561 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11562 # have to relink, otherwise we might link with an installed library | |
11563 # when we should be linking with a yet-to-be-installed one | |
11564 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11565 test "$hardcode_minus_L" != no; then | |
11566 # Linking always hardcodes the temporary library directory. | |
11567 hardcode_action=relink | |
11568 else | |
11569 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11570 hardcode_action=immediate | |
11571 fi | |
11572 else | |
11573 # We cannot hardcode anything, or else we can only hardcode existing | |
11574 # directories. | |
11575 hardcode_action=unsupported | |
11576 fi | |
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 | |
11578 $as_echo "$hardcode_action" >&6; } | |
11579 | |
11580 if test "$hardcode_action" = relink || | |
11581 test "$inherit_rpath" = yes; then | |
11582 # Fast installation is not supported | |
11583 enable_fast_install=no | |
11584 elif test "$shlibpath_overrides_runpath" = yes || | |
11585 test "$enable_shared" = no; then | |
11586 # Fast installation is not necessary | |
11587 enable_fast_install=needless | |
11588 fi | |
11589 | |
11590 | |
11591 | |
11592 | |
11593 | |
11594 | |
11595 if test "x$enable_dlopen" != xyes; then | |
11596 enable_dlopen=unknown | |
11597 enable_dlopen_self=unknown | |
11598 enable_dlopen_self_static=unknown | |
11599 else | |
11600 lt_cv_dlopen=no | |
11601 lt_cv_dlopen_libs= | |
11602 | |
11603 case $host_os in | |
11604 beos*) | |
11605 lt_cv_dlopen="load_add_on" | |
11606 lt_cv_dlopen_libs= | |
11607 lt_cv_dlopen_self=yes | |
11608 ;; | |
11609 | |
11610 mingw* | pw32* | cegcc*) | |
11611 lt_cv_dlopen="LoadLibrary" | |
11612 lt_cv_dlopen_libs= | |
11613 ;; | |
11614 | |
11615 cygwin*) | |
11616 lt_cv_dlopen="dlopen" | |
11617 lt_cv_dlopen_libs= | |
11618 ;; | |
11619 | |
11620 darwin*) | |
11621 # if libdl is installed we need to link against it | |
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11623 $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11624 if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11625 $as_echo_n "(cached) " >&6 | |
11626 else | |
11627 ac_check_lib_save_LIBS=$LIBS | |
11628 LIBS="-ldl $LIBS" | |
11629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11630 /* end confdefs.h. */ | |
11631 | |
11632 /* Override any GCC internal prototype to avoid an error. | |
11633 Use char because int might match the return type of a GCC | |
11634 builtin and then its argument prototype would still apply. */ | |
11635 #ifdef __cplusplus | |
11636 extern "C" | |
11637 #endif | |
11638 char dlopen (); | |
11639 int | |
11640 main () | |
11641 { | |
11642 return dlopen (); | |
11643 ; | |
11644 return 0; | |
11645 } | |
11646 _ACEOF | |
11647 if ac_fn_c_try_link "$LINENO"; then : | |
11648 ac_cv_lib_dl_dlopen=yes | |
11649 else | |
11650 ac_cv_lib_dl_dlopen=no | |
11651 fi | |
11652 rm -f core conftest.err conftest.$ac_objext \ | |
11653 conftest$ac_exeext conftest.$ac_ext | |
11654 LIBS=$ac_check_lib_save_LIBS | |
11655 fi | |
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11657 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11658 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11659 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11660 else | |
11661 | |
11662 lt_cv_dlopen="dyld" | |
11663 lt_cv_dlopen_libs= | |
11664 lt_cv_dlopen_self=yes | |
11665 | |
11666 fi | |
11667 | |
11668 ;; | |
11669 | |
11670 *) | |
11671 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" | |
11672 if test "x$ac_cv_func_shl_load" = xyes; then : | |
11673 lt_cv_dlopen="shl_load" | |
11674 else | |
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 | |
11676 $as_echo_n "checking for shl_load in -ldld... " >&6; } | |
11677 if ${ac_cv_lib_dld_shl_load+:} false; then : | |
11678 $as_echo_n "(cached) " >&6 | |
11679 else | |
11680 ac_check_lib_save_LIBS=$LIBS | |
11681 LIBS="-ldld $LIBS" | |
11682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11683 /* end confdefs.h. */ | |
11684 | |
11685 /* Override any GCC internal prototype to avoid an error. | |
11686 Use char because int might match the return type of a GCC | |
11687 builtin and then its argument prototype would still apply. */ | |
11688 #ifdef __cplusplus | |
11689 extern "C" | |
11690 #endif | |
11691 char shl_load (); | |
11692 int | |
11693 main () | |
11694 { | |
11695 return shl_load (); | |
11696 ; | |
11697 return 0; | |
11698 } | |
11699 _ACEOF | |
11700 if ac_fn_c_try_link "$LINENO"; then : | |
11701 ac_cv_lib_dld_shl_load=yes | |
11702 else | |
11703 ac_cv_lib_dld_shl_load=no | |
11704 fi | |
11705 rm -f core conftest.err conftest.$ac_objext \ | |
11706 conftest$ac_exeext conftest.$ac_ext | |
11707 LIBS=$ac_check_lib_save_LIBS | |
11708 fi | |
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 | |
11710 $as_echo "$ac_cv_lib_dld_shl_load" >&6; } | |
11711 if test "x$ac_cv_lib_dld_shl_load" = xyes; then : | |
11712 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" | |
11713 else | |
11714 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" | |
11715 if test "x$ac_cv_func_dlopen" = xyes; then : | |
11716 lt_cv_dlopen="dlopen" | |
11717 else | |
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 | |
11719 $as_echo_n "checking for dlopen in -ldl... " >&6; } | |
11720 if ${ac_cv_lib_dl_dlopen+:} false; then : | |
11721 $as_echo_n "(cached) " >&6 | |
11722 else | |
11723 ac_check_lib_save_LIBS=$LIBS | |
11724 LIBS="-ldl $LIBS" | |
11725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11726 /* end confdefs.h. */ | |
11727 | |
11728 /* Override any GCC internal prototype to avoid an error. | |
11729 Use char because int might match the return type of a GCC | |
11730 builtin and then its argument prototype would still apply. */ | |
11731 #ifdef __cplusplus | |
11732 extern "C" | |
11733 #endif | |
11734 char dlopen (); | |
11735 int | |
11736 main () | |
11737 { | |
11738 return dlopen (); | |
11739 ; | |
11740 return 0; | |
11741 } | |
11742 _ACEOF | |
11743 if ac_fn_c_try_link "$LINENO"; then : | |
11744 ac_cv_lib_dl_dlopen=yes | |
11745 else | |
11746 ac_cv_lib_dl_dlopen=no | |
11747 fi | |
11748 rm -f core conftest.err conftest.$ac_objext \ | |
11749 conftest$ac_exeext conftest.$ac_ext | |
11750 LIBS=$ac_check_lib_save_LIBS | |
11751 fi | |
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 | |
11753 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } | |
11754 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : | |
11755 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11756 else | |
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 | |
11758 $as_echo_n "checking for dlopen in -lsvld... " >&6; } | |
11759 if ${ac_cv_lib_svld_dlopen+:} false; then : | |
11760 $as_echo_n "(cached) " >&6 | |
11761 else | |
11762 ac_check_lib_save_LIBS=$LIBS | |
11763 LIBS="-lsvld $LIBS" | |
11764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11765 /* end confdefs.h. */ | |
11766 | |
11767 /* Override any GCC internal prototype to avoid an error. | |
11768 Use char because int might match the return type of a GCC | |
11769 builtin and then its argument prototype would still apply. */ | |
11770 #ifdef __cplusplus | |
11771 extern "C" | |
11772 #endif | |
11773 char dlopen (); | |
11774 int | |
11775 main () | |
11776 { | |
11777 return dlopen (); | |
11778 ; | |
11779 return 0; | |
11780 } | |
11781 _ACEOF | |
11782 if ac_fn_c_try_link "$LINENO"; then : | |
11783 ac_cv_lib_svld_dlopen=yes | |
11784 else | |
11785 ac_cv_lib_svld_dlopen=no | |
11786 fi | |
11787 rm -f core conftest.err conftest.$ac_objext \ | |
11788 conftest$ac_exeext conftest.$ac_ext | |
11789 LIBS=$ac_check_lib_save_LIBS | |
11790 fi | |
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 | |
11792 $as_echo "$ac_cv_lib_svld_dlopen" >&6; } | |
11793 if test "x$ac_cv_lib_svld_dlopen" = xyes; then : | |
11794 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
11795 else | |
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 | |
11797 $as_echo_n "checking for dld_link in -ldld... " >&6; } | |
11798 if ${ac_cv_lib_dld_dld_link+:} false; then : | |
11799 $as_echo_n "(cached) " >&6 | |
11800 else | |
11801 ac_check_lib_save_LIBS=$LIBS | |
11802 LIBS="-ldld $LIBS" | |
11803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
11804 /* end confdefs.h. */ | |
11805 | |
11806 /* Override any GCC internal prototype to avoid an error. | |
11807 Use char because int might match the return type of a GCC | |
11808 builtin and then its argument prototype would still apply. */ | |
11809 #ifdef __cplusplus | |
11810 extern "C" | |
11811 #endif | |
11812 char dld_link (); | |
11813 int | |
11814 main () | |
11815 { | |
11816 return dld_link (); | |
11817 ; | |
11818 return 0; | |
11819 } | |
11820 _ACEOF | |
11821 if ac_fn_c_try_link "$LINENO"; then : | |
11822 ac_cv_lib_dld_dld_link=yes | |
11823 else | |
11824 ac_cv_lib_dld_dld_link=no | |
11825 fi | |
11826 rm -f core conftest.err conftest.$ac_objext \ | |
11827 conftest$ac_exeext conftest.$ac_ext | |
11828 LIBS=$ac_check_lib_save_LIBS | |
11829 fi | |
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 | |
11831 $as_echo "$ac_cv_lib_dld_dld_link" >&6; } | |
11832 if test "x$ac_cv_lib_dld_dld_link" = xyes; then : | |
11833 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" | |
11834 fi | |
11835 | |
11836 | |
11837 fi | |
11838 | |
11839 | |
11840 fi | |
11841 | |
11842 | |
11843 fi | |
11844 | |
11845 | |
11846 fi | |
11847 | |
11848 | |
11849 fi | |
11850 | |
11851 ;; | |
11852 esac | |
11853 | |
11854 if test "x$lt_cv_dlopen" != xno; then | |
11855 enable_dlopen=yes | |
11856 else | |
11857 enable_dlopen=no | |
11858 fi | |
11859 | |
11860 case $lt_cv_dlopen in | |
11861 dlopen) | |
11862 save_CPPFLAGS="$CPPFLAGS" | |
11863 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11864 | |
11865 save_LDFLAGS="$LDFLAGS" | |
11866 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11867 | |
11868 save_LIBS="$LIBS" | |
11869 LIBS="$lt_cv_dlopen_libs $LIBS" | |
11870 | |
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 | |
11872 $as_echo_n "checking whether a program can dlopen itself... " >&6; } | |
11873 if ${lt_cv_dlopen_self+:} false; then : | |
11874 $as_echo_n "(cached) " >&6 | |
11875 else | |
11876 if test "$cross_compiling" = yes; then : | |
11877 lt_cv_dlopen_self=cross | |
11878 else | |
11879 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11880 lt_status=$lt_dlunknown | |
11881 cat > conftest.$ac_ext <<_LT_EOF | |
11882 #line $LINENO "configure" | |
11883 #include "confdefs.h" | |
11884 | |
11885 #if HAVE_DLFCN_H | |
11886 #include <dlfcn.h> | |
11887 #endif | |
11888 | |
11889 #include <stdio.h> | |
11890 | |
11891 #ifdef RTLD_GLOBAL | |
11892 # define LT_DLGLOBAL RTLD_GLOBAL | |
11893 #else | |
11894 # ifdef DL_GLOBAL | |
11895 # define LT_DLGLOBAL DL_GLOBAL | |
11896 # else | |
11897 # define LT_DLGLOBAL 0 | |
11898 # endif | |
11899 #endif | |
11900 | |
11901 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11902 find out it does not work in some platform. */ | |
11903 #ifndef LT_DLLAZY_OR_NOW | |
11904 # ifdef RTLD_LAZY | |
11905 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11906 # else | |
11907 # ifdef DL_LAZY | |
11908 # define LT_DLLAZY_OR_NOW DL_LAZY | |
11909 # else | |
11910 # ifdef RTLD_NOW | |
11911 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11912 # else | |
11913 # ifdef DL_NOW | |
11914 # define LT_DLLAZY_OR_NOW DL_NOW | |
11915 # else | |
11916 # define LT_DLLAZY_OR_NOW 0 | |
11917 # endif | |
11918 # endif | |
11919 # endif | |
11920 # endif | |
11921 #endif | |
11922 | |
11923 /* When -fvisbility=hidden is used, assume the code has been annotated | |
11924 correspondingly for the symbols needed. */ | |
11925 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
11926 int fnord () __attribute__((visibility("default"))); | |
11927 #endif | |
11928 | |
11929 int fnord () { return 42; } | |
11930 int main () | |
11931 { | |
11932 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11933 int status = $lt_dlunknown; | |
11934 | |
11935 if (self) | |
11936 { | |
11937 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11938 else | |
11939 { | |
11940 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11941 else puts (dlerror ()); | |
11942 } | |
11943 /* dlclose (self); */ | |
11944 } | |
11945 else | |
11946 puts (dlerror ()); | |
11947 | |
11948 return status; | |
11949 } | |
11950 _LT_EOF | |
11951 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
11952 (eval $ac_link) 2>&5 | |
11953 ac_status=$? | |
11954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
11955 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11956 (./conftest; exit; ) >&5 2>/dev/null | |
11957 lt_status=$? | |
11958 case x$lt_status in | |
11959 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11960 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11961 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11962 esac | |
11963 else : | |
11964 # compilation failed | |
11965 lt_cv_dlopen_self=no | |
11966 fi | |
11967 fi | |
11968 rm -fr conftest* | |
11969 | |
11970 | |
11971 fi | |
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 | |
11973 $as_echo "$lt_cv_dlopen_self" >&6; } | |
11974 | |
11975 if test "x$lt_cv_dlopen_self" = xyes; then | |
11976 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 | |
11978 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } | |
11979 if ${lt_cv_dlopen_self_static+:} false; then : | |
11980 $as_echo_n "(cached) " >&6 | |
11981 else | |
11982 if test "$cross_compiling" = yes; then : | |
11983 lt_cv_dlopen_self_static=cross | |
11984 else | |
11985 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11986 lt_status=$lt_dlunknown | |
11987 cat > conftest.$ac_ext <<_LT_EOF | |
11988 #line $LINENO "configure" | |
11989 #include "confdefs.h" | |
11990 | |
11991 #if HAVE_DLFCN_H | |
11992 #include <dlfcn.h> | |
11993 #endif | |
11994 | |
11995 #include <stdio.h> | |
11996 | |
11997 #ifdef RTLD_GLOBAL | |
11998 # define LT_DLGLOBAL RTLD_GLOBAL | |
11999 #else | |
12000 # ifdef DL_GLOBAL | |
12001 # define LT_DLGLOBAL DL_GLOBAL | |
12002 # else | |
12003 # define LT_DLGLOBAL 0 | |
12004 # endif | |
12005 #endif | |
12006 | |
12007 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
12008 find out it does not work in some platform. */ | |
12009 #ifndef LT_DLLAZY_OR_NOW | |
12010 # ifdef RTLD_LAZY | |
12011 # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
12012 # else | |
12013 # ifdef DL_LAZY | |
12014 # define LT_DLLAZY_OR_NOW DL_LAZY | |
12015 # else | |
12016 # ifdef RTLD_NOW | |
12017 # define LT_DLLAZY_OR_NOW RTLD_NOW | |
12018 # else | |
12019 # ifdef DL_NOW | |
12020 # define LT_DLLAZY_OR_NOW DL_NOW | |
12021 # else | |
12022 # define LT_DLLAZY_OR_NOW 0 | |
12023 # endif | |
12024 # endif | |
12025 # endif | |
12026 # endif | |
12027 #endif | |
12028 | |
12029 /* When -fvisbility=hidden is used, assume the code has been annotated | |
12030 correspondingly for the symbols needed. */ | |
12031 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) | |
12032 int fnord () __attribute__((visibility("default"))); | |
12033 #endif | |
12034 | |
12035 int fnord () { return 42; } | |
12036 int main () | |
12037 { | |
12038 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
12039 int status = $lt_dlunknown; | |
12040 | |
12041 if (self) | |
12042 { | |
12043 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
12044 else | |
12045 { | |
12046 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
12047 else puts (dlerror ()); | |
12048 } | |
12049 /* dlclose (self); */ | |
12050 } | |
12051 else | |
12052 puts (dlerror ()); | |
12053 | |
12054 return status; | |
12055 } | |
12056 _LT_EOF | |
12057 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 | |
12058 (eval $ac_link) 2>&5 | |
12059 ac_status=$? | |
12060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
12061 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then | |
12062 (./conftest; exit; ) >&5 2>/dev/null | |
12063 lt_status=$? | |
12064 case x$lt_status in | |
12065 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
12066 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
12067 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
12068 esac | |
12069 else : | |
12070 # compilation failed | |
12071 lt_cv_dlopen_self_static=no | |
12072 fi | |
12073 fi | |
12074 rm -fr conftest* | |
12075 | |
12076 | |
12077 fi | |
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 | |
12079 $as_echo "$lt_cv_dlopen_self_static" >&6; } | |
12080 fi | |
12081 | |
12082 CPPFLAGS="$save_CPPFLAGS" | |
12083 LDFLAGS="$save_LDFLAGS" | |
12084 LIBS="$save_LIBS" | |
12085 ;; | |
12086 esac | |
12087 | |
12088 case $lt_cv_dlopen_self in | |
12089 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
12090 *) enable_dlopen_self=unknown ;; | |
12091 esac | |
12092 | |
12093 case $lt_cv_dlopen_self_static in | |
12094 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12095 *) enable_dlopen_self_static=unknown ;; | |
12096 esac | |
12097 fi | |
12098 | |
12099 | |
12100 | |
12101 | |
12102 | |
12103 | |
12104 | |
12105 | |
12106 | |
12107 | |
12108 | |
12109 | |
12110 | |
12111 | |
12112 | |
12113 | |
12114 | |
12115 striplib= | |
12116 old_striplib= | |
12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 | |
12118 $as_echo_n "checking whether stripping libraries is possible... " >&6; } | |
12119 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then | |
12120 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
12121 test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12123 $as_echo "yes" >&6; } | |
12124 else | |
12125 # FIXME - insert some real tests, host_os isn't really good enough | |
12126 case $host_os in | |
12127 darwin*) | |
12128 if test -n "$STRIP" ; then | |
12129 striplib="$STRIP -x" | |
12130 old_striplib="$STRIP -S" | |
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
12132 $as_echo "yes" >&6; } | |
12133 else | |
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12135 $as_echo "no" >&6; } | |
12136 fi | |
12137 ;; | |
12138 *) | |
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12140 $as_echo "no" >&6; } | |
12141 ;; | |
12142 esac | |
12143 fi | |
12144 | |
12145 | |
12146 | |
12147 | |
12148 | |
12149 | |
12150 | |
12151 | |
12152 | |
12153 | |
12154 | |
12155 | |
12156 # Report which library types will actually be built | |
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 | |
12158 $as_echo_n "checking if libtool supports shared libraries... " >&6; } | |
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 | |
12160 $as_echo "$can_build_shared" >&6; } | |
12161 | |
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 | |
12163 $as_echo_n "checking whether to build shared libraries... " >&6; } | |
12164 test "$can_build_shared" = "no" && enable_shared=no | |
12165 | |
12166 # On AIX, shared libraries and static libraries use the same namespace, and | |
12167 # are all built from PIC. | |
12168 case $host_os in | |
12169 aix3*) | |
12170 test "$enable_shared" = yes && enable_static=no | |
12171 if test -n "$RANLIB"; then | |
12172 archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12173 postinstall_cmds='$RANLIB $lib' | |
12174 fi | |
12175 ;; | |
12176 | |
12177 aix[4-9]*) | |
12178 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12179 test "$enable_shared" = yes && enable_static=no | |
12180 fi | |
12181 ;; | |
12182 esac | |
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 | |
12184 $as_echo "$enable_shared" >&6; } | |
12185 | |
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 | |
12187 $as_echo_n "checking whether to build static libraries... " >&6; } | |
12188 # Make sure either enable_shared or enable_static is yes. | |
12189 test "$enable_shared" = yes || enable_static=yes | |
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 | |
12191 $as_echo "$enable_static" >&6; } | |
12192 | |
12193 | |
12194 | |
12195 | |
12196 fi | |
12197 ac_ext=c | |
12198 ac_cpp='$CPP $CPPFLAGS' | |
12199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12201 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12202 | |
12203 CC="$lt_save_CC" | |
12204 | |
12205 if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
12206 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
12207 (test "X$CXX" != "Xg++"))) ; then | |
12208 ac_ext=cpp | |
12209 ac_cpp='$CXXCPP $CPPFLAGS' | |
12210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
12214 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
12215 if test -z "$CXXCPP"; then | |
12216 if ${ac_cv_prog_CXXCPP+:} false; then : | |
12217 $as_echo_n "(cached) " >&6 | |
12218 else | |
12219 # Double quotes because CXXCPP needs to be expanded | |
12220 for CXXCPP in "$CXX -E" "/lib/cpp" | |
12221 do | |
12222 ac_preproc_ok=false | |
12223 for ac_cxx_preproc_warn_flag in '' yes | |
12224 do | |
12225 # Use a header file that comes with gcc, so configuring glibc | |
12226 # with a fresh cross-compiler works. | |
12227 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12228 # <limits.h> exists even on freestanding compilers. | |
12229 # On the NeXT, cc -E runs the code through the compiler's parser, | |
12230 # not just through cpp. "Syntax error" is here to catch this case. | |
12231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12232 /* end confdefs.h. */ | |
12233 #ifdef __STDC__ | |
12234 # include <limits.h> | |
12235 #else | |
12236 # include <assert.h> | |
12237 #endif | |
12238 Syntax error | |
12239 _ACEOF | |
12240 if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12241 | |
12242 else | |
12243 # Broken: fails on valid input. | |
12244 continue | |
12245 fi | |
12246 rm -f conftest.err conftest.i conftest.$ac_ext | |
12247 | |
12248 # OK, works on sane cases. Now check whether nonexistent headers | |
12249 # can be detected and how. | |
12250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12251 /* end confdefs.h. */ | |
12252 #include <ac_nonexistent.h> | |
12253 _ACEOF | |
12254 if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12255 # Broken: success on invalid input. | |
12256 continue | |
12257 else | |
12258 # Passes both tests. | |
12259 ac_preproc_ok=: | |
12260 break | |
12261 fi | |
12262 rm -f conftest.err conftest.i conftest.$ac_ext | |
12263 | |
12264 done | |
12265 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12266 rm -f conftest.i conftest.err conftest.$ac_ext | |
12267 if $ac_preproc_ok; then : | |
12268 break | |
12269 fi | |
12270 | |
12271 done | |
12272 ac_cv_prog_CXXCPP=$CXXCPP | |
12273 | |
12274 fi | |
12275 CXXCPP=$ac_cv_prog_CXXCPP | |
12276 else | |
12277 ac_cv_prog_CXXCPP=$CXXCPP | |
12278 fi | |
12279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
12280 $as_echo "$CXXCPP" >&6; } | |
12281 ac_preproc_ok=false | |
12282 for ac_cxx_preproc_warn_flag in '' yes | |
12283 do | |
12284 # Use a header file that comes with gcc, so configuring glibc | |
12285 # with a fresh cross-compiler works. | |
12286 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
12287 # <limits.h> exists even on freestanding compilers. | |
12288 # On the NeXT, cc -E runs the code through the compiler's parser, | |
12289 # not just through cpp. "Syntax error" is here to catch this case. | |
12290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12291 /* end confdefs.h. */ | |
12292 #ifdef __STDC__ | |
12293 # include <limits.h> | |
12294 #else | |
12295 # include <assert.h> | |
12296 #endif | |
12297 Syntax error | |
12298 _ACEOF | |
12299 if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12300 | |
12301 else | |
12302 # Broken: fails on valid input. | |
12303 continue | |
12304 fi | |
12305 rm -f conftest.err conftest.i conftest.$ac_ext | |
12306 | |
12307 # OK, works on sane cases. Now check whether nonexistent headers | |
12308 # can be detected and how. | |
12309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12310 /* end confdefs.h. */ | |
12311 #include <ac_nonexistent.h> | |
12312 _ACEOF | |
12313 if ac_fn_cxx_try_cpp "$LINENO"; then : | |
12314 # Broken: success on invalid input. | |
12315 continue | |
12316 else | |
12317 # Passes both tests. | |
12318 ac_preproc_ok=: | |
12319 break | |
12320 fi | |
12321 rm -f conftest.err conftest.i conftest.$ac_ext | |
12322 | |
12323 done | |
12324 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
12325 rm -f conftest.i conftest.err conftest.$ac_ext | |
12326 if $ac_preproc_ok; then : | |
12327 | |
12328 else | |
12329 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
12330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
12331 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check | |
12332 See \`config.log' for more details" "$LINENO" 5; } | |
12333 fi | |
12334 | |
12335 ac_ext=c | |
12336 ac_cpp='$CPP $CPPFLAGS' | |
12337 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12338 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12339 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12340 | |
12341 else | |
12342 _lt_caught_CXX_error=yes | |
12343 fi | |
12344 | |
12345 ac_ext=cpp | |
12346 ac_cpp='$CXXCPP $CPPFLAGS' | |
12347 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12348 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12349 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12350 | |
12351 archive_cmds_need_lc_CXX=no | |
12352 allow_undefined_flag_CXX= | |
12353 always_export_symbols_CXX=no | |
12354 archive_expsym_cmds_CXX= | |
12355 compiler_needs_object_CXX=no | |
12356 export_dynamic_flag_spec_CXX= | |
12357 hardcode_direct_CXX=no | |
12358 hardcode_direct_absolute_CXX=no | |
12359 hardcode_libdir_flag_spec_CXX= | |
12360 hardcode_libdir_separator_CXX= | |
12361 hardcode_minus_L_CXX=no | |
12362 hardcode_shlibpath_var_CXX=unsupported | |
12363 hardcode_automatic_CXX=no | |
12364 inherit_rpath_CXX=no | |
12365 module_cmds_CXX= | |
12366 module_expsym_cmds_CXX= | |
12367 link_all_deplibs_CXX=unknown | |
12368 old_archive_cmds_CXX=$old_archive_cmds | |
12369 reload_flag_CXX=$reload_flag | |
12370 reload_cmds_CXX=$reload_cmds | |
12371 no_undefined_flag_CXX= | |
12372 whole_archive_flag_spec_CXX= | |
12373 enable_shared_with_static_runtimes_CXX=no | |
12374 | |
12375 # Source file extension for C++ test sources. | |
12376 ac_ext=cpp | |
12377 | |
12378 # Object file extension for compiled C++ test sources. | |
12379 objext=o | |
12380 objext_CXX=$objext | |
12381 | |
12382 # No sense in running all these tests if we already determined that | |
12383 # the CXX compiler isn't working. Some variables (like enable_shared) | |
12384 # are currently assumed to apply to all compilers on this platform, | |
12385 # and will be corrupted by setting them based on a non-working compiler. | |
12386 if test "$_lt_caught_CXX_error" != yes; then | |
12387 # Code to be used in simple compile tests | |
12388 lt_simple_compile_test_code="int some_variable = 0;" | |
12389 | |
12390 # Code to be used in simple link tests | |
12391 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' | |
12392 | |
12393 # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
12394 | |
12395 | |
12396 | |
12397 | |
12398 | |
12399 | |
12400 # If no C compiler was specified, use CC. | |
12401 LTCC=${LTCC-"$CC"} | |
12402 | |
12403 # If no C compiler flags were specified, use CFLAGS. | |
12404 LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
12405 | |
12406 # Allow CC to be a program name with arguments. | |
12407 compiler=$CC | |
12408 | |
12409 | |
12410 # save warnings/boilerplate of simple test code | |
12411 ac_outfile=conftest.$ac_objext | |
12412 echo "$lt_simple_compile_test_code" >conftest.$ac_ext | |
12413 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12414 _lt_compiler_boilerplate=`cat conftest.err` | |
12415 $RM conftest* | |
12416 | |
12417 ac_outfile=conftest.$ac_objext | |
12418 echo "$lt_simple_link_test_code" >conftest.$ac_ext | |
12419 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12420 _lt_linker_boilerplate=`cat conftest.err` | |
12421 $RM -r conftest* | |
12422 | |
12423 | |
12424 # Allow CC to be a program name with arguments. | |
12425 lt_save_CC=$CC | |
12426 lt_save_CFLAGS=$CFLAGS | |
12427 lt_save_LD=$LD | |
12428 lt_save_GCC=$GCC | |
12429 GCC=$GXX | |
12430 lt_save_with_gnu_ld=$with_gnu_ld | |
12431 lt_save_path_LD=$lt_cv_path_LD | |
12432 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
12433 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
12434 else | |
12435 $as_unset lt_cv_prog_gnu_ld | |
12436 fi | |
12437 if test -n "${lt_cv_path_LDCXX+set}"; then | |
12438 lt_cv_path_LD=$lt_cv_path_LDCXX | |
12439 else | |
12440 $as_unset lt_cv_path_LD | |
12441 fi | |
12442 test -z "${LDCXX+set}" || LD=$LDCXX | |
12443 CC=${CXX-"c++"} | |
12444 CFLAGS=$CXXFLAGS | |
12445 compiler=$CC | |
12446 compiler_CXX=$CC | |
12447 for cc_temp in $compiler""; do | |
12448 case $cc_temp in | |
12449 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
12450 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
12451 \-*) ;; | |
12452 *) break;; | |
12453 esac | |
12454 done | |
12455 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` | |
12456 | |
12457 | |
12458 if test -n "$compiler"; then | |
12459 # We don't want -fno-exception when compiling C++ code, so set the | |
12460 # no_builtin_flag separately | |
12461 if test "$GXX" = yes; then | |
12462 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
12463 else | |
12464 lt_prog_compiler_no_builtin_flag_CXX= | |
12465 fi | |
12466 | |
12467 if test "$GXX" = yes; then | |
12468 # Set up default GNU C++ configuration | |
12469 | |
12470 | |
12471 | |
12472 # Check whether --with-gnu-ld was given. | |
12473 if test "${with_gnu_ld+set}" = set; then : | |
12474 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
12475 else | |
12476 with_gnu_ld=no | |
12477 fi | |
12478 | |
12479 ac_prog=ld | |
12480 if test "$GCC" = yes; then | |
12481 # Check if gcc -print-prog-name=ld gives a path. | |
12482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 | |
12483 $as_echo_n "checking for ld used by $CC... " >&6; } | |
12484 case $host in | |
12485 *-*-mingw*) | |
12486 # gcc leaves a trailing carriage return which upsets mingw | |
12487 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
12488 *) | |
12489 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
12490 esac | |
12491 case $ac_prog in | |
12492 # Accept absolute paths. | |
12493 [\\/]* | ?:[\\/]*) | |
12494 re_direlt='/[^/][^/]*/\.\./' | |
12495 # Canonicalize the pathname of ld | |
12496 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` | |
12497 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do | |
12498 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` | |
12499 done | |
12500 test -z "$LD" && LD="$ac_prog" | |
12501 ;; | |
12502 "") | |
12503 # If it fails, then pretend we aren't using GCC. | |
12504 ac_prog=ld | |
12505 ;; | |
12506 *) | |
12507 # If it is relative, then search for the first ld in PATH. | |
12508 with_gnu_ld=unknown | |
12509 ;; | |
12510 esac | |
12511 elif test "$with_gnu_ld" = yes; then | |
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 | |
12513 $as_echo_n "checking for GNU ld... " >&6; } | |
12514 else | |
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 | |
12516 $as_echo_n "checking for non-GNU ld... " >&6; } | |
12517 fi | |
12518 if ${lt_cv_path_LD+:} false; then : | |
12519 $as_echo_n "(cached) " >&6 | |
12520 else | |
12521 if test -z "$LD"; then | |
12522 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
12523 for ac_dir in $PATH; do | |
12524 IFS="$lt_save_ifs" | |
12525 test -z "$ac_dir" && ac_dir=. | |
12526 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
12527 lt_cv_path_LD="$ac_dir/$ac_prog" | |
12528 # Check to see if the program is GNU ld. I'd rather use --version, | |
12529 # but apparently some variants of GNU ld only accept -v. | |
12530 # Break only if it was the GNU/non-GNU ld that we prefer. | |
12531 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
12532 *GNU* | *'with BFD'*) | |
12533 test "$with_gnu_ld" != no && break | |
12534 ;; | |
12535 *) | |
12536 test "$with_gnu_ld" != yes && break | |
12537 ;; | |
12538 esac | |
12539 fi | |
12540 done | |
12541 IFS="$lt_save_ifs" | |
12542 else | |
12543 lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
12544 fi | |
12545 fi | |
12546 | |
12547 LD="$lt_cv_path_LD" | |
12548 if test -n "$LD"; then | |
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 | |
12550 $as_echo "$LD" >&6; } | |
12551 else | |
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
12553 $as_echo "no" >&6; } | |
12554 fi | |
12555 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 | |
12556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 | |
12557 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } | |
12558 if ${lt_cv_prog_gnu_ld+:} false; then : | |
12559 $as_echo_n "(cached) " >&6 | |
12560 else | |
12561 # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
12562 case `$LD -v 2>&1 </dev/null` in | |
12563 *GNU* | *'with BFD'*) | |
12564 lt_cv_prog_gnu_ld=yes | |
12565 ;; | |
12566 *) | |
12567 lt_cv_prog_gnu_ld=no | |
12568 ;; | |
12569 esac | |
12570 fi | |
12571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 | |
12572 $as_echo "$lt_cv_prog_gnu_ld" >&6; } | |
12573 with_gnu_ld=$lt_cv_prog_gnu_ld | |
12574 | |
12575 | |
12576 | |
12577 | |
12578 | |
12579 | |
12580 | |
12581 # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
12582 # archiving commands below assume that GNU ld is being used. | |
12583 if test "$with_gnu_ld" = yes; then | |
12584 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12585 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
12586 | |
12587 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
12588 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12589 | |
12590 # If archive_cmds runs LD, not CC, wlarc should be empty | |
12591 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
12592 # investigate it a little bit more. (MM) | |
12593 wlarc='${wl}' | |
12594 | |
12595 # ancient GNU ld didn't support --whole-archive et. al. | |
12596 if eval "`$CC -print-prog-name=ld` --help 2>&1" | | |
12597 $GREP 'no-whole-archive' > /dev/null; then | |
12598 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12599 else | |
12600 whole_archive_flag_spec_CXX= | |
12601 fi | |
12602 else | |
12603 with_gnu_ld=no | |
12604 wlarc= | |
12605 | |
12606 # A generic and very simple default shared library creation | |
12607 # command for GNU C++ for the case where it uses the native | |
12608 # linker, instead of GNU ld. If possible, this setting should | |
12609 # overridden to take advantage of the native linker features on | |
12610 # the platform it is being used on. | |
12611 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
12612 fi | |
12613 | |
12614 # Commands to make compiler produce verbose output that lists | |
12615 # what "hidden" libraries, object files and flags are used when | |
12616 # linking a shared library. | |
12617 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
12618 | |
12619 else | |
12620 GXX=no | |
12621 with_gnu_ld=no | |
12622 wlarc= | |
12623 fi | |
12624 | |
12625 # PORTME: fill in a description of your system's C++ link characteristics | |
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12627 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
12628 ld_shlibs_CXX=yes | |
12629 case $host_os in | |
12630 aix3*) | |
12631 # FIXME: insert proper C++ library support | |
12632 ld_shlibs_CXX=no | |
12633 ;; | |
12634 aix[4-9]*) | |
12635 if test "$host_cpu" = ia64; then | |
12636 # On IA64, the linker does run time linking by default, so we don't | |
12637 # have to do anything special. | |
12638 aix_use_runtimelinking=no | |
12639 exp_sym_flag='-Bexport' | |
12640 no_entry_flag="" | |
12641 else | |
12642 aix_use_runtimelinking=no | |
12643 | |
12644 # Test if we are trying to use run time linking or normal | |
12645 # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
12646 # need to do runtime linking. | |
12647 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) | |
12648 for ld_flag in $LDFLAGS; do | |
12649 case $ld_flag in | |
12650 *-brtl*) | |
12651 aix_use_runtimelinking=yes | |
12652 break | |
12653 ;; | |
12654 esac | |
12655 done | |
12656 ;; | |
12657 esac | |
12658 | |
12659 exp_sym_flag='-bexport' | |
12660 no_entry_flag='-bnoentry' | |
12661 fi | |
12662 | |
12663 # When large executables or shared objects are built, AIX ld can | |
12664 # have problems creating the table of contents. If linking a library | |
12665 # or program results in "error TOC overflow" add -mminimal-toc to | |
12666 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
12667 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
12668 | |
12669 archive_cmds_CXX='' | |
12670 hardcode_direct_CXX=yes | |
12671 hardcode_direct_absolute_CXX=yes | |
12672 hardcode_libdir_separator_CXX=':' | |
12673 link_all_deplibs_CXX=yes | |
12674 file_list_spec_CXX='${wl}-f,' | |
12675 | |
12676 if test "$GXX" = yes; then | |
12677 case $host_os in aix4.[012]|aix4.[012].*) | |
12678 # We only want to do this on AIX 4.2 and lower, the check | |
12679 # below for broken collect2 doesn't work under 4.3+ | |
12680 collect2name=`${CC} -print-prog-name=collect2` | |
12681 if test -f "$collect2name" && | |
12682 strings "$collect2name" | $GREP resolve_lib_name >/dev/null | |
12683 then | |
12684 # We have reworked collect2 | |
12685 : | |
12686 else | |
12687 # We have old collect2 | |
12688 hardcode_direct_CXX=unsupported | |
12689 # It fails to find uninstalled libraries when the uninstalled | |
12690 # path is not listed in the libpath. Setting hardcode_minus_L | |
12691 # to unsupported forces relinking | |
12692 hardcode_minus_L_CXX=yes | |
12693 hardcode_libdir_flag_spec_CXX='-L$libdir' | |
12694 hardcode_libdir_separator_CXX= | |
12695 fi | |
12696 esac | |
12697 shared_flag='-shared' | |
12698 if test "$aix_use_runtimelinking" = yes; then | |
12699 shared_flag="$shared_flag "'${wl}-G' | |
12700 fi | |
12701 else | |
12702 # not using gcc | |
12703 if test "$host_cpu" = ia64; then | |
12704 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
12705 # chokes on -Wl,-G. The following line is correct: | |
12706 shared_flag='-G' | |
12707 else | |
12708 if test "$aix_use_runtimelinking" = yes; then | |
12709 shared_flag='${wl}-G' | |
12710 else | |
12711 shared_flag='${wl}-bM:SRE' | |
12712 fi | |
12713 fi | |
12714 fi | |
12715 | |
12716 export_dynamic_flag_spec_CXX='${wl}-bexpall' | |
12717 # It seems that -bexpall does not export symbols beginning with | |
12718 # underscore (_), so it is better to generate a list of symbols to | |
12719 # export. | |
12720 always_export_symbols_CXX=yes | |
12721 if test "$aix_use_runtimelinking" = yes; then | |
12722 # Warning - without using the other runtime loading flags (-brtl), | |
12723 # -berok will link without error, but may produce a broken library. | |
12724 allow_undefined_flag_CXX='-berok' | |
12725 # Determine the default libpath from the value encoded in an empty | |
12726 # executable. | |
12727 if test "${lt_cv_aix_libpath+set}" = set; then | |
12728 aix_libpath=$lt_cv_aix_libpath | |
12729 else | |
12730 if ${lt_cv_aix_libpath__CXX+:} false; then : | |
12731 $as_echo_n "(cached) " >&6 | |
12732 else | |
12733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12734 /* end confdefs.h. */ | |
12735 | |
12736 int | |
12737 main () | |
12738 { | |
12739 | |
12740 ; | |
12741 return 0; | |
12742 } | |
12743 _ACEOF | |
12744 if ac_fn_cxx_try_link "$LINENO"; then : | |
12745 | |
12746 lt_aix_libpath_sed=' | |
12747 /Import File Strings/,/^$/ { | |
12748 /^0/ { | |
12749 s/^0 *\([^ ]*\) *$/\1/ | |
12750 p | |
12751 } | |
12752 }' | |
12753 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12754 # Check for a 64-bit object if we didn't find anything. | |
12755 if test -z "$lt_cv_aix_libpath__CXX"; then | |
12756 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12757 fi | |
12758 fi | |
12759 rm -f core conftest.err conftest.$ac_objext \ | |
12760 conftest$ac_exeext conftest.$ac_ext | |
12761 if test -z "$lt_cv_aix_libpath__CXX"; then | |
12762 lt_cv_aix_libpath__CXX="/usr/lib:/lib" | |
12763 fi | |
12764 | |
12765 fi | |
12766 | |
12767 aix_libpath=$lt_cv_aix_libpath__CXX | |
12768 fi | |
12769 | |
12770 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12771 | |
12772 archive_expsym_cmds_CXX='$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" | |
12773 else | |
12774 if test "$host_cpu" = ia64; then | |
12775 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
12776 allow_undefined_flag_CXX="-z nodefs" | |
12777 archive_expsym_cmds_CXX="\$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" | |
12778 else | |
12779 # Determine the default libpath from the value encoded in an | |
12780 # empty executable. | |
12781 if test "${lt_cv_aix_libpath+set}" = set; then | |
12782 aix_libpath=$lt_cv_aix_libpath | |
12783 else | |
12784 if ${lt_cv_aix_libpath__CXX+:} false; then : | |
12785 $as_echo_n "(cached) " >&6 | |
12786 else | |
12787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
12788 /* end confdefs.h. */ | |
12789 | |
12790 int | |
12791 main () | |
12792 { | |
12793 | |
12794 ; | |
12795 return 0; | |
12796 } | |
12797 _ACEOF | |
12798 if ac_fn_cxx_try_link "$LINENO"; then : | |
12799 | |
12800 lt_aix_libpath_sed=' | |
12801 /Import File Strings/,/^$/ { | |
12802 /^0/ { | |
12803 s/^0 *\([^ ]*\) *$/\1/ | |
12804 p | |
12805 } | |
12806 }' | |
12807 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12808 # Check for a 64-bit object if we didn't find anything. | |
12809 if test -z "$lt_cv_aix_libpath__CXX"; then | |
12810 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` | |
12811 fi | |
12812 fi | |
12813 rm -f core conftest.err conftest.$ac_objext \ | |
12814 conftest$ac_exeext conftest.$ac_ext | |
12815 if test -z "$lt_cv_aix_libpath__CXX"; then | |
12816 lt_cv_aix_libpath__CXX="/usr/lib:/lib" | |
12817 fi | |
12818 | |
12819 fi | |
12820 | |
12821 aix_libpath=$lt_cv_aix_libpath__CXX | |
12822 fi | |
12823 | |
12824 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
12825 # Warning - without using the other run time loading flags, | |
12826 # -berok will link without error, but may produce a broken library. | |
12827 no_undefined_flag_CXX=' ${wl}-bernotok' | |
12828 allow_undefined_flag_CXX=' ${wl}-berok' | |
12829 if test "$with_gnu_ld" = yes; then | |
12830 # We only use this code for GNU lds that support --whole-archive. | |
12831 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
12832 else | |
12833 # Exported symbols can be pulled into shared objects from archives | |
12834 whole_archive_flag_spec_CXX='$convenience' | |
12835 fi | |
12836 archive_cmds_need_lc_CXX=yes | |
12837 # This is similar to how AIX traditionally builds its shared | |
12838 # libraries. | |
12839 archive_expsym_cmds_CXX="\$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' | |
12840 fi | |
12841 fi | |
12842 ;; | |
12843 | |
12844 beos*) | |
12845 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then | |
12846 allow_undefined_flag_CXX=unsupported | |
12847 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
12848 # support --undefined. This deserves some investigation. FIXME | |
12849 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12850 else | |
12851 ld_shlibs_CXX=no | |
12852 fi | |
12853 ;; | |
12854 | |
12855 chorus*) | |
12856 case $cc_basename in | |
12857 *) | |
12858 # FIXME: insert proper C++ library support | |
12859 ld_shlibs_CXX=no | |
12860 ;; | |
12861 esac | |
12862 ;; | |
12863 | |
12864 cygwin* | mingw* | pw32* | cegcc*) | |
12865 case $GXX,$cc_basename in | |
12866 ,cl* | no,cl*) | |
12867 # Native MSVC | |
12868 # hardcode_libdir_flag_spec is actually meaningless, as there is | |
12869 # no search path for DLLs. | |
12870 hardcode_libdir_flag_spec_CXX=' ' | |
12871 allow_undefined_flag_CXX=unsupported | |
12872 always_export_symbols_CXX=yes | |
12873 file_list_spec_CXX='@' | |
12874 # Tell ltmain to make .lib files, not .a files. | |
12875 libext=lib | |
12876 # Tell ltmain to make .dll files, not .so files. | |
12877 shrext_cmds=".dll" | |
12878 # FIXME: Setting linknames here is a bad hack. | |
12879 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' | |
12880 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
12881 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; | |
12882 else | |
12883 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; | |
12884 fi~ | |
12885 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ | |
12886 linknames=' | |
12887 # The linker will not automatically build a static lib if we build a DLL. | |
12888 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' | |
12889 enable_shared_with_static_runtimes_CXX=yes | |
12890 # Don't use ranlib | |
12891 old_postinstall_cmds_CXX='chmod 644 $oldlib' | |
12892 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ | |
12893 lt_tool_outputfile="@TOOL_OUTPUT@"~ | |
12894 case $lt_outputfile in | |
12895 *.exe|*.EXE) ;; | |
12896 *) | |
12897 lt_outputfile="$lt_outputfile.exe" | |
12898 lt_tool_outputfile="$lt_tool_outputfile.exe" | |
12899 ;; | |
12900 esac~ | |
12901 func_to_tool_file "$lt_outputfile"~ | |
12902 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then | |
12903 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; | |
12904 $RM "$lt_outputfile.manifest"; | |
12905 fi' | |
12906 ;; | |
12907 *) | |
12908 # g++ | |
12909 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
12910 # as there is no search path for DLLs. | |
12911 hardcode_libdir_flag_spec_CXX='-L$libdir' | |
12912 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' | |
12913 allow_undefined_flag_CXX=unsupported | |
12914 always_export_symbols_CXX=no | |
12915 enable_shared_with_static_runtimes_CXX=yes | |
12916 | |
12917 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then | |
12918 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
12919 # If the export-symbols file already is a .def file (1st line | |
12920 # is EXPORTS), use it as is; otherwise, prepend... | |
12921 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
12922 cp $export_symbols $output_objdir/$soname.def; | |
12923 else | |
12924 echo EXPORTS > $output_objdir/$soname.def; | |
12925 cat $export_symbols >> $output_objdir/$soname.def; | |
12926 fi~ | |
12927 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
12928 else | |
12929 ld_shlibs_CXX=no | |
12930 fi | |
12931 ;; | |
12932 esac | |
12933 ;; | |
12934 darwin* | rhapsody*) | |
12935 | |
12936 | |
12937 archive_cmds_need_lc_CXX=no | |
12938 hardcode_direct_CXX=no | |
12939 hardcode_automatic_CXX=yes | |
12940 hardcode_shlibpath_var_CXX=unsupported | |
12941 if test "$lt_cv_ld_force_load" = "yes"; then | |
12942 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' | |
12943 | |
12944 else | |
12945 whole_archive_flag_spec_CXX='' | |
12946 fi | |
12947 link_all_deplibs_CXX=yes | |
12948 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" | |
12949 case $cc_basename in | |
12950 ifort*) _lt_dar_can_shared=yes ;; | |
12951 *) _lt_dar_can_shared=$GCC ;; | |
12952 esac | |
12953 if test "$_lt_dar_can_shared" = "yes"; then | |
12954 output_verbose_link_cmd=func_echo_all | |
12955 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" | |
12956 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" | |
12957 archive_expsym_cmds_CXX="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}" | |
12958 module_expsym_cmds_CXX="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}" | |
12959 if test "$lt_cv_apple_cc_single_mod" != "yes"; then | |
12960 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" | |
12961 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" | |
12962 fi | |
12963 | |
12964 else | |
12965 ld_shlibs_CXX=no | |
12966 fi | |
12967 | |
12968 ;; | |
12969 | |
12970 dgux*) | |
12971 case $cc_basename in | |
12972 ec++*) | |
12973 # FIXME: insert proper C++ library support | |
12974 ld_shlibs_CXX=no | |
12975 ;; | |
12976 ghcx*) | |
12977 # Green Hills C++ Compiler | |
12978 # FIXME: insert proper C++ library support | |
12979 ld_shlibs_CXX=no | |
12980 ;; | |
12981 *) | |
12982 # FIXME: insert proper C++ library support | |
12983 ld_shlibs_CXX=no | |
12984 ;; | |
12985 esac | |
12986 ;; | |
12987 | |
12988 freebsd2.*) | |
12989 # C++ shared libraries reported to be fairly broken before | |
12990 # switch to ELF | |
12991 ld_shlibs_CXX=no | |
12992 ;; | |
12993 | |
12994 freebsd-elf*) | |
12995 archive_cmds_need_lc_CXX=no | |
12996 ;; | |
12997 | |
12998 freebsd* | dragonfly*) | |
12999 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
13000 # conventions | |
13001 ld_shlibs_CXX=yes | |
13002 ;; | |
13003 | |
13004 haiku*) | |
13005 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13006 link_all_deplibs_CXX=yes | |
13007 ;; | |
13008 | |
13009 hpux9*) | |
13010 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13011 hardcode_libdir_separator_CXX=: | |
13012 export_dynamic_flag_spec_CXX='${wl}-E' | |
13013 hardcode_direct_CXX=yes | |
13014 hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13015 # but as the default | |
13016 # location of the library. | |
13017 | |
13018 case $cc_basename in | |
13019 CC*) | |
13020 # FIXME: insert proper C++ library support | |
13021 ld_shlibs_CXX=no | |
13022 ;; | |
13023 aCC*) | |
13024 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
13025 # Commands to make compiler produce verbose output that lists | |
13026 # what "hidden" libraries, object files and flags are used when | |
13027 # linking a shared library. | |
13028 # | |
13029 # There doesn't appear to be a way to prevent this compiler from | |
13030 # explicitly linking system object files so we need to strip them | |
13031 # from the output so that they don't get included in the library | |
13032 # dependencies. | |
13033 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | |
13034 ;; | |
13035 *) | |
13036 if test "$GXX" = yes; then | |
13037 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | |
13038 else | |
13039 # FIXME: insert proper C++ library support | |
13040 ld_shlibs_CXX=no | |
13041 fi | |
13042 ;; | |
13043 esac | |
13044 ;; | |
13045 | |
13046 hpux10*|hpux11*) | |
13047 if test $with_gnu_ld = no; then | |
13048 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13049 hardcode_libdir_separator_CXX=: | |
13050 | |
13051 case $host_cpu in | |
13052 hppa*64*|ia64*) | |
13053 ;; | |
13054 *) | |
13055 export_dynamic_flag_spec_CXX='${wl}-E' | |
13056 ;; | |
13057 esac | |
13058 fi | |
13059 case $host_cpu in | |
13060 hppa*64*|ia64*) | |
13061 hardcode_direct_CXX=no | |
13062 hardcode_shlibpath_var_CXX=no | |
13063 ;; | |
13064 *) | |
13065 hardcode_direct_CXX=yes | |
13066 hardcode_direct_absolute_CXX=yes | |
13067 hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13068 # but as the default | |
13069 # location of the library. | |
13070 ;; | |
13071 esac | |
13072 | |
13073 case $cc_basename in | |
13074 CC*) | |
13075 # FIXME: insert proper C++ library support | |
13076 ld_shlibs_CXX=no | |
13077 ;; | |
13078 aCC*) | |
13079 case $host_cpu in | |
13080 hppa*64*) | |
13081 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13082 ;; | |
13083 ia64*) | |
13084 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13085 ;; | |
13086 *) | |
13087 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13088 ;; | |
13089 esac | |
13090 # Commands to make compiler produce verbose output that lists | |
13091 # what "hidden" libraries, object files and flags are used when | |
13092 # linking a shared library. | |
13093 # | |
13094 # There doesn't appear to be a way to prevent this compiler from | |
13095 # explicitly linking system object files so we need to strip them | |
13096 # from the output so that they don't get included in the library | |
13097 # dependencies. | |
13098 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | |
13099 ;; | |
13100 *) | |
13101 if test "$GXX" = yes; then | |
13102 if test $with_gnu_ld = no; then | |
13103 case $host_cpu in | |
13104 hppa*64*) | |
13105 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13106 ;; | |
13107 ia64*) | |
13108 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13109 ;; | |
13110 *) | |
13111 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13112 ;; | |
13113 esac | |
13114 fi | |
13115 else | |
13116 # FIXME: insert proper C++ library support | |
13117 ld_shlibs_CXX=no | |
13118 fi | |
13119 ;; | |
13120 esac | |
13121 ;; | |
13122 | |
13123 interix[3-9]*) | |
13124 hardcode_direct_CXX=no | |
13125 hardcode_shlibpath_var_CXX=no | |
13126 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13127 export_dynamic_flag_spec_CXX='${wl}-E' | |
13128 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
13129 # Instead, shared libraries are loaded at an image base (0x10000000 by | |
13130 # default) and relocated if they conflict, which is a slow very memory | |
13131 # consuming and fragmenting process. To avoid this, we pick a random, | |
13132 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
13133 # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
13134 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
13135 archive_expsym_cmds_CXX='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' | |
13136 ;; | |
13137 irix5* | irix6*) | |
13138 case $cc_basename in | |
13139 CC*) | |
13140 # SGI C++ | |
13141 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
13142 | |
13143 # Archives containing C++ object files must be created using | |
13144 # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
13145 # necessary to make sure instantiated templates are included | |
13146 # in the archive. | |
13147 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
13148 ;; | |
13149 *) | |
13150 if test "$GXX" = yes; then | |
13151 if test "$with_gnu_ld" = no; then | |
13152 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' | |
13153 else | |
13154 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' | |
13155 fi | |
13156 fi | |
13157 link_all_deplibs_CXX=yes | |
13158 ;; | |
13159 esac | |
13160 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13161 hardcode_libdir_separator_CXX=: | |
13162 inherit_rpath_CXX=yes | |
13163 ;; | |
13164 | |
13165 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
13166 case $cc_basename in | |
13167 KCC*) | |
13168 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
13169 | |
13170 # KCC will only create a shared library if the output file | |
13171 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13172 # to its proper name (with version) after linking. | |
13173 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
13174 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | |
13175 # Commands to make compiler produce verbose output that lists | |
13176 # what "hidden" libraries, object files and flags are used when | |
13177 # linking a shared library. | |
13178 # | |
13179 # There doesn't appear to be a way to prevent this compiler from | |
13180 # explicitly linking system object files so we need to strip them | |
13181 # from the output so that they don't get included in the library | |
13182 # dependencies. | |
13183 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | |
13184 | |
13185 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13186 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13187 | |
13188 # Archives containing C++ object files must be created using | |
13189 # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
13190 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
13191 ;; | |
13192 icpc* | ecpc* ) | |
13193 # Intel C++ | |
13194 with_gnu_ld=yes | |
13195 # version 8.0 and above of icpc choke on multiply defined symbols | |
13196 # if we add $predep_objects and $postdep_objects, however 7.1 and | |
13197 # earlier do not add the objects themselves. | |
13198 case `$CC -V 2>&1` in | |
13199 *"Version 7."*) | |
13200 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13201 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13202 ;; | |
13203 *) # Version 8.0 or newer | |
13204 tmp_idyn= | |
13205 case $host_cpu in | |
13206 ia64*) tmp_idyn=' -i_dynamic';; | |
13207 esac | |
13208 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13209 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13210 ;; | |
13211 esac | |
13212 archive_cmds_need_lc_CXX=no | |
13213 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13214 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13215 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
13216 ;; | |
13217 pgCC* | pgcpp*) | |
13218 # Portland Group C++ compiler | |
13219 case `$CC -V` in | |
13220 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) | |
13221 prelink_cmds_CXX='tpldir=Template.dir~ | |
13222 rm -rf $tpldir~ | |
13223 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ | |
13224 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' | |
13225 old_archive_cmds_CXX='tpldir=Template.dir~ | |
13226 rm -rf $tpldir~ | |
13227 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ | |
13228 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ | |
13229 $RANLIB $oldlib' | |
13230 archive_cmds_CXX='tpldir=Template.dir~ | |
13231 rm -rf $tpldir~ | |
13232 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
13233 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
13234 archive_expsym_cmds_CXX='tpldir=Template.dir~ | |
13235 rm -rf $tpldir~ | |
13236 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ | |
13237 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
13238 ;; | |
13239 *) # Version 6 and above use weak symbols | |
13240 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
13241 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
13242 ;; | |
13243 esac | |
13244 | |
13245 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
13246 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13247 whole_archive_flag_spec_CXX='${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' | |
13248 ;; | |
13249 cxx*) | |
13250 # Compaq C++ | |
13251 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13252 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | |
13253 | |
13254 runpath_var=LD_RUN_PATH | |
13255 hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13256 hardcode_libdir_separator_CXX=: | |
13257 | |
13258 # Commands to make compiler produce verbose output that lists | |
13259 # what "hidden" libraries, object files and flags are used when | |
13260 # linking a shared library. | |
13261 # | |
13262 # There doesn't appear to be a way to prevent this compiler from | |
13263 # explicitly linking system object files so we need to strip them | |
13264 # from the output so that they don't get included in the library | |
13265 # dependencies. | |
13266 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' | |
13267 ;; | |
13268 xl* | mpixl* | bgxl*) | |
13269 # IBM XL 8.0 on PPC, with GNU ld | |
13270 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13271 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13272 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13273 if test "x$supports_anon_versioning" = xyes; then | |
13274 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ | |
13275 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
13276 echo "local: *; };" >> $output_objdir/$libname.ver~ | |
13277 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
13278 fi | |
13279 ;; | |
13280 *) | |
13281 case `$CC -V 2>&1 | sed 5q` in | |
13282 *Sun\ C*) | |
13283 # Sun C++ 5.9 | |
13284 no_undefined_flag_CXX=' -zdefs' | |
13285 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13286 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' | |
13287 hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13288 whole_archive_flag_spec_CXX='${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' | |
13289 compiler_needs_object_CXX=yes | |
13290 | |
13291 # Not sure whether something based on | |
13292 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | |
13293 # would be better. | |
13294 output_verbose_link_cmd='func_echo_all' | |
13295 | |
13296 # Archives containing C++ object files must be created using | |
13297 # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13298 # necessary to make sure instantiated templates are included | |
13299 # in the archive. | |
13300 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13301 ;; | |
13302 esac | |
13303 ;; | |
13304 esac | |
13305 ;; | |
13306 | |
13307 lynxos*) | |
13308 # FIXME: insert proper C++ library support | |
13309 ld_shlibs_CXX=no | |
13310 ;; | |
13311 | |
13312 m88k*) | |
13313 # FIXME: insert proper C++ library support | |
13314 ld_shlibs_CXX=no | |
13315 ;; | |
13316 | |
13317 mvs*) | |
13318 case $cc_basename in | |
13319 cxx*) | |
13320 # FIXME: insert proper C++ library support | |
13321 ld_shlibs_CXX=no | |
13322 ;; | |
13323 *) | |
13324 # FIXME: insert proper C++ library support | |
13325 ld_shlibs_CXX=no | |
13326 ;; | |
13327 esac | |
13328 ;; | |
13329 | |
13330 netbsd*) | |
13331 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
13332 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
13333 wlarc= | |
13334 hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13335 hardcode_direct_CXX=yes | |
13336 hardcode_shlibpath_var_CXX=no | |
13337 fi | |
13338 # Workaround some broken pre-1.5 toolchains | |
13339 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
13340 ;; | |
13341 | |
13342 *nto* | *qnx*) | |
13343 ld_shlibs_CXX=yes | |
13344 ;; | |
13345 | |
13346 openbsd2*) | |
13347 # C++ shared libraries are fairly broken | |
13348 ld_shlibs_CXX=no | |
13349 ;; | |
13350 | |
13351 openbsd*) | |
13352 if test -f /usr/libexec/ld.so; then | |
13353 hardcode_direct_CXX=yes | |
13354 hardcode_shlibpath_var_CXX=no | |
13355 hardcode_direct_absolute_CXX=yes | |
13356 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
13357 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13358 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13359 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
13360 export_dynamic_flag_spec_CXX='${wl}-E' | |
13361 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13362 fi | |
13363 output_verbose_link_cmd=func_echo_all | |
13364 else | |
13365 ld_shlibs_CXX=no | |
13366 fi | |
13367 ;; | |
13368 | |
13369 osf3* | osf4* | osf5*) | |
13370 case $cc_basename in | |
13371 KCC*) | |
13372 # Kuck and Associates, Inc. (KAI) C++ Compiler | |
13373 | |
13374 # KCC will only create a shared library if the output file | |
13375 # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13376 # to its proper name (with version) after linking. | |
13377 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | |
13378 | |
13379 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13380 hardcode_libdir_separator_CXX=: | |
13381 | |
13382 # Archives containing C++ object files must be created using | |
13383 # the KAI C++ compiler. | |
13384 case $host in | |
13385 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; | |
13386 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; | |
13387 esac | |
13388 ;; | |
13389 RCC*) | |
13390 # Rational C++ 2.4.1 | |
13391 # FIXME: insert proper C++ library support | |
13392 ld_shlibs_CXX=no | |
13393 ;; | |
13394 cxx*) | |
13395 case $host in | |
13396 osf3*) | |
13397 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13398 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
13399 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13400 ;; | |
13401 *) | |
13402 allow_undefined_flag_CXX=' -expect_unresolved \*' | |
13403 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' | |
13404 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
13405 echo "-hidden">> $lib.exp~ | |
13406 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ | |
13407 $RM $lib.exp' | |
13408 hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13409 ;; | |
13410 esac | |
13411 | |
13412 hardcode_libdir_separator_CXX=: | |
13413 | |
13414 # Commands to make compiler produce verbose output that lists | |
13415 # what "hidden" libraries, object files and flags are used when | |
13416 # linking a shared library. | |
13417 # | |
13418 # There doesn't appear to be a way to prevent this compiler from | |
13419 # explicitly linking system object files so we need to strip them | |
13420 # from the output so that they don't get included in the library | |
13421 # dependencies. | |
13422 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' | |
13423 ;; | |
13424 *) | |
13425 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13426 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13427 case $host in | |
13428 osf3*) | |
13429 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' | |
13430 ;; | |
13431 *) | |
13432 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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' | |
13433 ;; | |
13434 esac | |
13435 | |
13436 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13437 hardcode_libdir_separator_CXX=: | |
13438 | |
13439 # Commands to make compiler produce verbose output that lists | |
13440 # what "hidden" libraries, object files and flags are used when | |
13441 # linking a shared library. | |
13442 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13443 | |
13444 else | |
13445 # FIXME: insert proper C++ library support | |
13446 ld_shlibs_CXX=no | |
13447 fi | |
13448 ;; | |
13449 esac | |
13450 ;; | |
13451 | |
13452 psos*) | |
13453 # FIXME: insert proper C++ library support | |
13454 ld_shlibs_CXX=no | |
13455 ;; | |
13456 | |
13457 sunos4*) | |
13458 case $cc_basename in | |
13459 CC*) | |
13460 # Sun C++ 4.x | |
13461 # FIXME: insert proper C++ library support | |
13462 ld_shlibs_CXX=no | |
13463 ;; | |
13464 lcc*) | |
13465 # Lucid | |
13466 # FIXME: insert proper C++ library support | |
13467 ld_shlibs_CXX=no | |
13468 ;; | |
13469 *) | |
13470 # FIXME: insert proper C++ library support | |
13471 ld_shlibs_CXX=no | |
13472 ;; | |
13473 esac | |
13474 ;; | |
13475 | |
13476 solaris*) | |
13477 case $cc_basename in | |
13478 CC* | sunCC*) | |
13479 # Sun C++ 4.2, 5.x and Centerline C++ | |
13480 archive_cmds_need_lc_CXX=yes | |
13481 no_undefined_flag_CXX=' -zdefs' | |
13482 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13483 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13484 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
13485 | |
13486 hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13487 hardcode_shlibpath_var_CXX=no | |
13488 case $host_os in | |
13489 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13490 *) | |
13491 # The compiler driver will combine and reorder linker options, | |
13492 # but understands `-z linker_flag'. | |
13493 # Supported since Solaris 2.6 (maybe 2.5.1?) | |
13494 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' | |
13495 ;; | |
13496 esac | |
13497 link_all_deplibs_CXX=yes | |
13498 | |
13499 output_verbose_link_cmd='func_echo_all' | |
13500 | |
13501 # Archives containing C++ object files must be created using | |
13502 # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13503 # necessary to make sure instantiated templates are included | |
13504 # in the archive. | |
13505 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13506 ;; | |
13507 gcx*) | |
13508 # Green Hills C++ Compiler | |
13509 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13510 | |
13511 # The C++ compiler must be used to create the archive. | |
13512 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
13513 ;; | |
13514 *) | |
13515 # GNU C++ compiler with Solaris linker | |
13516 if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13517 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
13518 if $CC --version | $GREP -v '^2\.7' > /dev/null; then | |
13519 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13520 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13521 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
13522 | |
13523 # Commands to make compiler produce verbose output that lists | |
13524 # what "hidden" libraries, object files and flags are used when | |
13525 # linking a shared library. | |
13526 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13527 else | |
13528 # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
13529 # platform. | |
13530 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13531 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ | |
13532 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' | |
13533 | |
13534 # Commands to make compiler produce verbose output that lists | |
13535 # what "hidden" libraries, object files and flags are used when | |
13536 # linking a shared library. | |
13537 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' | |
13538 fi | |
13539 | |
13540 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
13541 case $host_os in | |
13542 solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13543 *) | |
13544 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | |
13545 ;; | |
13546 esac | |
13547 fi | |
13548 ;; | |
13549 esac | |
13550 ;; | |
13551 | |
13552 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
13553 no_undefined_flag_CXX='${wl}-z,text' | |
13554 archive_cmds_need_lc_CXX=no | |
13555 hardcode_shlibpath_var_CXX=no | |
13556 runpath_var='LD_RUN_PATH' | |
13557 | |
13558 case $cc_basename in | |
13559 CC*) | |
13560 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13561 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13562 ;; | |
13563 *) | |
13564 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13565 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13566 ;; | |
13567 esac | |
13568 ;; | |
13569 | |
13570 sysv5* | sco3.2v5* | sco5v6*) | |
13571 # Note: We can NOT use -z defs as we might desire, because we do not | |
13572 # link with -lc, and that would cause any symbols used from libc to | |
13573 # always be unresolved, which means just about no library would | |
13574 # ever link correctly. If we're not using GNU ld we use -z text | |
13575 # though, which does catch some bad symbols but isn't as heavy-handed | |
13576 # as -z defs. | |
13577 no_undefined_flag_CXX='${wl}-z,text' | |
13578 allow_undefined_flag_CXX='${wl}-z,nodefs' | |
13579 archive_cmds_need_lc_CXX=no | |
13580 hardcode_shlibpath_var_CXX=no | |
13581 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' | |
13582 hardcode_libdir_separator_CXX=':' | |
13583 link_all_deplibs_CXX=yes | |
13584 export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
13585 runpath_var='LD_RUN_PATH' | |
13586 | |
13587 case $cc_basename in | |
13588 CC*) | |
13589 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13590 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13591 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ | |
13592 '"$old_archive_cmds_CXX" | |
13593 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ | |
13594 '"$reload_cmds_CXX" | |
13595 ;; | |
13596 *) | |
13597 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13598 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13599 ;; | |
13600 esac | |
13601 ;; | |
13602 | |
13603 tandem*) | |
13604 case $cc_basename in | |
13605 NCC*) | |
13606 # NonStop-UX NCC 3.20 | |
13607 # FIXME: insert proper C++ library support | |
13608 ld_shlibs_CXX=no | |
13609 ;; | |
13610 *) | |
13611 # FIXME: insert proper C++ library support | |
13612 ld_shlibs_CXX=no | |
13613 ;; | |
13614 esac | |
13615 ;; | |
13616 | |
13617 vxworks*) | |
13618 # FIXME: insert proper C++ library support | |
13619 ld_shlibs_CXX=no | |
13620 ;; | |
13621 | |
13622 *) | |
13623 # FIXME: insert proper C++ library support | |
13624 ld_shlibs_CXX=no | |
13625 ;; | |
13626 esac | |
13627 | |
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
13629 $as_echo "$ld_shlibs_CXX" >&6; } | |
13630 test "$ld_shlibs_CXX" = no && can_build_shared=no | |
13631 | |
13632 GCC_CXX="$GXX" | |
13633 LD_CXX="$LD" | |
13634 | |
13635 ## CAVEAT EMPTOR: | |
13636 ## There is no encapsulation within the following macros, do not change | |
13637 ## the running order or otherwise move them around unless you know exactly | |
13638 ## what you are doing... | |
13639 # Dependencies to place before and after the object being linked: | |
13640 predep_objects_CXX= | |
13641 postdep_objects_CXX= | |
13642 predeps_CXX= | |
13643 postdeps_CXX= | |
13644 compiler_lib_search_path_CXX= | |
13645 | |
13646 cat > conftest.$ac_ext <<_LT_EOF | |
13647 class Foo | |
13648 { | |
13649 public: | |
13650 Foo (void) { a = 0; } | |
13651 private: | |
13652 int a; | |
13653 }; | |
13654 _LT_EOF | |
13655 | |
13656 | |
13657 _lt_libdeps_save_CFLAGS=$CFLAGS | |
13658 case "$CC $CFLAGS " in #( | |
13659 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; | |
13660 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; | |
13661 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; | |
13662 esac | |
13663 | |
13664 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
13665 (eval $ac_compile) 2>&5 | |
13666 ac_status=$? | |
13667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
13668 test $ac_status = 0; }; then | |
13669 # Parse the compiler output and extract the necessary | |
13670 # objects, libraries and library flags. | |
13671 | |
13672 # Sentinel used to keep track of whether or not we are before | |
13673 # the conftest object file. | |
13674 pre_test_object_deps_done=no | |
13675 | |
13676 for p in `eval "$output_verbose_link_cmd"`; do | |
13677 case ${prev}${p} in | |
13678 | |
13679 -L* | -R* | -l*) | |
13680 # Some compilers place space between "-{L,R}" and the path. | |
13681 # Remove the space. | |
13682 if test $p = "-L" || | |
13683 test $p = "-R"; then | |
13684 prev=$p | |
13685 continue | |
13686 fi | |
13687 | |
13688 # Expand the sysroot to ease extracting the directories later. | |
13689 if test -z "$prev"; then | |
13690 case $p in | |
13691 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; | |
13692 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; | |
13693 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; | |
13694 esac | |
13695 fi | |
13696 case $p in | |
13697 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; | |
13698 esac | |
13699 if test "$pre_test_object_deps_done" = no; then | |
13700 case ${prev} in | |
13701 -L | -R) | |
13702 # Internal compiler library paths should come after those | |
13703 # provided the user. The postdeps already come after the | |
13704 # user supplied libs so there is no need to process them. | |
13705 if test -z "$compiler_lib_search_path_CXX"; then | |
13706 compiler_lib_search_path_CXX="${prev}${p}" | |
13707 else | |
13708 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
13709 fi | |
13710 ;; | |
13711 # The "-l" case would never come before the object being | |
13712 # linked, so don't bother handling this case. | |
13713 esac | |
13714 else | |
13715 if test -z "$postdeps_CXX"; then | |
13716 postdeps_CXX="${prev}${p}" | |
13717 else | |
13718 postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
13719 fi | |
13720 fi | |
13721 prev= | |
13722 ;; | |
13723 | |
13724 *.lto.$objext) ;; # Ignore GCC LTO objects | |
13725 *.$objext) | |
13726 # This assumes that the test object file only shows up | |
13727 # once in the compiler output. | |
13728 if test "$p" = "conftest.$objext"; then | |
13729 pre_test_object_deps_done=yes | |
13730 continue | |
13731 fi | |
13732 | |
13733 if test "$pre_test_object_deps_done" = no; then | |
13734 if test -z "$predep_objects_CXX"; then | |
13735 predep_objects_CXX="$p" | |
13736 else | |
13737 predep_objects_CXX="$predep_objects_CXX $p" | |
13738 fi | |
13739 else | |
13740 if test -z "$postdep_objects_CXX"; then | |
13741 postdep_objects_CXX="$p" | |
13742 else | |
13743 postdep_objects_CXX="$postdep_objects_CXX $p" | |
13744 fi | |
13745 fi | |
13746 ;; | |
13747 | |
13748 *) ;; # Ignore the rest. | |
13749 | |
13750 esac | |
13751 done | |
13752 | |
13753 # Clean up. | |
13754 rm -f a.out a.exe | |
13755 else | |
13756 echo "libtool.m4: error: problem compiling CXX test program" | |
13757 fi | |
13758 | |
13759 $RM -f confest.$objext | |
13760 CFLAGS=$_lt_libdeps_save_CFLAGS | |
13761 | |
13762 # PORTME: override above test on systems where it is broken | |
13763 case $host_os in | |
13764 interix[3-9]*) | |
13765 # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
13766 # hack all around it, let's just trust "g++" to DTRT. | |
13767 predep_objects_CXX= | |
13768 postdep_objects_CXX= | |
13769 postdeps_CXX= | |
13770 ;; | |
13771 | |
13772 linux*) | |
13773 case `$CC -V 2>&1 | sed 5q` in | |
13774 *Sun\ C*) | |
13775 # Sun C++ 5.9 | |
13776 | |
13777 # The more standards-conforming stlport4 library is | |
13778 # incompatible with the Cstd library. Avoid specifying | |
13779 # it if it's in CXXFLAGS. Ignore libCrun as | |
13780 # -library=stlport4 depends on it. | |
13781 case " $CXX $CXXFLAGS " in | |
13782 *" -library=stlport4 "*) | |
13783 solaris_use_stlport4=yes | |
13784 ;; | |
13785 esac | |
13786 | |
13787 if test "$solaris_use_stlport4" != yes; then | |
13788 postdeps_CXX='-library=Cstd -library=Crun' | |
13789 fi | |
13790 ;; | |
13791 esac | |
13792 ;; | |
13793 | |
13794 solaris*) | |
13795 case $cc_basename in | |
13796 CC* | sunCC*) | |
13797 # The more standards-conforming stlport4 library is | |
13798 # incompatible with the Cstd library. Avoid specifying | |
13799 # it if it's in CXXFLAGS. Ignore libCrun as | |
13800 # -library=stlport4 depends on it. | |
13801 case " $CXX $CXXFLAGS " in | |
13802 *" -library=stlport4 "*) | |
13803 solaris_use_stlport4=yes | |
13804 ;; | |
13805 esac | |
13806 | |
13807 # Adding this requires a known-good setup of shared libraries for | |
13808 # Sun compiler versions before 5.6, else PIC objects from an old | |
13809 # archive will be linked into the output, leading to subtle bugs. | |
13810 if test "$solaris_use_stlport4" != yes; then | |
13811 postdeps_CXX='-library=Cstd -library=Crun' | |
13812 fi | |
13813 ;; | |
13814 esac | |
13815 ;; | |
13816 esac | |
13817 | |
13818 | |
13819 case " $postdeps_CXX " in | |
13820 *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
13821 esac | |
13822 compiler_lib_search_dirs_CXX= | |
13823 if test -n "${compiler_lib_search_path_CXX}"; then | |
13824 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` | |
13825 fi | |
13826 | |
13827 | |
13828 | |
13829 | |
13830 | |
13831 | |
13832 | |
13833 | |
13834 | |
13835 | |
13836 | |
13837 | |
13838 | |
13839 | |
13840 | |
13841 | |
13842 | |
13843 | |
13844 | |
13845 | |
13846 | |
13847 | |
13848 | |
13849 | |
13850 | |
13851 | |
13852 | |
13853 | |
13854 | |
13855 | |
13856 | |
13857 lt_prog_compiler_wl_CXX= | |
13858 lt_prog_compiler_pic_CXX= | |
13859 lt_prog_compiler_static_CXX= | |
13860 | |
13861 | |
13862 # C++ specific cases for pic, static, wl, etc. | |
13863 if test "$GXX" = yes; then | |
13864 lt_prog_compiler_wl_CXX='-Wl,' | |
13865 lt_prog_compiler_static_CXX='-static' | |
13866 | |
13867 case $host_os in | |
13868 aix*) | |
13869 # All AIX code is PIC. | |
13870 if test "$host_cpu" = ia64; then | |
13871 # AIX 5 now supports IA64 processor | |
13872 lt_prog_compiler_static_CXX='-Bstatic' | |
13873 fi | |
13874 ;; | |
13875 | |
13876 amigaos*) | |
13877 case $host_cpu in | |
13878 powerpc) | |
13879 # see comment about AmigaOS4 .so support | |
13880 lt_prog_compiler_pic_CXX='-fPIC' | |
13881 ;; | |
13882 m68k) | |
13883 # FIXME: we need at least 68020 code to build shared libraries, but | |
13884 # adding the `-m68020' flag to GCC prevents building anything better, | |
13885 # like `-m68040'. | |
13886 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
13887 ;; | |
13888 esac | |
13889 ;; | |
13890 | |
13891 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13892 # PIC is the default for these OSes. | |
13893 ;; | |
13894 mingw* | cygwin* | os2* | pw32* | cegcc*) | |
13895 # This hack is so that the source file can tell whether it is being | |
13896 # built for inclusion in a dll (and should export symbols for example). | |
13897 # Although the cygwin gcc ignores -fPIC, still need this for old-style | |
13898 # (--disable-auto-import) libraries | |
13899 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
13900 ;; | |
13901 darwin* | rhapsody*) | |
13902 # PIC is the default on this platform | |
13903 # Common symbols not allowed in MH_DYLIB files | |
13904 lt_prog_compiler_pic_CXX='-fno-common' | |
13905 ;; | |
13906 *djgpp*) | |
13907 # DJGPP does not support shared libraries at all | |
13908 lt_prog_compiler_pic_CXX= | |
13909 ;; | |
13910 haiku*) | |
13911 # PIC is the default for Haiku. | |
13912 # The "-static" flag exists, but is broken. | |
13913 lt_prog_compiler_static_CXX= | |
13914 ;; | |
13915 interix[3-9]*) | |
13916 # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13917 # Instead, we relocate shared libraries at runtime. | |
13918 ;; | |
13919 sysv4*MP*) | |
13920 if test -d /usr/nec; then | |
13921 lt_prog_compiler_pic_CXX=-Kconform_pic | |
13922 fi | |
13923 ;; | |
13924 hpux*) | |
13925 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit | |
13926 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag | |
13927 # sets the default TLS model and affects inlining. | |
13928 case $host_cpu in | |
13929 hppa*64*) | |
13930 ;; | |
13931 *) | |
13932 lt_prog_compiler_pic_CXX='-fPIC' | |
13933 ;; | |
13934 esac | |
13935 ;; | |
13936 *qnx* | *nto*) | |
13937 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
13938 # it will coredump. | |
13939 lt_prog_compiler_pic_CXX='-fPIC -shared' | |
13940 ;; | |
13941 *) | |
13942 lt_prog_compiler_pic_CXX='-fPIC' | |
13943 ;; | |
13944 esac | |
13945 else | |
13946 case $host_os in | |
13947 aix[4-9]*) | |
13948 # All AIX code is PIC. | |
13949 if test "$host_cpu" = ia64; then | |
13950 # AIX 5 now supports IA64 processor | |
13951 lt_prog_compiler_static_CXX='-Bstatic' | |
13952 else | |
13953 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
13954 fi | |
13955 ;; | |
13956 chorus*) | |
13957 case $cc_basename in | |
13958 cxch68*) | |
13959 # Green Hills C++ Compiler | |
13960 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | |
13961 ;; | |
13962 esac | |
13963 ;; | |
13964 mingw* | cygwin* | os2* | pw32* | cegcc*) | |
13965 # This hack is so that the source file can tell whether it is being | |
13966 # built for inclusion in a dll (and should export symbols for example). | |
13967 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
13968 ;; | |
13969 dgux*) | |
13970 case $cc_basename in | |
13971 ec++*) | |
13972 lt_prog_compiler_pic_CXX='-KPIC' | |
13973 ;; | |
13974 ghcx*) | |
13975 # Green Hills C++ Compiler | |
13976 lt_prog_compiler_pic_CXX='-pic' | |
13977 ;; | |
13978 *) | |
13979 ;; | |
13980 esac | |
13981 ;; | |
13982 freebsd* | dragonfly*) | |
13983 # FreeBSD uses GNU C++ | |
13984 ;; | |
13985 hpux9* | hpux10* | hpux11*) | |
13986 case $cc_basename in | |
13987 CC*) | |
13988 lt_prog_compiler_wl_CXX='-Wl,' | |
13989 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
13990 if test "$host_cpu" != ia64; then | |
13991 lt_prog_compiler_pic_CXX='+Z' | |
13992 fi | |
13993 ;; | |
13994 aCC*) | |
13995 lt_prog_compiler_wl_CXX='-Wl,' | |
13996 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
13997 case $host_cpu in | |
13998 hppa*64*|ia64*) | |
13999 # +Z the default | |
14000 ;; | |
14001 *) | |
14002 lt_prog_compiler_pic_CXX='+Z' | |
14003 ;; | |
14004 esac | |
14005 ;; | |
14006 *) | |
14007 ;; | |
14008 esac | |
14009 ;; | |
14010 interix*) | |
14011 # This is c89, which is MS Visual C++ (no shared libs) | |
14012 # Anyone wants to do a port? | |
14013 ;; | |
14014 irix5* | irix6* | nonstopux*) | |
14015 case $cc_basename in | |
14016 CC*) | |
14017 lt_prog_compiler_wl_CXX='-Wl,' | |
14018 lt_prog_compiler_static_CXX='-non_shared' | |
14019 # CC pic flag -KPIC is the default. | |
14020 ;; | |
14021 *) | |
14022 ;; | |
14023 esac | |
14024 ;; | |
14025 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
14026 case $cc_basename in | |
14027 KCC*) | |
14028 # KAI C++ Compiler | |
14029 lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14030 lt_prog_compiler_pic_CXX='-fPIC' | |
14031 ;; | |
14032 ecpc* ) | |
14033 # old Intel C++ for x86_64 which still supported -KPIC. | |
14034 lt_prog_compiler_wl_CXX='-Wl,' | |
14035 lt_prog_compiler_pic_CXX='-KPIC' | |
14036 lt_prog_compiler_static_CXX='-static' | |
14037 ;; | |
14038 icpc* ) | |
14039 # Intel C++, used to be incompatible with GCC. | |
14040 # ICC 10 doesn't accept -KPIC any more. | |
14041 lt_prog_compiler_wl_CXX='-Wl,' | |
14042 lt_prog_compiler_pic_CXX='-fPIC' | |
14043 lt_prog_compiler_static_CXX='-static' | |
14044 ;; | |
14045 pgCC* | pgcpp*) | |
14046 # Portland Group C++ compiler | |
14047 lt_prog_compiler_wl_CXX='-Wl,' | |
14048 lt_prog_compiler_pic_CXX='-fpic' | |
14049 lt_prog_compiler_static_CXX='-Bstatic' | |
14050 ;; | |
14051 cxx*) | |
14052 # Compaq C++ | |
14053 # Make sure the PIC flag is empty. It appears that all Alpha | |
14054 # Linux and Compaq Tru64 Unix objects are PIC. | |
14055 lt_prog_compiler_pic_CXX= | |
14056 lt_prog_compiler_static_CXX='-non_shared' | |
14057 ;; | |
14058 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) | |
14059 # IBM XL 8.0, 9.0 on PPC and BlueGene | |
14060 lt_prog_compiler_wl_CXX='-Wl,' | |
14061 lt_prog_compiler_pic_CXX='-qpic' | |
14062 lt_prog_compiler_static_CXX='-qstaticlink' | |
14063 ;; | |
14064 *) | |
14065 case `$CC -V 2>&1 | sed 5q` in | |
14066 *Sun\ C*) | |
14067 # Sun C++ 5.9 | |
14068 lt_prog_compiler_pic_CXX='-KPIC' | |
14069 lt_prog_compiler_static_CXX='-Bstatic' | |
14070 lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14071 ;; | |
14072 esac | |
14073 ;; | |
14074 esac | |
14075 ;; | |
14076 lynxos*) | |
14077 ;; | |
14078 m88k*) | |
14079 ;; | |
14080 mvs*) | |
14081 case $cc_basename in | |
14082 cxx*) | |
14083 lt_prog_compiler_pic_CXX='-W c,exportall' | |
14084 ;; | |
14085 *) | |
14086 ;; | |
14087 esac | |
14088 ;; | |
14089 netbsd* | netbsdelf*-gnu) | |
14090 ;; | |
14091 *qnx* | *nto*) | |
14092 # QNX uses GNU C++, but need to define -shared option too, otherwise | |
14093 # it will coredump. | |
14094 lt_prog_compiler_pic_CXX='-fPIC -shared' | |
14095 ;; | |
14096 osf3* | osf4* | osf5*) | |
14097 case $cc_basename in | |
14098 KCC*) | |
14099 lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14100 ;; | |
14101 RCC*) | |
14102 # Rational C++ 2.4.1 | |
14103 lt_prog_compiler_pic_CXX='-pic' | |
14104 ;; | |
14105 cxx*) | |
14106 # Digital/Compaq C++ | |
14107 lt_prog_compiler_wl_CXX='-Wl,' | |
14108 # Make sure the PIC flag is empty. It appears that all Alpha | |
14109 # Linux and Compaq Tru64 Unix objects are PIC. | |
14110 lt_prog_compiler_pic_CXX= | |
14111 lt_prog_compiler_static_CXX='-non_shared' | |
14112 ;; | |
14113 *) | |
14114 ;; | |
14115 esac | |
14116 ;; | |
14117 psos*) | |
14118 ;; | |
14119 solaris*) | |
14120 case $cc_basename in | |
14121 CC* | sunCC*) | |
14122 # Sun C++ 4.2, 5.x and Centerline C++ | |
14123 lt_prog_compiler_pic_CXX='-KPIC' | |
14124 lt_prog_compiler_static_CXX='-Bstatic' | |
14125 lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14126 ;; | |
14127 gcx*) | |
14128 # Green Hills C++ Compiler | |
14129 lt_prog_compiler_pic_CXX='-PIC' | |
14130 ;; | |
14131 *) | |
14132 ;; | |
14133 esac | |
14134 ;; | |
14135 sunos4*) | |
14136 case $cc_basename in | |
14137 CC*) | |
14138 # Sun C++ 4.x | |
14139 lt_prog_compiler_pic_CXX='-pic' | |
14140 lt_prog_compiler_static_CXX='-Bstatic' | |
14141 ;; | |
14142 lcc*) | |
14143 # Lucid | |
14144 lt_prog_compiler_pic_CXX='-pic' | |
14145 ;; | |
14146 *) | |
14147 ;; | |
14148 esac | |
14149 ;; | |
14150 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
14151 case $cc_basename in | |
14152 CC*) | |
14153 lt_prog_compiler_wl_CXX='-Wl,' | |
14154 lt_prog_compiler_pic_CXX='-KPIC' | |
14155 lt_prog_compiler_static_CXX='-Bstatic' | |
14156 ;; | |
14157 esac | |
14158 ;; | |
14159 tandem*) | |
14160 case $cc_basename in | |
14161 NCC*) | |
14162 # NonStop-UX NCC 3.20 | |
14163 lt_prog_compiler_pic_CXX='-KPIC' | |
14164 ;; | |
14165 *) | |
14166 ;; | |
14167 esac | |
14168 ;; | |
14169 vxworks*) | |
14170 ;; | |
14171 *) | |
14172 lt_prog_compiler_can_build_shared_CXX=no | |
14173 ;; | |
14174 esac | |
14175 fi | |
14176 | |
14177 case $host_os in | |
14178 # For platforms which do not support PIC, -DPIC is meaningless: | |
14179 *djgpp*) | |
14180 lt_prog_compiler_pic_CXX= | |
14181 ;; | |
14182 *) | |
14183 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
14184 ;; | |
14185 esac | |
14186 | |
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 | |
14188 $as_echo_n "checking for $compiler option to produce PIC... " >&6; } | |
14189 if ${lt_cv_prog_compiler_pic_CXX+:} false; then : | |
14190 $as_echo_n "(cached) " >&6 | |
14191 else | |
14192 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX | |
14193 fi | |
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 | |
14195 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } | |
14196 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX | |
14197 | |
14198 # | |
14199 # Check to make sure the PIC flag actually works. | |
14200 # | |
14201 if test -n "$lt_prog_compiler_pic_CXX"; then | |
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
14203 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } | |
14204 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : | |
14205 $as_echo_n "(cached) " >&6 | |
14206 else | |
14207 lt_cv_prog_compiler_pic_works_CXX=no | |
14208 ac_outfile=conftest.$ac_objext | |
14209 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14210 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
14211 # Insert the option either (1) after the last *FLAGS variable, or | |
14212 # (2) before a word containing "conftest.", or (3) at the end. | |
14213 # Note that $ac_compile itself does not contain backslashes and begins | |
14214 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14215 # The option is referenced via a variable to avoid confusing sed. | |
14216 lt_compile=`echo "$ac_compile" | $SED \ | |
14217 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14218 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14219 -e 's:$: $lt_compiler_flag:'` | |
14220 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14221 (eval "$lt_compile" 2>conftest.err) | |
14222 ac_status=$? | |
14223 cat conftest.err >&5 | |
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14225 if (exit $ac_status) && test -s "$ac_outfile"; then | |
14226 # The compiler can only warn and ignore the option if not recognized | |
14227 # So say no if there are warnings other than the usual output. | |
14228 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp | |
14229 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
14230 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
14231 lt_cv_prog_compiler_pic_works_CXX=yes | |
14232 fi | |
14233 fi | |
14234 $RM conftest* | |
14235 | |
14236 fi | |
14237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 | |
14238 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } | |
14239 | |
14240 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then | |
14241 case $lt_prog_compiler_pic_CXX in | |
14242 "" | " "*) ;; | |
14243 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
14244 esac | |
14245 else | |
14246 lt_prog_compiler_pic_CXX= | |
14247 lt_prog_compiler_can_build_shared_CXX=no | |
14248 fi | |
14249 | |
14250 fi | |
14251 | |
14252 | |
14253 | |
14254 | |
14255 | |
14256 # | |
14257 # Check to make sure the static flag actually works. | |
14258 # | |
14259 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
14261 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } | |
14262 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : | |
14263 $as_echo_n "(cached) " >&6 | |
14264 else | |
14265 lt_cv_prog_compiler_static_works_CXX=no | |
14266 save_LDFLAGS="$LDFLAGS" | |
14267 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
14268 echo "$lt_simple_link_test_code" > conftest.$ac_ext | |
14269 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
14270 # The linker can only warn and ignore the option if not recognized | |
14271 # So say no if there are warnings | |
14272 if test -s conftest.err; then | |
14273 # Append any errors to the config.log. | |
14274 cat conftest.err 1>&5 | |
14275 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp | |
14276 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
14277 if diff conftest.exp conftest.er2 >/dev/null; then | |
14278 lt_cv_prog_compiler_static_works_CXX=yes | |
14279 fi | |
14280 else | |
14281 lt_cv_prog_compiler_static_works_CXX=yes | |
14282 fi | |
14283 fi | |
14284 $RM -r conftest* | |
14285 LDFLAGS="$save_LDFLAGS" | |
14286 | |
14287 fi | |
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 | |
14289 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } | |
14290 | |
14291 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then | |
14292 : | |
14293 else | |
14294 lt_prog_compiler_static_CXX= | |
14295 fi | |
14296 | |
14297 | |
14298 | |
14299 | |
14300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14301 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
14302 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : | |
14303 $as_echo_n "(cached) " >&6 | |
14304 else | |
14305 lt_cv_prog_compiler_c_o_CXX=no | |
14306 $RM -r conftest 2>/dev/null | |
14307 mkdir conftest | |
14308 cd conftest | |
14309 mkdir out | |
14310 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14311 | |
14312 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14313 # Insert the option either (1) after the last *FLAGS variable, or | |
14314 # (2) before a word containing "conftest.", or (3) at the end. | |
14315 # Note that $ac_compile itself does not contain backslashes and begins | |
14316 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14317 lt_compile=`echo "$ac_compile" | $SED \ | |
14318 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14319 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14320 -e 's:$: $lt_compiler_flag:'` | |
14321 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14322 (eval "$lt_compile" 2>out/conftest.err) | |
14323 ac_status=$? | |
14324 cat out/conftest.err >&5 | |
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14326 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
14327 then | |
14328 # The compiler can only warn and ignore the option if not recognized | |
14329 # So say no if there are warnings | |
14330 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
14331 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
14332 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14333 lt_cv_prog_compiler_c_o_CXX=yes | |
14334 fi | |
14335 fi | |
14336 chmod u+w . 2>&5 | |
14337 $RM conftest* | |
14338 # SGI C++ compiler will create directory out/ii_files/ for | |
14339 # template instantiation | |
14340 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14341 $RM out/* && rmdir out | |
14342 cd .. | |
14343 $RM -r conftest | |
14344 $RM conftest* | |
14345 | |
14346 fi | |
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14348 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14349 | |
14350 | |
14351 | |
14352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14353 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } | |
14354 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : | |
14355 $as_echo_n "(cached) " >&6 | |
14356 else | |
14357 lt_cv_prog_compiler_c_o_CXX=no | |
14358 $RM -r conftest 2>/dev/null | |
14359 mkdir conftest | |
14360 cd conftest | |
14361 mkdir out | |
14362 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14363 | |
14364 lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14365 # Insert the option either (1) after the last *FLAGS variable, or | |
14366 # (2) before a word containing "conftest.", or (3) at the end. | |
14367 # Note that $ac_compile itself does not contain backslashes and begins | |
14368 # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14369 lt_compile=`echo "$ac_compile" | $SED \ | |
14370 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14371 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14372 -e 's:$: $lt_compiler_flag:'` | |
14373 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) | |
14374 (eval "$lt_compile" 2>out/conftest.err) | |
14375 ac_status=$? | |
14376 cat out/conftest.err >&5 | |
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14378 if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
14379 then | |
14380 # The compiler can only warn and ignore the option if not recognized | |
14381 # So say no if there are warnings | |
14382 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp | |
14383 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
14384 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14385 lt_cv_prog_compiler_c_o_CXX=yes | |
14386 fi | |
14387 fi | |
14388 chmod u+w . 2>&5 | |
14389 $RM conftest* | |
14390 # SGI C++ compiler will create directory out/ii_files/ for | |
14391 # template instantiation | |
14392 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files | |
14393 $RM out/* && rmdir out | |
14394 cd .. | |
14395 $RM -r conftest | |
14396 $RM conftest* | |
14397 | |
14398 fi | |
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14400 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14401 | |
14402 | |
14403 | |
14404 | |
14405 hard_links="nottested" | |
14406 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
14407 # do not overwrite the value of need_locks provided by the user | |
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 | |
14409 $as_echo_n "checking if we can lock with hard links... " >&6; } | |
14410 hard_links=yes | |
14411 $RM conftest* | |
14412 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14413 touch conftest.a | |
14414 ln conftest.a conftest.b 2>&5 || hard_links=no | |
14415 ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 | |
14417 $as_echo "$hard_links" >&6; } | |
14418 if test "$hard_links" = no; then | |
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
14420 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
14421 need_locks=warn | |
14422 fi | |
14423 else | |
14424 need_locks=no | |
14425 fi | |
14426 | |
14427 | |
14428 | |
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
14430 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } | |
14431 | |
14432 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14433 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' | |
14434 case $host_os in | |
14435 aix[4-9]*) | |
14436 # If we're using GNU nm, then we don't want the "-C" option. | |
14437 # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
14438 # Also, AIX nm treats weak defined symbols like other global defined | |
14439 # symbols, whereas GNU nm marks them as "W". | |
14440 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then | |
14441 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
14442 else | |
14443 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' | |
14444 fi | |
14445 ;; | |
14446 pw32*) | |
14447 export_symbols_cmds_CXX="$ltdll_cmds" | |
14448 ;; | |
14449 cygwin* | mingw* | cegcc*) | |
14450 case $cc_basename in | |
14451 cl*) | |
14452 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' | |
14453 ;; | |
14454 *) | |
14455 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' | |
14456 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' | |
14457 ;; | |
14458 esac | |
14459 ;; | |
14460 linux* | k*bsd*-gnu | gnu*) | |
14461 link_all_deplibs_CXX=no | |
14462 ;; | |
14463 *) | |
14464 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14465 ;; | |
14466 esac | |
14467 | |
14468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 | |
14469 $as_echo "$ld_shlibs_CXX" >&6; } | |
14470 test "$ld_shlibs_CXX" = no && can_build_shared=no | |
14471 | |
14472 with_gnu_ld_CXX=$with_gnu_ld | |
14473 | |
14474 | |
14475 | |
14476 | |
14477 | |
14478 | |
14479 # | |
14480 # Do we need to explicitly link libc? | |
14481 # | |
14482 case "x$archive_cmds_need_lc_CXX" in | |
14483 x|xyes) | |
14484 # Assume -lc should be added | |
14485 archive_cmds_need_lc_CXX=yes | |
14486 | |
14487 if test "$enable_shared" = yes && test "$GCC" = yes; then | |
14488 case $archive_cmds_CXX in | |
14489 *'~'*) | |
14490 # FIXME: we may have to deal with multi-command sequences. | |
14491 ;; | |
14492 '$CC '*) | |
14493 # Test whether the compiler implicitly links with -lc since on some | |
14494 # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
14495 # to ld, don't add -lc before -lgcc. | |
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 | |
14497 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } | |
14498 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : | |
14499 $as_echo_n "(cached) " >&6 | |
14500 else | |
14501 $RM conftest* | |
14502 echo "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14503 | |
14504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 | |
14505 (eval $ac_compile) 2>&5 | |
14506 ac_status=$? | |
14507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14508 test $ac_status = 0; } 2>conftest.err; then | |
14509 soname=conftest | |
14510 lib=conftest | |
14511 libobjs=conftest.$ac_objext | |
14512 deplibs= | |
14513 wl=$lt_prog_compiler_wl_CXX | |
14514 pic_flag=$lt_prog_compiler_pic_CXX | |
14515 compiler_flags=-v | |
14516 linker_flags=-v | |
14517 verstring= | |
14518 output_objdir=. | |
14519 libname=conftest | |
14520 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
14521 allow_undefined_flag_CXX= | |
14522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 | |
14523 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
14524 ac_status=$? | |
14525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
14526 test $ac_status = 0; } | |
14527 then | |
14528 lt_cv_archive_cmds_need_lc_CXX=no | |
14529 else | |
14530 lt_cv_archive_cmds_need_lc_CXX=yes | |
14531 fi | |
14532 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
14533 else | |
14534 cat conftest.err 1>&5 | |
14535 fi | |
14536 $RM conftest* | |
14537 | |
14538 fi | |
14539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 | |
14540 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } | |
14541 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX | |
14542 ;; | |
14543 esac | |
14544 fi | |
14545 ;; | |
14546 esac | |
14547 | |
14548 | |
14549 | |
14550 | |
14551 | |
14552 | |
14553 | |
14554 | |
14555 | |
14556 | |
14557 | |
14558 | |
14559 | |
14560 | |
14561 | |
14562 | |
14563 | |
14564 | |
14565 | |
14566 | |
14567 | |
14568 | |
14569 | |
14570 | |
14571 | |
14572 | |
14573 | |
14574 | |
14575 | |
14576 | |
14577 | |
14578 | |
14579 | |
14580 | |
14581 | |
14582 | |
14583 | |
14584 | |
14585 | |
14586 | |
14587 | |
14588 | |
14589 | |
14590 | |
14591 | |
14592 | |
14593 | |
14594 | |
14595 | |
14596 | |
14597 | |
14598 | |
14599 | |
14600 | |
14601 | |
14602 | |
14603 | |
14604 | |
14605 | |
14606 | |
14607 | |
14608 | |
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 | |
14610 $as_echo_n "checking dynamic linker characteristics... " >&6; } | |
14611 | |
14612 library_names_spec= | |
14613 libname_spec='lib$name' | |
14614 soname_spec= | |
14615 shrext_cmds=".so" | |
14616 postinstall_cmds= | |
14617 postuninstall_cmds= | |
14618 finish_cmds= | |
14619 finish_eval= | |
14620 shlibpath_var= | |
14621 shlibpath_overrides_runpath=unknown | |
14622 version_type=none | |
14623 dynamic_linker="$host_os ld.so" | |
14624 sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
14625 need_lib_prefix=unknown | |
14626 hardcode_into_libs=no | |
14627 | |
14628 # when you set need_version to no, make sure it does not cause -set_version | |
14629 # flags to be left without arguments | |
14630 need_version=unknown | |
14631 | |
14632 case $host_os in | |
14633 aix3*) | |
14634 version_type=linux # correct to gnu/linux during the next big refactor | |
14635 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
14636 shlibpath_var=LIBPATH | |
14637 | |
14638 # AIX 3 has no versioning support, so we append a major version to the name. | |
14639 soname_spec='${libname}${release}${shared_ext}$major' | |
14640 ;; | |
14641 | |
14642 aix[4-9]*) | |
14643 version_type=linux # correct to gnu/linux during the next big refactor | |
14644 need_lib_prefix=no | |
14645 need_version=no | |
14646 hardcode_into_libs=yes | |
14647 if test "$host_cpu" = ia64; then | |
14648 # AIX 5 supports IA64 | |
14649 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
14650 shlibpath_var=LD_LIBRARY_PATH | |
14651 else | |
14652 # With GCC up to 2.95.x, collect2 would create an import file | |
14653 # for dependence libraries. The import file would start with | |
14654 # the line `#! .'. This would cause the generated library to | |
14655 # depend on `.', always an invalid library. This was fixed in | |
14656 # development snapshots of GCC prior to 3.0. | |
14657 case $host_os in | |
14658 aix4 | aix4.[01] | aix4.[01].*) | |
14659 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
14660 echo ' yes ' | |
14661 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then | |
14662 : | |
14663 else | |
14664 can_build_shared=no | |
14665 fi | |
14666 ;; | |
14667 esac | |
14668 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
14669 # soname into executable. Probably we can add versioning support to | |
14670 # collect2, so additional links can be useful in future. | |
14671 if test "$aix_use_runtimelinking" = yes; then | |
14672 # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
14673 # instead of lib<name>.a to let people know that these are not | |
14674 # typical AIX shared libraries. | |
14675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14676 else | |
14677 # We preserve .a as extension for shared libraries through AIX4.2 | |
14678 # and later when we are not doing run time linking. | |
14679 library_names_spec='${libname}${release}.a $libname.a' | |
14680 soname_spec='${libname}${release}${shared_ext}$major' | |
14681 fi | |
14682 shlibpath_var=LIBPATH | |
14683 fi | |
14684 ;; | |
14685 | |
14686 amigaos*) | |
14687 case $host_cpu in | |
14688 powerpc) | |
14689 # Since July 2007 AmigaOS4 officially supports .so libraries. | |
14690 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. | |
14691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14692 ;; | |
14693 m68k) | |
14694 library_names_spec='$libname.ixlibrary $libname.a' | |
14695 # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
14696 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' | |
14697 ;; | |
14698 esac | |
14699 ;; | |
14700 | |
14701 beos*) | |
14702 library_names_spec='${libname}${shared_ext}' | |
14703 dynamic_linker="$host_os ld.so" | |
14704 shlibpath_var=LIBRARY_PATH | |
14705 ;; | |
14706 | |
14707 bsdi[45]*) | |
14708 version_type=linux # correct to gnu/linux during the next big refactor | |
14709 need_version=no | |
14710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14711 soname_spec='${libname}${release}${shared_ext}$major' | |
14712 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
14713 shlibpath_var=LD_LIBRARY_PATH | |
14714 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
14715 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
14716 # the default ld.so.conf also contains /usr/contrib/lib and | |
14717 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
14718 # libtool to hard-code these into programs | |
14719 ;; | |
14720 | |
14721 cygwin* | mingw* | pw32* | cegcc*) | |
14722 version_type=windows | |
14723 shrext_cmds=".dll" | |
14724 need_version=no | |
14725 need_lib_prefix=no | |
14726 | |
14727 case $GCC,$cc_basename in | |
14728 yes,*) | |
14729 # gcc | |
14730 library_names_spec='$libname.dll.a' | |
14731 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14732 postinstall_cmds='base_file=`basename \${file}`~ | |
14733 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
14734 dldir=$destdir/`dirname \$dlpath`~ | |
14735 test -d \$dldir || mkdir -p \$dldir~ | |
14736 $install_prog $dir/$dlname \$dldir/$dlname~ | |
14737 chmod a+x \$dldir/$dlname~ | |
14738 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then | |
14739 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; | |
14740 fi' | |
14741 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
14742 dlpath=$dir/\$dldll~ | |
14743 $RM \$dlpath' | |
14744 shlibpath_overrides_runpath=yes | |
14745 | |
14746 case $host_os in | |
14747 cygwin*) | |
14748 # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
14749 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14750 | |
14751 ;; | |
14752 mingw* | cegcc*) | |
14753 # MinGW DLLs use traditional 'lib' prefix | |
14754 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14755 ;; | |
14756 pw32*) | |
14757 # pw32 DLLs use 'pw' prefix rather than 'lib' | |
14758 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14759 ;; | |
14760 esac | |
14761 dynamic_linker='Win32 ld.exe' | |
14762 ;; | |
14763 | |
14764 *,cl*) | |
14765 # Native MSVC | |
14766 libname_spec='$name' | |
14767 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14768 library_names_spec='${libname}.dll.lib' | |
14769 | |
14770 case $build_os in | |
14771 mingw*) | |
14772 sys_lib_search_path_spec= | |
14773 lt_save_ifs=$IFS | |
14774 IFS=';' | |
14775 for lt_path in $LIB | |
14776 do | |
14777 IFS=$lt_save_ifs | |
14778 # Let DOS variable expansion print the short 8.3 style file name. | |
14779 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` | |
14780 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" | |
14781 done | |
14782 IFS=$lt_save_ifs | |
14783 # Convert to MSYS style. | |
14784 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` | |
14785 ;; | |
14786 cygwin*) | |
14787 # Convert to unix form, then to dos form, then back to unix form | |
14788 # but this time dos style (no spaces!) so that the unix form looks | |
14789 # like /cygdrive/c/PROGRA~1:/cygdr... | |
14790 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` | |
14791 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` | |
14792 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
14793 ;; | |
14794 *) | |
14795 sys_lib_search_path_spec="$LIB" | |
14796 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then | |
14797 # It is most probably a Windows format PATH. | |
14798 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
14799 else | |
14800 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
14801 fi | |
14802 # FIXME: find the short name or the path components, as spaces are | |
14803 # common. (e.g. "Program Files" -> "PROGRA~1") | |
14804 ;; | |
14805 esac | |
14806 | |
14807 # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14808 postinstall_cmds='base_file=`basename \${file}`~ | |
14809 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ | |
14810 dldir=$destdir/`dirname \$dlpath`~ | |
14811 test -d \$dldir || mkdir -p \$dldir~ | |
14812 $install_prog $dir/$dlname \$dldir/$dlname' | |
14813 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
14814 dlpath=$dir/\$dldll~ | |
14815 $RM \$dlpath' | |
14816 shlibpath_overrides_runpath=yes | |
14817 dynamic_linker='Win32 link.exe' | |
14818 ;; | |
14819 | |
14820 *) | |
14821 # Assume MSVC wrapper | |
14822 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
14823 dynamic_linker='Win32 ld.exe' | |
14824 ;; | |
14825 esac | |
14826 # FIXME: first we should search . and the directory the executable is in | |
14827 shlibpath_var=PATH | |
14828 ;; | |
14829 | |
14830 darwin* | rhapsody*) | |
14831 dynamic_linker="$host_os dyld" | |
14832 version_type=darwin | |
14833 need_lib_prefix=no | |
14834 need_version=no | |
14835 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
14836 soname_spec='${libname}${release}${major}$shared_ext' | |
14837 shlibpath_overrides_runpath=yes | |
14838 shlibpath_var=DYLD_LIBRARY_PATH | |
14839 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
14840 | |
14841 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
14842 ;; | |
14843 | |
14844 dgux*) | |
14845 version_type=linux # correct to gnu/linux during the next big refactor | |
14846 need_lib_prefix=no | |
14847 need_version=no | |
14848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
14849 soname_spec='${libname}${release}${shared_ext}$major' | |
14850 shlibpath_var=LD_LIBRARY_PATH | |
14851 ;; | |
14852 | |
14853 freebsd* | dragonfly*) | |
14854 # DragonFly does not have aout. When/if they implement a new | |
14855 # versioning mechanism, adjust this. | |
14856 if test -x /usr/bin/objformat; then | |
14857 objformat=`/usr/bin/objformat` | |
14858 else | |
14859 case $host_os in | |
14860 freebsd[23].*) objformat=aout ;; | |
14861 *) objformat=elf ;; | |
14862 esac | |
14863 fi | |
14864 version_type=freebsd-$objformat | |
14865 case $version_type in | |
14866 freebsd-elf*) | |
14867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14868 need_version=no | |
14869 need_lib_prefix=no | |
14870 ;; | |
14871 freebsd-*) | |
14872 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
14873 need_version=yes | |
14874 ;; | |
14875 esac | |
14876 shlibpath_var=LD_LIBRARY_PATH | |
14877 case $host_os in | |
14878 freebsd2.*) | |
14879 shlibpath_overrides_runpath=yes | |
14880 ;; | |
14881 freebsd3.[01]* | freebsdelf3.[01]*) | |
14882 shlibpath_overrides_runpath=yes | |
14883 hardcode_into_libs=yes | |
14884 ;; | |
14885 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
14886 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
14887 shlibpath_overrides_runpath=no | |
14888 hardcode_into_libs=yes | |
14889 ;; | |
14890 *) # from 4.6 on, and DragonFly | |
14891 shlibpath_overrides_runpath=yes | |
14892 hardcode_into_libs=yes | |
14893 ;; | |
14894 esac | |
14895 ;; | |
14896 | |
14897 haiku*) | |
14898 version_type=linux # correct to gnu/linux during the next big refactor | |
14899 need_lib_prefix=no | |
14900 need_version=no | |
14901 dynamic_linker="$host_os runtime_loader" | |
14902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14903 soname_spec='${libname}${release}${shared_ext}$major' | |
14904 shlibpath_var=LIBRARY_PATH | |
14905 shlibpath_overrides_runpath=yes | |
14906 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' | |
14907 hardcode_into_libs=yes | |
14908 ;; | |
14909 | |
14910 hpux9* | hpux10* | hpux11*) | |
14911 # Give a soname corresponding to the major version so that dld.sl refuses to | |
14912 # link against other versions. | |
14913 version_type=sunos | |
14914 need_lib_prefix=no | |
14915 need_version=no | |
14916 case $host_cpu in | |
14917 ia64*) | |
14918 shrext_cmds='.so' | |
14919 hardcode_into_libs=yes | |
14920 dynamic_linker="$host_os dld.so" | |
14921 shlibpath_var=LD_LIBRARY_PATH | |
14922 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14924 soname_spec='${libname}${release}${shared_ext}$major' | |
14925 if test "X$HPUX_IA64_MODE" = X32; then | |
14926 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
14927 else | |
14928 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
14929 fi | |
14930 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14931 ;; | |
14932 hppa*64*) | |
14933 shrext_cmds='.sl' | |
14934 hardcode_into_libs=yes | |
14935 dynamic_linker="$host_os dld.sl" | |
14936 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
14937 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14939 soname_spec='${libname}${release}${shared_ext}$major' | |
14940 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
14941 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14942 ;; | |
14943 *) | |
14944 shrext_cmds='.sl' | |
14945 dynamic_linker="$host_os dld.sl" | |
14946 shlibpath_var=SHLIB_PATH | |
14947 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
14948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14949 soname_spec='${libname}${release}${shared_ext}$major' | |
14950 ;; | |
14951 esac | |
14952 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... | |
14953 postinstall_cmds='chmod 555 $lib' | |
14954 # or fails outright, so override atomically: | |
14955 install_override_mode=555 | |
14956 ;; | |
14957 | |
14958 interix[3-9]*) | |
14959 version_type=linux # correct to gnu/linux during the next big refactor | |
14960 need_lib_prefix=no | |
14961 need_version=no | |
14962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14963 soname_spec='${libname}${release}${shared_ext}$major' | |
14964 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
14965 shlibpath_var=LD_LIBRARY_PATH | |
14966 shlibpath_overrides_runpath=no | |
14967 hardcode_into_libs=yes | |
14968 ;; | |
14969 | |
14970 irix5* | irix6* | nonstopux*) | |
14971 case $host_os in | |
14972 nonstopux*) version_type=nonstopux ;; | |
14973 *) | |
14974 if test "$lt_cv_prog_gnu_ld" = yes; then | |
14975 version_type=linux # correct to gnu/linux during the next big refactor | |
14976 else | |
14977 version_type=irix | |
14978 fi ;; | |
14979 esac | |
14980 need_lib_prefix=no | |
14981 need_version=no | |
14982 soname_spec='${libname}${release}${shared_ext}$major' | |
14983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14984 case $host_os in | |
14985 irix5* | nonstopux*) | |
14986 libsuff= shlibsuff= | |
14987 ;; | |
14988 *) | |
14989 case $LD in # libtool.m4 will add one of these switches to LD | |
14990 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
14991 libsuff= shlibsuff= libmagic=32-bit;; | |
14992 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
14993 libsuff=32 shlibsuff=N32 libmagic=N32;; | |
14994 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
14995 libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
14996 *) libsuff= shlibsuff= libmagic=never-match;; | |
14997 esac | |
14998 ;; | |
14999 esac | |
15000 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
15001 shlibpath_overrides_runpath=no | |
15002 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
15003 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
15004 hardcode_into_libs=yes | |
15005 ;; | |
15006 | |
15007 # No shared lib support for Linux oldld, aout, or coff. | |
15008 linux*oldld* | linux*aout* | linux*coff*) | |
15009 dynamic_linker=no | |
15010 ;; | |
15011 | |
15012 # This must be glibc/ELF. | |
15013 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) | |
15014 version_type=linux # correct to gnu/linux during the next big refactor | |
15015 need_lib_prefix=no | |
15016 need_version=no | |
15017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15018 soname_spec='${libname}${release}${shared_ext}$major' | |
15019 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
15020 shlibpath_var=LD_LIBRARY_PATH | |
15021 shlibpath_overrides_runpath=no | |
15022 | |
15023 # Some binutils ld are patched to set DT_RUNPATH | |
15024 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : | |
15025 $as_echo_n "(cached) " >&6 | |
15026 else | |
15027 lt_cv_shlibpath_overrides_runpath=no | |
15028 save_LDFLAGS=$LDFLAGS | |
15029 save_libdir=$libdir | |
15030 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ | |
15031 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" | |
15032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
15033 /* end confdefs.h. */ | |
15034 | |
15035 int | |
15036 main () | |
15037 { | |
15038 | |
15039 ; | |
15040 return 0; | |
15041 } | |
15042 _ACEOF | |
15043 if ac_fn_cxx_try_link "$LINENO"; then : | |
15044 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : | |
15045 lt_cv_shlibpath_overrides_runpath=yes | |
15046 fi | |
15047 fi | |
15048 rm -f core conftest.err conftest.$ac_objext \ | |
15049 conftest$ac_exeext conftest.$ac_ext | |
15050 LDFLAGS=$save_LDFLAGS | |
15051 libdir=$save_libdir | |
15052 | |
15053 fi | |
15054 | |
15055 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath | |
15056 | |
15057 # This implies no fast_install, which is unacceptable. | |
15058 # Some rework will be needed to allow for fast_install | |
15059 # before this can be enabled. | |
15060 hardcode_into_libs=yes | |
15061 | |
15062 # Append ld.so.conf contents to the search path | |
15063 if test -f /etc/ld.so.conf; then | |
15064 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' ' '` | |
15065 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
15066 fi | |
15067 | |
15068 # We used to test for /lib/ld.so.1 and disable shared libraries on | |
15069 # powerpc, because MkLinux only supported shared libraries with the | |
15070 # GNU dynamic linker. Since this was broken with cross compilers, | |
15071 # most powerpc-linux boxes support dynamic linking these days and | |
15072 # people can always --disable-shared, the test was removed, and we | |
15073 # assume the GNU/Linux dynamic linker is in use. | |
15074 dynamic_linker='GNU/Linux ld.so' | |
15075 ;; | |
15076 | |
15077 netbsdelf*-gnu) | |
15078 version_type=linux | |
15079 need_lib_prefix=no | |
15080 need_version=no | |
15081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15082 soname_spec='${libname}${release}${shared_ext}$major' | |
15083 shlibpath_var=LD_LIBRARY_PATH | |
15084 shlibpath_overrides_runpath=no | |
15085 hardcode_into_libs=yes | |
15086 dynamic_linker='NetBSD ld.elf_so' | |
15087 ;; | |
15088 | |
15089 netbsd*) | |
15090 version_type=sunos | |
15091 need_lib_prefix=no | |
15092 need_version=no | |
15093 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then | |
15094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15095 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15096 dynamic_linker='NetBSD (a.out) ld.so' | |
15097 else | |
15098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
15099 soname_spec='${libname}${release}${shared_ext}$major' | |
15100 dynamic_linker='NetBSD ld.elf_so' | |
15101 fi | |
15102 shlibpath_var=LD_LIBRARY_PATH | |
15103 shlibpath_overrides_runpath=yes | |
15104 hardcode_into_libs=yes | |
15105 ;; | |
15106 | |
15107 newsos6) | |
15108 version_type=linux # correct to gnu/linux during the next big refactor | |
15109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15110 shlibpath_var=LD_LIBRARY_PATH | |
15111 shlibpath_overrides_runpath=yes | |
15112 ;; | |
15113 | |
15114 *nto* | *qnx*) | |
15115 version_type=qnx | |
15116 need_lib_prefix=no | |
15117 need_version=no | |
15118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15119 soname_spec='${libname}${release}${shared_ext}$major' | |
15120 shlibpath_var=LD_LIBRARY_PATH | |
15121 shlibpath_overrides_runpath=no | |
15122 hardcode_into_libs=yes | |
15123 dynamic_linker='ldqnx.so' | |
15124 ;; | |
15125 | |
15126 openbsd*) | |
15127 version_type=sunos | |
15128 sys_lib_dlsearch_path_spec="/usr/lib" | |
15129 need_lib_prefix=no | |
15130 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
15131 case $host_os in | |
15132 openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
15133 *) need_version=no ;; | |
15134 esac | |
15135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15136 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
15137 shlibpath_var=LD_LIBRARY_PATH | |
15138 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
15139 case $host_os in | |
15140 openbsd2.[89] | openbsd2.[89].*) | |
15141 shlibpath_overrides_runpath=no | |
15142 ;; | |
15143 *) | |
15144 shlibpath_overrides_runpath=yes | |
15145 ;; | |
15146 esac | |
15147 else | |
15148 shlibpath_overrides_runpath=yes | |
15149 fi | |
15150 ;; | |
15151 | |
15152 os2*) | |
15153 libname_spec='$name' | |
15154 shrext_cmds=".dll" | |
15155 need_lib_prefix=no | |
15156 library_names_spec='$libname${shared_ext} $libname.a' | |
15157 dynamic_linker='OS/2 ld.exe' | |
15158 shlibpath_var=LIBPATH | |
15159 ;; | |
15160 | |
15161 osf3* | osf4* | osf5*) | |
15162 version_type=osf | |
15163 need_lib_prefix=no | |
15164 need_version=no | |
15165 soname_spec='${libname}${release}${shared_ext}$major' | |
15166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15167 shlibpath_var=LD_LIBRARY_PATH | |
15168 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
15169 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
15170 ;; | |
15171 | |
15172 rdos*) | |
15173 dynamic_linker=no | |
15174 ;; | |
15175 | |
15176 solaris*) | |
15177 version_type=linux # correct to gnu/linux during the next big refactor | |
15178 need_lib_prefix=no | |
15179 need_version=no | |
15180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15181 soname_spec='${libname}${release}${shared_ext}$major' | |
15182 shlibpath_var=LD_LIBRARY_PATH | |
15183 shlibpath_overrides_runpath=yes | |
15184 hardcode_into_libs=yes | |
15185 # ldd complains unless libraries are executable | |
15186 postinstall_cmds='chmod +x $lib' | |
15187 ;; | |
15188 | |
15189 sunos4*) | |
15190 version_type=sunos | |
15191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15192 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15193 shlibpath_var=LD_LIBRARY_PATH | |
15194 shlibpath_overrides_runpath=yes | |
15195 if test "$with_gnu_ld" = yes; then | |
15196 need_lib_prefix=no | |
15197 fi | |
15198 need_version=yes | |
15199 ;; | |
15200 | |
15201 sysv4 | sysv4.3*) | |
15202 version_type=linux # correct to gnu/linux during the next big refactor | |
15203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15204 soname_spec='${libname}${release}${shared_ext}$major' | |
15205 shlibpath_var=LD_LIBRARY_PATH | |
15206 case $host_vendor in | |
15207 sni) | |
15208 shlibpath_overrides_runpath=no | |
15209 need_lib_prefix=no | |
15210 runpath_var=LD_RUN_PATH | |
15211 ;; | |
15212 siemens) | |
15213 need_lib_prefix=no | |
15214 ;; | |
15215 motorola) | |
15216 need_lib_prefix=no | |
15217 need_version=no | |
15218 shlibpath_overrides_runpath=no | |
15219 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
15220 ;; | |
15221 esac | |
15222 ;; | |
15223 | |
15224 sysv4*MP*) | |
15225 if test -d /usr/nec ;then | |
15226 version_type=linux # correct to gnu/linux during the next big refactor | |
15227 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
15228 soname_spec='$libname${shared_ext}.$major' | |
15229 shlibpath_var=LD_LIBRARY_PATH | |
15230 fi | |
15231 ;; | |
15232 | |
15233 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
15234 version_type=freebsd-elf | |
15235 need_lib_prefix=no | |
15236 need_version=no | |
15237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15238 soname_spec='${libname}${release}${shared_ext}$major' | |
15239 shlibpath_var=LD_LIBRARY_PATH | |
15240 shlibpath_overrides_runpath=yes | |
15241 hardcode_into_libs=yes | |
15242 if test "$with_gnu_ld" = yes; then | |
15243 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
15244 else | |
15245 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
15246 case $host_os in | |
15247 sco3.2v5*) | |
15248 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
15249 ;; | |
15250 esac | |
15251 fi | |
15252 sys_lib_dlsearch_path_spec='/usr/lib' | |
15253 ;; | |
15254 | |
15255 tpf*) | |
15256 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. | |
15257 version_type=linux # correct to gnu/linux during the next big refactor | |
15258 need_lib_prefix=no | |
15259 need_version=no | |
15260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15261 shlibpath_var=LD_LIBRARY_PATH | |
15262 shlibpath_overrides_runpath=no | |
15263 hardcode_into_libs=yes | |
15264 ;; | |
15265 | |
15266 uts4*) | |
15267 version_type=linux # correct to gnu/linux during the next big refactor | |
15268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15269 soname_spec='${libname}${release}${shared_ext}$major' | |
15270 shlibpath_var=LD_LIBRARY_PATH | |
15271 ;; | |
15272 | |
15273 *) | |
15274 dynamic_linker=no | |
15275 ;; | |
15276 esac | |
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 | |
15278 $as_echo "$dynamic_linker" >&6; } | |
15279 test "$dynamic_linker" = no && can_build_shared=no | |
15280 | |
15281 variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
15282 if test "$GCC" = yes; then | |
15283 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
15284 fi | |
15285 | |
15286 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then | |
15287 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" | |
15288 fi | |
15289 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then | |
15290 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" | |
15291 fi | |
15292 | |
15293 | |
15294 | |
15295 | |
15296 | |
15297 | |
15298 | |
15299 | |
15300 | |
15301 | |
15302 | |
15303 | |
15304 | |
15305 | |
15306 | |
15307 | |
15308 | |
15309 | |
15310 | |
15311 | |
15312 | |
15313 | |
15314 | |
15315 | |
15316 | |
15317 | |
15318 | |
15319 | |
15320 | |
15321 | |
15322 | |
15323 | |
15324 | |
15325 | |
15326 | |
15327 | |
15328 | |
15329 | |
15330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 | |
15331 $as_echo_n "checking how to hardcode library paths into programs... " >&6; } | |
15332 hardcode_action_CXX= | |
15333 if test -n "$hardcode_libdir_flag_spec_CXX" || | |
15334 test -n "$runpath_var_CXX" || | |
15335 test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
15336 | |
15337 # We can hardcode non-existent directories. | |
15338 if test "$hardcode_direct_CXX" != no && | |
15339 # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15340 # have to relink, otherwise we might link with an installed library | |
15341 # when we should be linking with a yet-to-be-installed one | |
15342 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
15343 test "$hardcode_minus_L_CXX" != no; then | |
15344 # Linking always hardcodes the temporary library directory. | |
15345 hardcode_action_CXX=relink | |
15346 else | |
15347 # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15348 hardcode_action_CXX=immediate | |
15349 fi | |
15350 else | |
15351 # We cannot hardcode anything, or else we can only hardcode existing | |
15352 # directories. | |
15353 hardcode_action_CXX=unsupported | |
15354 fi | |
15355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 | |
15356 $as_echo "$hardcode_action_CXX" >&6; } | |
15357 | |
15358 if test "$hardcode_action_CXX" = relink || | |
15359 test "$inherit_rpath_CXX" = yes; then | |
15360 # Fast installation is not supported | |
15361 enable_fast_install=no | |
15362 elif test "$shlibpath_overrides_runpath" = yes || | |
15363 test "$enable_shared" = no; then | |
15364 # Fast installation is not necessary | |
15365 enable_fast_install=needless | |
15366 fi | |
15367 | |
15368 | |
15369 | |
15370 | |
15371 | |
15372 | |
15373 | |
15374 fi # test -n "$compiler" | |
15375 | |
15376 CC=$lt_save_CC | |
15377 CFLAGS=$lt_save_CFLAGS | |
15378 LDCXX=$LD | |
15379 LD=$lt_save_LD | |
15380 GCC=$lt_save_GCC | |
15381 with_gnu_ld=$lt_save_with_gnu_ld | |
15382 lt_cv_path_LDCXX=$lt_cv_path_LD | |
15383 lt_cv_path_LD=$lt_save_path_LD | |
15384 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
15385 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
15386 fi # test "$_lt_caught_CXX_error" != yes | |
15387 | |
15388 ac_ext=c | |
15389 ac_cpp='$CPP $CPPFLAGS' | |
15390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15392 ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15393 | |
15394 | |
15395 | |
15396 | |
15397 | |
15398 | |
15399 | |
15400 | |
15401 | |
15402 | |
15403 | |
15404 | |
15405 | |
15406 | |
15407 | |
15408 ac_config_commands="$ac_config_commands libtool" | |
15409 | |
15410 | |
15411 | |
15412 | |
15413 # Only expand once: | |
15414 | |
15415 | |
15416 | |
15417 # Transfer these variables to the Makefile | |
15418 | |
15419 | |
15420 | |
15421 | |
15422 | |
15423 ac_config_files="$ac_config_files Makefile lib/Makefile include/Makefile bin/Makefile doc/Makefile portaudiocpp.pc" | |
15424 | |
15425 cat >confcache <<\_ACEOF | |
15426 # This file is a shell script that caches the results of configure | |
15427 # tests run on this system so they can be shared between configure | |
15428 # scripts and configure runs, see configure's option --config-cache. | |
15429 # It is not useful on other systems. If it contains results you don't | |
15430 # want to keep, you may remove or edit it. | |
15431 # | |
15432 # config.status only pays attention to the cache file if you give it | |
15433 # the --recheck option to rerun configure. | |
15434 # | |
15435 # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
15436 # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
15437 # following values. | |
15438 | |
15439 _ACEOF | |
15440 | |
15441 # The following way of writing the cache mishandles newlines in values, | |
15442 # but we know of no workaround that is simple, portable, and efficient. | |
15443 # So, we kill variables containing newlines. | |
15444 # Ultrix sh set writes to stderr and can't be redirected directly, | |
15445 # and sets the high bit in the cache file unless we assign to the vars. | |
15446 ( | |
15447 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
15448 eval ac_val=\$$ac_var | |
15449 case $ac_val in #( | |
15450 *${as_nl}*) | |
15451 case $ac_var in #( | |
15452 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
15453 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
15454 esac | |
15455 case $ac_var in #( | |
15456 _ | IFS | as_nl) ;; #( | |
15457 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
15458 *) { eval $ac_var=; unset $ac_var;} ;; | |
15459 esac ;; | |
15460 esac | |
15461 done | |
15462 | |
15463 (set) 2>&1 | | |
15464 case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
15465 *${as_nl}ac_space=\ *) | |
15466 # `set' does not quote correctly, so add quotes: double-quote | |
15467 # substitution turns \\\\ into \\, and sed turns \\ into \. | |
15468 sed -n \ | |
15469 "s/'/'\\\\''/g; | |
15470 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
15471 ;; #( | |
15472 *) | |
15473 # `set' quotes correctly as required by POSIX, so do not add quotes. | |
15474 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
15475 ;; | |
15476 esac | | |
15477 sort | |
15478 ) | | |
15479 sed ' | |
15480 /^ac_cv_env_/b end | |
15481 t clear | |
15482 :clear | |
15483 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
15484 t end | |
15485 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
15486 :end' >>confcache | |
15487 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
15488 if test -w "$cache_file"; then | |
15489 if test "x$cache_file" != "x/dev/null"; then | |
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
15491 $as_echo "$as_me: updating cache $cache_file" >&6;} | |
15492 if test ! -f "$cache_file" || test -h "$cache_file"; then | |
15493 cat confcache >"$cache_file" | |
15494 else | |
15495 case $cache_file in #( | |
15496 */* | ?:*) | |
15497 mv -f confcache "$cache_file"$$ && | |
15498 mv -f "$cache_file"$$ "$cache_file" ;; #( | |
15499 *) | |
15500 mv -f confcache "$cache_file" ;; | |
15501 esac | |
15502 fi | |
15503 fi | |
15504 else | |
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
15506 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
15507 fi | |
15508 fi | |
15509 rm -f confcache | |
15510 | |
15511 test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
15512 # Let make expand exec_prefix. | |
15513 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
15514 | |
15515 # Transform confdefs.h into DEFS. | |
15516 # Protect against shell expansion while executing Makefile rules. | |
15517 # Protect against Makefile macro expansion. | |
15518 # | |
15519 # If the first sed substitution is executed (which looks for macros that | |
15520 # take arguments), then branch to the quote section. Otherwise, | |
15521 # look for a macro that doesn't take arguments. | |
15522 ac_script=' | |
15523 :mline | |
15524 /\\$/{ | |
15525 N | |
15526 s,\\\n,, | |
15527 b mline | |
15528 } | |
15529 t clear | |
15530 :clear | |
15531 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
15532 t quote | |
15533 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g | |
15534 t quote | |
15535 b any | |
15536 :quote | |
15537 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
15538 s/\[/\\&/g | |
15539 s/\]/\\&/g | |
15540 s/\$/$$/g | |
15541 H | |
15542 :any | |
15543 ${ | |
15544 g | |
15545 s/^\n// | |
15546 s/\n/ /g | |
15547 p | |
15548 } | |
15549 ' | |
15550 DEFS=`sed -n "$ac_script" confdefs.h` | |
15551 | |
15552 | |
15553 ac_libobjs= | |
15554 ac_ltlibobjs= | |
15555 U= | |
15556 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
15557 # 1. Remove the extension, and $U if already installed. | |
15558 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
15559 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
15560 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
15561 # will be set to the directory where LIBOBJS objects are built. | |
15562 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
15563 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
15564 done | |
15565 LIBOBJS=$ac_libobjs | |
15566 | |
15567 LTLIBOBJS=$ac_ltlibobjs | |
15568 | |
15569 | |
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
15571 $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
15572 if test -n "$am_sleep_pid"; then | |
15573 # Hide warnings about reused PIDs. | |
15574 wait $am_sleep_pid 2>/dev/null | |
15575 fi | |
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
15577 $as_echo "done" >&6; } | |
15578 if test -n "$EXEEXT"; then | |
15579 am__EXEEXT_TRUE= | |
15580 am__EXEEXT_FALSE='#' | |
15581 else | |
15582 am__EXEEXT_TRUE='#' | |
15583 am__EXEEXT_FALSE= | |
15584 fi | |
15585 | |
15586 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
15587 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
15588 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15589 fi | |
15590 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
15591 as_fn_error $? "conditional \"AMDEP\" was never defined. | |
15592 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15593 fi | |
15594 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
15595 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
15596 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15597 fi | |
15598 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
15599 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | |
15600 Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
15601 fi | |
15602 | |
15603 : "${CONFIG_STATUS=./config.status}" | |
15604 ac_write_fail=0 | |
15605 ac_clean_files_save=$ac_clean_files | |
15606 ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
15608 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
15609 as_write_fail=0 | |
15610 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
15611 #! $SHELL | |
15612 # Generated by $as_me. | |
15613 # Run this file to recreate the current configuration. | |
15614 # Compiler output produced by configure, useful for debugging | |
15615 # configure, is in config.log if it exists. | |
15616 | |
15617 debug=false | |
15618 ac_cs_recheck=false | |
15619 ac_cs_silent=false | |
15620 | |
15621 SHELL=\${CONFIG_SHELL-$SHELL} | |
15622 export SHELL | |
15623 _ASEOF | |
15624 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
15625 ## -------------------- ## | |
15626 ## M4sh Initialization. ## | |
15627 ## -------------------- ## | |
15628 | |
15629 # Be more Bourne compatible | |
15630 DUALCASE=1; export DUALCASE # for MKS sh | |
15631 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
15632 emulate sh | |
15633 NULLCMD=: | |
15634 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
15635 # is contrary to our usage. Disable this feature. | |
15636 alias -g '${1+"$@"}'='"$@"' | |
15637 setopt NO_GLOB_SUBST | |
15638 else | |
15639 case `(set -o) 2>/dev/null` in #( | |
15640 *posix*) : | |
15641 set -o posix ;; #( | |
15642 *) : | |
15643 ;; | |
15644 esac | |
15645 fi | |
15646 | |
15647 | |
15648 as_nl=' | |
15649 ' | |
15650 export as_nl | |
15651 # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
15652 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
15653 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
15654 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
15655 # Prefer a ksh shell builtin over an external printf program on Solaris, | |
15656 # but without wasting forks for bash or zsh. | |
15657 if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
15658 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15659 as_echo='print -r --' | |
15660 as_echo_n='print -rn --' | |
15661 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
15662 as_echo='printf %s\n' | |
15663 as_echo_n='printf %s' | |
15664 else | |
15665 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
15666 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
15667 as_echo_n='/usr/ucb/echo -n' | |
15668 else | |
15669 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
15670 as_echo_n_body='eval | |
15671 arg=$1; | |
15672 case $arg in #( | |
15673 *"$as_nl"*) | |
15674 expr "X$arg" : "X\\(.*\\)$as_nl"; | |
15675 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
15676 esac; | |
15677 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
15678 ' | |
15679 export as_echo_n_body | |
15680 as_echo_n='sh -c $as_echo_n_body as_echo' | |
15681 fi | |
15682 export as_echo_body | |
15683 as_echo='sh -c $as_echo_body as_echo' | |
15684 fi | |
15685 | |
15686 # The user is always right. | |
15687 if test "${PATH_SEPARATOR+set}" != set; then | |
15688 PATH_SEPARATOR=: | |
15689 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
15690 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
15691 PATH_SEPARATOR=';' | |
15692 } | |
15693 fi | |
15694 | |
15695 | |
15696 # IFS | |
15697 # We need space, tab and new line, in precisely that order. Quoting is | |
15698 # there to prevent editors from complaining about space-tab. | |
15699 # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
15700 # splitting by setting IFS to empty value.) | |
15701 IFS=" "" $as_nl" | |
15702 | |
15703 # Find who we are. Look in the path if we contain no directory separator. | |
15704 as_myself= | |
15705 case $0 in #(( | |
15706 *[\\/]* ) as_myself=$0 ;; | |
15707 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
15708 for as_dir in $PATH | |
15709 do | |
15710 IFS=$as_save_IFS | |
15711 test -z "$as_dir" && as_dir=. | |
15712 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
15713 done | |
15714 IFS=$as_save_IFS | |
15715 | |
15716 ;; | |
15717 esac | |
15718 # We did not find ourselves, most probably we were run as `sh COMMAND' | |
15719 # in which case we are not to be found in the path. | |
15720 if test "x$as_myself" = x; then | |
15721 as_myself=$0 | |
15722 fi | |
15723 if test ! -f "$as_myself"; then | |
15724 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
15725 exit 1 | |
15726 fi | |
15727 | |
15728 # Unset variables that we do not need and which cause bugs (e.g. in | |
15729 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
15730 # suppresses any "Segmentation fault" message there. '((' could | |
15731 # trigger a bug in pdksh 5.2.14. | |
15732 for as_var in BASH_ENV ENV MAIL MAILPATH | |
15733 do eval test x\${$as_var+set} = xset \ | |
15734 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
15735 done | |
15736 PS1='$ ' | |
15737 PS2='> ' | |
15738 PS4='+ ' | |
15739 | |
15740 # NLS nuisances. | |
15741 LC_ALL=C | |
15742 export LC_ALL | |
15743 LANGUAGE=C | |
15744 export LANGUAGE | |
15745 | |
15746 # CDPATH. | |
15747 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
15748 | |
15749 | |
15750 # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
15751 # ---------------------------------------- | |
15752 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
15753 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
15754 # script with STATUS, using 1 if that was 0. | |
15755 as_fn_error () | |
15756 { | |
15757 as_status=$1; test $as_status -eq 0 && as_status=1 | |
15758 if test "$4"; then | |
15759 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
15760 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
15761 fi | |
15762 $as_echo "$as_me: error: $2" >&2 | |
15763 as_fn_exit $as_status | |
15764 } # as_fn_error | |
15765 | |
15766 | |
15767 # as_fn_set_status STATUS | |
15768 # ----------------------- | |
15769 # Set $? to STATUS, without forking. | |
15770 as_fn_set_status () | |
15771 { | |
15772 return $1 | |
15773 } # as_fn_set_status | |
15774 | |
15775 # as_fn_exit STATUS | |
15776 # ----------------- | |
15777 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
15778 as_fn_exit () | |
15779 { | |
15780 set +e | |
15781 as_fn_set_status $1 | |
15782 exit $1 | |
15783 } # as_fn_exit | |
15784 | |
15785 # as_fn_unset VAR | |
15786 # --------------- | |
15787 # Portably unset VAR. | |
15788 as_fn_unset () | |
15789 { | |
15790 { eval $1=; unset $1;} | |
15791 } | |
15792 as_unset=as_fn_unset | |
15793 # as_fn_append VAR VALUE | |
15794 # ---------------------- | |
15795 # Append the text in VALUE to the end of the definition contained in VAR. Take | |
15796 # advantage of any shell optimizations that allow amortized linear growth over | |
15797 # repeated appends, instead of the typical quadratic growth present in naive | |
15798 # implementations. | |
15799 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
15800 eval 'as_fn_append () | |
15801 { | |
15802 eval $1+=\$2 | |
15803 }' | |
15804 else | |
15805 as_fn_append () | |
15806 { | |
15807 eval $1=\$$1\$2 | |
15808 } | |
15809 fi # as_fn_append | |
15810 | |
15811 # as_fn_arith ARG... | |
15812 # ------------------ | |
15813 # Perform arithmetic evaluation on the ARGs, and store the result in the | |
15814 # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
15815 # must be portable across $(()) and expr. | |
15816 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
15817 eval 'as_fn_arith () | |
15818 { | |
15819 as_val=$(( $* )) | |
15820 }' | |
15821 else | |
15822 as_fn_arith () | |
15823 { | |
15824 as_val=`expr "$@" || test $? -eq 1` | |
15825 } | |
15826 fi # as_fn_arith | |
15827 | |
15828 | |
15829 if expr a : '\(a\)' >/dev/null 2>&1 && | |
15830 test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
15831 as_expr=expr | |
15832 else | |
15833 as_expr=false | |
15834 fi | |
15835 | |
15836 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
15837 as_basename=basename | |
15838 else | |
15839 as_basename=false | |
15840 fi | |
15841 | |
15842 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
15843 as_dirname=dirname | |
15844 else | |
15845 as_dirname=false | |
15846 fi | |
15847 | |
15848 as_me=`$as_basename -- "$0" || | |
15849 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
15850 X"$0" : 'X\(//\)$' \| \ | |
15851 X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
15852 $as_echo X/"$0" | | |
15853 sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
15854 s//\1/ | |
15855 q | |
15856 } | |
15857 /^X\/\(\/\/\)$/{ | |
15858 s//\1/ | |
15859 q | |
15860 } | |
15861 /^X\/\(\/\).*/{ | |
15862 s//\1/ | |
15863 q | |
15864 } | |
15865 s/.*/./; q'` | |
15866 | |
15867 # Avoid depending upon Character Ranges. | |
15868 as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
15869 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
15870 as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
15871 as_cr_digits='0123456789' | |
15872 as_cr_alnum=$as_cr_Letters$as_cr_digits | |
15873 | |
15874 ECHO_C= ECHO_N= ECHO_T= | |
15875 case `echo -n x` in #((((( | |
15876 -n*) | |
15877 case `echo 'xy\c'` in | |
15878 *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
15879 xy) ECHO_C='\c';; | |
15880 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
15881 ECHO_T=' ';; | |
15882 esac;; | |
15883 *) | |
15884 ECHO_N='-n';; | |
15885 esac | |
15886 | |
15887 rm -f conf$$ conf$$.exe conf$$.file | |
15888 if test -d conf$$.dir; then | |
15889 rm -f conf$$.dir/conf$$.file | |
15890 else | |
15891 rm -f conf$$.dir | |
15892 mkdir conf$$.dir 2>/dev/null | |
15893 fi | |
15894 if (echo >conf$$.file) 2>/dev/null; then | |
15895 if ln -s conf$$.file conf$$ 2>/dev/null; then | |
15896 as_ln_s='ln -s' | |
15897 # ... but there are two gotchas: | |
15898 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
15899 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
15900 # In both cases, we have to default to `cp -pR'. | |
15901 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
15902 as_ln_s='cp -pR' | |
15903 elif ln conf$$.file conf$$ 2>/dev/null; then | |
15904 as_ln_s=ln | |
15905 else | |
15906 as_ln_s='cp -pR' | |
15907 fi | |
15908 else | |
15909 as_ln_s='cp -pR' | |
15910 fi | |
15911 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
15912 rmdir conf$$.dir 2>/dev/null | |
15913 | |
15914 | |
15915 # as_fn_mkdir_p | |
15916 # ------------- | |
15917 # Create "$as_dir" as a directory, including parents if necessary. | |
15918 as_fn_mkdir_p () | |
15919 { | |
15920 | |
15921 case $as_dir in #( | |
15922 -*) as_dir=./$as_dir;; | |
15923 esac | |
15924 test -d "$as_dir" || eval $as_mkdir_p || { | |
15925 as_dirs= | |
15926 while :; do | |
15927 case $as_dir in #( | |
15928 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
15929 *) as_qdir=$as_dir;; | |
15930 esac | |
15931 as_dirs="'$as_qdir' $as_dirs" | |
15932 as_dir=`$as_dirname -- "$as_dir" || | |
15933 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
15934 X"$as_dir" : 'X\(//\)[^/]' \| \ | |
15935 X"$as_dir" : 'X\(//\)$' \| \ | |
15936 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
15937 $as_echo X"$as_dir" | | |
15938 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
15939 s//\1/ | |
15940 q | |
15941 } | |
15942 /^X\(\/\/\)[^/].*/{ | |
15943 s//\1/ | |
15944 q | |
15945 } | |
15946 /^X\(\/\/\)$/{ | |
15947 s//\1/ | |
15948 q | |
15949 } | |
15950 /^X\(\/\).*/{ | |
15951 s//\1/ | |
15952 q | |
15953 } | |
15954 s/.*/./; q'` | |
15955 test -d "$as_dir" && break | |
15956 done | |
15957 test -z "$as_dirs" || eval "mkdir $as_dirs" | |
15958 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
15959 | |
15960 | |
15961 } # as_fn_mkdir_p | |
15962 if mkdir -p . 2>/dev/null; then | |
15963 as_mkdir_p='mkdir -p "$as_dir"' | |
15964 else | |
15965 test -d ./-p && rmdir ./-p | |
15966 as_mkdir_p=false | |
15967 fi | |
15968 | |
15969 | |
15970 # as_fn_executable_p FILE | |
15971 # ----------------------- | |
15972 # Test if FILE is an executable regular file. | |
15973 as_fn_executable_p () | |
15974 { | |
15975 test -f "$1" && test -x "$1" | |
15976 } # as_fn_executable_p | |
15977 as_test_x='test -x' | |
15978 as_executable_p=as_fn_executable_p | |
15979 | |
15980 # Sed expression to map a string onto a valid CPP name. | |
15981 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
15982 | |
15983 # Sed expression to map a string onto a valid variable name. | |
15984 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
15985 | |
15986 | |
15987 exec 6>&1 | |
15988 ## ----------------------------------- ## | |
15989 ## Main body of $CONFIG_STATUS script. ## | |
15990 ## ----------------------------------- ## | |
15991 _ASEOF | |
15992 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
15993 | |
15994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
15995 # Save the log message, to keep $0 and so on meaningful, and to | |
15996 # report actual input values of CONFIG_FILES etc. instead of their | |
15997 # values after options handling. | |
15998 ac_log=" | |
15999 This file was extended by PortAudioCpp $as_me 12, which was | |
16000 generated by GNU Autoconf 2.69. Invocation command line was | |
16001 | |
16002 CONFIG_FILES = $CONFIG_FILES | |
16003 CONFIG_HEADERS = $CONFIG_HEADERS | |
16004 CONFIG_LINKS = $CONFIG_LINKS | |
16005 CONFIG_COMMANDS = $CONFIG_COMMANDS | |
16006 $ $0 $@ | |
16007 | |
16008 on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
16009 " | |
16010 | |
16011 _ACEOF | |
16012 | |
16013 case $ac_config_files in *" | |
16014 "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
16015 esac | |
16016 | |
16017 | |
16018 | |
16019 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16020 # Files that config.status was made for. | |
16021 config_files="$ac_config_files" | |
16022 config_commands="$ac_config_commands" | |
16023 | |
16024 _ACEOF | |
16025 | |
16026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16027 ac_cs_usage="\ | |
16028 \`$as_me' instantiates files and other configuration actions | |
16029 from templates according to the current configuration. Unless the files | |
16030 and actions are specified as TAGs, all are instantiated by default. | |
16031 | |
16032 Usage: $0 [OPTION]... [TAG]... | |
16033 | |
16034 -h, --help print this help, then exit | |
16035 -V, --version print version number and configuration settings, then exit | |
16036 --config print configuration, then exit | |
16037 -q, --quiet, --silent | |
16038 do not print progress messages | |
16039 -d, --debug don't remove temporary files | |
16040 --recheck update $as_me by reconfiguring in the same conditions | |
16041 --file=FILE[:TEMPLATE] | |
16042 instantiate the configuration file FILE | |
16043 | |
16044 Configuration files: | |
16045 $config_files | |
16046 | |
16047 Configuration commands: | |
16048 $config_commands | |
16049 | |
16050 Report bugs to the package provider." | |
16051 | |
16052 _ACEOF | |
16053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16054 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
16055 ac_cs_version="\\ | |
16056 PortAudioCpp config.status 12 | |
16057 configured by $0, generated by GNU Autoconf 2.69, | |
16058 with options \\"\$ac_cs_config\\" | |
16059 | |
16060 Copyright (C) 2012 Free Software Foundation, Inc. | |
16061 This config.status script is free software; the Free Software Foundation | |
16062 gives unlimited permission to copy, distribute and modify it." | |
16063 | |
16064 ac_pwd='$ac_pwd' | |
16065 srcdir='$srcdir' | |
16066 INSTALL='$INSTALL' | |
16067 MKDIR_P='$MKDIR_P' | |
16068 AWK='$AWK' | |
16069 test -n "\$AWK" || AWK=awk | |
16070 _ACEOF | |
16071 | |
16072 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16073 # The default lists apply if the user does not specify any file. | |
16074 ac_need_defaults=: | |
16075 while test $# != 0 | |
16076 do | |
16077 case $1 in | |
16078 --*=?*) | |
16079 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
16080 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
16081 ac_shift=: | |
16082 ;; | |
16083 --*=) | |
16084 ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
16085 ac_optarg= | |
16086 ac_shift=: | |
16087 ;; | |
16088 *) | |
16089 ac_option=$1 | |
16090 ac_optarg=$2 | |
16091 ac_shift=shift | |
16092 ;; | |
16093 esac | |
16094 | |
16095 case $ac_option in | |
16096 # Handling of the options. | |
16097 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
16098 ac_cs_recheck=: ;; | |
16099 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
16100 $as_echo "$ac_cs_version"; exit ;; | |
16101 --config | --confi | --conf | --con | --co | --c ) | |
16102 $as_echo "$ac_cs_config"; exit ;; | |
16103 --debug | --debu | --deb | --de | --d | -d ) | |
16104 debug=: ;; | |
16105 --file | --fil | --fi | --f ) | |
16106 $ac_shift | |
16107 case $ac_optarg in | |
16108 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
16109 '') as_fn_error $? "missing file argument" ;; | |
16110 esac | |
16111 as_fn_append CONFIG_FILES " '$ac_optarg'" | |
16112 ac_need_defaults=false;; | |
16113 --he | --h | --help | --hel | -h ) | |
16114 $as_echo "$ac_cs_usage"; exit ;; | |
16115 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
16116 | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
16117 ac_cs_silent=: ;; | |
16118 | |
16119 # This is an error. | |
16120 -*) as_fn_error $? "unrecognized option: \`$1' | |
16121 Try \`$0 --help' for more information." ;; | |
16122 | |
16123 *) as_fn_append ac_config_targets " $1" | |
16124 ac_need_defaults=false ;; | |
16125 | |
16126 esac | |
16127 shift | |
16128 done | |
16129 | |
16130 ac_configure_extra_args= | |
16131 | |
16132 if $ac_cs_silent; then | |
16133 exec 6>/dev/null | |
16134 ac_configure_extra_args="$ac_configure_extra_args --silent" | |
16135 fi | |
16136 | |
16137 _ACEOF | |
16138 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16139 if \$ac_cs_recheck; then | |
16140 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
16141 shift | |
16142 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
16143 CONFIG_SHELL='$SHELL' | |
16144 export CONFIG_SHELL | |
16145 exec "\$@" | |
16146 fi | |
16147 | |
16148 _ACEOF | |
16149 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16150 exec 5>>config.log | |
16151 { | |
16152 echo | |
16153 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
16154 ## Running $as_me. ## | |
16155 _ASBOX | |
16156 $as_echo "$ac_log" | |
16157 } >&5 | |
16158 | |
16159 _ACEOF | |
16160 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16161 # | |
16162 # INIT-COMMANDS | |
16163 # | |
16164 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
16165 | |
16166 | |
16167 # The HP-UX ksh and POSIX shell print the target directory to stdout | |
16168 # if CDPATH is set. | |
16169 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
16170 | |
16171 sed_quote_subst='$sed_quote_subst' | |
16172 double_quote_subst='$double_quote_subst' | |
16173 delay_variable_subst='$delay_variable_subst' | |
16174 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' | |
16175 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' | |
16176 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' | |
16177 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' | |
16178 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' | |
16179 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' | |
16180 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' | |
16181 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' | |
16182 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' | |
16183 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' | |
16184 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' | |
16185 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' | |
16186 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' | |
16187 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' | |
16188 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' | |
16189 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' | |
16190 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' | |
16191 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' | |
16192 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' | |
16193 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' | |
16194 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' | |
16195 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' | |
16196 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' | |
16197 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' | |
16198 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' | |
16199 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' | |
16200 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' | |
16201 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' | |
16202 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' | |
16203 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' | |
16204 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' | |
16205 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' | |
16206 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' | |
16207 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' | |
16208 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' | |
16209 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' | |
16210 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' | |
16211 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' | |
16212 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' | |
16213 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' | |
16214 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' | |
16215 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' | |
16216 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' | |
16217 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' | |
16218 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' | |
16219 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' | |
16220 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16221 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16222 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' | |
16223 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' | |
16224 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' | |
16225 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' | |
16226 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' | |
16227 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' | |
16228 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' | |
16229 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' | |
16230 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' | |
16231 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"`' | |
16232 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' | |
16233 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' | |
16234 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' | |
16235 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' | |
16236 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' | |
16237 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' | |
16238 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' | |
16239 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' | |
16240 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' | |
16241 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' | |
16242 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' | |
16243 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' | |
16244 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' | |
16245 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' | |
16246 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' | |
16247 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' | |
16248 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' | |
16249 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' | |
16250 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
16251 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' | |
16252 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' | |
16253 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' | |
16254 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' | |
16255 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' | |
16256 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' | |
16257 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' | |
16258 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' | |
16259 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
16260 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' | |
16261 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' | |
16262 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' | |
16263 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
16264 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' | |
16265 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' | |
16266 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' | |
16267 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' | |
16268 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' | |
16269 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' | |
16270 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
16271 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' | |
16272 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' | |
16273 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' | |
16274 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' | |
16275 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' | |
16276 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' | |
16277 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' | |
16278 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' | |
16279 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' | |
16280 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' | |
16281 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' | |
16282 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' | |
16283 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' | |
16284 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' | |
16285 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' | |
16286 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' | |
16287 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' | |
16288 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' | |
16289 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' | |
16290 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' | |
16291 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' | |
16292 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16293 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' | |
16294 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' | |
16295 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' | |
16296 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' | |
16297 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' | |
16298 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' | |
16299 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' | |
16300 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' | |
16301 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' | |
16302 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' | |
16303 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' | |
16304 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' | |
16305 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' | |
16306 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' | |
16307 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' | |
16308 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' | |
16309 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' | |
16310 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' | |
16311 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' | |
16312 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
16313 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
16314 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
16315 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' | |
16316 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' | |
16317 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
16318 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' | |
16319 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' | |
16320 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' | |
16321 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' | |
16322 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' | |
16323 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' | |
16324 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
16325 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
16326 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' | |
16327 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
16328 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
16329 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
16330 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
16331 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
16332 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
16333 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' | |
16334 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
16335 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' | |
16336 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
16337 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' | |
16338 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' | |
16339 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' | |
16340 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' | |
16341 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' | |
16342 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' | |
16343 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' | |
16344 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' | |
16345 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' | |
16346 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
16347 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
16348 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' | |
16349 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
16350 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' | |
16351 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' | |
16352 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' | |
16353 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' | |
16354 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
16355 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' | |
16356 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' | |
16357 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' | |
16358 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' | |
16359 | |
16360 LTCC='$LTCC' | |
16361 LTCFLAGS='$LTCFLAGS' | |
16362 compiler='$compiler_DEFAULT' | |
16363 | |
16364 # A function that is used when there is no print builtin or printf. | |
16365 func_fallback_echo () | |
16366 { | |
16367 eval 'cat <<_LTECHO_EOF | |
16368 \$1 | |
16369 _LTECHO_EOF' | |
16370 } | |
16371 | |
16372 # Quote evaled strings. | |
16373 for var in AS \ | |
16374 DLLTOOL \ | |
16375 OBJDUMP \ | |
16376 SHELL \ | |
16377 ECHO \ | |
16378 PATH_SEPARATOR \ | |
16379 SED \ | |
16380 GREP \ | |
16381 EGREP \ | |
16382 FGREP \ | |
16383 LD \ | |
16384 NM \ | |
16385 LN_S \ | |
16386 lt_SP2NL \ | |
16387 lt_NL2SP \ | |
16388 reload_flag \ | |
16389 deplibs_check_method \ | |
16390 file_magic_cmd \ | |
16391 file_magic_glob \ | |
16392 want_nocaseglob \ | |
16393 sharedlib_from_linklib_cmd \ | |
16394 AR \ | |
16395 AR_FLAGS \ | |
16396 archiver_list_spec \ | |
16397 STRIP \ | |
16398 RANLIB \ | |
16399 CC \ | |
16400 CFLAGS \ | |
16401 compiler \ | |
16402 lt_cv_sys_global_symbol_pipe \ | |
16403 lt_cv_sys_global_symbol_to_cdecl \ | |
16404 lt_cv_sys_global_symbol_to_c_name_address \ | |
16405 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ | |
16406 nm_file_list_spec \ | |
16407 lt_prog_compiler_no_builtin_flag \ | |
16408 lt_prog_compiler_pic \ | |
16409 lt_prog_compiler_wl \ | |
16410 lt_prog_compiler_static \ | |
16411 lt_cv_prog_compiler_c_o \ | |
16412 need_locks \ | |
16413 MANIFEST_TOOL \ | |
16414 DSYMUTIL \ | |
16415 NMEDIT \ | |
16416 LIPO \ | |
16417 OTOOL \ | |
16418 OTOOL64 \ | |
16419 shrext_cmds \ | |
16420 export_dynamic_flag_spec \ | |
16421 whole_archive_flag_spec \ | |
16422 compiler_needs_object \ | |
16423 with_gnu_ld \ | |
16424 allow_undefined_flag \ | |
16425 no_undefined_flag \ | |
16426 hardcode_libdir_flag_spec \ | |
16427 hardcode_libdir_separator \ | |
16428 exclude_expsyms \ | |
16429 include_expsyms \ | |
16430 file_list_spec \ | |
16431 variables_saved_for_relink \ | |
16432 libname_spec \ | |
16433 library_names_spec \ | |
16434 soname_spec \ | |
16435 install_override_mode \ | |
16436 finish_eval \ | |
16437 old_striplib \ | |
16438 striplib \ | |
16439 compiler_lib_search_dirs \ | |
16440 predep_objects \ | |
16441 postdep_objects \ | |
16442 predeps \ | |
16443 postdeps \ | |
16444 compiler_lib_search_path \ | |
16445 LD_CXX \ | |
16446 reload_flag_CXX \ | |
16447 compiler_CXX \ | |
16448 lt_prog_compiler_no_builtin_flag_CXX \ | |
16449 lt_prog_compiler_pic_CXX \ | |
16450 lt_prog_compiler_wl_CXX \ | |
16451 lt_prog_compiler_static_CXX \ | |
16452 lt_cv_prog_compiler_c_o_CXX \ | |
16453 export_dynamic_flag_spec_CXX \ | |
16454 whole_archive_flag_spec_CXX \ | |
16455 compiler_needs_object_CXX \ | |
16456 with_gnu_ld_CXX \ | |
16457 allow_undefined_flag_CXX \ | |
16458 no_undefined_flag_CXX \ | |
16459 hardcode_libdir_flag_spec_CXX \ | |
16460 hardcode_libdir_separator_CXX \ | |
16461 exclude_expsyms_CXX \ | |
16462 include_expsyms_CXX \ | |
16463 file_list_spec_CXX \ | |
16464 compiler_lib_search_dirs_CXX \ | |
16465 predep_objects_CXX \ | |
16466 postdep_objects_CXX \ | |
16467 predeps_CXX \ | |
16468 postdeps_CXX \ | |
16469 compiler_lib_search_path_CXX; do | |
16470 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
16471 *[\\\\\\\`\\"\\\$]*) | |
16472 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" | |
16473 ;; | |
16474 *) | |
16475 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
16476 ;; | |
16477 esac | |
16478 done | |
16479 | |
16480 # Double-quote double-evaled strings. | |
16481 for var in reload_cmds \ | |
16482 old_postinstall_cmds \ | |
16483 old_postuninstall_cmds \ | |
16484 old_archive_cmds \ | |
16485 extract_expsyms_cmds \ | |
16486 old_archive_from_new_cmds \ | |
16487 old_archive_from_expsyms_cmds \ | |
16488 archive_cmds \ | |
16489 archive_expsym_cmds \ | |
16490 module_cmds \ | |
16491 module_expsym_cmds \ | |
16492 export_symbols_cmds \ | |
16493 prelink_cmds \ | |
16494 postlink_cmds \ | |
16495 postinstall_cmds \ | |
16496 postuninstall_cmds \ | |
16497 finish_cmds \ | |
16498 sys_lib_search_path_spec \ | |
16499 sys_lib_dlsearch_path_spec \ | |
16500 reload_cmds_CXX \ | |
16501 old_archive_cmds_CXX \ | |
16502 old_archive_from_new_cmds_CXX \ | |
16503 old_archive_from_expsyms_cmds_CXX \ | |
16504 archive_cmds_CXX \ | |
16505 archive_expsym_cmds_CXX \ | |
16506 module_cmds_CXX \ | |
16507 module_expsym_cmds_CXX \ | |
16508 export_symbols_cmds_CXX \ | |
16509 prelink_cmds_CXX \ | |
16510 postlink_cmds_CXX; do | |
16511 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in | |
16512 *[\\\\\\\`\\"\\\$]*) | |
16513 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" | |
16514 ;; | |
16515 *) | |
16516 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" | |
16517 ;; | |
16518 esac | |
16519 done | |
16520 | |
16521 ac_aux_dir='$ac_aux_dir' | |
16522 xsi_shell='$xsi_shell' | |
16523 lt_shell_append='$lt_shell_append' | |
16524 | |
16525 # See if we are running on zsh, and set the options which allow our | |
16526 # commands through without removal of \ escapes INIT. | |
16527 if test -n "\${ZSH_VERSION+set}" ; then | |
16528 setopt NO_GLOB_SUBST | |
16529 fi | |
16530 | |
16531 | |
16532 PACKAGE='$PACKAGE' | |
16533 VERSION='$VERSION' | |
16534 TIMESTAMP='$TIMESTAMP' | |
16535 RM='$RM' | |
16536 ofile='$ofile' | |
16537 | |
16538 | |
16539 | |
16540 | |
16541 | |
16542 | |
16543 _ACEOF | |
16544 | |
16545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16546 | |
16547 # Handling of arguments. | |
16548 for ac_config_target in $ac_config_targets | |
16549 do | |
16550 case $ac_config_target in | |
16551 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
16552 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; | |
16553 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
16554 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; | |
16555 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | |
16556 "bin/Makefile") CONFIG_FILES="$CONFIG_FILES bin/Makefile" ;; | |
16557 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | |
16558 "portaudiocpp.pc") CONFIG_FILES="$CONFIG_FILES portaudiocpp.pc" ;; | |
16559 | |
16560 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
16561 esac | |
16562 done | |
16563 | |
16564 | |
16565 # If the user did not use the arguments to specify the items to instantiate, | |
16566 # then the envvar interface is used. Set only those that are not. | |
16567 # We use the long form for the default assignment because of an extremely | |
16568 # bizarre bug on SunOS 4.1.3. | |
16569 if $ac_need_defaults; then | |
16570 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
16571 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
16572 fi | |
16573 | |
16574 # Have a temporary directory for convenience. Make it in the build tree | |
16575 # simply because there is no reason against having it here, and in addition, | |
16576 # creating and moving files from /tmp can sometimes cause problems. | |
16577 # Hook for its removal unless debugging. | |
16578 # Note that there is a small window in which the directory will not be cleaned: | |
16579 # after its creation but before its name has been assigned to `$tmp'. | |
16580 $debug || | |
16581 { | |
16582 tmp= ac_tmp= | |
16583 trap 'exit_status=$? | |
16584 : "${ac_tmp:=$tmp}" | |
16585 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
16586 ' 0 | |
16587 trap 'as_fn_exit 1' 1 2 13 15 | |
16588 } | |
16589 # Create a (secure) tmp directory for tmp files. | |
16590 | |
16591 { | |
16592 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
16593 test -d "$tmp" | |
16594 } || | |
16595 { | |
16596 tmp=./conf$$-$RANDOM | |
16597 (umask 077 && mkdir "$tmp") | |
16598 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
16599 ac_tmp=$tmp | |
16600 | |
16601 # Set up the scripts for CONFIG_FILES section. | |
16602 # No need to generate them if there are no CONFIG_FILES. | |
16603 # This happens for instance with `./config.status config.h'. | |
16604 if test -n "$CONFIG_FILES"; then | |
16605 | |
16606 | |
16607 ac_cr=`echo X | tr X '\015'` | |
16608 # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
16609 # But we know of no other shell where ac_cr would be empty at this | |
16610 # point, so we can use a bashism as a fallback. | |
16611 if test "x$ac_cr" = x; then | |
16612 eval ac_cr=\$\'\\r\' | |
16613 fi | |
16614 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
16615 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
16616 ac_cs_awk_cr='\\r' | |
16617 else | |
16618 ac_cs_awk_cr=$ac_cr | |
16619 fi | |
16620 | |
16621 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
16622 _ACEOF | |
16623 | |
16624 | |
16625 { | |
16626 echo "cat >conf$$subs.awk <<_ACEOF" && | |
16627 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
16628 echo "_ACEOF" | |
16629 } >conf$$subs.sh || | |
16630 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
16631 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
16632 ac_delim='%!_!# ' | |
16633 for ac_last_try in false false false false false :; do | |
16634 . ./conf$$subs.sh || | |
16635 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
16636 | |
16637 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
16638 if test $ac_delim_n = $ac_delim_num; then | |
16639 break | |
16640 elif $ac_last_try; then | |
16641 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
16642 else | |
16643 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
16644 fi | |
16645 done | |
16646 rm -f conf$$subs.sh | |
16647 | |
16648 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16649 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
16650 _ACEOF | |
16651 sed -n ' | |
16652 h | |
16653 s/^/S["/; s/!.*/"]=/ | |
16654 p | |
16655 g | |
16656 s/^[^!]*!// | |
16657 :repl | |
16658 t repl | |
16659 s/'"$ac_delim"'$// | |
16660 t delim | |
16661 :nl | |
16662 h | |
16663 s/\(.\{148\}\)..*/\1/ | |
16664 t more1 | |
16665 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
16666 p | |
16667 n | |
16668 b repl | |
16669 :more1 | |
16670 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16671 p | |
16672 g | |
16673 s/.\{148\}// | |
16674 t nl | |
16675 :delim | |
16676 h | |
16677 s/\(.\{148\}\)..*/\1/ | |
16678 t more2 | |
16679 s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
16680 p | |
16681 b | |
16682 :more2 | |
16683 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
16684 p | |
16685 g | |
16686 s/.\{148\}// | |
16687 t delim | |
16688 ' <conf$$subs.awk | sed ' | |
16689 /^[^""]/{ | |
16690 N | |
16691 s/\n// | |
16692 } | |
16693 ' >>$CONFIG_STATUS || ac_write_fail=1 | |
16694 rm -f conf$$subs.awk | |
16695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16696 _ACAWK | |
16697 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
16698 for (key in S) S_is_set[key] = 1 | |
16699 FS = "" | |
16700 | |
16701 } | |
16702 { | |
16703 line = $ 0 | |
16704 nfields = split(line, field, "@") | |
16705 substed = 0 | |
16706 len = length(field[1]) | |
16707 for (i = 2; i < nfields; i++) { | |
16708 key = field[i] | |
16709 keylen = length(key) | |
16710 if (S_is_set[key]) { | |
16711 value = S[key] | |
16712 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
16713 len += length(value) + length(field[++i]) | |
16714 substed = 1 | |
16715 } else | |
16716 len += 1 + keylen | |
16717 } | |
16718 | |
16719 print line | |
16720 } | |
16721 | |
16722 _ACAWK | |
16723 _ACEOF | |
16724 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16725 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
16726 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
16727 else | |
16728 cat | |
16729 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
16730 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
16731 _ACEOF | |
16732 | |
16733 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
16734 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
16735 # trailing colons and then remove the whole line if VPATH becomes empty | |
16736 # (actually we leave an empty line to preserve line numbers). | |
16737 if test "x$srcdir" = x.; then | |
16738 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
16739 h | |
16740 s/// | |
16741 s/^/:/ | |
16742 s/[ ]*$/:/ | |
16743 s/:\$(srcdir):/:/g | |
16744 s/:\${srcdir}:/:/g | |
16745 s/:@srcdir@:/:/g | |
16746 s/^:*// | |
16747 s/:*$// | |
16748 x | |
16749 s/\(=[ ]*\).*/\1/ | |
16750 G | |
16751 s/\n// | |
16752 s/^[^=]*=[ ]*$// | |
16753 }' | |
16754 fi | |
16755 | |
16756 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16757 fi # test -n "$CONFIG_FILES" | |
16758 | |
16759 | |
16760 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS" | |
16761 shift | |
16762 for ac_tag | |
16763 do | |
16764 case $ac_tag in | |
16765 :[FHLC]) ac_mode=$ac_tag; continue;; | |
16766 esac | |
16767 case $ac_mode$ac_tag in | |
16768 :[FHL]*:*);; | |
16769 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
16770 :[FH]-) ac_tag=-:-;; | |
16771 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
16772 esac | |
16773 ac_save_IFS=$IFS | |
16774 IFS=: | |
16775 set x $ac_tag | |
16776 IFS=$ac_save_IFS | |
16777 shift | |
16778 ac_file=$1 | |
16779 shift | |
16780 | |
16781 case $ac_mode in | |
16782 :L) ac_source=$1;; | |
16783 :[FH]) | |
16784 ac_file_inputs= | |
16785 for ac_f | |
16786 do | |
16787 case $ac_f in | |
16788 -) ac_f="$ac_tmp/stdin";; | |
16789 *) # Look for the file first in the build tree, then in the source tree | |
16790 # (if the path is not absolute). The absolute path cannot be DOS-style, | |
16791 # because $ac_f cannot contain `:'. | |
16792 test -f "$ac_f" || | |
16793 case $ac_f in | |
16794 [\\/$]*) false;; | |
16795 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
16796 esac || | |
16797 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
16798 esac | |
16799 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
16800 as_fn_append ac_file_inputs " '$ac_f'" | |
16801 done | |
16802 | |
16803 # Let's still pretend it is `configure' which instantiates (i.e., don't | |
16804 # use $as_me), people would be surprised to read: | |
16805 # /* config.h. Generated by config.status. */ | |
16806 configure_input='Generated from '` | |
16807 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
16808 `' by configure.' | |
16809 if test x"$ac_file" != x-; then | |
16810 configure_input="$ac_file. $configure_input" | |
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
16812 $as_echo "$as_me: creating $ac_file" >&6;} | |
16813 fi | |
16814 # Neutralize special characters interpreted by sed in replacement strings. | |
16815 case $configure_input in #( | |
16816 *\&* | *\|* | *\\* ) | |
16817 ac_sed_conf_input=`$as_echo "$configure_input" | | |
16818 sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
16819 *) ac_sed_conf_input=$configure_input;; | |
16820 esac | |
16821 | |
16822 case $ac_tag in | |
16823 *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
16824 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
16825 esac | |
16826 ;; | |
16827 esac | |
16828 | |
16829 ac_dir=`$as_dirname -- "$ac_file" || | |
16830 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
16831 X"$ac_file" : 'X\(//\)[^/]' \| \ | |
16832 X"$ac_file" : 'X\(//\)$' \| \ | |
16833 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
16834 $as_echo X"$ac_file" | | |
16835 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
16836 s//\1/ | |
16837 q | |
16838 } | |
16839 /^X\(\/\/\)[^/].*/{ | |
16840 s//\1/ | |
16841 q | |
16842 } | |
16843 /^X\(\/\/\)$/{ | |
16844 s//\1/ | |
16845 q | |
16846 } | |
16847 /^X\(\/\).*/{ | |
16848 s//\1/ | |
16849 q | |
16850 } | |
16851 s/.*/./; q'` | |
16852 as_dir="$ac_dir"; as_fn_mkdir_p | |
16853 ac_builddir=. | |
16854 | |
16855 case "$ac_dir" in | |
16856 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16857 *) | |
16858 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
16859 # A ".." for each directory in $ac_dir_suffix. | |
16860 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
16861 case $ac_top_builddir_sub in | |
16862 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
16863 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
16864 esac ;; | |
16865 esac | |
16866 ac_abs_top_builddir=$ac_pwd | |
16867 ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
16868 # for backward compatibility: | |
16869 ac_top_builddir=$ac_top_build_prefix | |
16870 | |
16871 case $srcdir in | |
16872 .) # We are building in place. | |
16873 ac_srcdir=. | |
16874 ac_top_srcdir=$ac_top_builddir_sub | |
16875 ac_abs_top_srcdir=$ac_pwd ;; | |
16876 [\\/]* | ?:[\\/]* ) # Absolute name. | |
16877 ac_srcdir=$srcdir$ac_dir_suffix; | |
16878 ac_top_srcdir=$srcdir | |
16879 ac_abs_top_srcdir=$srcdir ;; | |
16880 *) # Relative name. | |
16881 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
16882 ac_top_srcdir=$ac_top_build_prefix$srcdir | |
16883 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
16884 esac | |
16885 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
16886 | |
16887 | |
16888 case $ac_mode in | |
16889 :F) | |
16890 # | |
16891 # CONFIG_FILE | |
16892 # | |
16893 | |
16894 case $INSTALL in | |
16895 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
16896 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
16897 esac | |
16898 ac_MKDIR_P=$MKDIR_P | |
16899 case $MKDIR_P in | |
16900 [\\/$]* | ?:[\\/]* ) ;; | |
16901 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
16902 esac | |
16903 _ACEOF | |
16904 | |
16905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16906 # If the template does not know about datarootdir, expand it. | |
16907 # FIXME: This hack should be removed a few years after 2.60. | |
16908 ac_datarootdir_hack=; ac_datarootdir_seen= | |
16909 ac_sed_dataroot=' | |
16910 /datarootdir/ { | |
16911 p | |
16912 q | |
16913 } | |
16914 /@datadir@/p | |
16915 /@docdir@/p | |
16916 /@infodir@/p | |
16917 /@localedir@/p | |
16918 /@mandir@/p' | |
16919 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
16920 *datarootdir*) ac_datarootdir_seen=yes;; | |
16921 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
16923 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
16924 _ACEOF | |
16925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16926 ac_datarootdir_hack=' | |
16927 s&@datadir@&$datadir&g | |
16928 s&@docdir@&$docdir&g | |
16929 s&@infodir@&$infodir&g | |
16930 s&@localedir@&$localedir&g | |
16931 s&@mandir@&$mandir&g | |
16932 s&\\\${datarootdir}&$datarootdir&g' ;; | |
16933 esac | |
16934 _ACEOF | |
16935 | |
16936 # Neutralize VPATH when `$srcdir' = `.'. | |
16937 # Shell code in configure.ac might set extrasub. | |
16938 # FIXME: do we really want to maintain this feature? | |
16939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
16940 ac_sed_extra="$ac_vpsub | |
16941 $extrasub | |
16942 _ACEOF | |
16943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
16944 :t | |
16945 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
16946 s|@configure_input@|$ac_sed_conf_input|;t t | |
16947 s&@top_builddir@&$ac_top_builddir_sub&;t t | |
16948 s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
16949 s&@srcdir@&$ac_srcdir&;t t | |
16950 s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
16951 s&@top_srcdir@&$ac_top_srcdir&;t t | |
16952 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
16953 s&@builddir@&$ac_builddir&;t t | |
16954 s&@abs_builddir@&$ac_abs_builddir&;t t | |
16955 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
16956 s&@INSTALL@&$ac_INSTALL&;t t | |
16957 s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
16958 $ac_datarootdir_hack | |
16959 " | |
16960 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
16961 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
16962 | |
16963 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
16964 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
16965 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
16966 "$ac_tmp/out"`; test -z "$ac_out"; } && | |
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
16968 which seems to be undefined. Please make sure it is defined" >&5 | |
16969 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
16970 which seems to be undefined. Please make sure it is defined" >&2;} | |
16971 | |
16972 rm -f "$ac_tmp/stdin" | |
16973 case $ac_file in | |
16974 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
16975 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
16976 esac \ | |
16977 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
16978 ;; | |
16979 | |
16980 | |
16981 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
16982 $as_echo "$as_me: executing $ac_file commands" >&6;} | |
16983 ;; | |
16984 esac | |
16985 | |
16986 | |
16987 case $ac_file$ac_mode in | |
16988 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
16989 # Older Autoconf quotes --file arguments for eval, but not when files | |
16990 # are listed without --file. Let's play safe and only enable the eval | |
16991 # if we detect the quoting. | |
16992 case $CONFIG_FILES in | |
16993 *\'*) eval set x "$CONFIG_FILES" ;; | |
16994 *) set x $CONFIG_FILES ;; | |
16995 esac | |
16996 shift | |
16997 for mf | |
16998 do | |
16999 # Strip MF so we end up with the name of the file. | |
17000 mf=`echo "$mf" | sed -e 's/:.*$//'` | |
17001 # Check whether this is an Automake generated Makefile or not. | |
17002 # We used to match only the files named 'Makefile.in', but | |
17003 # some people rename them; so instead we look at the file content. | |
17004 # Grep'ing the first line is not enough: some people post-process | |
17005 # each Makefile.in and add a new line on top of each file to say so. | |
17006 # Grep'ing the whole file is not good either: AIX grep has a line | |
17007 # limit of 2048, but all sed's we know have understand at least 4000. | |
17008 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
17009 dirpart=`$as_dirname -- "$mf" || | |
17010 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17011 X"$mf" : 'X\(//\)[^/]' \| \ | |
17012 X"$mf" : 'X\(//\)$' \| \ | |
17013 X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
17014 $as_echo X"$mf" | | |
17015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17016 s//\1/ | |
17017 q | |
17018 } | |
17019 /^X\(\/\/\)[^/].*/{ | |
17020 s//\1/ | |
17021 q | |
17022 } | |
17023 /^X\(\/\/\)$/{ | |
17024 s//\1/ | |
17025 q | |
17026 } | |
17027 /^X\(\/\).*/{ | |
17028 s//\1/ | |
17029 q | |
17030 } | |
17031 s/.*/./; q'` | |
17032 else | |
17033 continue | |
17034 fi | |
17035 # Extract the definition of DEPDIR, am__include, and am__quote | |
17036 # from the Makefile without running 'make'. | |
17037 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
17038 test -z "$DEPDIR" && continue | |
17039 am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
17040 test -z "$am__include" && continue | |
17041 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
17042 # Find all dependency output files, they are included files with | |
17043 # $(DEPDIR) in their names. We invoke sed twice because it is the | |
17044 # simplest approach to changing $(DEPDIR) to its actual value in the | |
17045 # expansion. | |
17046 for file in `sed -n " | |
17047 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
17048 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
17049 # Make sure the directory exists. | |
17050 test -f "$dirpart/$file" && continue | |
17051 fdir=`$as_dirname -- "$file" || | |
17052 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
17053 X"$file" : 'X\(//\)[^/]' \| \ | |
17054 X"$file" : 'X\(//\)$' \| \ | |
17055 X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
17056 $as_echo X"$file" | | |
17057 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
17058 s//\1/ | |
17059 q | |
17060 } | |
17061 /^X\(\/\/\)[^/].*/{ | |
17062 s//\1/ | |
17063 q | |
17064 } | |
17065 /^X\(\/\/\)$/{ | |
17066 s//\1/ | |
17067 q | |
17068 } | |
17069 /^X\(\/\).*/{ | |
17070 s//\1/ | |
17071 q | |
17072 } | |
17073 s/.*/./; q'` | |
17074 as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
17075 # echo "creating $dirpart/$file" | |
17076 echo '# dummy' > "$dirpart/$file" | |
17077 done | |
17078 done | |
17079 } | |
17080 ;; | |
17081 "libtool":C) | |
17082 | |
17083 # See if we are running on zsh, and set the options which allow our | |
17084 # commands through without removal of \ escapes. | |
17085 if test -n "${ZSH_VERSION+set}" ; then | |
17086 setopt NO_GLOB_SUBST | |
17087 fi | |
17088 | |
17089 cfgfile="${ofile}T" | |
17090 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 | |
17091 $RM "$cfgfile" | |
17092 | |
17093 cat <<_LT_EOF >> "$cfgfile" | |
17094 #! $SHELL | |
17095 | |
17096 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
17097 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION | |
17098 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
17099 # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
17100 # | |
17101 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, | |
17102 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software | |
17103 # Foundation, Inc. | |
17104 # Written by Gordon Matzigkeit, 1996 | |
17105 # | |
17106 # This file is part of GNU Libtool. | |
17107 # | |
17108 # GNU Libtool is free software; you can redistribute it and/or | |
17109 # modify it under the terms of the GNU General Public License as | |
17110 # published by the Free Software Foundation; either version 2 of | |
17111 # the License, or (at your option) any later version. | |
17112 # | |
17113 # As a special exception to the GNU General Public License, | |
17114 # if you distribute this file as part of a program or library that | |
17115 # is built using GNU Libtool, you may include this file under the | |
17116 # same distribution terms that you use for the rest of that program. | |
17117 # | |
17118 # GNU Libtool is distributed in the hope that it will be useful, | |
17119 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
17120 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
17121 # GNU General Public License for more details. | |
17122 # | |
17123 # You should have received a copy of the GNU General Public License | |
17124 # along with GNU Libtool; see the file COPYING. If not, a copy | |
17125 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or | |
17126 # obtained by writing to the Free Software Foundation, Inc., | |
17127 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
17128 | |
17129 | |
17130 # The names of the tagged configurations supported by this script. | |
17131 available_tags="CXX " | |
17132 | |
17133 # ### BEGIN LIBTOOL CONFIG | |
17134 | |
17135 # Assembler program. | |
17136 AS=$lt_AS | |
17137 | |
17138 # DLL creation program. | |
17139 DLLTOOL=$lt_DLLTOOL | |
17140 | |
17141 # Object dumper program. | |
17142 OBJDUMP=$lt_OBJDUMP | |
17143 | |
17144 # Which release of libtool.m4 was used? | |
17145 macro_version=$macro_version | |
17146 macro_revision=$macro_revision | |
17147 | |
17148 # Whether or not to build shared libraries. | |
17149 build_libtool_libs=$enable_shared | |
17150 | |
17151 # Whether or not to build static libraries. | |
17152 build_old_libs=$enable_static | |
17153 | |
17154 # What type of objects to build. | |
17155 pic_mode=$pic_mode | |
17156 | |
17157 # Whether or not to optimize for fast installation. | |
17158 fast_install=$enable_fast_install | |
17159 | |
17160 # Shell to use when invoking shell scripts. | |
17161 SHELL=$lt_SHELL | |
17162 | |
17163 # An echo program that protects backslashes. | |
17164 ECHO=$lt_ECHO | |
17165 | |
17166 # The PATH separator for the build system. | |
17167 PATH_SEPARATOR=$lt_PATH_SEPARATOR | |
17168 | |
17169 # The host system. | |
17170 host_alias=$host_alias | |
17171 host=$host | |
17172 host_os=$host_os | |
17173 | |
17174 # The build system. | |
17175 build_alias=$build_alias | |
17176 build=$build | |
17177 build_os=$build_os | |
17178 | |
17179 # A sed program that does not truncate output. | |
17180 SED=$lt_SED | |
17181 | |
17182 # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
17183 Xsed="\$SED -e 1s/^X//" | |
17184 | |
17185 # A grep program that handles long lines. | |
17186 GREP=$lt_GREP | |
17187 | |
17188 # An ERE matcher. | |
17189 EGREP=$lt_EGREP | |
17190 | |
17191 # A literal string matcher. | |
17192 FGREP=$lt_FGREP | |
17193 | |
17194 # A BSD- or MS-compatible name lister. | |
17195 NM=$lt_NM | |
17196 | |
17197 # Whether we need soft or hard links. | |
17198 LN_S=$lt_LN_S | |
17199 | |
17200 # What is the maximum length of a command? | |
17201 max_cmd_len=$max_cmd_len | |
17202 | |
17203 # Object file suffix (normally "o"). | |
17204 objext=$ac_objext | |
17205 | |
17206 # Executable file suffix (normally ""). | |
17207 exeext=$exeext | |
17208 | |
17209 # whether the shell understands "unset". | |
17210 lt_unset=$lt_unset | |
17211 | |
17212 # turn spaces into newlines. | |
17213 SP2NL=$lt_lt_SP2NL | |
17214 | |
17215 # turn newlines into spaces. | |
17216 NL2SP=$lt_lt_NL2SP | |
17217 | |
17218 # convert \$build file names to \$host format. | |
17219 to_host_file_cmd=$lt_cv_to_host_file_cmd | |
17220 | |
17221 # convert \$build files to toolchain format. | |
17222 to_tool_file_cmd=$lt_cv_to_tool_file_cmd | |
17223 | |
17224 # Method to check whether dependent libraries are shared objects. | |
17225 deplibs_check_method=$lt_deplibs_check_method | |
17226 | |
17227 # Command to use when deplibs_check_method = "file_magic". | |
17228 file_magic_cmd=$lt_file_magic_cmd | |
17229 | |
17230 # How to find potential files when deplibs_check_method = "file_magic". | |
17231 file_magic_glob=$lt_file_magic_glob | |
17232 | |
17233 # Find potential files using nocaseglob when deplibs_check_method = "file_magic". | |
17234 want_nocaseglob=$lt_want_nocaseglob | |
17235 | |
17236 # Command to associate shared and link libraries. | |
17237 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd | |
17238 | |
17239 # The archiver. | |
17240 AR=$lt_AR | |
17241 | |
17242 # Flags to create an archive. | |
17243 AR_FLAGS=$lt_AR_FLAGS | |
17244 | |
17245 # How to feed a file listing to the archiver. | |
17246 archiver_list_spec=$lt_archiver_list_spec | |
17247 | |
17248 # A symbol stripping program. | |
17249 STRIP=$lt_STRIP | |
17250 | |
17251 # Commands used to install an old-style archive. | |
17252 RANLIB=$lt_RANLIB | |
17253 old_postinstall_cmds=$lt_old_postinstall_cmds | |
17254 old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
17255 | |
17256 # Whether to use a lock for old archive extraction. | |
17257 lock_old_archive_extraction=$lock_old_archive_extraction | |
17258 | |
17259 # A C compiler. | |
17260 LTCC=$lt_CC | |
17261 | |
17262 # LTCC compiler flags. | |
17263 LTCFLAGS=$lt_CFLAGS | |
17264 | |
17265 # Take the output of nm and produce a listing of raw symbols and C names. | |
17266 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
17267 | |
17268 # Transform the output of nm in a proper C declaration. | |
17269 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
17270 | |
17271 # Transform the output of nm in a C name address pair. | |
17272 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
17273 | |
17274 # Transform the output of nm in a C name address pair when lib prefix is needed. | |
17275 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix | |
17276 | |
17277 # Specify filename containing input files for \$NM. | |
17278 nm_file_list_spec=$lt_nm_file_list_spec | |
17279 | |
17280 # The root where to search for dependent libraries,and in which our libraries should be installed. | |
17281 lt_sysroot=$lt_sysroot | |
17282 | |
17283 # The name of the directory that contains temporary libtool files. | |
17284 objdir=$objdir | |
17285 | |
17286 # Used to examine libraries when file_magic_cmd begins with "file". | |
17287 MAGIC_CMD=$MAGIC_CMD | |
17288 | |
17289 # Must we lock files when doing compilation? | |
17290 need_locks=$lt_need_locks | |
17291 | |
17292 # Manifest tool. | |
17293 MANIFEST_TOOL=$lt_MANIFEST_TOOL | |
17294 | |
17295 # Tool to manipulate archived DWARF debug symbol files on Mac OS X. | |
17296 DSYMUTIL=$lt_DSYMUTIL | |
17297 | |
17298 # Tool to change global to local symbols on Mac OS X. | |
17299 NMEDIT=$lt_NMEDIT | |
17300 | |
17301 # Tool to manipulate fat objects and archives on Mac OS X. | |
17302 LIPO=$lt_LIPO | |
17303 | |
17304 # ldd/readelf like tool for Mach-O binaries on Mac OS X. | |
17305 OTOOL=$lt_OTOOL | |
17306 | |
17307 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. | |
17308 OTOOL64=$lt_OTOOL64 | |
17309 | |
17310 # Old archive suffix (normally "a"). | |
17311 libext=$libext | |
17312 | |
17313 # Shared library suffix (normally ".so"). | |
17314 shrext_cmds=$lt_shrext_cmds | |
17315 | |
17316 # The commands to extract the exported symbol list from a shared archive. | |
17317 extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
17318 | |
17319 # Variables whose values should be saved in libtool wrapper scripts and | |
17320 # restored at link time. | |
17321 variables_saved_for_relink=$lt_variables_saved_for_relink | |
17322 | |
17323 # Do we need the "lib" prefix for modules? | |
17324 need_lib_prefix=$need_lib_prefix | |
17325 | |
17326 # Do we need a version for libraries? | |
17327 need_version=$need_version | |
17328 | |
17329 # Library versioning type. | |
17330 version_type=$version_type | |
17331 | |
17332 # Shared library runtime path variable. | |
17333 runpath_var=$runpath_var | |
17334 | |
17335 # Shared library path variable. | |
17336 shlibpath_var=$shlibpath_var | |
17337 | |
17338 # Is shlibpath searched before the hard-coded library search path? | |
17339 shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
17340 | |
17341 # Format of library name prefix. | |
17342 libname_spec=$lt_libname_spec | |
17343 | |
17344 # List of archive names. First name is the real one, the rest are links. | |
17345 # The last name is the one that the linker finds with -lNAME | |
17346 library_names_spec=$lt_library_names_spec | |
17347 | |
17348 # The coded name of the library, if different from the real name. | |
17349 soname_spec=$lt_soname_spec | |
17350 | |
17351 # Permission mode override for installation of shared libraries. | |
17352 install_override_mode=$lt_install_override_mode | |
17353 | |
17354 # Command to use after installation of a shared archive. | |
17355 postinstall_cmds=$lt_postinstall_cmds | |
17356 | |
17357 # Command to use after uninstallation of a shared archive. | |
17358 postuninstall_cmds=$lt_postuninstall_cmds | |
17359 | |
17360 # Commands used to finish a libtool library installation in a directory. | |
17361 finish_cmds=$lt_finish_cmds | |
17362 | |
17363 # As "finish_cmds", except a single script fragment to be evaled but | |
17364 # not shown. | |
17365 finish_eval=$lt_finish_eval | |
17366 | |
17367 # Whether we should hardcode library paths into libraries. | |
17368 hardcode_into_libs=$hardcode_into_libs | |
17369 | |
17370 # Compile-time system search path for libraries. | |
17371 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
17372 | |
17373 # Run-time system search path for libraries. | |
17374 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
17375 | |
17376 # Whether dlopen is supported. | |
17377 dlopen_support=$enable_dlopen | |
17378 | |
17379 # Whether dlopen of programs is supported. | |
17380 dlopen_self=$enable_dlopen_self | |
17381 | |
17382 # Whether dlopen of statically linked programs is supported. | |
17383 dlopen_self_static=$enable_dlopen_self_static | |
17384 | |
17385 # Commands to strip libraries. | |
17386 old_striplib=$lt_old_striplib | |
17387 striplib=$lt_striplib | |
17388 | |
17389 | |
17390 # The linker used to build libraries. | |
17391 LD=$lt_LD | |
17392 | |
17393 # How to create reloadable object files. | |
17394 reload_flag=$lt_reload_flag | |
17395 reload_cmds=$lt_reload_cmds | |
17396 | |
17397 # Commands used to build an old-style archive. | |
17398 old_archive_cmds=$lt_old_archive_cmds | |
17399 | |
17400 # A language specific compiler. | |
17401 CC=$lt_compiler | |
17402 | |
17403 # Is the compiler the GNU compiler? | |
17404 with_gcc=$GCC | |
17405 | |
17406 # Compiler flag to turn off builtin functions. | |
17407 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
17408 | |
17409 # Additional compiler flags for building library objects. | |
17410 pic_flag=$lt_lt_prog_compiler_pic | |
17411 | |
17412 # How to pass a linker flag through the compiler. | |
17413 wl=$lt_lt_prog_compiler_wl | |
17414 | |
17415 # Compiler flag to prevent dynamic linking. | |
17416 link_static_flag=$lt_lt_prog_compiler_static | |
17417 | |
17418 # Does compiler simultaneously support -c and -o options? | |
17419 compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
17420 | |
17421 # Whether or not to add -lc for building shared libraries. | |
17422 build_libtool_need_lc=$archive_cmds_need_lc | |
17423 | |
17424 # Whether or not to disallow shared libs when runtime libs are static. | |
17425 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
17426 | |
17427 # Compiler flag to allow reflexive dlopens. | |
17428 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
17429 | |
17430 # Compiler flag to generate shared objects directly from archives. | |
17431 whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
17432 | |
17433 # Whether the compiler copes with passing no objects directly. | |
17434 compiler_needs_object=$lt_compiler_needs_object | |
17435 | |
17436 # Create an old-style archive from a shared archive. | |
17437 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
17438 | |
17439 # Create a temporary old-style archive to link instead of a shared archive. | |
17440 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
17441 | |
17442 # Commands used to build a shared archive. | |
17443 archive_cmds=$lt_archive_cmds | |
17444 archive_expsym_cmds=$lt_archive_expsym_cmds | |
17445 | |
17446 # Commands used to build a loadable module if different from building | |
17447 # a shared archive. | |
17448 module_cmds=$lt_module_cmds | |
17449 module_expsym_cmds=$lt_module_expsym_cmds | |
17450 | |
17451 # Whether we are building with GNU ld or not. | |
17452 with_gnu_ld=$lt_with_gnu_ld | |
17453 | |
17454 # Flag that allows shared libraries with undefined symbols to be built. | |
17455 allow_undefined_flag=$lt_allow_undefined_flag | |
17456 | |
17457 # Flag that enforces no undefined symbols. | |
17458 no_undefined_flag=$lt_no_undefined_flag | |
17459 | |
17460 # Flag to hardcode \$libdir into a binary during linking. | |
17461 # This must work even if \$libdir does not exist | |
17462 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
17463 | |
17464 # Whether we need a single "-rpath" flag with a separated argument. | |
17465 hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
17466 | |
17467 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
17468 # DIR into the resulting binary. | |
17469 hardcode_direct=$hardcode_direct | |
17470 | |
17471 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
17472 # DIR into the resulting binary and the resulting library dependency is | |
17473 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
17474 # library is relocated. | |
17475 hardcode_direct_absolute=$hardcode_direct_absolute | |
17476 | |
17477 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
17478 # into the resulting binary. | |
17479 hardcode_minus_L=$hardcode_minus_L | |
17480 | |
17481 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
17482 # into the resulting binary. | |
17483 hardcode_shlibpath_var=$hardcode_shlibpath_var | |
17484 | |
17485 # Set to "yes" if building a shared library automatically hardcodes DIR | |
17486 # into the library and all subsequent libraries and executables linked | |
17487 # against it. | |
17488 hardcode_automatic=$hardcode_automatic | |
17489 | |
17490 # Set to yes if linker adds runtime paths of dependent libraries | |
17491 # to runtime path list. | |
17492 inherit_rpath=$inherit_rpath | |
17493 | |
17494 # Whether libtool must link a program against all its dependency libraries. | |
17495 link_all_deplibs=$link_all_deplibs | |
17496 | |
17497 # Set to "yes" if exported symbols are required. | |
17498 always_export_symbols=$always_export_symbols | |
17499 | |
17500 # The commands to list exported symbols. | |
17501 export_symbols_cmds=$lt_export_symbols_cmds | |
17502 | |
17503 # Symbols that should not be listed in the preloaded symbols. | |
17504 exclude_expsyms=$lt_exclude_expsyms | |
17505 | |
17506 # Symbols that must always be exported. | |
17507 include_expsyms=$lt_include_expsyms | |
17508 | |
17509 # Commands necessary for linking programs (against libraries) with templates. | |
17510 prelink_cmds=$lt_prelink_cmds | |
17511 | |
17512 # Commands necessary for finishing linking programs. | |
17513 postlink_cmds=$lt_postlink_cmds | |
17514 | |
17515 # Specify filename containing input files. | |
17516 file_list_spec=$lt_file_list_spec | |
17517 | |
17518 # How to hardcode a shared library path into an executable. | |
17519 hardcode_action=$hardcode_action | |
17520 | |
17521 # The directories searched by this compiler when creating a shared library. | |
17522 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs | |
17523 | |
17524 # Dependencies to place before and after the objects being linked to | |
17525 # create a shared library. | |
17526 predep_objects=$lt_predep_objects | |
17527 postdep_objects=$lt_postdep_objects | |
17528 predeps=$lt_predeps | |
17529 postdeps=$lt_postdeps | |
17530 | |
17531 # The library search path used internally by the compiler when linking | |
17532 # a shared library. | |
17533 compiler_lib_search_path=$lt_compiler_lib_search_path | |
17534 | |
17535 # ### END LIBTOOL CONFIG | |
17536 | |
17537 _LT_EOF | |
17538 | |
17539 case $host_os in | |
17540 aix3*) | |
17541 cat <<\_LT_EOF >> "$cfgfile" | |
17542 # AIX sometimes has problems with the GCC collect2 program. For some | |
17543 # reason, if we set the COLLECT_NAMES environment variable, the problems | |
17544 # vanish in a puff of smoke. | |
17545 if test "X${COLLECT_NAMES+set}" != Xset; then | |
17546 COLLECT_NAMES= | |
17547 export COLLECT_NAMES | |
17548 fi | |
17549 _LT_EOF | |
17550 ;; | |
17551 esac | |
17552 | |
17553 | |
17554 ltmain="$ac_aux_dir/ltmain.sh" | |
17555 | |
17556 | |
17557 # We use sed instead of cat because bash on DJGPP gets confused if | |
17558 # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
17559 # text mode, it properly converts lines to CR/LF. This bash problem | |
17560 # is reportedly fixed, but why not run on old versions too? | |
17561 sed '$q' "$ltmain" >> "$cfgfile" \ | |
17562 || (rm -f "$cfgfile"; exit 1) | |
17563 | |
17564 if test x"$xsi_shell" = xyes; then | |
17565 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ | |
17566 func_dirname ()\ | |
17567 {\ | |
17568 \ case ${1} in\ | |
17569 \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
17570 \ * ) func_dirname_result="${3}" ;;\ | |
17571 \ esac\ | |
17572 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ | |
17573 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17574 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17575 test 0 -eq $? || _lt_function_replace_fail=: | |
17576 | |
17577 | |
17578 sed -e '/^func_basename ()$/,/^} # func_basename /c\ | |
17579 func_basename ()\ | |
17580 {\ | |
17581 \ func_basename_result="${1##*/}"\ | |
17582 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
17583 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17584 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17585 test 0 -eq $? || _lt_function_replace_fail=: | |
17586 | |
17587 | |
17588 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ | |
17589 func_dirname_and_basename ()\ | |
17590 {\ | |
17591 \ case ${1} in\ | |
17592 \ */*) func_dirname_result="${1%/*}${2}" ;;\ | |
17593 \ * ) func_dirname_result="${3}" ;;\ | |
17594 \ esac\ | |
17595 \ func_basename_result="${1##*/}"\ | |
17596 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ | |
17597 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17598 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17599 test 0 -eq $? || _lt_function_replace_fail=: | |
17600 | |
17601 | |
17602 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ | |
17603 func_stripname ()\ | |
17604 {\ | |
17605 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ | |
17606 \ # positional parameters, so assign one to ordinary parameter first.\ | |
17607 \ func_stripname_result=${3}\ | |
17608 \ func_stripname_result=${func_stripname_result#"${1}"}\ | |
17609 \ func_stripname_result=${func_stripname_result%"${2}"}\ | |
17610 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ | |
17611 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17612 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17613 test 0 -eq $? || _lt_function_replace_fail=: | |
17614 | |
17615 | |
17616 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ | |
17617 func_split_long_opt ()\ | |
17618 {\ | |
17619 \ func_split_long_opt_name=${1%%=*}\ | |
17620 \ func_split_long_opt_arg=${1#*=}\ | |
17621 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
17622 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17623 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17624 test 0 -eq $? || _lt_function_replace_fail=: | |
17625 | |
17626 | |
17627 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ | |
17628 func_split_short_opt ()\ | |
17629 {\ | |
17630 \ func_split_short_opt_arg=${1#??}\ | |
17631 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ | |
17632 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ | |
17633 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17634 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17635 test 0 -eq $? || _lt_function_replace_fail=: | |
17636 | |
17637 | |
17638 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ | |
17639 func_lo2o ()\ | |
17640 {\ | |
17641 \ case ${1} in\ | |
17642 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ | |
17643 \ *) func_lo2o_result=${1} ;;\ | |
17644 \ esac\ | |
17645 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ | |
17646 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17647 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17648 test 0 -eq $? || _lt_function_replace_fail=: | |
17649 | |
17650 | |
17651 sed -e '/^func_xform ()$/,/^} # func_xform /c\ | |
17652 func_xform ()\ | |
17653 {\ | |
17654 func_xform_result=${1%.*}.lo\ | |
17655 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ | |
17656 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17657 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17658 test 0 -eq $? || _lt_function_replace_fail=: | |
17659 | |
17660 | |
17661 sed -e '/^func_arith ()$/,/^} # func_arith /c\ | |
17662 func_arith ()\ | |
17663 {\ | |
17664 func_arith_result=$(( $* ))\ | |
17665 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ | |
17666 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17667 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17668 test 0 -eq $? || _lt_function_replace_fail=: | |
17669 | |
17670 | |
17671 sed -e '/^func_len ()$/,/^} # func_len /c\ | |
17672 func_len ()\ | |
17673 {\ | |
17674 func_len_result=${#1}\ | |
17675 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ | |
17676 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17677 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17678 test 0 -eq $? || _lt_function_replace_fail=: | |
17679 | |
17680 fi | |
17681 | |
17682 if test x"$lt_shell_append" = xyes; then | |
17683 sed -e '/^func_append ()$/,/^} # func_append /c\ | |
17684 func_append ()\ | |
17685 {\ | |
17686 eval "${1}+=\\${2}"\ | |
17687 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ | |
17688 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17689 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17690 test 0 -eq $? || _lt_function_replace_fail=: | |
17691 | |
17692 | |
17693 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ | |
17694 func_append_quoted ()\ | |
17695 {\ | |
17696 \ func_quote_for_eval "${2}"\ | |
17697 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ | |
17698 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ | |
17699 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17700 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17701 test 0 -eq $? || _lt_function_replace_fail=: | |
17702 | |
17703 | |
17704 # Save a `func_append' function call where possible by direct use of '+=' | |
17705 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ | |
17706 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17707 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17708 test 0 -eq $? || _lt_function_replace_fail=: | |
17709 else | |
17710 # Save a `func_append' function call even when '+=' is not available | |
17711 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ | |
17712 && mv -f "$cfgfile.tmp" "$cfgfile" \ | |
17713 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") | |
17714 test 0 -eq $? || _lt_function_replace_fail=: | |
17715 fi | |
17716 | |
17717 if test x"$_lt_function_replace_fail" = x":"; then | |
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 | |
17719 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} | |
17720 fi | |
17721 | |
17722 | |
17723 mv -f "$cfgfile" "$ofile" || | |
17724 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
17725 chmod +x "$ofile" | |
17726 | |
17727 | |
17728 cat <<_LT_EOF >> "$ofile" | |
17729 | |
17730 # ### BEGIN LIBTOOL TAG CONFIG: CXX | |
17731 | |
17732 # The linker used to build libraries. | |
17733 LD=$lt_LD_CXX | |
17734 | |
17735 # How to create reloadable object files. | |
17736 reload_flag=$lt_reload_flag_CXX | |
17737 reload_cmds=$lt_reload_cmds_CXX | |
17738 | |
17739 # Commands used to build an old-style archive. | |
17740 old_archive_cmds=$lt_old_archive_cmds_CXX | |
17741 | |
17742 # A language specific compiler. | |
17743 CC=$lt_compiler_CXX | |
17744 | |
17745 # Is the compiler the GNU compiler? | |
17746 with_gcc=$GCC_CXX | |
17747 | |
17748 # Compiler flag to turn off builtin functions. | |
17749 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
17750 | |
17751 # Additional compiler flags for building library objects. | |
17752 pic_flag=$lt_lt_prog_compiler_pic_CXX | |
17753 | |
17754 # How to pass a linker flag through the compiler. | |
17755 wl=$lt_lt_prog_compiler_wl_CXX | |
17756 | |
17757 # Compiler flag to prevent dynamic linking. | |
17758 link_static_flag=$lt_lt_prog_compiler_static_CXX | |
17759 | |
17760 # Does compiler simultaneously support -c and -o options? | |
17761 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
17762 | |
17763 # Whether or not to add -lc for building shared libraries. | |
17764 build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
17765 | |
17766 # Whether or not to disallow shared libs when runtime libs are static. | |
17767 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
17768 | |
17769 # Compiler flag to allow reflexive dlopens. | |
17770 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
17771 | |
17772 # Compiler flag to generate shared objects directly from archives. | |
17773 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
17774 | |
17775 # Whether the compiler copes with passing no objects directly. | |
17776 compiler_needs_object=$lt_compiler_needs_object_CXX | |
17777 | |
17778 # Create an old-style archive from a shared archive. | |
17779 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
17780 | |
17781 # Create a temporary old-style archive to link instead of a shared archive. | |
17782 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
17783 | |
17784 # Commands used to build a shared archive. | |
17785 archive_cmds=$lt_archive_cmds_CXX | |
17786 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
17787 | |
17788 # Commands used to build a loadable module if different from building | |
17789 # a shared archive. | |
17790 module_cmds=$lt_module_cmds_CXX | |
17791 module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
17792 | |
17793 # Whether we are building with GNU ld or not. | |
17794 with_gnu_ld=$lt_with_gnu_ld_CXX | |
17795 | |
17796 # Flag that allows shared libraries with undefined symbols to be built. | |
17797 allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
17798 | |
17799 # Flag that enforces no undefined symbols. | |
17800 no_undefined_flag=$lt_no_undefined_flag_CXX | |
17801 | |
17802 # Flag to hardcode \$libdir into a binary during linking. | |
17803 # This must work even if \$libdir does not exist | |
17804 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
17805 | |
17806 # Whether we need a single "-rpath" flag with a separated argument. | |
17807 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
17808 | |
17809 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
17810 # DIR into the resulting binary. | |
17811 hardcode_direct=$hardcode_direct_CXX | |
17812 | |
17813 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes | |
17814 # DIR into the resulting binary and the resulting library dependency is | |
17815 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the | |
17816 # library is relocated. | |
17817 hardcode_direct_absolute=$hardcode_direct_absolute_CXX | |
17818 | |
17819 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR | |
17820 # into the resulting binary. | |
17821 hardcode_minus_L=$hardcode_minus_L_CXX | |
17822 | |
17823 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR | |
17824 # into the resulting binary. | |
17825 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
17826 | |
17827 # Set to "yes" if building a shared library automatically hardcodes DIR | |
17828 # into the library and all subsequent libraries and executables linked | |
17829 # against it. | |
17830 hardcode_automatic=$hardcode_automatic_CXX | |
17831 | |
17832 # Set to yes if linker adds runtime paths of dependent libraries | |
17833 # to runtime path list. | |
17834 inherit_rpath=$inherit_rpath_CXX | |
17835 | |
17836 # Whether libtool must link a program against all its dependency libraries. | |
17837 link_all_deplibs=$link_all_deplibs_CXX | |
17838 | |
17839 # Set to "yes" if exported symbols are required. | |
17840 always_export_symbols=$always_export_symbols_CXX | |
17841 | |
17842 # The commands to list exported symbols. | |
17843 export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
17844 | |
17845 # Symbols that should not be listed in the preloaded symbols. | |
17846 exclude_expsyms=$lt_exclude_expsyms_CXX | |
17847 | |
17848 # Symbols that must always be exported. | |
17849 include_expsyms=$lt_include_expsyms_CXX | |
17850 | |
17851 # Commands necessary for linking programs (against libraries) with templates. | |
17852 prelink_cmds=$lt_prelink_cmds_CXX | |
17853 | |
17854 # Commands necessary for finishing linking programs. | |
17855 postlink_cmds=$lt_postlink_cmds_CXX | |
17856 | |
17857 # Specify filename containing input files. | |
17858 file_list_spec=$lt_file_list_spec_CXX | |
17859 | |
17860 # How to hardcode a shared library path into an executable. | |
17861 hardcode_action=$hardcode_action_CXX | |
17862 | |
17863 # The directories searched by this compiler when creating a shared library. | |
17864 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX | |
17865 | |
17866 # Dependencies to place before and after the objects being linked to | |
17867 # create a shared library. | |
17868 predep_objects=$lt_predep_objects_CXX | |
17869 postdep_objects=$lt_postdep_objects_CXX | |
17870 predeps=$lt_predeps_CXX | |
17871 postdeps=$lt_postdeps_CXX | |
17872 | |
17873 # The library search path used internally by the compiler when linking | |
17874 # a shared library. | |
17875 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
17876 | |
17877 # ### END LIBTOOL TAG CONFIG: CXX | |
17878 _LT_EOF | |
17879 | |
17880 ;; | |
17881 | |
17882 esac | |
17883 done # for ac_tag | |
17884 | |
17885 | |
17886 as_fn_exit 0 | |
17887 _ACEOF | |
17888 ac_clean_files=$ac_clean_files_save | |
17889 | |
17890 test $ac_write_fail = 0 || | |
17891 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
17892 | |
17893 | |
17894 # configure is writing to config.log, and then calls config.status. | |
17895 # config.status does its own redirection, appending to config.log. | |
17896 # Unfortunately, on DOS this fails, as config.log is still kept open | |
17897 # by configure, so config.status won't be able to write to it; its | |
17898 # output is simply discarded. So we exec the FD to /dev/null, | |
17899 # effectively closing config.log, so it can be properly (re)opened and | |
17900 # appended to by config.status. When coming back to configure, we | |
17901 # need to make the FD available again. | |
17902 if test "$no_create" != yes; then | |
17903 ac_cs_success=: | |
17904 ac_config_status_args= | |
17905 test "$silent" = yes && | |
17906 ac_config_status_args="$ac_config_status_args --quiet" | |
17907 exec 5>/dev/null | |
17908 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
17909 exec 5>>config.log | |
17910 # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
17911 # would make configure fail if this is the last instruction. | |
17912 $ac_cs_success || as_fn_exit 1 | |
17913 fi | |
17914 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
17916 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
17917 fi | |
17918 |